PageSourceSearch

https://www.beatsbydre.com/etc.clientlibs/beats/clientlibs/site/featurePage.min.js

js beatsbydre.com collected 2026-09-24 08:35:51 UTC 3,386,481 bytes, 476 lines download raw bytes

1jQuery.namespace = function () {
2    var win = null, index1, index2, item;
3    for (index1 = 0; index1 < arguments.length; index1 = index1 + 1) {
4        item = arguments[index1].split(".");
5        win = window;
6        for (index2 = 0; index2 < item.length; index2 = index2 + 1) {
7            win[item[index2]] = win[item[index2]] || {};
8            win = win[item[index2]];
9        }
10    }
11    return win;
12};
13
14$.namespace("Beats.dashboard");
15
16Beats.dashboard = function() {
17
18    var self = this;
19    this.components = {};
20
21    this.init = function() {
22//        getSearchParams();
23        initDomEvents();
24    };
25
26    function detectImagesForAlt(e) {
27        var target = e.target;
28
29        if (target.tagName === 'IMG') {
30            addAltAttribute(target);
31        }
32    }
33
34    function addAltAttribute(img) {
35        if (!img.hasAttribute('alt')) {
36            img.alt = '';
37        }
38    }
39
40    function initArticleContent(e) {
41
42        var el = e.params.el[0];
43        window.registerCarousel(el);
44        window.initBeatsVideo(el);
45        window.initImgTxt(el);
46        window.initUniversalHero(el);
47    }
48
49    function initDomEvents() {
50        /*
51         * Added for A11y. HTL strips of alt tag when empty
52         * Event capturing used since load event cannot be captured using bubbling
53         */
54        document.addEventListener('load', detectImagesForAlt, true);
55        document.addEventListener('error', detectImagesForAlt, true);
56
57        /* Fix to support Product Tile and Universal Hero in article details page  
58         * PDP pages use its own instance of jquery. So events triggered from base js will not be captured.
59         */
60        $(document).on('articleContentLoaded', initArticleContent);
61    }
62};
63$(document).ready(function(){
64    var dashboard = new Beats.dashboard();
65    dashboard.init();
66});
67(()=>{var e={5350:(e,t,n)=>{"use strict";e.exports={EventEmitterMicro:n(8010)}},8010:e=>{"use strict";function t(){this._events={}}let n=t.prototype;n.on=function(e,t){return this._events[e]=this._events[e]||[],this._events[e].unshift(t),t},n.once=function(e,t){let n=this;return this.on(e,function i(r){n.off(e,i),void 0!==r?t(r):t()})},n.off=function(e,t){if(!this.has(e))return;if(1===arguments.length)return this._events[e]=null,void delete this._events[e];let n=this._events[e].indexOf(t);-1!==n&&this._events[e].splice(n,1)},n.trigger=function(e,t){if(this.has(e))for(let n=this._events[e].length-1;n>=0;n--)void 0!==t?this._events[e][n](t):this._events[e][n]()},n.has=function(e){return e in this._events!=!1&&0!==this._events[e].length},n.destroy=function(){for(let e in this._events)this._events[e]=null;this._events=null},e.exports=t},9530:e=>{e.exports={majorVersionNumber:"3.x"}},9294:(e,t,n)=>{"use strict";var i,r=n(5350).EventEmitterMicro,a=n(7453),s=n(8260);function o(e){e=e||{},r.call(this),this.id=s.getNewID(),this.executor=e.executor||a,this._reset(),this._willRun=!1,this._didDestroy=!1}(i=o.prototype=Object.create(r.prototype)).run=function(){return this._willRun||(this._willRun=!0),this._subscribe()},i.cancel=function(){this._unsubscribe(),this._willRun&&(this._willRun=!1),this._reset()},i.destroy=function(){var e=this.willRun();return this.cancel(),this.executor=null,r.prototype.destroy.call(this),this._didDestroy=!0,e},i.willRun=function(){return this._willRun},i.isRunning=function(){return this._isRunning},i._subscribe=function(){return this.executor.subscribe(this)},i._unsubscribe=function(){return this.executor.unsubscribe(this)},i._onAnimationFrameStart=function(e){this._isRunning=!0,this._willRun=!1,this._didEmitFrameData||(this._didEmitFrameData=!0,this.trigger("start",e))},i._onAnimationFrameEnd=function(e){this._willRun||(this.trigger("stop",e),this._reset())},i._reset=function(){this._didEmitFrameData=!1,this._isRunning=!1},e.exports=o},4385:(e,t,n)=>{"use strict";var i,r=n(8010);function a(e){e=e||{},this._reset(),this.updatePhases(),this.eventEmitter=new r,this._willRun=!1,this._totalSubscribeCount=-1;var t=null,n=null;"undefined"!=typeof window?(t=window.requestAnimationFrame,n=window.cancelAnimationFrame):t=n=function(){},this._requestAnimationFrame=t,this._cancelAnimationFrame=n,this._boundOnAnimationFrame=this._onAnimationFrame.bind(this),this._boundOnExternalAnimationFrame=this._onExternalAnimationFrame.bind(this)}(i=a.prototype).frameRequestedPhase="requested",i.startPhase="start",i.runPhases=["update","external","draw"],i.endPhase="end",i.disabledPhase="disabled",i.beforePhaseEventPrefix="before:",i.afterPhaseEventPrefix="after:",
67i.subscribe=function(e,t){return this._totalSubscribeCount++,this._nextFrameSubscribers[e.id]||(t?this._nextFrameSubscribersOrder.unshift(e.id):this._nextFrameSubscribersOrder.push(e.id),this._nextFrameSubscribers[e.id]=e,this._nextFrameSubscriberArrayLength++,this._nextFrameSubscriberCount++,this._run()),this._totalSubscribeCount},i.subscribeImmediate=function(e,t){return this._totalSubscribeCount++,this._subscribers[e.id]||(t?this._subscribersOrder.splice(this._currentSubscriberIndex+1,0,e.id):this._subscribersOrder.unshift(e.id),this._subscribers[e.id]=e,this._subscriberArrayLength++,this._subscriberCount++),this._totalSubscribeCount},i.unsubscribe=function(e){return!!this._nextFrameSubscribers[e.id]&&(this._nextFrameSubscribers[e.id]=null,this._nextFrameSubscriberCount--,0===this._nextFrameSubscriberCount&&this._cancel(),!0)},i.getSubscribeID=function(){return this._totalSubscribeCount+=1},i.destroy=function(){var e=this._cancel();return this.eventEmitter.destroy(),this.eventEmitter=null,this.phases=null,this._subscribers=null,this._subscribersOrder=null,this._nextFrameSubscribers=null,this._nextFrameSubscribersOrder=null,this._rafData=null,this._boundOnAnimationFrame=null,this._onExternalAnimationFrame=null,e},i.useExternalAnimationFrame=function(e){if("boolean"==typeof e){var t=this._isUsingExternalAnimationFrame;return e&&this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),!this._willRun||e||this._animationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this._isUsingExternalAnimationFrame=e,e?this._boundOnExternalAnimationFrame:t||!1}},i.updatePhases=function(){this.phases||(this.phases=[]),this.phases.length=0,this.phases.push(this.frameRequestedPhase),this.phases.push(this.startPhase),Array.prototype.push.apply(this.phases,this.runPhases),this.phases.push(this.endPhase),this._runPhasesLength=this.runPhases.length,this._phasesLength=this.phases.length},i._run=function(){if(!this._willRun)return this._willRun=!0,0===this.lastFrameTime&&(this.lastFrameTime=performance.now()),this._animationFrameActive=!0,this._isUsingExternalAnimationFrame||(this._animationFrame=this._requestAnimationFrame.call(window,this._boundOnAnimationFrame)),this.phase===this.disabledPhase&&(this.phaseIndex=0,this.phase=this.phases[this.phaseIndex]),!0},i._cancel=function(){var e=!1;return this._animationFrameActive&&(this._animationFrame&&(this._cancelAnimationFrame.call(window,this._animationFrame),this._animationFrame=null),this._animationFrameActive=!1,this._willRun=!1,e=!0),this._isRunning||this._reset(),e},i._onAnimationFrame=function(e){for(this._subscribers=this._nextFrameSubscribers,this._subscribersOrder=this._nextFrameSubscribersOrder,this._subscriberArrayLength=this._nextFrameSubscriberArrayLength,this._subscriberCount=this._nextFrameSubscriberCount,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this.phaseIndex=0,this.phase=this.phases[this.phaseIndex],this._isRunning=!0,this._willRun=!1,this._didRequestNextRAF=!1,this._rafData.delta=e-this.lastFrameTime,this.lastFrameTime=e,this._rafData.fps=0,this._rafData.delta>=1e3&&(this._rafData.delta=0),0!==this._rafData.delta&&(this._rafData.fps=1e3/this._rafData.delta),this._rafData.time=e,this._rafData.naturalFps=this._rafData.fps,this._rafData.timeNow=Date.now(),this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._onAnimationFrameStart(this._rafData);for(this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase),this._runPhaseIndex=0;this._runPhaseIndex<this._runPhasesLength;this._runPhaseIndex++){for(this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]].trigger(this.phase,this._rafData);this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase)}for(this.phaseIndex++,this.phase=this.phases[this.phaseIndex],this.eventEmitter.trigger(this.beforePhaseEventPrefix+this.phase),this._currentSubscriberIndex=0;this._currentSubscriberIndex<this._subscriberArrayLength;this._currentSubscriberIndex++)null!==this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]&&!1===this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._didDestroy&&this._subscribers[this._subscribersOrder[this._currentSubscriberIndex]]._onAnimationFrameEnd(this._rafData);this.eventEmitter.trigger(this.afterPhaseEventPrefix+this.phase),this._willRun?(this.phaseIndex=0,this.phaseIndex=this.phases[this.phaseIndex]):this._reset()},i._onExternalAnimationFrame=function(e){this._isUsingExternalAnimationFrame&&this._onAnimationFrame(e)},i._reset=function(){this._rafData||(this._rafData={}),this._rafData.time=0,this._rafData.delta=0,this._rafData.fps=0,this._rafData.naturalFps=0,this._rafData.timeNow=0,this._subscribers={},this._subscribersOrder=[],this._currentSubscriberIndex=-1,this._subscriberArrayLength=0,this._subscriberCount=0,this._nextFrameSubscribers={},this._nextFrameSubscribersOrder=[],this._nextFrameSubscriberArrayLength=0,this._nextFrameSubscriberCount=0,this._didEmitFrameData=!1,this._animationFrame=null,this._animationFrameActive=!1,this._isRunning=!1,this._shouldReset=!1,this.lastFrameTime=0,this._runPhaseIndex=-1,this.phaseIndex=-1,this.phase=this.disabledPhase},e.exports=a},2545:(e,t,n)=>{"use strict";var i=n(6428),r=function(e){this.phase=e,this.rafEmitter=new i,this._cachePhaseIndex(),this.requestAnimationFrame=this.requestAnimationFrame.bind(this),this.cancelAnimationFrame=this.cancelAnimationFrame.bind(this),this._onBeforeRAFExecutorStart=this._onBeforeRAFExecutorStart.bind(this),this._onBeforeRAFExecutorPhase=this._onBeforeRAFExecutorPhase.b
67ind(this),this._onAfterRAFExecutorPhase=this._onAfterRAFExecutorPhase.bind(this),this.rafEmitter.on(this.phase,this._onRAFExecuted.bind(this)),this.rafEmitter.executor.eventEmitter.on("before:start",this._onBeforeRAFExecutorStart),this.rafEmitter.executor.eventEmitter.on("before:"+this.phase,this._onBeforeRAFExecutorPhase),this.rafEmitter.executor.eventEmitter.on("after:"+this.phase,this._onAfterRAFExecutorPhase),this._frameCallbacks=[],this._currentFrameCallbacks=[],this._nextFrameCallbacks=[],this._phaseActive=!1,this._currentFrameID=-1,this._cancelFrameIdx=-1,this._frameCallbackLength=0,this._currentFrameCallbacksLength=0,this._nextFrameCallbacksLength=0,this._frameCallbackIteration=0},a=r.prototype;a.requestAnimationFrame=function(e,t){return!0===t&&this.rafEmitter.executor.phaseIndex>0&&this.rafEmitter.executor.phaseIndex<=this.phaseIndex?this._phaseActive?(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!0),this._frameCallbacks.push(this._currentFrameID,e),this._frameCallbackLength+=2):(this._currentFrameID=this.rafEmitter.executor.subscribeImmediate(this.rafEmitter,!1),this._currentFrameCallbacks.push(this._currentFrameID,e),this._currentFrameCallbacksLength+=2):(this._currentFrameID=this.rafEmitter.run(),this._nextFrameCallbacks.push(this._currentFrameID,e),this._nextFrameCallbacksLength+=2),this._currentFrameID},a.cancelAnimationFrame=function(e){this._cancelFrameIdx=this._nextFrameCallbacks.indexOf(e),this._cancelFrameIdx>-1?this._cancelNextAnimationFrame():(this._cancelFrameIdx=this._currentFrameCallbacks.indexOf(e),this._cancelFrameIdx>-1?this._cancelCurrentAnimationFrame():(this._cancelFrameIdx=this._frameCallbacks.indexOf(e),this._cancelFrameIdx>-1&&this._cancelRunningAnimationFrame()))},a._onRAFExecuted=function(e){for(this._frameCallbackIteration=0;this._frameCallbackIteration<this._frameCallbackLength;this._frameCallbackIteration+=2)this._frameCallbacks[this._frameCallbackIteration+1](e.time,e);this._frameCallbacks.length=0,this._frameCallbackLength=0},a._onBeforeRAFExecutorStart=function(){Array.prototype.push.apply(this._currentFrameCallbacks,this._nextFrameCallbacks.splice(0,this._nextFrameCallbacksLength)),this._currentFrameCallbacksLength=this._nextFrameCallbacksLength,this._nextFrameCallbacks.length=0,this._nextFrameCallbacksLength=0},a._onBeforeRAFExecutorPhase=function(){this._phaseActive=!0,Array.prototype.push.apply(this._frameCallbacks,this._currentFrameCallbacks.splice(0,this._currentFrameCallbacksLength)),this._frameCallbackLength=this._currentFrameCallbacksLength,this._currentFrameCallbacks.length=0,this._currentFrameCallbacksLength=0},a._onAfterRAFExecutorPhase=function(){this._phaseActive=!1},a._cachePhaseIndex=function(){this.phaseIndex=this.rafEmitter.executor.phases.indexOf(this.phase)},a._cancelRunningAnimationFrame=function(){this._frameCallbacks.splice(this._cancelFrameIdx,2),this._frameCallbackLength-=2},a._cancelCurrentAnimationFrame=function(){this._currentFrameCallbacks.splice(this._cancelFrameIdx,2),this._currentFrameCallbacksLength-=2},a._cancelNextAnimationFrame=function(){this._nextFrameCallbacks.splice(this._cancelFrameIdx,2),this._nextFrameCallbacksLength-=2,0===this._nextFrameCallbacksLength&&this.rafEmitter.cancel()},e.exports=r},7564:(e,t,n)=>{"use strict";var i=n(2545),r=function(){this.events={}},a=r.prototype;a.requestAnimationFrame=function(e){return this.events[e]||(this.events[e]=new i(e)),this.events[e].requestAnimationFrame},a.cancelAnimationFrame=function(e){return this.events[e]||(this.events[e]=new i(e)),this.events[e].cancelAnimationFrame},e.exports=new r},6428:(e,t,n)=>{"use strict";var i=n(9294),r=function(e){i.call(this,e)};(r.prototype=Object.create(i.prototype))._subscribe=function(){return this.executor.subscribe(this,!0)},e.exports=r},2431:(e,t,n)=>{"use strict";var i=n(7564);e.exports=i.cancelAnimationFrame("update")},8327:(e,t,n)=>{"use strict";var i=n(7564);e.exports=i.requestAnimationFrame("draw")},7295:(e,t,n)=>{"use strict";var i=n(7564);e.exports=i.requestAnimationFrame("external")},8260:(e,t,n)=>{"use strict";var i=n(3494).SharedInstance,r=n(9530).majorVersionNumber,a=function(){this._currentID=0};a.prototype.getNewID=function(){return this._currentID++,"raf:"+this._currentID},e.exports=i.share("@marcom/ac-raf-emitter/sharedRAFEmitterIDGeneratorInstance",r,a)}
67,7453:(e,t,n)=>{"use strict";var i=n(3494).SharedInstance,r=n(9530).majorVersionNumber,a=n(4385);e.exports=i.share("@marcom/ac-raf-emitter/sharedRAFExecutorInstance",r,a)},8038:(e,t,n)=>{"use strict";var i=n(7564);e.exports=i.requestAnimationFrame("update")},3494:(e,t,n)=>{"use strict";e.exports={SharedInstance:n(7814)}},7814:e=>{"use strict";var t,n="undefined"!=typeof window?window:{},i="SharedInstance",r=n.AC,a=(t={},{get:function(e,n){var i=null;return t[e]&&t[e][n]&&(i=t[e][n]),i},set:function(e,n,i){return t[e]||(t[e]={}),t[e][n]="function"==typeof i?new i:i,t[e][n]},share:function(e,t,n){var i=this.get(e,t);return i||(i=this.set(e,t,n)),i},remove:function(e,n){var i=typeof n;if("string"!==i&&"number"!==i)t[e]&&(t[e]=null);else{if(!t[e]||!t[e][n])return;t[e][n]=null}}});r||(r=n.AC={}),r[i]||(r[i]=a),e.exports=r[i]},8351:(e,t)=>{class n{constructor(){this._events={}}on(e,t){return this._events[e]=this._events[e]||[],this._events[e].unshift(t),t}once(e,t){const n=i=>{this.off(e,n),void 0!==i?t(i):t()};return this.on(e,n)}off(e,t){if(!this.has(e))return;if(!t)return void delete this._events[e];const n=this._events[e].indexOf(t);-1!==n&&this._events[e].splice(n,1)}trigger(e,t){if(this.has(e))for(let n=this._events[e].length-1;n>=0;n--)void 0!==t?this._events[e][n](t):this._events[e][n]()}has(e){return e in this._events&&0!==this._events[e].length}destroy(){this._events=null}}n.EventEmitterMicro=n,e.exports=n},9208:e=>{e.exports={version:"3.8.0",major:"3.x",majorMinor:"3.8"}},8075:(e,t,n)=>{"use strict";const i=n(8351),r=n(921),a=n(637),s=n(5617),o=n(7481),l=n(9533),u=n(9679),c=n(9297),d=n(9208),h={};"undefined"!=typeof window&&(h.update=n(8038),h.cancelUpdate=n(2431),h.external=n(7295),h.draw=n(8327));let p=null;class f extends i{constructor(){if(super(),p)throw"You cannot create multiple AnimSystems. You probably want to create multiple groups instead. You can have unlimited groups on a page";p=this,this.groups=[],this.scrollSystems=[],this.timeSystems=[],this.tweenGroup=null,this._forceUpdateRAFId=-1,this.initialized=!1,this.model=r,this.plugins={keyframe:[],parser:[]},this.version=d.version,this._resolveReady=()=>{},this.ready=new Promise(e=>this._resolveReady=e),this.onScroll=this.onScroll.bind(this),this.onResizedDebounced=this.onResizedDebounced.bind(this),this.onResizeImmediate=this.onResizeImmediate.bind(this)}initialize(){return this.initialized||"undefined"==typeof window||(this.initialized=!0,this.timeSystems=[],this.scrollSystems=[],this.groups=[],this.setupEvents(),this.initializeResizeFilter(),this.initializeModel(),this.createDOMGroups(),this.createDOMKeyframes(),this.tweenGroup=new c(null,this),this.groups.unshift(this.tweenGroup),this._resolveReady()),this.ready}use(e,t){e.install(this,t)}remove(){return this.initialized?Promise.all(this.groups.map(e=>e.remove())).then(()=>{this.groups=null,this.scrollSystems=null,this.timeSystems=null,window.clearTimeout(r.RESIZE_TIMEOUT),window.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResizeImmediate),this._events={},this.initialized=!1,this.ready=new Promise(e=>this._resolveReady=e)}):(this.ready=new Promise(e=>this._resolveReady=e),Promise.resolve())}destroy(){return this.remove()}createTimeGroup(e,t){e instanceof HTMLElement||(e=(t=e||{}).el);let n=new u(e,this);return t&&t.name&&(n.name=t.name),this.groups.push(n),this.timeSystems.push(n),this.trigger(r.EVENTS.ON_GROUP_CREATED,n),n}createScrollGroup(e,t){if(!e)throw"AnimSystem scroll based groups must supply an HTMLElement";let n=new l(e,this);return(t=t||{}).name&&(n.name=t.name),t.getPosition&&t.getMaxPosition&&(n.getPosition=t.getPosition,n.createViewableRange=()=>({a:0,d:t.getMaxPosition()})),n.getPosition=t.getPosition||n.getPosition,n.getPosition=t.getPosition||n.getPosition,this.groups.push(n),this.scrollSystems.push(n),this.trigger(r.EVENTS.ON_GROUP_CREATED,n),n}removeGroup(e){return e.destroyed||e.anim!==this?Promise.resolve():Promise.all(e.keyframeControllers.map(t=>e.removeKeyframeController(t))).then(()=>{let t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1),t=this.scrollSystems.indexOf(e),-1!==t&&this.scrollSystems.splice(t,1),t=this.timeSystems.indexOf(e),-1!==t&&this.timeSystems.splice(t,1),e.destroyed||e.destroy()})}createDOMGroups(){document.body.setAttribute("data-anim-scroll-group","body"),document.querySelectorAll("[data-anim-scroll-group]").forEach(e
67=>this.createScrollGroup(e)),document.querySelectorAll("[data-anim-time-group]").forEach(e=>this.createTimeGroup(e)),this.trigger(r.EVENTS.ON_DOM_GROUPS_CREATED,this.groups)}createDOMKeyframes(){let e=[];["data-anim-keyframe",a.DATA_ATTRIBUTE,s.DATA_ATTRIBUTE,o.DATA_ATTRIBUTE].forEach(function(t){for(let n=0;n<12;n++)e.push(t+(0===n?"":"-"+(n-1)))});for(let t=0;t<e.length;t++){let n=e[t],i=document.querySelectorAll("["+n+"]");for(let e=0;e<i.length;e++){const t=i[e],r=JSON.parse(t.getAttribute(n));this.addKeyframe(t,r)}}h.update(()=>{null!==this.groups&&(this.groups.forEach(e=>e.onKeyframesDirty({silent:!0})),this.groups.forEach(e=>e.trigger(r.EVENTS.ON_DOM_KEYFRAMES_CREATED,e)),this.trigger(r.EVENTS.ON_DOM_KEYFRAMES_CREATED,this),this.groups.forEach(e=>{e.forceUpdate({waitForNextUpdate:!1,silent:!0}),e.reconcile()}),this.onScroll())},!0)}initializeResizeFilter(){if(r.cssDimensionsTracker)return;const e=document.querySelector(".cssDimensionsTracker")||document.createElement("div");e.setAttribute("cssDimensionsTracker","true"),e.style.position="fixed",e.style.top="0",e.style.width="100%",e.style.height="100vh",e.style.pointerEvents="none",e.style.visibility="hidden",e.style.zIndex="-1",document.documentElement.appendChild(e),r.cssDimensionsTracker=e}initializeModel(){r.pageMetrics.windowHeight=r.cssDimensionsTracker.clientHeight,r.pageMetrics.windowWidth=r.cssDimensionsTracker.clientWidth,r.pageMetrics.scrollY=window.scrollY||window.pageYOffset,r.pageMetrics.scrollX=window.scrollX||window.pageXOffset,r.pageMetrics.breakpoint=r.getBreakpoint();let e=document.documentElement.getBoundingClientRect();r.pageMetrics.documentOffsetX=e.left+r.pageMetrics.scrollX,r.pageMetrics.documentOffsetY=e.top+r.pageMetrics.scrollY}setupEvents(){window.removeEventListener("scroll",this.onScroll),window.addEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onResizeImmediate),window.addEventListener("resize",this.onResizeImmediate)}onScroll(){r.pageMetrics.scrollY=window.scrollY||window.pageYOffset,r.pageMetrics.scrollX=window.scrollX||window.pageXOffset;for(let e=0,t=this.scrollSystems.length;e<t;e++)this.scrollSystems[e].updateTimeline();this.trigger(r.PageEvents.ON_SCROLL,r.pageMetrics)}onResizeImmediate(){let e=r.cssDimensionsTracker.clientWidth,t=r.cssDimensionsTracker.clientHeight;if(e===r.pageMetrics.windowWidth&&t===r.pageMetrics.windowHeight)return;r.pageMetrics.windowWidth=e,r.pageMetrics.windowHeight=t,r.pageMetrics.scrollY=window.scrollY||window.pageYOffset,r.pageMetrics.scrollX=window.scrollX||window.pageXOffset;let n=document.documentElement.getBoundingClientRect();r.pageMetrics.documentOffsetX=n.left+r.pageMetrics.scrollX,r.pageMetrics.documentOffsetY=n.top+r.pageMetrics.scrollY,window.clearTimeout(r.RESIZE_TIMEOUT),r.RESIZE_TIMEOUT=window.setTimeout(this.onResizedDebounced,250),this.trigger(r.PageEvents.ON_RESIZE_IMMEDIATE,r.pageMetrics)}onResizedDebounced(){h.update(()=>{let e=r.pageMetrics.breakpoint,t=r.getBreakpoint();if(t!==e){r.pageMetrics.previousBreakpoint=e,r.pageMetrics.breakpoint=t;for(let e=0,t=this.groups.length;e<t;e++)this.groups[e]._onBreakpointChange();this.trigger(r.PageEvents.ON_BREAKPOINT_CHANGE,r.pageMetrics)}for(let e=0,t=this.groups.length;e<t;e++)this.groups[e].forceUpdate({waitForNextUpdate:!1});this.trigger(r.PageEvents.ON_RESIZE_DEBOUNCED,r.pageMetrics)},!0)}forceUpdate({waitForNextUpdate:e=!0,silent:t=!1}={}){-1!==this._forceUpdateRAFId&&h.cancelUpdate(this._forceUpdateRAFId);let n=()=>{for(let e=0,n=this.groups.length;e<n;e++){this.groups[e].forceUpdate({waitForNextUpdate:!1,silent:t})}return-1};this._forceUpdateRAFId=e?h.update(n,!0):n()}addKeyframe(e,t){let n=this.getGroupForTarget(e);return n=n||this.getGroupForTarget(document.body),n.addKeyframe(e,t)}addEvent(e,t){let n=this.getGroupForTarget(e);return n=n||this.getGroupForTarget(document.body),n.addEvent(e,t)}getTimeGroupForTarget(e){return this._getGroupForTarget(e,e=>e instanceof u)}getScrollGroupForTarget(e){return this._getGroupForTarget(e,e=>!(e instanceof u))}getGroupForTarget(e){return this._getGroupForTarget(e,()=>!0)}getGroupByName(e){return this.groups.find(t=>t.name===e)}_getGroupForTarget(e,t){if(e._animInfo&&e._animInfo.group&&t(e._animInfo.group))return e._animInfo.group;let n=e;for(;n;){if(n._animInfo&&n._animInfo.isGroup&&t(n._animInfo.group))return n._animInfo.group;n=n.parentElement}}getControllerForTarget(e){return e._animInfo&&e._animInfo.controller?e._animInfo.controller:null}addTween(e,t){return this.tweenGroup.addKeyframe(e,t)}}
67e.exports="undefined"==typeof window?new f:window.AC.SharedInstance.share("AnimSystem",d.major,f),e.exports.default=e.exports},4625:(e,t,n)=>{const i=n(921);class r{constructor(e,t){this._index=0,this.keyframe=e,t&&(this.name=t)}get start(){return this.keyframe.jsonProps.start}set index(e){this._index=e}get index(){return this._index}}e.exports=class{constructor(e){this.timeGroup=e,this.chapters=[],this.chapterNames={},this.currentChapter=null,this.tween=null,this.destroyed=!1}destroy(){this.destroyed=!0,this.tween&&!this.tween.destroyed&&this.tween.remove(),this.tween=null}addChapter(e){const{position:t,name:n}=e;if(void 0===t)throw ReferenceError("Cannot add chapter without target position.");e._impIsFirst||0!==this.chapters.length||this.addChapter({position:0,_impIsFirst:!0});let i=this.timeGroup.addKeyframe(this,{start:t,end:t,event:"Chapter"});this.timeGroup.forceUpdate({waitForNextFrame:!1,silent:!0});const a=new r(i,n);if(this.chapters.push(a),n){if(this.chapterNames.hasOwnProperty(n))throw ReferenceError(`Duplicate chapter name assigned - "${n}" is already in use`);this.chapterNames[n]=a}return this.chapters.sort((e,t)=>e.start-t.start).forEach((e,t)=>e.index=t),this.currentChapter=this.currentChapter||this.chapters[0],a}playToChapter(e){let t;if(e.hasOwnProperty("index"))t=this.chapters[e.index];else{if(!e.hasOwnProperty("name"))throw ReferenceError("Cannot play to chapter without target index or name");t=this.chapterNames[e.name]}if(!t||this.currentChapter===t&&!0!==e.force)return;let n=e.ease||"easeInOutCubic";this.tween&&this.tween.controller&&(this.tween.remove(),n=e.ease||"easeOutQuint"),this.timeGroup.timeScale(e.timeScale||1);const r=void 0!==e.duration?e.duration:this.getDurationToChapter(t),a=this.timeGroup.time(),s=t.start;let o=!1;return this.tween=this.timeGroup.anim.addTween({time:a},{easeFunction:n,duration:r,time:[a,s],onStart:()=>{this.destroyed||this.timeGroup.trigger(i.EVENTS.ON_CHAPTER_INITIATED,{player:this,next:t})},onDraw:e=>{if(this.destroyed)return;let n=e.tweenProps.time.current;this.timeGroup.time(n),e.keyframe.curvedT>.5&&!o&&(o=!0,this.currentIndex=t.index,this.currentChapter=t,this.timeGroup.trigger(i.EVENTS.ON_CHAPTER_OCCURRED,{player:this,current:t}))},onComplete:e=>{this.destroyed||(this.timeGroup.time(e.tweenProps.time.current),this.timeGroup.trigger(i.EVENTS.ON_CHAPTER_COMPLETED,{player:this,current:t}),this.timeGroup.paused(!0),this.tween=null)}}),this.tween}getDurationToChapter(e){const t=this.chapters[e.index-1]||this.chapters[e.index+1];return Math.abs(t.start-e.start)}}},637:(e,t,n)=>{"use strict";const i=n(921),r=n(7625),a=n(8875),s=n(9917),o=n(1777),l=n(486),u=n(7297),c=n(3728),d=n(5157),h=n(6629),p=n(8264),{cssAttributes:f,suffixFreeAttributes:m,domAttributes:g}=n(3018);class v{constructor(e,t){this.controller=e,this.anchors=[],this.jsonProps=t,this.ease=e.group.defaultEase,this.easeFunction=o.linear,this.start=0,this.end=0,this.localT=0,this.curvedT=0,this.id=0,this.event="",this.needsEventDispatch=!1,this.snapAtCreation=!1,this.isEnabled=!1,this.animValues={},this.breakpointMask=i.KeyframeDefaults.breakpointMask,this.disabledWhen=[],this.keyframeType=i.KeyframeTypes.Interpolation,this.hold=!1,this.preserveState=!1,this.markedForRemoval=!1;let n=!1;Object.defineProperty(this,"hidden",{get:()=>n,set(t){n=t,e.group.keyframesDirty=!0}}),this.uuid=p(),this.destroyed=!1}destroy(){this.destroyed=!0,this.controller=null,this.disabledWhen=null,this.anchors=null,this.jsonProps=null,this.easeFunction=null,this.animValues=null}remove(){return this.controller&&this.controller.removeKeyframe(this)}parseOptions(e){this.jsonProps=e,e.relativeTo&&console.error(`KeyframeError: relativeTo has been removed. Use 'anchors' property instead. Found 'relativeTo':"${e.relativeTo}"`),void 0===e.end&&void 0===e.duration&&(e.end=e.start),""!==e.anchors&&e.anchors?(this.anchors=[],e.anchors=Array.isArray(e.anchors)?e.anchors:[e.anchors],e.anchors.forEach((t,n)=>{let i=d(t,this.controller.group.element);if(!i){let i="";return"string"==typeof t&&(i=" Provided value was a string, so a failed attempt was made to find anchor with the provided querystring in group.element, or in the document."),void console.warn("Keyframe on",this.controller.element,` failed to find anchor at index ${n} in array`,e.anchors,`. Anchors must be JS Object references, Elements references, or val
67id query selector strings. ${i}`)}this.anchors.push(i),this.controller.group.metrics.add(i)})):(this.anchors=[],e.anchors=[]),e.ease?this.ease=parseFloat(e.ease):e.ease=this.ease,e.hasOwnProperty("snapAtCreation")?this.snapAtCreation=e.snapAtCreation:e.snapAtCreation=this.snapAtCreation,e.easeFunction||(e.easeFunction=i.KeyframeDefaults.easeFunctionString),e.breakpointMask?this.breakpointMask=e.breakpointMask:e.breakpointMask=this.breakpointMask,e.disabledWhen?this.disabledWhen=Array.isArray(e.disabledWhen)?e.disabledWhen:[e.disabledWhen]:e.disabledWhen=this.disabledWhen,e.hasOwnProperty("hold")?this.hold=e.hold:e.hold=this.hold,e.hasOwnProperty("preserveState")?this.preserveState=e.preserveState:e.preserveState=i.KeyframeDefaults.preserveState,this.easeFunction=o[e.easeFunction],o.hasOwnProperty(e.easeFunction)||(e.easeFunction.includes("bezier")?this.easeFunction=l.fromCSSString(e.easeFunction):e.easeFunction.includes("spring")?this.easeFunction=u.fromCSSString(e.easeFunction):console.error("Keyframe parseOptions cannot find 'easeFunction' named '"+e.easeFunction+"'"));for(let t in e){if(-1!==i.KeyframeJSONReservedWords.indexOf(t))continue;let n=e[t];if(Array.isArray(n)){if(1===n.length&&(n[1]=n[0],n[0]=null),void 0===this.controller.tweenProps[t]||!this.controller._ownerIsElement){let s=0;this.controller._ownerIsElement||(s=this.controller.element[t]||0);const o=t.startsWith("--");let l=n[2]||(o||m.includes(t)?void 0:"px"),u=this.controller.group.anim.plugins.keyframe.reduce((n,i)=>n||i.parseProp.call(this,e,t),null);if(!u&&this.controller._ownerIsElement)if(o||f.includes(t)){let n=h(t),r=e.round||["zIndex"].includes(n);s=parseFloat(this.controller.getTargetComputedStyle().getPropertyValue(n)),isNaN(s)&&(s=0),u=new a(s,i.KeyframeDefaults.epsilon,this.snapAtCreation,t,r,l),this.controller.cssAttributes.push(u)}else g.includes(t)&&(u=new r(s,i.KeyframeDefaults.epsilon,this.snapAtCreation,t,e.round,l),this.controller.domAttributes.push(u));u||(u=new r(s,i.KeyframeDefaults.epsilon,this.snapAtCreation,t,e.round,l)),this.controller.tweenProps[t]=u}this.animValues[t]=this.controller.group.expressionParser.parseArray(this,n),this.controller.tweenProps[t].calculateEpsilon(e,this.animValues[t])}}this.keyframeType=this.hold?i.KeyframeTypes.InterpolationForward:i.KeyframeTypes.Interpolation,e.event&&(this.event=e.event)}overwriteProps(e){this.animValues={};let t=Object.assign({},this.jsonProps,e);this.controller.updateKeyframe(this,t)}updateLocalProgress(e){if(this.start===this.end||e<this.start||e>this.end)return this.localT=e<this.start?this.hold?this.localT:0:e>this.end?1:0,void(this.curvedT=this.easeFunction(this.localT));const t=(e-this.start)/(this.end-this.start),n=this.hold?this.localT:0;this.localT=s.clamp(t,n,1),this.curvedT=this.easeFunction(this.localT)}reconcile(e){this.controller.tweenProps[e].reconcile(this.animValues[e],this.curvedT)&&(this.needsEventDispatch||(this.needsEventDispatch=!0,this.controller.keyframesRequiringDispatch.push(this)))}reset(e){this.localT=e||0;let t=this.ease;this.ease=1;for(let e in this.animValues)this.reconcile(e);this.ease=t}onDOMRead(e){let t=this.controller.tweenProps[e].update(this.animValues[e],this.curvedT,this.ease);return""===this.event||this.needsEventDispatch||t&&(this.needsEventDispatch=!0,this.controller.keyframesRequiringDispatch.push(this)),t}isInRange(e){return e>=this.start&&e<=this.end}setEnabled(e){e=e||c(Array.from(document.documentElement.classList));let t=-1!==this.breakpointMask.indexOf(i.pageMetrics.breakpoint),n=!1;return this.disabledWhen.length>0&&(n=this.disabledWhen.some(t=>void 0!==e[t])),this.isEnabled=t&&!n,this.isEnabled}evaluateConstraints(){this.start=this.controller.group.expressionParser.parseTimeValue(this,this.jsonProps.start),this.end=this.controller.group.expressionParser.parseTimeValue(this,this.jsonProps.end),this.evaluateInterpolationConstraints()}evaluateInterpolationConstraints(){for(let e in this.animValues){let t=this.jsonProps[e];this.animValues[e]=this.controller.group.expressionParser.parseArray(this,t)}}}v.DATA_ATTRIBUTE="data-anim-tween",e.exports=v},5617:(e,t,n)=>{"use strict";const i=n(637),r=n(921),a=n(7625);class s extends i{constructor(e,t){super(e,t),this.keyframeType=r.KeyframeTypes.CSSClass,this._triggerType=s.TRIGGER_TYPE_CSS_CLASS,this.cssClass="",this.friendlyName="",this.style={on:null,off:null},this.toggle=r.KeyframeDefaults.toggle,this.isApplied=!1}parseOptions(e){if(!this.controller._ownerIsElement)throw new TypeError("CSS Keyframes cannot be applied to JS Objects");if(e.x=void 0,e.y=void 0,e.z=void 0,e.scale=void 0,e.scaleX=void 0,e.scaleY=void 0,e.rotationX=void 0,e.rotationY=void 0,e.rotationZ=void 0,e.rotation=void 0,e.o
67pacity=void 0,e.hold=void 0,void 0!==e.toggle&&(this.toggle=e.toggle),void 0!==e.cssClass)this._triggerType=s.TRIGGER_TYPE_CSS_CLASS,this.cssClass=e.cssClass,this.friendlyName="."+this.cssClass,void 0===this.controller.tweenProps.targetClasses&&(this.controller.tweenProps.targetClasses={add:[],remove:[]});else{if(void 0===e.style||!this.isValidStyleProperty(e.style))throw new TypeError("KeyframeCSSClass no 'cssClass` property found. If using `style` property its also missing or invalid");if(this._triggerType=s.TRIGGER_TYPE_STYLE_PROPERTY,this.style=e.style,this.friendlyName="style",this.toggle=void 0!==this.style.off||this.toggle,this.toggle&&void 0===this.style.off){this.style.off={};for(let e in this.style.on)this.style.off[e]=""}void 0===this.controller.tweenProps.targetStyles&&(this.controller.tweenProps.targetStyles={})}if(void 0===e.end&&(e.end=e.start),e.toggle=this.toggle,this._triggerType===s.TRIGGER_TYPE_CSS_CLASS)this.isApplied=this.controller.element.classList.contains(this.cssClass);else{let e=getComputedStyle(this.controller.element);this.isApplied=!0;for(let t in this.style.on)if(e[t]!==this.style.on[t]){this.isApplied=!1;break}}i.prototype.parseOptions.call(this,e),this.animValues[this.friendlyName]=[0,0],void 0===this.controller.tweenProps[this.friendlyName]&&(this.controller.tweenProps[this.friendlyName]=new a(0,1,!1,this.friendlyName)),this.keyframeType=r.KeyframeTypes.CSSClass}updateLocalProgress(e){this.isApplied&&!this.toggle||(this.start!==this.end?!this.isApplied&&e>=this.start&&e<=this.end?this._apply():this.isApplied&&this.toggle&&(e<this.start||e>this.end)&&this._unapply():!this.isApplied&&e>=this.start?this._apply():this.isApplied&&this.toggle&&e<this.start&&this._unapply())}_apply(){if(this._triggerType===s.TRIGGER_TYPE_CSS_CLASS)this.controller.tweenProps.targetClasses.add.push(this.cssClass),this.controller.needsClassUpdate=!0;else{for(let e in this.style.on)this.controller.tweenProps.targetStyles[e]=this.style.on[e];this.controller.needsStyleUpdate=!0}this.isApplied=!0}
67_unapply(){if(this._triggerType===s.TRIGGER_TYPE_CSS_CLASS)this.controller.tweenProps.targetClasses.remove.push(this.cssClass),this.controller.needsClassUpdate=!0;else{for(let e in this.style.off)this.controller.tweenProps.targetStyles[e]=this.style.off[e];this.controller.needsStyleUpdate=!0}this.isApplied=!1}isValidStyleProperty(e){if(!e.hasOwnProperty("on"))return!1;if("object"!=typeof e.on)throw new TypeError("KeyframeCSSClass `style` property should be in the form of: {on:{visibility:'hidden', otherProperty: 'value'}}");if(this.toggle&&e.hasOwnProperty("off")&&"object"!=typeof e.off)throw new TypeError("KeyframeCSSClass `style` property should be in the form of: {on:{visibility:'hidden', otherProperty: 'value'}}");return!0}reconcile(e){}onDOMRead(e){}evaluateInterpolationConstraints(){}}s.TRIGGER_TYPE_CSS_CLASS=0,s.TRIGGER_TYPE_STYLE_PROPERTY=1,s.DATA_ATTRIBUTE="data-anim-classname",e.exports=s},3570:(e,t,n)=>{"use strict";const i=n(921),r=n(7625),a=n(6126),s=n(6033),o=n(5617),l=n(7382),u=n(3728),c=n(8264),d=n(8351),h=n(4707),p={};"undefined"!=typeof window&&(p.update=n(8038),p.external=n(7295),p.draw=n(8327));const{transformAttributes:f,cssAttributes:m,domAttributes:g}=n(3018),v=n(65),A=n(8875),y=n(1358),b=Math.PI/180,_={create:n(6252),rotateX:n(4663),rotateY:n(2113),rotateZ:n(974),scale:n(4028)};e.exports=class extends d{constructor(e,t){super(),this._events.draw=[],this.uuid=c(),this.group=e,this.element=t,this._ownerIsElement=this.element instanceof Element,this._ownerIsElement?this.friendlyName=this.element.tagName+"."+Array.from(this.element.classList).join("."):this.friendlyName=this.element.friendlyName||this.uuid,this.element._animInfo=this.element._animInfo||new s(e,this),this.element._animInfo.controller=this,this.element._animInfo.group=this.group,this.element._animInfo.controllers.push(this),this.tweenProps=this.element._animInfo.tweenProps,this.eventObject=ne
67w a(this),this.needsStyleUpdate=!1,this.needsClassUpdate=!1,this.elementMetrics=this.group.metrics.add(this.element),this.attributes=[],this.cssAttributes=[],this.domAttributes=[],this.keyframes={},this._allKeyframes=[],this._activeKeyframes=[],this.keyframesRequiringDispatch=[],this.updateCachedValuesFromElement(),this.boundsMin=0,this.boundsMax=0,this.mat2d=new Float32Array(6),this.mat4=_.create(),this.needsWrite=!0,this.onDOMWriteImp=this._ownerIsElement?this.onDOMWriteForElement:this.onDOMWriteForObject}destroy(){if(this.element._animInfo){this.element._animInfo.controller===this&&(this.element._animInfo.controller=null);let e=this.element._animInfo.controllers.indexOf(this);if(-1!==e&&this.element._animInfo.controllers.splice(e,1),0===this.element._animInfo.controllers.length)this.element._animInfo=null;else{let e=this.element._animInfo.controllers.find(e=>e.group!==e.group.anim.tweenGroup);e&&(this.element._animInfo.controller=e,this.element._animInfo.group=e.group)}}this.eventObject.controller=null,this.eventObject.element=null,this.eventObject.keyframe=null,this.eventObject.tweenProps=null,this.eventObject=null,this.elementMetrics=null,this.group=null,this.keyframesRequiringDispatch=null;for(let e=0;e<this._allKeyframes.length;e++)this._allKeyframes[e].destroy();this._allKeyframes=null,this._activeKeyframes=null,this.attributes=null,this.keyframes=null,this.element=null,this.tweenProps=null,this.destroyed=!0,super.destroy()}remove(){return this.group&&this.group.removeKeyframeController(this)}updateCachedValuesFromElement(){if(!this._ownerIsElement)return;const e=this.getTargetComputedStyle(!0);let t=new DOMMatrix(e.getPropertyValue("transform")),n=h(t),a=i.KeyframeDefaults.epsilon,s=!1;["x","y","z"].forEach((e,t)=>{this.tweenProps[e]=new r(n.translation[t],a,s,e)}),this.tweenProps.rotation=new r(n.rotation[2],a,s,"rotation"),["rotationX","rotationY","rotationZ"].forEach((e,t)=>{this.tweenProps[e]=new r(n.rotation[t],a,s,e)}),this.tweenProps.scale=new r(n.scale[0],a,s,"scale"),["scaleX","scaleY","scaleZ"].forEach((e,t)=>{this.tweenProps[e]=new r(n.scale[t],a,s,e)})}addKeyframe(e){let t=l(e);if(!t)throw new Error("AnimSystem Cannot create keyframe for from options `"+e+"`");let n=new t(this,e);return n.parseOptions(e),n.id=this._allKeyframes.length,this._allKeyframes.push(n),n}needsUpdate(){for(let e=0,t=this.attributes.length;e<t;e++){let t=this.attributes[e];if(this.tweenProps[t].needsUpdate())return!0}return!1}updateLocalProgress(e){for(let t=0,n=this.attributes.length;t<n;t++){let n=this.attributes[t],i=this.keyframes[this.attributes[t]];if(1===i.length){i[0].updateLocalProgress(e);continue}let r=this.getNearestKeyframeForAttribute(n,e);r&&r.updateLocalProgress(e)}}reconcile(){for(let e=0,t=this.attributes.length;e<t;e++){let t=this.attributes[e],n=this.getNearestKeyframeForAttribute(t,this.group.position.local);n.updateLocalProgress(this.group.position.local),n.snapAtCreation&&n.reconcile(t)}}determineActiveKeyframes(e){e=e||u(Array.from(document.documentElement.classList));let t=this._activeKeyframes,n=this.attributes,i={};this._activeKeyframes=[],this.attributes=[],this.keyframes={};for(let t=0;t<this._allKeyframes.length;t++){let n=this._allKeyframes[t];if(n.markedForRemoval||n.hidden||!n.setEnabled(e))for(let e in n.animValues)this.tweenProps[e].isActive=n.preserveState,n.preserveState&&(i[e]=!0);else{this._activeKeyframes.push(n);for(let e in n.animValues)this.keyframes[e]=this.keyframes[e]||[],this.keyframes[e].push(n),-1===this.attributes.indexOf(e)&&(i[e]=!0,this.attributes.push(e),this.tweenProps[e].isActive=!0)}}this.attributes.forEach(e=>this.tweenProps[e].isActive=!0),this.cssAttributes=this.attributes.filter(e=>m.includes(e)||e.startsWith("--")).map(e=>this.tweenProps[e]),this.domAttributes=this.attributes.filter(e=>g.includes(e)).map(e=>this.tweenProps[e]);let r=t.filter(e=>-1===this._activeKeyframes.indexOf(e));if(0===r.length)return;let a=n.filter(e=>-1===this.attributes.indexOf(e)&&!i.hasOwnProperty(e));if(0!==a.length)if(this.needsWrite=!0,this._ownerIsElement)p.external(()=>{let e=a.some(e=>
67f.includes(e)),t=e&&Object.keys(i).some(e=>f.includes(e));e&&!t&&this.element.style.removeProperty("transform");for(let e=0,t=a.length;e<t;++e){let t=a[e],n=this.tweenProps[t],i=n.isActive?n.target:n.initialValue;if(n.current=n.target=i,!n.isActive)switch(!0){case n instanceof v:case n instanceof A:n.unset(this.element.style);break;case n instanceof y:n.unset(n.applyToStyle?this.element.style:this.element)}}for(let e=0,t=r.length;e<t;++e){let t=r[e];t instanceof o&&!t.preserveState&&t._unapply()}},!0);else for(let e=0,t=a.length;e<t;++e){let t=this.tweenProps[a[e]];t.current=t.target,t.isActive=!1}}onDOMRead(e){for(let t=0,n=this.attributes.length;t<n;t++){let n=this.attributes[t],i=this.getNearestKeyframeForAttribute(n,e);i&&i.onDOMRead(n)&&(this.needsWrite=!0)}}onDOMWrite(){(this.needsWrite||this.needsClassUpdate||this.needsStyleUpdate)&&(this.needsWrite=!1,this.onDOMWriteImp(),this.handleEventDispatch())}onDOMWriteForObject(){for(let e=0,t=this.attributes.length;e<t;e++){let t=this.attributes[e];this.element[t]=this.tweenProps[t].current}}onDOMWriteForElement(e=this.element.style){this.handleStyleTransform(e);for(let t=0,n=this.cssAttributes.length;t<n;t++)this.cssAttributes[t].set(e);for(let e=0,t=this.domAttributes.length;e<t;e++)this.domAttributes[e].set(this.element);if(this.needsStyleUpdate){for(let e in this.tweenProps.targetStyles)null!==this.tweenProps.targetStyles[e]&&(this.element.style[e]=this.tweenProps.targetStyles[e]),this.tweenProps.targetStyles[e]=null;this.needsStyleUpdate=!1}this.needsClassUpdate&&(this.tweenProps.targetClasses.add.length>0&&this.element.classList.add.apply(this.element.classList,this.tweenProps.targetClasses.add),this.tweenProps.targetClasses.remove.length>0&&this.element.classList.remove.apply(this.element.classList,this.tweenProps.targetClasses.remove),this.tweenProps.targetClasses.add.length=0,this.tweenProps.targetClasses.remove.length=0,this.needsClassUpdate=!1)}handleStyleTransform(e=this.element.style){let t=this.tweenProps;if(t.z.isActive||t.rotationX.isActive||t.rotationY.isActive){const n=this.mat4;n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1;const i=t.x.current,r=t.y.current,a=t.z.current;if(n[12]=n[0]*i+n[4]*r+n[8]*a+n[12],n[13]=n[1]*i+n[5]*r+n[9]*a+n[13],n[14]=n[2]*i+n[6]*r+n[10]*a+n[14],n[15]=n[3]*i+n[7]*r+n[11]*a+n[15],0!==t.rotation.current||0!==t.rotationZ.current){const e=(t.rotation.current||t.rotationZ.current)*b;_.rotateZ(n,n,e)}if(0!==t.rotationX.current){const e=t.rotationX.current*b;_.rotateX(n,n,e)}if(0!==t.rotationY.current){const e=t.rotationY.current*b;_.rotateY(n,n,e)}1===t.scale.current&&1===t.scaleX.current&&1===t.scaleY.current||_.scale(n,n,[t.scale.current,t.scale.current,1]),e.transform="matrix3d("+n[0]+","+n[1]+","+n[2]+","+n[3]+","+n[4]+","+n[5]+","+n[6]+","+n[7]+","+n[8]+","+n[9]+","+n[10]+","+n[11]+","+n[12]+","+n[13]+","+n[14]+","+n[15]+")"}else if(t.x.isActive||t.y.isActive||t.rotation.isActive||t.rotationZ.isActive||t.scale.isActive||t.scaleX.isActive||t.scaleY.isActive){const n=this.mat2d;n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0;const i=t.x.current,r=t.y.current,a=n[0],s=n[1],o=n[2],l=n[3],u=n[4],c=n[5];if(n[0]=a,n[1]=s,n[2]=o,n[3]=l,n[4]=a*i+o*r+u,n[5]=s*i+l*r+c,0!==t.rotation.current||0!==t.rotationZ.current){const e=(t.rotation.current||t.rotationZ.current)*b,i=n[0],r=n[1],a=n[2],s=n[3],o=n[4],l=n[5],u=Math.sin(e),c=Math.cos(e);n[0]=i*c+a*u,n[1]=r*c+s*u,n[2]=i*-u+a*c,n[3]=r*-u+s*c,n[4]=o,n[5]=l}t.scaleX.isActive||t.scaleY.isActive?(n[0]=n[0]*t.scaleX.current,n[1]=n[1]*t.scaleX.current,n[2]=n[2]*t.scaleY.current,n[3]=n[3]*t.scaleY.current):(n[0]=n[0]*t.scale.current,n[1]=n[1]*t.scale.current,n[2]=n[2]*t.scale.current,n[3]=n[3]*t.scale.current),e.transform="matrix("+n[0]+", "+n[1]+", "+n[2]+", "+n[3]+", "+n[4]+", "+n[5]+")"}}handleEventDispatch(){if(0!==this.keyframesRequiringDispatch.length){for(let e=0,t=this.keyframesRequiringDispatch.length;e<t;e++){let t=this.keyframesRequiringDispatch[e];t.needsEventDispatch=!1,this.eventObject.keyframe=t,this.eventObject.pageMetrics=i.pageMetrics,this.eventObject.event=t.event,this.trigger(t.event,this.eventObject)}this.keyframesRequiringDispatch.length=0}if(0!==this._events.draw.length){this.eventObject.keyframe=null,this.eventObject.event="draw";
67for(let e=this._events.draw.length-1;e>=0;e--)this._events.draw[e](this.eventObject)}}updateAnimationConstraints(){for(let e=0,t=this._activeKeyframes.length;e<t;e++)this._activeKeyframes[e].evaluateConstraints();this.attributes.forEach(e=>{1!==this.keyframes[e].length&&this.keyframes[e].sort(i.KeyframeComparison)}),this.updateDeferredPropertyValues()}refreshMetrics(){let e=new Set([this.element]);this._allKeyframes.forEach(t=>t.anchors.forEach(t=>e.add(t))),this.group.metrics.refreshCollection(e),this.group.keyframesDirty=!0}getTargetComputedStyle(e=!1){return this._ownerIsElement?((e||void 0===this.group.computedStyleCache[this.uuid])&&(this.group.computedStyleCache[this.uuid]=getComputedStyle(this.element)),this.group.computedStyleCache[this.uuid]):null}updateDeferredPropertyValues(){for(let e=0,t=this.attributes.length;e<t;e++){let t=this.attributes[e],n=this.keyframes[t];if(!(n[0].keyframeType>i.KeyframeTypes.InterpolationForward))for(let e=0,i=n.length;e<i;e++){let r=n[e];null===r.jsonProps[t][0]&&(0===e?r.jsonProps[t][0]=r.animValues[t][0]=this.tweenProps[t].current:r.animValues[t][0]=n[e-1].animValues[t][1]),null===r.jsonProps[t][1]&&(r.animValues[t][1]=e===i-1?this.tweenProps[t].current:n[e+1].animValues[t][0]),r.snapAtCreation&&(r.jsonProps[t][0]=r.animValues[t][0],r.jsonProps[t][1]=r.animValues[t][1])}}}getBounds(e){this.boundsMin=Number.MAX_VALUE,this.boundsMax=-Number.MAX_VALUE;for(let t=0,n=this.attributes.length;t<n;t++){let n=this.keyframes[this.attributes[t]];for(let t=0;t<n.length;t++){let i=n[t];this.boundsMin=Math.min(i.start,this.boundsMin),this.boundsMax=Math.max(i.end,this.boundsMax),e.min=Math.min(i.start,e.min),e.max=Math.max(i.end,e.max)}}}getNearestKeyframeForAttribute(e,t){t=void 0!==t?t:this.group.position.local;let n=null,i=Number.POSITIVE_INFINITY,r=this.keyframes[e];if(void 0===r)return null;let a=r.length;if(0===a)return null;if(1===a)return r[0];for(let e=0;e<a;e++){let a=r[e];if(a.isInRange(t)){n=a;break}let s=Math.min(Math.abs(t-a.start),Math.abs(t-a.end));s<i&&(i=s,n=a)}return n}getAllKeyframesForAttribute(e){return this.keyframes[e]}updateKeyframe(e,t){e.parseOptions(t),e.evaluateConstraints(),this.group.keyframesDirty=!0,p.update(()=>{this.trigger(i.EVENTS.ON_KEYFRAME_UPDATED,e),this.group.trigger(i.EVENTS.ON_KEYFRAME_UPDATED,e)},!0)}removeKeyframe(e){return e.destroyed||e.controller!==this?Promise.resolve(null):(e.markedForRemoval=!0,this.group.keyframesDirty=!0,new Promise(t=>{this.group.rafEmitter.executor.eventEmitter.once("before:draw",()=>{t(e),e.destroy();let n=this._allKeyframes.indexOf(e);-1!==n&&this._allKeyframes.splice(n,1)})}))}updateAnimation(e,t){return this.group.gui&&console.warn("KeyframeController.updateAnimation(keyframe,props) has been deprecated. Please use updateKeyframe(keyframe,props)"),this.updateKeyframe(e,t)}}},7481:(e,t,n)=>{"use strict";const i=n(637),r=n(921),a=n(7625);class s extends i{constructor(e,t){super(e,t),this.keyframeType=r.KeyframeTypes.Event,this.isApplied=!1,this.hasDuration=!1,this.isCurrentlyInRange=!1}parseOptions(e){e.x=void 0,e.y=void 0,e.scale=void 0,e.scaleX=void 0,e.scaleY=void 0,e.rotation=void 0,e.style=void 0,e.cssClass=void 0,e.rotation=void 0,e.opacity=void 0,e.hold=void 0,this.event=e.event,this.animValues[this.event]=[0,0],void 0===this.controller.tweenProps[this.event]&&(this.controller.tweenProps[this.event]=new a(0,1,!1,this.event)),super.parseOptions(e),this.keyframeType=r.KeyframeTypes.Event}updateLocalProgress(e){if(this.hasDuration){let t=this.isCurrentlyInRange,n=e>=this.start&&e<=this.end;if(t===n)return;return this.isCurrentlyInRange=n,void(n&&!t?this._trigger(this.event+":enter"):t&&!n&&this._trigger(this.event+":exit"))}!this.isApplied&&e>=this.start?(this.isApplied=!0,this._trigger(this.event)):this.isApplied&&e<this.start&&(this.isApplied=!1,this._trigger(this.event+":reverse"))}_trigger(e){this.controller.eventObject.event=e,this.controller.eventObject.keyframe=this,this.controller.trigger(e,this.controller.eventObject)}evaluateConstraints(){super.evaluateConstraints(),this.hasDuration=this.start!==this.end}reset(e){this.isApplied=!1,this.isCurrentlyInRange=!1,super.reset(e)}onDOMRead(e){}reconcile(e){}evaluateInterpolationConstraints(){}}s.DATA_ATTRIBUTE="data-anim-event",e.exports=s}
67,6033:(e,t,n)=>{const i=n(4161);e.exports=class{constructor(e,t,n=!1){this.isGroup=n,this.group=e,this.controller=t,this.controllers=[],this.tweenProps=new i}}},921:(e,t,n)=>{"use strict";const i={GUI_INSTANCE:null,ANIM_INSTANCE:null,VIEWPORT_EMITTER_ELEMENT:void 0,LOCAL_STORAGE_KEYS:{GuiPosition:"anim-ui.position",GroupCollapsedStates:"anim-ui.group-collapsed-states",scrollY:"anim-ui.scrollY-position",path:"anim-ui.path"},RESIZE_TIMEOUT:-1,BREAKPOINTS:[{name:"S",mediaQuery:"only screen and (max-width: 734px)"},{name:"M",mediaQuery:"only screen and (max-width: 1068px)"},{name:"L",mediaQuery:"only screen and (min-width: 1069px)"}],getBreakpoint:function(){for(let e=0;e<i.BREAKPOINTS.length;e++){let t=i.BREAKPOINTS[e];if(window.matchMedia(t.mediaQuery).matches)return t.name}},KeyframeDefaults:{ease:1,epsilon:.05,preserveState:!1,easeFunctionString:"linear",easeFunction:"linear",hold:!1,snapAtCreation:!1,toggle:!1,breakpointMask:"SMLX",event:"",disabledWhen:[],cssClass:""},KeyframeTypes:{Interpolation:0,InterpolationForward:1,CSSClass:2,Event:3},EVENTS:{ON_DOM_KEYFRAMES_CREATED:"ON_DOM_KEYFRAMES_CREATED",ON_DOM_GROUPS_CREATED:"ON_DOM_GROUPS_CREATED",ON_GROUP_CREATED:"ON_GROUP_CREATED",ON_KEYFRAME_UPDATED:"ON_KEYFRAME_UPDATED",ON_TIMELINE_START:"ON_TIMELINE_START",ON_TIMELINE_UPDATE:"ON_TIMELINE_UPDATE",ON_TIMELINE_COMPLETE:"ON_TIMELINE_COMPLETE",ON_CHAPTER_INITIATED:"ON_CHAPTER_INITIATED",ON_CHAPTER_OCCURRED:"ON_CHAPTER_OCCURRED",ON_CHAPTER_COMPLETED:"ON_CHAPTER_COMPLETED"},PageEvents:{ON_SCROLL:"ON_SCROLL",ON_RESIZE_IMMEDIATE:"ON_RESIZE_IMMEDIATE",ON_RESIZE_DEBOUNCED:"ON_RESIZE_DEBOUNCED",ON_BREAKPOINT_CHANGE:"ON_BREAKPOINT_CHANGE"},KeyframeJSONReservedWords:["event","cssClass","style","anchors","start","end","epsilon","easeFunction","ease","breakpointMask","disabledWhen"],TweenProps:n(4161),TargetValue:n(7625),CSSTargetValue:n(8875),pageMetrics:new function(){this.scrollX=0,this.scrollY=0,this.windowWidth=0,this.windowHeight=0,this.documentOffsetX=0,this.documentOffsetY=0,this.previousBreakpoint="",this.breakpoint=""},KeyframeComparison:function(e,t){return e.start<t.start?-1:e.start>t.start?1:0}};e.exports=i},1777:e=>{"use strict";e.exports=new class{constructor(){this.linear=function(e){return e},this.easeInQuad=function(e){return e*e},this.easeOutQuad=function(e){return e*(2-e)},this.easeInOutQuad=function(e){return e<.5?2*e*e:(4-2*e)*e-1},this.easeInSin=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},this.easeOutSin=function(e){return Math.sin(Math.PI/2*e)},this.easeInOutSin=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},this.easeInElastic=function(e){return 0===e?e:(.04-.04/e)*Math.sin(25*e)+1},this.easeOutElastic=function(e){return.04*e/--e*Math.sin(25*e)},this.easeInOutElastic=function(e){return(e-=.5)<0?(.02+.01/e)*Math.sin(50*e):(.02-.01/e)*Math.sin(50*e)+1},this.easeOutBack=function(e){return(e-=1)*e*(2.70158*e+1.70158)+1},this.easeInCubic=function(e){return e*e*e},this.easeOutCubic=function(e){return--e*e*e+1},this.easeInOutCubic=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},this.easeInQuart=function(e){return e*e*e*e},this.easeOutQuart=function(e){return 1- --e*e*e*e},this.easeInOutQuart=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},this.easeInQuint=function(e){return e*e*e*e*e},this.easeOutQuint=function(e){return 1+--e*e*e*e*e},this.easeInOutQuint=function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}}},2289:(e,t,n)=>{"use strict";const i=n(921),r=(e,t)=>null==e?t:e;class a{constructor(e){this.top=0,this.bottom=0,this.left=0,this.right=0,this.height=0,this.width=0}toString(){return`top:${this.top}, bottom:${this.bottom}, left:${this.left}, right:${this.right}, height:${this.height}, width:${this.width}`}toObject(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right,height:this.height,width:this.width}}}e.exports=class{constructor(){this.clear()}clear(){this._metrics=new WeakMap}destroy(){this._metrics=null}add(e){let t=this._metrics.get(e);if(t)return t;let n=new a(e);return this._metrics.set(e,n),this._refreshMetrics(e,n)}get(e){return this._metrics.get(e)}
67refreshCollection(e){e.forEach(e=>this._refreshMetrics(e,null))}refreshMetrics(e){return this._refreshMetrics(e)}_refreshMetrics(e,t){if(t=t||this._metrics.get(e),!(e instanceof Element))return t.width=r(e.width,0),t.height=r(e.height,0),t.top=r(e.top,r(e.y,0)),t.left=r(e.left,r(e.x,0)),t.right=t.left+t.width,t.bottom=t.top+t.height,t;if(void 0===e.offsetWidth){let n=e.getBoundingClientRect();return t.width=n.width,t.height=n.height,t.top=i.pageMetrics.scrollY+n.top,t.left=i.pageMetrics.scrollX+n.left,t.right=t.left+t.width,t.bottom=t.top+t.height,t}t.width=e.offsetWidth,t.height=e.offsetHeight,t.top=i.pageMetrics.documentOffsetY,t.left=i.pageMetrics.documentOffsetX;let n=e;for(;n;)t.top+=n.offsetTop,t.left+=n.offsetLeft,n=n.offsetParent;return t.right=t.left+t.width,t.bottom=t.top+t.height,t}}},6126:e=>{e.exports=class{constructor(e){this.controller=e,this.element=this.controller.element,this.keyframe=null,this.event="",this.tweenProps=this.controller.tweenProps}}},7382:(e,t,n)=>{"use strict";const i=n(921),r=n(637),a=n(7481),s=n(5617),o=function(e){for(let t in e){let n=e[t];if(-1===i.KeyframeJSONReservedWords.indexOf(t)&&Array.isArray(n))return!0}return!1};e.exports=function(e){if(void 0!==e.cssClass||void 0!==e.style){if(o(e))throw"CSS Keyframes cannot tween values, please use multiple keyframes instead";return s}if(o(e))return r;if(e.event)return a;throw delete e.anchors,`Could not determine tween type based on ${JSON.stringify(e)}`}},4585:e=>{e.exports=class{constructor(){this.local=0,this.localUnclamped=0,this.lastPosition=0}}},7297:(e,t,n)=>{"use strict";const{map:i}=n(9917),r={};class a{constructor(e,t,n,i){this.mass=e,this.stiffness=t,this.damping=n,this.initialVelocity=i,this.m_w0=Math.sqrt(this.stiffness/this.mass),this.m_zeta=this.damping/(2*Math.sqrt(this.stiffness*this.mass)),this.m_zeta<1?(this.m_wd=this.m_w0*Math.sqrt(1-this.m_zeta*this.m_zeta),this.m_A=1,this.m_B=(this.m_zeta*this.m_w0-this.initialVelocity)/this.m_wd):(this.m_wd=0,this.m_A=1,this.m_B=-this.initialVelocity+this.m_w0)}solve(e){return 1-(e=this.m_zeta<1?Math.exp(-e*this.m_zeta*this.m_w0)*(this.m_A*Math.cos(this.m_wd*e)+this.m_B*Math.sin(this.m_wd*e)):(this.m_A+this.m_B*e)*Math.exp(-e*this.m_w0))}}const s=/\d*\.?\d+/g;a.fromCSSString=function(e){let t=e.match(s);if(4!==t.length)throw`SpringEasing could not convert ${cssString} to spring params`;let n=t.map(Number),o=new a(...n);const l=o.solve.bind(o);let u=0;let c=function(){if(r[e])return r[e];const t=1/6;let n,i=0;for(;;){u+=t;if(1===l(u)){if(i++,i>=16){n=u*t;break}}else i=0}return r[e]=n,r[e]}();return function(e){return 0===e||1===e?e:l(i(e,0,1,0,c))}},e.exports=a},4161:e=>{e.exports=class{}},8264:e=>{e.exports=()=>Math.random().toString(16).slice(-4)},486:e=>{"use strict";const t=1e-5,n=Math.abs;class i{constructor(e,t,n,i){this.cp=new Float32Array(6),this.cp[0]=3*e,this.cp[1]=3*(n-e)-this.cp[0],this.cp[2]=1-this.cp[0]-this.cp[1],this.cp[3]=3*t,this.cp[4]=3*(i-t)-this.cp[3],this.cp[5]=1-this.cp[3]-this.cp[4]}sampleCurveX(e){return((this.cp[2]*e+this.cp[1])*e+this.cp[0])*e}sampleCurveY(e){return((this.cp[5]*e+this.cp[4])*e+this.cp[3])*e}sampleCurveDerivativeX(e){return(3*this.cp[2]*e+2*this.cp[1])*e+this.cp[0]}solveCurveX(e){var i,r,a,s,o,l;for(a=e,l=0;l<5;l++){if(s=this.sampleCurveX(a)-e,n(s)<t)return a;
67if(o=this.sampleCurveDerivativeX(a),n(o)<t)break;a-=s/o}if((a=e)<(i=0))return i;if(a>(r=1))return r;for(;i<r;){if(s=this.sampleCurveX(a),n(s-e)<t)return a;e>s?i=a:r=a,a=.5*(r-i)+i}return a}solve(e){return this.sampleCurveY(this.solveCurveX(e))}}const r=/\d*\.?\d+/g;i.fromCSSString=function(e){let t=e.match(r);if(4!==t.length)throw`UnitBezier could not convert ${e} to cubic-bezier`;let n=t.map(Number),a=new i(n[0],n[1],n[2],n[3]);return a.solve.bind(a)},e.exports=i},3532:e=>{e.exports=class{constructor(e,t){this.a=e.top-t,this.a<0&&(this.a=e.top),this.b=e.top,this.d=e.bottom,this.c=Math.max(this.d-t,this.b)}}},3018:e=>{let t=["borderRadius","bottom","fontSize","fontWeight","height","left","lineHeight","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","opacity","paddingBottom","paddingLeft","paddingRight","paddingTop","right","top","width","zIndex","strokeDashoffset"];t.push(...t.map(e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())));e.exports={transformAttributes:["x","y","z","scale","scaleX","scaleY","rotation","rotationX","rotationY","rotationZ"],cssAttributes:t,domAttributes:["scrollLeft","scrollTop","scrollBy","scrollTo","currentTime"],suffixFreeAttributes:["opacity","z-index","font-weight","zIndex","fontWeight","scrollLeft","scrollTop","scrollBy","scrollTo","currentTime"]}},4601:(e,t,n)=>{const i=n(7625);e.exports=class extends i{constructor(...e){super(...e);const t=e[0];this.initialValue=new Float32Array(t),this.target=new Float32Array(t),this.current=new Float32Array(t),this.previousValue=new Float32Array(t)}update(e,t,n){for(let i=0,r=this.target.length;i<r;i++)this.target[i]=e[0][i]+t*(e[1][i]-e[0][i]),this.previousValue[i]=this.current[i],this.current[i]+=(this.target[i]-this.current[i])*n;let i=this.delta(this.current,this.target);return i<this.epsilon&&(this.current=new Float32Array(this.target),i=0),i>this.epsilon||0===i&&this.previousValue.some((e,t)=>e!==this.current[t])}reconcile(e,t){return this.initialValue.forEach((t,n)=>this.initialValue[n]=e[0][n]),this.update(e,t,1)}needsUpdate(){return this.delta(this.current,this.target)>this.epsilon}delta(e,t){let n=0;for(let i=0,r=e.length;i<r;i++)n+=Math.abs(e[i]-t[i]);return n}calculateEpsilon(e,t){this.epsilon=e.epsilon||.05}set(e){throw"ArrayTargetValue does not implement a `set` method. Subclasses must overwrite"}unset(e){throw"ArrayTargetValue does not implement an `unset` method. Subclasses must overwrite"}}},65:(e,t,n)=>{const i=n(4601);e.exports=class extends i{set(e){const t=`rgba(${Math.round(this.current[0])},${Math.round(this.current[1])},${Math.round(this.current[2])},${this.current[3]})`;e.setProperty(this.key,t)}unset(e){e.removeProperty(this.key)}}},8875:(e,t,n)=>{const i=n(7625),r=n(6629);e.exports=class extends i{constructor(e,t,n,i,a=!1,s=void 0){super(e,t,n,i=r(i),a,s)}set(e){let t=this.current;this.round&&(t=Math.round(t)),this.suffix&&(t+=this.suffix),e.setProperty(this.key,t)}unset(e){e.removeProperty(this.key)}}},8083:(e,t,n)=>{const i=n(4601),r=n(5504);e.exports=class extends i{constructor(e,t,n,i,a,s,o){super(r.parseExpression(null,e,!1),t,n,i,a,s,o),this.strings=r.getStringNonNumbers(e)}update(e,t,n){if(e[0].length!==e[1].length)throw new Error(`Gradient number length mismatch. Start/end values must must contain the same amount of numbers. Start value: \r ${r.reconstructStringWithNumbers(e[0],this.strings)}`);return super.update(e,t,n)}set(e){const t=r.reconstructStringWithNumbers(this.current,this.strings);e.setProperty(this.key,t)}unset(e){e.removeProperty(this.key)}}},1358:(e,t,n)=>{const i=n(4601),r=n(8639);e.exports=class extends i{constructor(e,t,n,i,a,s,o){super(r.parseExpression(null,e),t,n,i,a,s),this.applyToStyle=o,this.pathStrings=r.getPathStrings(e)}update(e,t,n){if(e[0].length!==e[1].length)throw new Error(`Path length mismatch. Start/end paths must must contain the same number of points. Start value: \r ${r.reconstructPath(e[0],this.pathStrings)}`);return super.update(e,t,n)}set(e){const t=r.reconstructPath(this.current,this.pathStrings);this.applyToStyle?e.setProperty(this.key,t):e.setAttribute("d",t)}unset(e){if(this.applyToStyle)e.removeProperty(this.key);else{const t=r.reconstructPath(this.initialValue,this.pathStrings);e.setAttribute("d",t)}}}},7625:e=>{e.exports=class{constructor(e,t,n,i,r=!1,a=void 0){this.epsilon=
67parseFloat(t),this.snapAtCreation=n,this.initialValue=e,this.target=e,this.current=e,this.previousValue=e,this.isActive=!1,this.key=i,this.round=r,this.suffix=a}update(e,t,n){this.target=e[0]+t*(e[1]-e[0]),this.previousValue=this.current,this.current+=(this.target-this.current)*n;let i=this.delta(this.current,this.target);return i<this.epsilon&&(this.current=this.target,i=0),i>this.epsilon||0===i&&this.previousValue!==this.current}reconcile(e,t){return this.initialValue=e[0],this.update(e,t,1)}needsUpdate(){return this.delta(this.current,this.target)>this.epsilon}delta(e,t){return Math.abs(e-t)}calculateEpsilon(e,t){if(e.epsilon)return void(this.epsilon=e.epsilon);let n=this.delta(t[0],t[1]),i=Math.min(.001*n,this.epsilon,.05);this.epsilon=Math.max(i,.001)}set(e){let t=this.current;this.round&&(t=Math.round(t)),this.suffix&&(t+=this.suffix),e[this.key]=t}unset(e){}}},4013:(e,t,n)=>{"use strict";const i=n(3425),r=new(n(2289));class a{constructor(e){this.group=e,this.data={target:null,anchors:null,metrics:this.group.metrics}}parseArray(e,t){return[this.parseExpression(e,t[0]),this.parseExpression(e,t[1])]}parseExpression(e,t){if(null==t)return null;if("number"==typeof t)return t;if("string"!=typeof t)throw`Expression must be a string, received ${typeof t}: ${t}`;return this.data.target=e.controller.element,this.data.anchors=e.anchors,this.data.keyframe=e.keyframe,this.group.anim.plugins.parser.reduce((n,i)=>n||i.parseExpression.call(this,e,t),null)||a._parse(t,this.data)}parseTimeValue(e,t){if("number"==typeof t)return t;let n=this.group.expressionParser.parseExpression(e,t);return this.group.convertScrollPositionToTValue(n)}destroy(){this.group=null}static parse(e,t){return(t=t||{})&&(r.clear(),t.target&&r.add(t.target),t.anchors&&t.anchors.forEach(e=>r.add(e))),t.metrics=r,a._parse(e,t)}static _parse(e,t){return i.Parse(e).execute(t)}}a.programs=i.programs,"undefined"!=typeof window&&(window.ExpressionParser=a),e.exports=a},3425:(e,t,n)=>{const i=n(921),r=n(9917),a=n(1777),s={},o={smoothstep:(e,t,n)=>(n=o.clamp((n-e)/(t-e),0,1))*n*(3-2*n),deg:e=>180*e/Math.PI,rad:e=>e*Math.PI/180,random:(e,t)=>Math.random()*(t-e)+e,atan:Math.atan2};
67Object.getOwnPropertyNames(Math).forEach(e=>o[e]?null:o[e.toLowerCase()]=Math[e]),Object.getOwnPropertyNames(r).forEach(e=>o[e]?null:o[e.toLowerCase()]=r[e]),Object.getOwnPropertyNames(a).forEach(e=>o[e]=a[e]);let l=null;const u="a",c="ALPHA",d="(",h=")",p="PLUS",f="MINUS",m="MUL",g="DIV",v="INTEGER_CONST",A="FLOAT_CONST",y=",",b="EOF",_={NUMBERS:/\d|\d\.\d/,DIGIT:/\d/,OPERATOR:/[-+*/]/,PAREN:/[()]/,WHITE_SPACE:/\s/,ALPHA:/[a-zA-Z]|%/,ALPHANUMERIC:/[a-zA-Z0-9]/,OBJECT_UNIT:/^(t|l|b|r|%w|%h|%|h|w)$/,GLOBAL_METRICS_UNIT:/^(px|vh|vw)$/,ANY_UNIT:/^(t|l|b|r|%w|%h|%|h|w|px|vh|vw|rad|deg)$/,MATH_FUNCTION:new RegExp(`\\b(${Object.keys(o).join("|")})\\b`,"i")},w=function(e,t,n,i=""){let r=t.slice(Math.max(n,0),Math.min(t.length,n+3)),a=new Error(`Expression Error. ${e} in expression "${t}", near "${r}"`);throw console.error(a.message,l?l.keyframe||l.target:""),a},E={round:1,clamp:3,lerp:3,random:2,atan:2,floor:1,ceil:1,abs:1,cos:1,sin:1,smoothstep:3,rad:1,deg:1,pow:2,calc:1};class S{constructor(e,t){this.type=e,this.value=t}}S.ONE=new S("100",100),S.EOF=new S(b,null);class T{constructor(e){this.type=e}}class x extends T{constructor(e,t){super("UnaryOp"),this.token=this.op=e,this.expr=t}}class C extends T{constructor(e,t,n){super("BinOp"),this.left=e,this.op=t,this.right=n}}class I extends T{constructor(e,t){if(super("MathOp"),this.op=e,this.list=t,E[e.value]&&t.length!==E[e.value])throw new Error(`Incorrect number of arguments for '${e.value}'. Received ${t.length}, expected ${E[e.value]}`)}}class M extends T{constructor(e){super("Num"),this.token=e,this.value=e.value}}class k extends T{constructor(e,t,n){super("RefValue"),this.num=e,this.ref=t,this.unit=n}}class P extends T{constructor(e,t){super("CSSValue"),this.ref=e,this.propertyName=t}}class R extends T{constructor(e,t){super("PropValue"),this.ref=e,this.propertyName=t}}class L{constructor(e){let t;for(this.text=e,this.pos=0,this.char=this.text[this.pos],this.tokens=[];(t=this.getNextToken())&&t!==S.EOF;)this.tokens.push(t);this.tokens.push(t)}advance(){this.char=this.text[++this.pos]}skipWhiteSpace(){for(;null!=this.char&&_.WHITE_SPACE.test(this.char);)this.advance()}name(){let e="";for(;null!=this.char&&_.ALPHA.test(this.char);)e+=this.char,this.advance();return new S(c,e)}number(){let e="";for("."===this.char&&(e+=this.char,this.advance());null!=this.char&&_.DIGIT.test(this.char);)e+=this.char,this.advance();if(null!=this.char&&"."===this.char)for(e.includes(".")&&w("Number appears to contain 2 decimal points",this.text,this.pos),e+=this.char,this.advance();null!=this.char&&_.DIGIT.test(this.char);)e+=this.char,this.advance();return"."===e&&w("Attempted to parse a number, but found only a decimal point",this.text,this.pos),e.includes(".")?new S(A,parseFloat(e)):new S(v,parseInt(e))}getNextToken(){for(;null!=this.char;)if(_.WHITE_SPACE.test(this.char))this.skipWhiteSpace();else{if("."===this.char||_.DIGIT.test(this.char))return this.number();if(","===this.char)return this.advance(),new S(y,",");if(_.OPERATOR.test(this.char)){let e="",t=this.char;switch(t){case"+":e=p;break;case"-":e=f;break;case"*":e=m;break;case"/":e=g}return this.advance(),new S(e,t)}if(_.PAREN.test(this.char)){let e="",t=this.char;switch(t){case"(":e=d;break;case")":e=h}return this.advance(),new S(e,t)}if(_.ALPHA.test(this.char))return this.name();w(`Unexpected character "${this.char}"`,this.text,this.pos)}return S.EOF}}class B{constructor(e){this.lexer=e,this.pos=0}get currentToken(){return this.lexer.tokens[this.pos]}error(e,t=""){w(e,t,this.lexer.text,this.pos)}consume(e){let t=this.currentToken;return t.type===e?this.pos+=1:this.error(`Invalid token ${this.currentToken.value}, expected ${e}`),t}consumeList(e){e.includes(this.currentToken)?this.pos+=1:this.error(`Invalid token ${this.currentToken.value}, expected ${tokenType}`)}expr(){let e=this.term();for(;this.currentToken.type===p||this.currentToken.type===f;){const t=this.currentToken;switch(t.value){case"+":this.consume(p);break;case"-":this.consume(f)}e=new C(e,t,this.term())}return e}term(){let e=this.factor();for(;this.currentToken.type===m||this.currentToken.type===g;){const t=this.currentToken;switch(t.value){case"*":this.consume(m);break;case"/":this.consume(g)}e=new C(e,t,this.factor())}return e}factor(){if(this.currentToken.type===p)return new x(this.consume(p),this.factor());if(this.currentToken.type===f)return new x(this.consume(f),this.factor());if(this.currentToken.type===v||this.currentToken.type===A){let e=new M(this.currentToken);if(this.pos+=1,_.OPERATOR.test(this.currentToken.value)||this.currentToken.type===h||this.currentToken.type===y||this.currentToken.type===b)return e;if(this.currentToken.type===c&&this.currentToken.value===u)return this.consume(c),new k(e,this.anchorIndex(),this.unit(_.ANY_UNIT));if(this.currentToken.type===c)return"%a"===this.currentToken.value&&this.error("%a is invali
67d, try removing the %"),new k(e,null,this.unit());this.error("Expected a scaling unit type","Such as 'h' / 'w'")}else{if(_.OBJECT_UNIT.test(this.currentToken.value))return new k(new M(S.ONE),null,this.unit());if(this.currentToken.value===u){this.consume(c);const e=this.anchorIndex();if(_.OBJECT_UNIT.test(this.currentToken.value))return new k(new M(S.ONE),e,this.unit())}else if(this.currentToken.type===c){if("calc"===this.currentToken.value)return this.consume(c),this.expr();if("css"===this.currentToken.value||"var"===this.currentToken.value||"prop"===this.currentToken.value){const e="prop"!==this.currentToken.value?P:R;this.consume(c),this.consume(d);const t=this.propertyName();let n=null;return this.currentToken.type===y&&(this.consume(y),this.consume(c),n=this.anchorIndex()),this.consume(h),new e(n,t)}if(_.MATH_FUNCTION.test(this.currentToken.value)){const e=this.currentToken.value,t=e.toLowerCase();if("number"==typeof o[t])return this.consume(c),new M(new S(c,o[t]));const n=S[e]||new S(e,e),i=[];this.consume(c),this.consume(d);let r=null;do{this.currentToken.value===y&&this.consume(y),r=this.expr(),i.push(r)}while(this.currentToken.value===y);return this.consume(h),new I(n,i)}}else if(this.currentToken.type===d){this.consume(d);let e=this.expr();return this.consume(h),e}}this.error(`Unexpected token ${this.currentToken.value}`)}propertyName(){let e="";for(;this.currentToken.type===c||this.currentToken.type===f;)e+=this.currentToken.value,this.pos+=1;return e}unit(e=_.ANY_UNIT){const t=this.currentToken;if(t.type===c&&e.test(t.value))return this.consume(c),new S(c,t.value=t.value.replace(/%(h|w)/,"$1").replace("%","h"));this.error("Expected unit type")}anchorIndex(){const e=this.currentToken;if(e.type===v)return this.consume(v),new M(e);this.error("Invalid anchor reference",". Should be something like a0, a1, a2")}parse(){const e=this.expr();return this.currentToken!==S.EOF&&this.error(`Unexpected token ${this.currentToken.value}`),e}}class D{constructor(e){this.parser=e,this.root=e.parse()}visit(e){let t=this[e.type];if(!t)throw new Error(`No visit method named, ${t}`);return t.call(this,e)}BinOp(e){switch(e.op.type){case p:return this.visit(e.left)+this.visit(e.right);case f:return this.visit(e.left)-this.visit(e.right);case m:return this.visit(e.left)*this.visit(e.right);case g:return this.visit(e.left)/this.visit(e.right)}}RefValue(e){let t=this.unwrapReference(e),n=e.unit.value,r=e.num.value;const a=l.metrics.get(t);switch(n){case"h":return.01*r*a.height;case"t":return.01*r*a.top;case"vh":return.01*r*i.pageMetrics.windowHeight;case"vw":return.01*r*i.pageMetrics.windowWidth;case"px":case"deg":return r;case"w":return.01*r*a.width;case"b":return.01*r*a.bottom;case"l":return.01*r*a.left;case"r":return.01*r*a.right;case"rad":return 180*r/Math.PI}}PropValue(e){return(null===e.ref?l.target:l.anchors[e.ref.value])[e.propertyName]}CSSValue(e){let t=this.unwrapReference(e);const n=getComputedStyle(t).getPropertyValue(e.propertyName);return""===n?0:D.Parse(n).execute(l)}Num(e){return e.value}UnaryOp(e){return e.op.type===p?+this.visit(e.expr):e.op.type===f?-this.visit(e.expr):void 0}MathOp(e){let t=e.list.map(e=>this.visit(e));return o[e.op.value].apply(null,t)}unwrapReference(e){return null===e.ref?l.target:(e.ref.value>=l.anchors.length&&console.error(`Not enough anchors supplied for expression ${this.parser.lexer.text}`,l.target),l.anchors[e.ref.value])}execute(e){return l=e,this.visit(this.root)}static Parse(e){return s[e]||(s[e]=new D(new B(new L(e))))}}D.programs=s,e.exports=D},9533:(e,t,n)=>{"use strict";const i=n(8351),r=n(9917),a=n(3728),s=n(921),o=n(6033),l=n(4585),u=n(3532),c=n(2289),d=n(4013),h=n(3570),p={};"undefined"!=typeof window&&(p.create=n(9294),p.update=n(8038),p.draw=n(8327));let f=0;e.exports=class extends i{constructor(e,t){super(),this.anim=t,this.element=e,this.name=this.name||e.getAttribute("data-anim-scroll-group"),this.isEnabled=!0,this.position=new l,this.metrics=new c,this.metrics.add(this.element),this.expressionParser=new d(this),this.boundsMin=0,this.boundsMax=0,this.timelineUpdateRequired=!1,this._keyframesDirty=!1,this.viewableRange=this.createViewableRange(),this.defaultEase=s.KeyframeDefaults.ease,this.keyframeControllers=[],this.updateProgress(this.getPosition()),this.onDOMRead=this.onDOMRead.bind(this),this.onDOMWrite=this.onDOMWrite.bind(this),this.gui=null,this.computedStyleCache={},this.destroyed=!1,this.finalizeInit()}finalizeInit(){this.element._animInfo=new o(this,null,!0),this.setupRAFEmitter()}destroy(){this.destroyed=!0,this.expressionParser.destroy(),this.expressionParser=null;for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].destroy();this.keyframeControllers=null,this.position=null,this.viewableRange=null,this.gui&&(this.gui.destroy(),this.gui=null),this.metrics.destroy(),this.metrics=null,this.rafEmitter.destroy(),this.rafEmitter=null,this.anim=null,this.element._animInfo&&this.element._animInfo.group===this&&(this.element._animInfo.group=null,this.element._animInfo=null),this.element=null,this.isEnabled=!1,super.destroy()}removeKeyframeController(e){return e.destroyed||!this.keyframeControllers.includes(e)?Promise.resolve():(e._allKeyframes.forEac
67h(e=>e.markedForRemoval=!0),this.keyframesDirty=!0,new Promise(t=>{p.draw(()=>{const n=this.keyframeControllers.indexOf(e);-1!==n?(this.keyframeControllers.splice(n,1),e.onDOMWrite(),e.destroy(),this.gui&&this.gui.create(),t()):t()})}))}remove(){return this.anim&&this.anim.removeGroup(this)}clear(){return Promise.all(this.keyframeControllers.map(e=>this.removeKeyframeController(e)))}setupRAFEmitter(e){this.rafEmitter&&this.rafEmitter.destroy(),this.rafEmitter=e||new p.create,this.rafEmitter.on("update",this.onDOMRead),this.rafEmitter.on("draw",this.onDOMWrite),this.rafEmitter.once("external",()=>this.reconcile())}requestDOMChange(){return!!this.isEnabled&&this.rafEmitter.run()}onDOMRead(){this.keyframesDirty&&this.onKeyframesDirty();for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].onDOMRead(this.position.local)}onDOMWrite(){for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].onDOMWrite();this.needsUpdate()&&this.requestDOMChange(),this.computedStyleCache={}}needsUpdate(){if(this._keyframesDirty)return!0;for(let e=0,t=this.keyframeControllers.length;e<t;e++)if(this.keyframeControllers[e].needsUpdate())return!0;return!1}addKeyframe(e,t){let n=this.getControllerForTarget(e);return null===n&&(n=new h(this,e),this.keyframeControllers.push(n)),this.keyframesDirty=!0,n.addKeyframe(t)}addEvent(e,t){t.event=t.event||"Generic-Event-Name-"+f++;let n=void 0!==t.end&&t.end!==t.start;const i=this.addKeyframe(e,t);return n?(t.onEnterOnce&&i.controller.once(t.event+":enter",t.onEnterOnce),t.onExitOnce&&i.controller.once(t.event+":exit",t.onExitOnce),t.onEnter&&i.controller.on(t.event+":enter",t.onEnter),t.onExit&&i.controller.on(t.event+":exit",t.onExit)):(t.onEventOnce&&i.controller.once(t.event,t.onEventOnce),t.onEventReverseOnce&&i.controller.once(t.event+":reverse",t.onEventReverseOnce),t.onEvent&&i.controller.on(t.event,t.onEvent),t.onEventReverse&&i.controller.on(t.event+":reverse",t.onEventReverse)),i}forceUpdate({waitForNextUpdate:e=!0,silent:t=!1}={}){this.isEnabled&&(this.refreshMetrics(),this.timelineUpdateRequired=!0,e?this.keyframesDirty=!0:this.onKeyframesDirty({silent:t}))}onKeyframesDirty({silent:e=!1}={}){this.determineActiveKeyframes(),this.keyframesDirty=!1,this.metrics.refreshMetrics(this.element),this.viewableRange=this.createViewableRange();for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].updateAnimationConstraints();this.updateBounds(),this.updateProgress(this.getPosition()),e||this.updateTimeline(),this.gui&&this.gui.create()}refreshMetrics(){let e=new Set([this.element]);this.keyframeControllers.forEach(t=>{e.add(t.element),t._allKeyframes.forEach(t=>t.anchors.forEach(t=>e.add(t)))}),this.metrics.refreshCollection(e),this.viewableRange=this.createViewableRange()}reconcile(){for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].reconcile()}determineActiveKeyframes(e){e=e||a(Array.from(document.documentElement.classList));for(let t=0,n=this.keyframeControllers.length;t<n;t++)this.keyframeControllers[t].determineActiveKeyframes(e)}updateBounds(){if(0===this.keyframeControllers.length)return this.boundsMin=0,void(this.boundsMax=0);let e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(let t=0,n=this.keyframeControllers.length;t<n;t++)this.keyframeControllers[t].getBounds(e);let t=this.convertTValueToScrollPosition(e.min),n=this.convertTValueToScrollPosition(e.max);n-t<s.pageMetrics.windowHeight?(e.min=this.convertScrollPositionToTValue(t-.5*s.pageMetrics.windowHeight),e.max=this.convertScrollPositionToTValue(n+.5*s.pageMetrics.windowHeight)):(e.min-=.001,e.max+=.001),this.boundsMin=e.min,this.boundsMax=e.max,this.timelineUpdateRequired=!0}createViewableRange(){return new u(this.metrics.get(this.element),s.pageMetrics.windowHeight)}_onBreakpointChange(e,t){this.keyframesDirty=!0,this.determineActiveKeyframes()}updateProgress(e){this.hasDuration()?(this.position.localUnclamped=(e-this.viewableRange.a)/(this.viewableRange.d-this.viewableRange.a),this.position.local=r.clamp(this.position.localUnclamped,this.boundsMin,this.boundsMax)):this.position.local=this.position.localUnclamped=0}performTimelineDispatch(){for(let e=0,t=this.keyframeControllers.length;e<t;e++)this.keyframeControllers[e].updateLocalProgress(this.position.local);this.trigger(s.EVENTS.ON_TIMELINE_UPDATE,this.position.local),this.trigger("update",this.position.local),this.timelineUpdateRequired=!1,this.position.lastPosition!==this.position.local&&(this.position.lastPosition<=this.boundsMin&&this.position.localUnclamped>this.boundsMin?(this.trigger(s.EVENTS.ON_TIMELINE_START,this),this.trigger("start",this)):this.position.lastPosition>=this.boundsMin&&this.position.localUnclamped<this.boundsMin?(this.trigger(s.EVENTS.ON_TIMELINE_START+":reverse",this),this.trigger("start:reverse",this)):this.position.lastPosition<=this.boundsMax&&this.position.localUnclamped>=this.boundsMax?(this.trigger(s.EVENTS.ON_TIMELINE_COMPLETE,this),this.trigger("complete",this)):this.position.lastPosition>=this.boundsMax&&this.position.localUnclamped<this.boundsMax&&(this.trigger(s.EVENTS.ON_TIMELINE_COMPLETE+":reverse",this),this.trigger("complete:reverse",this))),null!==this.gui&&this.gui.onScrollUpdate(this.position)}updateTimeline(e){if(!this.isEnabled)return!1;void 0===e&&(e=this.getPosition()),this.updateProgress(e);let t=this.position.lastPosition===this.boundsMin||this.position.lastPosition===this.boundsMax,n=this.position.localUnclamped===this.boundsMin||this.position.localUnclamped===this.boundsMax;if(!this.timelineUpdateRequired&&t&&n&&this.position.lastPosition===e)return void(this.position.local=this.position.localUnclamped);if(this.timelineUpdateRequired||this.position.localUnclamped>this.boundsMin&&this.position.localUnclamped<this.boundsMax)return this.performTimelineDispatch(),this.requestDOMChange(),void(this.position.lastPosition=this.position.localUnclamped);let i=this.position.lastPosition>this.boundsMin&&this.position.lastPosition<this.boundsMax,r=this.position.localUnclamped<=this.boundsMin||this.position.localUnclamped>=this.boundsMax;if(i&&r)return this.performTimelineDispatch(),this.requestDOMChange(),void(this.position.lastPosition=this.position.localUnclamped);const a=this.position.lastPosition<this.boundsMin&&this.position.localUnclamped>this.boundsMax,s=this.position.lastPosition>this.boundsMax&&this.position.localUnclamped<this.boundsMax;(a||s)&&(this.performTimelineDispatch(),this.requestDOMChange(),this.position.lastPosition=this.position.localUnclamped),null!==this.gui&&this.gui.onScrollUpdate(this.position)}_onScroll(e){this.updateTimeline(e)}convertScrollPositionToTValue(e){return this.hasDuration()?r.map(e,this.viewableRange.a,this.viewableRange.d,0,1):0}convertTValueToScrollPosition(e){return this.hasDuration()?r.map(e,0,1,this.viewableRange.a,this.viewableRange.d):0}hasDuration(){return this.viewableRange.a!==this.viewableRange.d}getPosition(){return s.pageMetrics.scrollY}getControllerForTarget(e){if(!e._animInfo||!e._animInfo.controllers)return null;if(e._animInfo.controller&&e._animInfo.controller.group===this)return e._animInfo.controller;const t=e._animInfo.controllers;for(let e=0,n=t.length;e<n;e++)if(t[e].group===this)return t[e];return null}trigger(e,t){if(void 0!==this._events[e])for(let n=this._events[e].length-1;n>=0;n--)void 0!==t?this._events[e][n](t):this._events[e][n]()}set keyframesDirty(e){this._keyframesDirty=e,this._keyframesDirty&&this.requestDOMChange()}get keyframesDirty(){return this._keyframesDirty}}},9679:(e,t,n)=>{"use strict";const i=n(9533),r=n(4625),a=n(9917);let s=0;const o={};"undefined"!=typeof window&&(o.create=n(9294));class l extends i{constructor(e,t){e||((e=document.createElement("div")).className="TimeGroup-"+s++),super(e,t),this.name=this.name||e.getAttribute("data-anim-time-group"),this._isPaused=!0,this._repeats=0,this._isReversed=!1,this._timeScale=1,this._chapterPlayer=new r(this),this.now=performance.now()}finalizeInit(){if(!this.anim)throw"TimeGroup not instantiated correctly. Please use `AnimSystem.createTimeGroup(el)`";this.onPlayTimeUpdate=this.onPlayTimeUpdate.bind(this),super.finalizeInit()}progress(e){if(void 0===e)return 0===this.boundsMax?0:this.position.local/this.boundsMax;let t=e*this.boundsMax;this.timelineUpdateRequired=!0,this.updateTimeline(t)}time(e){if(void 0===e)return this.position.local;e=a.clamp(e,this.boundsMin,this.duration),this.timelineUpdateRequired=!0,this.updateTimeline(e)}play(e){this.reversed(!1),this.isEnabled=!0,this._isPaused=!1,this.time(e),this.now=performance.now(),this._playheadEmitter.run()}reverse(e){this.reversed(!0),this.isEnabled=!0,this._isPaused=!1,this.time(e),this.now=performance.now(),this._playheadEmitter.run()}reversed(e){if(void 0===e)return this._isReversed;this._isReversed=e}restart(){this._isReversed?(this.progress(1),this.reverse(this.time())):(this.progress(0),this.play(this.time()))}pause(e){this.time(e),this._isPaused=!0}paused(e){return void 0===e?this._isPaused:(this._isPaused=e,this._isPaused||this.play(),this)}onPlayTimeUpdate(){if(this._isPaused)return;let e=performance.now(),t=(e-this.now)/1e3;this.now=e,this._isReversed&&(t=-t);let n=this.time()+t*this._timeScale;if(this._repeats===l.REPEAT_FOREVER||this._repeats>0){let e=!1;!this._isReversed&&n>this.boundsMax?(n-=this.boundsMax,e=!0):this._isReversed&&n<0&&(n=this.boundsMax+n,e=!0),e&&(this._repeats=this._repeats===l.REPEAT_FOREVER?l.REPEAT_FOREVER:this._repeats-1)}this.time(n);let i=!this._isReversed&&this.position.local!==this.duration,r=this._isReversed&&0!==this.position.local;i||r?this._playheadEmitter.run():this.paused(!0)}updateProgress(e){this.hasDuration()?(this.position.localUnclamped=e,this.position.local=a.clamp(this.position.localUnclamped,this.boundsMin,this.boundsMax)):this.position.local=this.position.localUnclamped=0}updateBounds(){if(0===this.keyframeControllers.length)return this.boundsMin=0,void(this.boundsMax=0);let e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(let t=0,n=this.keyframeControllers.length;t<n;t++)this.keyframeControllers[t].getBounds(e);this.boundsMin=0,this.boundsMax=e.max,this.viewableRange.a=this.viewableRange.b=0,this.viewableRange.c=this.viewableRange.d=this.boundsMax,this.timelineUpdateRequired=!0}setupRAFEmitter(e){this._playheadEmitter=new o.create,this._playheadEmitter.on("update",this.onPlayTimeUpdate),super.setupRAFEmitter(e)}get duration(){return this.keyframesDirty&&this.onKeyframesDirty({silent:!0}),this.boundsMax}timeScale(e){return void 0===e?this._timeScale:(this._timeScale=e,this)}repeats(e){if(void 0===e)return this._repeats;this._repeats=e}getPosition(){return this.position.local}addChapter(e){return this._chapterPlayer.addChapter(e)}playToChapter(e){return this._chapterPlayer.playToChapter(e)}convertScrollPositionToTValue(e){return e}convertTValueToScrollPosition(e){return e}hasDuration(){return this.duration>0}destroy(){this._chapterPlayer.destroy(),this._playheadEmitter.destroy(),this._playheadEmitter=null,super.destroy()}get timelineProgress(){return this.progress()}set timelineProgress(e){this.progress(e)}get progressValue(){return this.progress()}set progressValue(e){this.progress(e)}get timeValue(){return this.time()}set timeValue(e){this.time(e)}}l.REPEAT_FOREVER=-1,e.exports=l},9297:(e,t,n)=>{const i=n(9533),r=(n(4625),n(9917));let a=0;const s={};"undefined"!=typeof window&&(s.create=n(9294));e.exports=class extends i{constructor(e,t){e||((e=document.createElement("div")).className="TweenGroup-"+a++),super(e,t),this.name="Tweens",this.keyframes=[],this._isPaused=!1,this.now=performance.now()}finalizeInit(){this.onTimeEmitterUpdate=this.onTimeEmitterUpdate.bind(this),this.removeExpiredKeyframeControllers=this.removeExpiredKeyframeControllers.bind(this),super.finalizeInit()}destroy(){this._timeEmitter.destroy(),this._timeEmitter=null,this._keyframes=[],super.destroy()}setupRAFEmitter(e){this.now=performance.now(),this._timeEmitter=new s.create,this._timeEmitter.on("update",this.onTimeEmitterUpdate),this._timeEmitter.run(),super.setupRAFEmitter(e)}addKeyframe(e,t){if(void 0!==t.start||void 0!==t.end)throw Error("Tweens do not have a start or end, they can only have a duration. Consider using a TimeGroup instead");if("number"!=typeof t.duration)throw Error("Tween options.duration is undefined, or is not a number");let n,i;t.start=(t.delay||0)+this.position.localUnclamped,t.end=t.start+t.duration,t.preserveState=!0,t.snapAtCreation=!0,e._animInfo&&(n=e._animInfo.group,i=e._animInfo.controller);let r=super.addKeyframe(e,t);return e._animInfo.group=n,e._animInfo.controller=i,[["onStart","once"],["onDraw","on"]].forEac
67h(([e,n])=>{if(!t[e])return;let i=t[e];t[e]=r.controller[n]("draw",e=>{r.markedForRemoval||(e.keyframe=r,i(e),e.keyframe=null)})}),this.removeOverlappingProps(r),this.keyframes.push(r),this._timeEmitter.willRun()||(this.now=performance.now(),this._timeEmitter.run()),r}removeOverlappingProps(e){if(e.controller._allKeyframes.length<=1)return;let t=Object.keys(e.animValues),n=e.controller;for(let i=0,r=n._allKeyframes.length;i<r;i++){const r=n._allKeyframes[i];if(r===e)continue;if(r.markedForRemoval)continue;let a=Object.keys(r.animValues),s=a.filter(e=>t.includes(e));s.length!==a.length?s.forEach(e=>delete r.animValues[e]):(r.markedForRemoval=!0,r.jsonProps.onDraw&&r.controller.off("draw",r.jsonProps.onDraw))}}onTimeEmitterUpdate(e){if(this._isPaused||0===this.keyframeControllers.length)return;let t=performance.now(),n=(t-this.now)/1e3;this.now=t;let i=this.position.local+n;this.position.local=this.position.localUnclamped=i,this.onTimeUpdate()}onTimeUpdate(){for(let e=0,t=this.keyframes.length;e<t;e++)this.keyframes[e].markedForRemoval||this.keyframes[e].updateLocalProgress(this.position.localUnclamped);this.requestDOMChange(),this._timeEmitter.run(),null!==this.gui&&this.gui.onScrollUpdate(this.position)}onDOMRead(){if(this.keyframesDirty&&this.onKeyframesDirty(),0!==this.keyframes.length)for(let e=0,t=this.keyframes.length;e<t;e++){this.keyframes[e].controller.needsWrite=!0;for(let t in this.keyframes[e].animValues)this.keyframes[e].onDOMRead(t)}}onDOMWrite(){super.onDOMWrite(),this.removeExpiredKeyframes()}removeExpiredKeyframes(){let e=this.keyframes.length,t=e;for(;e--;){let t=this.keyframes[e];t.destroyed?this.keyframes.splice(e,1):(t.markedForRemoval&&(t.jsonProps.onComplete&&1===t.localT&&(t.controller.eventObject.keyframe=t,t.jsonProps.onComplete(t.controller.eventObject),t.jsonProps.onComplete=null),null!==this.gui&&this.gui.isDraggingPlayhead||(t.remove(),this.keyframes.splice(e,1)),t.jsonProps.onStart&&t.controller.off("draw",t.jsonProps.onStart),t.jsonProps.onDraw&&t.controller.off("draw",t.jsonProps.onDraw)),1===t.localT&&(t.markedForRemoval=!0))}this.keyframes.length===t&&0!==this.keyframes.length||this._timeEmitter.executor.eventEmitter.once("after:draw",this.removeExpiredKeyframeControllers)}removeExpiredKeyframeControllers(){for(let e=0,t=this.keyframeControllers.length;e<t;e++){let t=!0,n=this.keyframeControllers[e];for(let e=0,i=n._allKeyframes.length;e<i;e++)if(!n._allKeyframes[e].destroyed){t=!1;break}t&&n.remove()}}updateBounds(){this.boundsMin=Math.min(...this.keyframes.map(e=>e.start)),this.boundsMax=Math.max(...this.keyframes.map(e=>e.end))}play(){this.isEnabled=!0,this._isPaused=!1,this.now=performance.now(),this._timeEmitter.run()}pause(){this._isPaused=!0}paused(){return this._isPaused}time(e){if(void 0===e)return this.position.local;this.position.local=this.position.localUnclamped=r.clamp(e,this.boundsMin,this.boundsMax),this.onTimeUpdate()}performTimelineDispatch(){}hasDuration(){return!0}getPosition(){return this.position.local}updateProgress(e){}get duration(){return this.boundsMax}}},1967:(e,t,n)=>{const i=n(6629),{cssAttributes:r}=n(3018),a=n(1790),s=n(65);e.exports={install(e,t){e.plugins.keyframe.includes(this)||(e.use(a),e.plugins.keyframe.push(this),r.push("color","backgroundColor","background-color","fill","stroke"),this.parseProp=function(e,t){let n=i(t);if(!["color","background-color","stroke","fill"].includes(n))return null;const r=this.controller.getTargetComputedStyle().getPropertyValue(n),o=a.parseExpression(this,r),l=new s(o,.001,this.snapAtCreation,n,!0,void 0);return null==e[t][0]&&(e[t][0]=r),l})}}},1790:(e,t,n)=>{const i=n(7195),r=n(6824),a=n(150),s=n(1111),o=e=>/(^#[0-9A-F]{6,8}$)|(^#[0-9A-F]{3,4}$)/i.test(e),l=e=>/^rgb/.test(e),u=e=>/^hsl/.test(e),c=e=>/^hwb/.test(e);e.exports={install(e,t){e.plugins.parser.includes(this)||e.plugins.parser.push(this)},parseExpression:(e,t)=>o(t)?i(t):l(t)?s(t):u(t)?r(t):c(t)?a(t):null}},3463:(e,t,n)=>{const i=n(8083),{cssAttributes:r}=n(3018),a=n(5504),s=n(6629);e.exports={install(e,t){e.plugins.keyframe.includes(this)||(e.use(a),r.push("background-image","backgroundImage","border-image-source","borderImageSource","mask-image","maskImage","-webkit-mask-image","webkitMaskImage"),e.plugins.keyframe.push(this),this.parseProp=function(e,t){let n=s(t);if(n=n.startsWith("webkit")?"-"+n:n,!["background-image","border-image-source","mask-image","-webkit-mask-image"].includes(n))return null;if(!e[t].every(e=>null==e||e.constructor===String))return null;let r=e[t][0]?e[t][0]:this.controller.getTargetComputedStyle().getPropertyValue(n);return r=a.normalizeColors(r),null==e[t][0]&&(e[t][0]=r),new i(r,.001,e.snapAtCreation||!1,n,!1,void 0)})}}}
67,5504:(e,t,n)=>{const{trim:i,getStringNumbers:r,getStringNonNumbers:a,reconstructStringWithNumbers:s}=n(6137),o=n(7195),l=n(6824),u=n(150),c=n(1111);function d(e){let t=i(e);return t=t.replace(/rgba?\(.+?\)/gi,e=>c(e,!0)),t=t.replace(/#[0-9A-F]{3,8}/gi,e=>o(e,!0)),t=t.replace(/hsla?\(.+?\)/gi,e=>l(e,!0)),t=t.replace(/hwb\(.+?\)/gi,e=>u(e,!0)),t}const h=/(linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient|repeating-conic-gradient)\(/;e.exports={install(e,t){e.plugins.parser.includes(this)||e.plugins.parser.push(this)},parseExpression(e,t,n=!0){if("string"==typeof t&&(e=>h.test(e))(t)){const e=n?d(t):t;return r(e)}return null},reconstructStringWithNumbers:s,getStringNonNumbers:a,getStringNumbers:r,normalizeColors:d}},6137:e=>{const t=/-?\d*\.?\d+/gm;e.exports={getStringNumbers:e=>e.match(t).map(e=>Number.parseFloat(e)),getStringNonNumbers:e=>e.split(t),reconstructStringWithNumbers(e,t){let n="";for(var i=0,r=e.length;i<r;i++)n+=t[i]+e[i];return n+=t[r],n},trim:e=>null===e?e:e.replace(/\s+/gm," ").trim()}},8639:(e,t,n)=>{const{trim:i,getStringNumbers:r,getStringNonNumbers:a,reconstructStringWithNumbers:s}=n(6137),o=/^\s*?M[(-?\d)|\s]/,l=/^(inset|circle|ellipse|polygon|path)\(/,u=e=>o.test(e),c=e=>l.test(e);e.exports={install(e,t){e.plugins.parser.includes(this)||e.plugins.parser.push(this)},parseExpression:(e,t)=>"string"==typeof t&&(u(t)||c(t))?r(t):null,scalePath(e,t){const n=this.parseExpression(null,e),i=a(e);for(let e=0,i=n.length;e<i;e++)n[e]=n[e]*t;return this.reconstructPath(n,i)},trim:i,getPathStrings:a,getPathNumbers:r,reconstructPath:s}},1927:e=>{e.exports=function(e){const t=[1,1,1,1];let n=0;return e.replace(/(-?\d*\.?\d+)(deg|rad|turn|%)?/gm,(e,i,r)=>{if(i=parseFloat(i),0===n){switch(r){case"rad":t[0]=Math.round(i*(180/Math.PI));break;case"turn":t[0]=360*i;break;default:t[0]=i}t[0]=360===t[0]?t[0]:t[0]%360}else t[n]=3===n&&"%"===r?i/100:i;n++}),t}},7195:e=>{e.exports=function(e,t){let n="0x00",i="0x00",r="0x00",a="0xFF";return 4===e.length?(n="0x"+e[1]+e[1],i="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(n="0x"+e[1]+e[2],i="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):5===e.length?(n="0x"+e[1]+e[1],i="0x"+e[2]+e[2],r="0x"+e[3]+e[3],a="0x"+e[4]+e[4]):9===e.length&&(n="0x"+e[1]+e[2],i="0x"+e[3]+e[4],r="0x"+e[5]+e[6],a="0x"+e[7]+e[8]),[n,i,r,a]=[n,i,r,a].map(e=>parseInt(e)),a/=255,t?`rgba(${n}, ${i}, ${r}, ${a})`:[n,i,r,a]}},7944:e=>{e.exports=function(e,t,n,i=1,r){(e%=360)<0&&(e+=360),t/=100,n/=100;const a=i=>{let r=(i+e/30)%12,a=t*Math.min(n,1-n);return 255*(n-a*Math.max(-1,Math.min(r-3,9-r,1)))},[s,o,l]=[a(0),a(8),a(4)];return r?`rgba(${s}, ${o}, ${l}, ${i})`:[s,o,l,i]}},6824:(e,t,n)=>{const i=n(1927),r=n(7944);e.exports=function(e,t){const[n,a,s,o]=i(e),[l,u,c]=r(n,a,s);return t?`rgba(${l}, ${u}, ${c}, ${o})`:[l,u,c,o]}},5395:(e,t,n)=>{const i=n(7944);e.exports=function(e,t,n,r=1,a){if((t/=100)+(n/=100)>=1){let e=t/(t+n)*255;return[e,e,e]}let s=i(e,100,50,r);for(let e=0;e<3;e++)s[e]/=255,s[e]*=1-t-n,s[e]+=t,s[e]*=255;const[o,l,u,c]=s;return a?`rgba(${o}, ${l}, ${u}, ${c})`:[o,l,u,c]}},150:(e,t,n)=>{const i=n(1927),r=n(5395);e.exports=function(e,t){const[n,a,s,o]=i(e),[l,u,c]=r(n,a,s);return t?`rgba(${l}, ${u}, ${c}, ${o})`:[l,u,c,o]}},1111:e=>{e.exports=function(e,t){let n=e.match(/\d*\.?\d+/gms);3===n.length&&n.push(1),t||(n=n.map(e=>parseFloat(e)));const[i,r,a,s]=n;return t?`rgba(${i}, ${r}, ${a}, ${s})`:[i,r,a,s]}},3728:e=>{e.exports=function(e){return e.reduce((e,t)=>(e[t]=t,e),{})}},6629:e=>{e.exports=function(e){return e.startsWith("--")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}},5157:e=>{e.exports=function(e,t){if("string"!=typeof e)return e;try{return(t||document).querySelector(e)||document.querySelector(e)}catch(e){return!1}}},4707:e=>{"use strict";"undefined"!=typeof window&&(window.DOMMatrix=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix);const t=180/Math.PI,n=e=>Math.round(1e6*e)/1e6;function i(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function r(e,t){return 0===t?Array.from(e):[e[0]/t,e[1]/t,e[2]/t]}function a(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function s(e,t,n,i){return[e[0]*n+t[0]*i,e[1]*n+t[1]*i,e[2]*n+t[2]*i]}function o(e){const o=new Float32Array(4),l=new Float32Array(3),u=new Float32Array(3),c=new Float32Array(3);c[0]=e[3][0],c[1]=e[3][1],c[2]=e[3][2];const d=new Array(3);for(let t=0;t<3;t++)d[t]=e[t].slice(0,3);l[0]=i(d[0]),d[0]=r(d[0],l[0]),u[0]=a(d[0],d[1]),d[1]=s(d[1],d[0],1,-u[0]),l[1]=i(d[1]),d[1]=r(d[1],l[1]),u[0]/=l[1],u[1]=a(d[0],d[2]),d[2]=s(d[2],d[0],1,-u[1]),u[2]=a(d[1],d[2]),d[2]=s(d[2],d[1],1,-u[2]),l[2]=i(d[2]),d[2]=r(d[2],l[2]),u[1]/=l[2],u[2]/=l[2];const h=(p=d[1],f=d[2],[p[1]*f[2]-p[2]*f[1],p[2]*f[0]-p[0]*f[2],p[0]*f[1]-p[1]*f[0]]);var p,f;if(a(d[0],h)<0)for(let e=0;e<3;e++)l[e]*=-1,d[e][0]*=-1,d[e][1]*=-1,d[e][2]*=-1;let m;return o[0]=.5*Math.sqrt(Math.max(1+d[0][0]-d[1][1]-d[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-d[0][0]+d[1][1]-d[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-d[0][0]-d[1][1]+d[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+d[0][0]+d[1][1]+d[2][2],0)),d[2][1]>d[1][2]&&(o[0]=-o[0]),d[0][2]>d[2][0]&&(o[1]=-o[1]),d[1][0]>d[0][1]&&(o[2]=-o[2]),m=o[0]<.001&&o[0]>=0&&o[1]<.001&&o[1]>=0?[0,0,n(180*Math.atan2(d[0][1],d[0][0])/Math.PI)]:function(e){const[i,r,a,s]=e,o=i*i,l=r*r,u=a*a,c=i*r+a*s,d=s*s+o+l+u;return c>.49999*d?[0,2*Math.atan2(i,s)*t,90]:c<-.49999*d?[0,-2*Math.atan2(i,s)*t,-90]:[n(Math.atan2(2*i*s-2*r*a,1-2*o-2*u)*t),n(Math.atan2(2*r*s-2*i*a,1-2*l-2*u)*t),n(Math.asin(2*i*r+2*a*s)*t)]}(o),{translation:c,rotation:m,eulerRotation:m,scale:[n(l[0]),n(l[1]),n(l[2])]}}e.exports=function(e){e instanceof Element&&(e=String(getComputedStyle(e).transform).trim());let t=e instanceof DOMMatrix?e:new DOMMatrix(e);const n=new Array(4);for(let e=1;e<5;e++){const i=n[e-1]=new Float32Array(4);for(let n=1;n<5;n++)i[n-1]=t[`m${e}${n}`]}return o(n)}},9917:e=>{"use strict";e.exports={lerp:function(e,t,n){return t+(n-t)*e},map:function(e,t,n,i,r){return i+(r-i)*(e-t)/(n-t)},mapClamp:function(e,t,n,i,r){var a=i+(r-i)*(e-t)/(n-t);return Math.max(i,Math.min(r,a))},norm:function(e,t,n){return(e-t)/(n-t)},clamp:function(e,t,n){return Math.max(t,Math.min(n,e))},randFloat:function(e,t){return Math.random()*(t-e)+e},randInt:function(e,t){return Math.floor(Math.random()*(t-e)+e)}}},2324:e=>{"use strict";e.exports=function(e){const t={};for(const n in e)t[n]=e[n].reduce(function(e,t){return e[t.name]=!1,e},{version:{string:"",major:0,minor:0,patch:0,documentMode:!1}});return t}},7106:e=>{"use strict";e.exports={browser:[{name:"edge",userAgent:"Edge",version:["rv","Edge"],test:function(e){return e.ua.indexOf("Edge")>-1||"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"===e.ua}},{name:"edgeChromium",userAgent:"Edge",version:["rv","Edg"],test:function(e){return e.ua.indexOf("Edg")>-1&&-1===e.ua.indexOf("Edge")}},{name:"headlessChrome",userAgent:"HeadlessChrome"},{name:"chrome",userAgent:"Chrome"},{name:"firefox",test:function(e){return e.ua.indexOf("Firefox")>-1&&-1===e.ua.indexOf("Opera")},version:"Firefox"},{name:"android",userAgent:"Android"},{name:"safari",test:function(e){return e.ua.indexOf("Safari")>-1&&e.vendor.indexOf("Apple")>-1},version:"Version"},{name:"ie",test:function(e){return e.ua.indexOf("IE")>-1||e.ua.indexOf("Trident")>-1},version:["MSIE","rv"],parseDocumentMode:function(){let e=!1;return document.documentMode&&(e=parseInt(document.documentMode,10)),e}},{name:"opera",userAgent:"Opera",version:["Version","Opera"]},{name:"samsung",userAgent:"SamsungBrowser"}],os:[{name:"windows",test:function(e){return e.ua.indexOf("Windows")>-1},version:"Windows NT"},{name:"osx",userAgent:"Mac",test:function(e){return e.ua.indexOf("Macintosh")>-1}},{name:"ios",test:function(e){return e.ua.indexOf("iPhone")>-1||e.ua.indexOf("iPad")>-1},version:["iPhone OS","CPU OS"]},{name:"linux",userAgent:"Linux",test:function(e){return(e.ua.indexOf("Linux")>-1||e.platform.indexOf("Linux")>-1)&&-1===e.ua.indexOf("Android")}},{name:"fireos",test:function(e){return e.ua.indexOf("Firefox")>-1&&e.ua.indexOf("Mobile")>-1},version:"rv"},{name:"android",userAgent:"Android",test:function(e){return e.ua.indexOf("Android")>-1}},{name:"chromeos",userAgent:"CrOS"}]}},1620:(e,t,n)=>{"use strict";const i=n(2324),r=n(7106);function a(e){return new RegExp(e+"[a-zA-Z\\s/:]+([0-9_.]+)","i")}function s(e,t){if("function"==typeof e.parseVersion)return e.parseVersion(t);{let n=e.version||e.userAgent;"string"==typeof n&&(n=[n]);const i=n.length;let r;for(let e=0;e<i;e++)if(r=t.match(a(n[e])),r&&r.length>1)return r[1].replace(/_/g,".")}return!1}function o(e,t,n){const i=e.length;let r,a;for(let o=0;o<i;o++)if("function"==typeof e[o].test?!0===e[o].test(n)&&(r=e[o].name):n.ua.indexOf(e[o].userAgent)>-1&&(r=e[o].name),r){if(t[r]=!0,a=s(e[o],n.ua),"string"==typeof a){const e=a.split(".");t.version.string=a,e&&e.length>0&&(t.version.major=parseInt(e[0]||0),t.version.minor=parseInt(e[1]||0),t.version.patch=parseInt(e[2]||0))}else"edge"===r&&(t.version.string="12.0.0",t.version.major="12",t.version.minor="0",t.version.patch="0");return"function"==typeof e[o].parseDocumentMode&&(t.version.documentMode=e[o].parseDocumentMode()),t}return t}e.exports=function(e){const t={},n=i(r);return t.browser=o(r.browser,n.browser,e),t.os=o(r.os,n.os,e),t}},820:(e,t,n)=>{"use strict";const i="undefined"!=typeof window?window.navigator:{userAgent:"",platform:"",vendor:""},r={ua:i.userAgent,platform:i.platform,vendor:i.vendor};e.exports=n(1620)(r)},9669:(e,t,n)=>{e.exports=n(1609)}
67,5448:(e,t,n)=>{"use strict";var i=n(4867),r=n(6026),a=n(4372),s=n(5327),o=n(4097),l=n(4109),u=n(7985),c=n(5061);e.exports=function(e){return new Promise(function(t,n){var d=e.data,h=e.headers,p=e.responseType;i.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+g)}var v=o(e.baseURL,e.url);function A(){if(f){var i="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,a={data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:i,config:e,request:f};r(t,n,a),f=null}}if(f.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=A:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(A)},f.onabort=function(){f&&(n(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var y=(e.withCredentials||u(v))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;y&&(h[e.xsrfHeaderName]=y)}"setRequestHeader"in f&&i.forEach(h,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)}),i.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),p&&"json"!==p&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),n(e),f=null)}),d||(d=null),f.send(d)})}},1609:(e,t,n)=>{"use strict";var i=n(4867),r=n(1849),a=n(321),s=n(7185);function o(e){var t=new a(e),n=r(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var l=o(n(5655));l.Axios=a,l.create=function(e){return o(s(l.defaults,e))},l.Cancel=n(5263),l.CancelToken=n(4972),l.isCancel=n(6502),l.all=function(e){return Promise.all(e)},l.spread=n(8713),l.isAxiosError=n(6268),e.exports=l,e.exports.default=l},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var i=n(5263);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new i(e),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var i=n(4867),r=n(5327),a=n(782),s=n(3572),o=n(7185),l=n(4875),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=o(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var r,a=[];if(this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)}),!i){var c=[s,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(a),r=Promise.resolve(e);c.length;)r=r.then(c.shift(),c.shift());return r}for(var d=e;n.length;){var h=n.shift(),p=n.shift();try{d=h(d)}catch(e){p(e);break}}try{r=s(d)}catch(e){return Promise.reject(e)}for(;a.length;)r=r.then(a.shift(),a.shift());return r},c.prototype.getUri=function(e){return e=o(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")}
67,i.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(o(n||{},{method:e,url:t,data:(n||{}).data}))}}),i.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,i){return this.request(o(i||{},{method:e,url:t,data:n}))}}),e.exports=c},782:(e,t,n)=>{"use strict";var i=n(4867);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},4097:(e,t,n)=>{"use strict";var i=n(1793),r=n(7303);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},5061:(e,t,n)=>{"use strict";var i=n(481);e.exports=function(e,t,n,r,a){var s=new Error(e);return i(s,t,n,r,a)}},3572:(e,t,n)=>{"use strict";var i=n(4867),r=n(8527),a=n(6502),s=n(5655);function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return o(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||s.adapter)(e).then(function(t){return o(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(o(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},481:e=>{"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:(e,t,n)=>{"use strict";var i=n(4867);e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function u(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(e[r],t[r])}i.forEach(r,function(e){i.isUndefined(t[e])||(n[e]=l(void 0,t[e]))}
67),i.forEach(a,u),i.forEach(s,function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(void 0,t[r])}),i.forEach(o,function(i){i in t?n[i]=l(e[i],t[i]):i in e&&(n[i]=l(void 0,e[i]))});var c=r.concat(a).concat(s).concat(o),d=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===c.indexOf(e)});return i.forEach(d,u),n}},6026:(e,t,n)=>{"use strict";var i=n(5061);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var i=n(4867),r=n(5655);e.exports=function(e,t,n){var a=this||r;return i.forEach(n,function(n){e=n.call(a,e,t)}),e}},5655:(e,t,n)=>{"use strict";var i=n(4867),r=n(6016),a=n(481),s={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(5448)),l),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(o(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}}
67,i.forEach(["delete","get","head"],function(e){u.headers[e]={}}),i.forEach(["post","put","patch"],function(e){u.headers[e]=i.merge(s)}),e.exports=u},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var i=n(4867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(i.isURLSearchParams(t))a=t.toString();else{var s=[];i.forEach(t,function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))}))}),a=s.join("&")}if(a){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var i=n(4867);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,a,s){var o=[];o.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),i.isString(r)&&o.push("path="+r),i.isString(a)&&o.push("domain="+a),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var i=n(4867);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var i=n(4867);e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},4109:(e,t,n)=>{"use strict";var i=n(4867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,s={};return e?(i.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}}),s):s}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var i=n(8593),r={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={},s=i.version.split(".");function o(e,t){for(var n=t?t.split("."):s,i=e.split("."),r=0;r<3;r++){if(n[r]>i[r])return!0;if(n[r]<i[r])return!1}return!1}r.transitional=function(e,t,n){var r=t&&o(t);function s(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new Error(s(i," has been removed in "+t));return r&&!a[i]&&(a[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},e.exports={isOlderVersion:o,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var i=Object.keys(e),r=i.length;r-- >0;){var a=i[r],s=t[a];if(s){var o=e[a],l=void 0===o||s(o,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:r}},4867:(e,t,n)=>{"use strict";var i=n(1849),r=Object.prototype.toString;function a(e){return"[object Array]"===r.call(e)}function s(e){return void 0===e}function o(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===r.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isPlainObject:l,isUndefined:s,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:u,isStream:function(e){return o(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
67,forEach:c,merge:function e(){var t={};function n(n,i){l(t[i])&&l(n)?t[i]=e(t[i],n):l(n)?t[i]=e({},n):a(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)c(arguments[i],n);return t},extend:function(e,t,n){return c(t,function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},1288:(e,t,n)=>{"use strict";var i=n(4836);t._g=function(){var e=document.querySelector(".feature-list");e&&new s(e)};var r=i(n(6690)),a=i(n(9728)),s=function(){return(0,a.default)(function e(t){var n=this;(0,r.default)(this,e),this.element=t,this.expanded=!1;var i=this.element.querySelectorAll(".feature-list__item");if(this.visibleCount=parseInt(this.element.dataset.visibleCount,10),i.forEach(function(e,t){t>=n.visibleCount&&e.classList.add("feature-list__item--overflow")}),this.toggleBtn=this.element.querySelector(".feature-list__toggle"),this.labels={viewAll:this.toggleBtn.dataset.labelViewAll,showLess:this.toggleBtn.dataset.labelShowLess},this.toggleBtn.querySelector(".feature-list__toggle-label").innerHTML=this.labels.viewAll,this.toggleBtn.removeAttribute("data-analytics-label"),i.length>this.visibleCount)this.toggleBtn.addEventListener("click",function(e){return n.handleToggle(e)});else{var a=this.element.querySelector(".feature-list__toggle");a&&(a.style.display="none")}},[{key:"handleToggle",value:function(e){e.preventDefault();var t=this.toggleBtn.querySelector(".feature-list__toggle-label").textContent.trim();this.toggleBtn.setAttribute("data-analytics-label",t),this.expanded=!this.expanded,this.element.classList.toggle("feature-list--expanded",this.expanded),this.toggleBtn.setAttribute("aria-expanded",this.expanded);var n=this.expanded?this.labels.showLess:this.labels.viewAll;this.toggleBtn.querySelector(".feature-list__toggle-label").innerHTML=n,this.toggleBtn.querySelector(".feature-list__arrow").classList.toggle("feature-list__arrow--up",this.expanded),!this.expanded&&this.element.getBoundingClientRect().top<0&&this.element.scrollIntoView({behavior:"smooth",block:"start"})}}])}()},1879:(e,t,n)=>{"use strict";var i=n(4836),r=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.initBuyButton=function(){document.querySelectorAll(".buy-button-el").forEach(function(e){(0,h.createRoot)(e).render(d.default.createElement(y,e.dataset,e.innerHTML.trim()))})};var a=i(n(861)),s=i(n(6690)),o=i(n(9728)),l=i(n(4993)),u=i(n(3808)),c=i(n(1655)),d=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,s,o={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return o;if(a=t?i:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((s=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(s.get||s.set)?a(o,l,s):o[l]=e[l]);return o}(e,t)}(n(7294)),h=n(745),p=n(4730),f=i(n(8652)),m=n(8418);function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}n(9669);var v=n(2942).getSelectedIndexFromURL,A=n(9061),y=function(e){function t(e){var n,i,r,o;(0,s.default)(this,t),i=this,r=t,o=[e],r=(0,u.default)(r),(n=(0,l.default)(i,g()?Reflect.construct(r,o||[],(0,u.default)(i).constructor):r.apply(i,o))).mainElRef=d.default.createRef(),n.triggerEl=d.default.createRef(),n.skus=Object.entries(n.getPartNumbersList()),n.id=e.id,n.tokenUrl=e.tokenUrl,n.cartUrl=e.cartUrl,n.size=e.size,n.index=v(),n.modal,n.tracker=A;var c=n.skus[n.index][1],h=c.buttonDetails,p=m.productNotify.includes(h.availabilityStatus)?h.notifymePage:"external"===h.availabilityStatus?c.aosUrl:m.productAvailable.includes(h.availabilityStatus)&&"cart"===e.colorSelectBehavior?c.addToCartPath:c.aosUrl;return n.state={loading:!1,active:[].concat((0,a.default)(m.productAvailable),(0,a.default)(m.productNotify)).includes(h.availabilityStatus),buttonState:"",href:p,target:"true"===h.openLinkInNewTab?"_blank":"_self",rel:"external"===h.availabilityStatus&&"true"===h.openLinkInNewTab?"noopener noreferrer":"",configuredButtonLabel:h.configuredButtonLabel,availabilityStatus:h.availabilityStatus,ariaLabel:e.ariaLabel,analyticsLabel:e.anal
67yticsLabel,analyticsLinkName:h.analyticsLinkName,analyticsLinkType:h.analyticsLinkType,sku:c.sku,skuObj:c,locale:e.locale,addingCta:e.addingCta,colorSelectBehavior:e.colorSelectBehavior,selectedCta:e.selectedCta,secondaryCta:c.secondaryCta,price:c.numericPrice,productFamily:c.productFamily,subFamily:c.subFamily,productKey:c.productKey,variant:c.variant,displayName:c.displayName,hideSecondaryCta:e.hideSecondaryCta,productImage:c.productImage,upsellSku:null},n.addListeners(),n}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){"notify"===this.state.availabilityStatus&&(this.triggerEl.current.setAttribute("data-link",!0),this.triggerEl.current.classList.add("modal__trigger"),this.modal=new f.default(this.triggerEl.current,null,null,{label:this.state.analyticsLinkName})),this.setState({loading:!1})}},{key:"addListeners",value:function(){var e=this;window.addEventListener("select-swatch",this.handleSelectSwatch.bind(this)),window.addEventListener("pageshow",this.resetButton.bind(this)),window.addEventListener("focus",this.focusBrowserTab.bind(this)),this.handleUpsellSwatch=function(t){if(e.id===t.detail.id){var n=t.detail,i=n.isNone,r=n.sku;e.setState({upsellSku:i?null:r})}},window.addEventListener("select-upsell-swatch",this.handleUpsellSwatch)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("select-upsell-swatch",this.handleUpsellSwatch)}},{key:"focusBrowserTab",value:function(){this.setState({loading:!1,active:[].concat((0,a.default)(m.productAvailable),(0,a.default)(m.productNotify)).includes(this.state.availabilityStatus)})}},{key:"resetButton",value:function(e){e.persisted&&this.setState({loading:!1,active:[].concat((0,a.default)(m.productAvailable),(0,a.default)(m.productNotify)).includes(this.state.availabilityStatus)})}},{key:"getPartNumbersList",value:function(){var e;return(null===(e=window.productCarouselJson)||void 0===e?void 0:e.partNumbersList)||window.partNumbersList}},{key:"dispatchAddToBag",value:function(){var e=this,t=this.getPartNumbersList()[this.state.sku]||this.state.skuObj||{};if(setTimeout(function(){var n,i,r,a=null!==(n=null==t?void 0:t.filters)&&void 0!==n?n:[],s=(0,p.getFilterValueDisplayName)(a);window.dispatchEvent(new CustomEvent("add-to-bag",{detail:{sku:e.state.sku,displayName:e.state.displayName,variant:s.length?"".concat(s.join(" / ")," / ").concat(e.state.variant):e.state.variant,price:t.originalPrice||t.displayPrice,salePrice:t.offerPrice,productImage:t.productImage||null,subFamily:e.state.subFamily,productKey:e.state.productKey,cid:e.getPartNumbersList()[e.state.sku].cid+(sessionStorage.getItem("cid")?"_".concat(sessionStorage.getItem("cid")):""),quantity:1,category:t.productFamily||t.subFamily,features:(0,p.getFilterGroupNameByFilterId)(a),productNameAnalytics:t.productNameAnalytics||e.state.displayName,analyticsVariant:(null==t?void 0:t.urlVariant)||t.variant,module:e.getElAndAttribute("data-analytics-module"),region:e.getElAndAttribute("data-analytics-region"),sourceType:null!==(i=e.state)&&void 0!==i&&null!==(r=i.upsellSku)&&void 0!==r&&r.length?"add-on":"default"}}))},50),this.state.upsellSku){var n,i=this.state.upsellSku[1],r=null!==(n=null==i?void 0:i.filters)&&void 0!==n?n:[],a=(0,p.getFilterValueDisplayName)(r,!0);window.dispatchEvent(new CustomEvent("add-to-bag",{detail:{sku:i.sku,displayName:i.displayName,variant:a.length?"".concat(a.join(" / ")," / ").concat(i.variant):i.variant,price:i.displayPrice,salePrice:i.offerPrice,productImage:i.productImage||null,subFamily:i.subFamily,productKey:i.productKey,cid:i.cid+(sessionStorage.getItem("cid")?"_".concat(sessionStorage.getItem("cid")):""),quantity:1,category:i.productFamily||i.subFamily,features:(0,p.getFilterGroupNameByFilterId)(r,!0),productNameAnalytics:i.productNameAnalytics||this.state.displayName,analyticsVariant:(null==i?void 0:i.urlVariant)||i.variant,module:this.getElAndAttribute("data-analytics-module"),region:this.getElAndAttribute("data-analytics-region"),sourceType:"add-on"}}))}}},{key:"handleSubmit",value:function(e){var t,n=this;if(e.preventDefault(),this.state.active)return window.upsellIncomplete?(window.dispatchEvent(new CustomEvent("upsell-add-to-bag-attempted")),void this.setState({loading:!1,active:!0})):void(!0===(null===(t=window.miniCartConfig)||void 0===t?void 0:t.enabled)&&["buyable","preOrder"].includes(this.state.availabilityStatus)?this.dispatchAddToBag():(this.trackClick(e,this.state.analyticsLinkType),"notify"!==this.state.availabilityStatus?this.setState({loading:"external"!=this.state.availabilityStatus,active:!1},function(){setTimeout(function(){"_blank"===n.state.target?window.open(n.state.href,"_blank"):location.href=n.state.href},800)}):this.trackAllClick(e)));e.stopPropagation()}},{key:"handleFormSubmit",value:function(e){var t,n=this;return e.preventDefault(),this.state.active?window.upsellIncomplete?(window.dispatchEvent(new CustomEvent("upsell-add-to-bag-attempted")),void this.setState({loading:!1,active:!0})):void(!0===(null===(t=window.miniCartConfig)||void 0===t?void 0:t.enabled)&&["buyable","preOrder"].includes(this.state.availabilityStatus)?this.dispatchAddToBag():(this.trackClick(e,this.state.analyticsLinkType),this.setState({loading:"external"!=this.state.availabilityStatus,active:!1},function(){}),"notify"!==this.state.availabilityStatus?setTimeout(function(){n.mainElRef.current.submit()},300):e.preventDefault())):(e.preventDefault(),void e.stopPropagation())}},{key:"trackClick",value:function(e,t){var n,i,r;"buy"==t&&(n={sku:this.state.sku,category:this.state.productFamily,color:(null===(i=this.state)||void 0===i||null===(r=i.skuObj)||void 0===r?void 0:r.urlVariant)||this.state.variant,price:this.state.price});var a=this.getElAndAttribute("data-analytics-module"),s=this.getElAndAttribute("data-analytics-region");this.tracker.track({type:t,event:e,data:{type:t,module:a,position:s,label:this.state.analyticsLinkName,articlePosition:null,viewMoreClick:null,cart:n}})}},{key:"trackAllClick",value:function(e){this.tracker.track({type:"allClick",event:e,data:{type:"allClick",moduleName:this.getElAndAttribute("data-analytics-module"),regionName:this.getElAndAttribute("data-analytics-region"),label:this.state.analyticsLinkName,pageName:this.getPageName()}})}},{key:"getPageName",value:function(){var e="";return window.pageTrackData&&(e=window.pageTrackData.content.pageName?window.pageTrackData.content.pageName:""),e}},{key:"getElAndAttribute",value:function(e){return this.mainElRef.current.closest("[".concat(e,"]"))?this.mainElRef.current.closest("[".concat(e,"]")).getAttribute(e):null}},{key:"handleSelectSwatch",value:function(e){var t=this;if(this.id===e.detail.id){var n=e.detail.sku[1],i=e.detail.sku[1].buttonDetails,r=m.productNotify.includes(i.availabilityStatus)?i.notifymePage:"external"===i.availabilityStatus?n.aosUrl:m.productAvailable.includes(i.availabilityStatus)&&"cart"===this.state.colorSelectBehavior?n.addToCartPath:n.aosUrl;this.setState({href:r,sku:n.sku,active:[].concat((0,a.default)(m.productAvailable),(0,a.default)(m.productNotify)).includes(i.availabilityStatus),rel:"external"===i.availabilityStatus&&"true"===i.openLinkInNewTab?"noopener noreferrer":"",target:"true"===i.openLinkInNewTab||"external"===i.availabilityStatus?"_blank":"_self",configuredButtonLabel:i.configuredButtonLabel,availabilityStatus:i.availabilityStatus,analyticsLinkType:i.analyticsLinkType,analyticsLinkName:i.analyticsLinkName,secondaryCta:n.secondaryCta,price:n.numericPrice,productFamily:n.productFamily,subFamily:n.subFamily,productKey:n.productKey,variant:n.variant,displayName:n.displayName,productImage:n.productImage},function(){"notify"!=i.availabilityStatus&&t.triggerEl.current.classList.remove("modal__trigger"),"notify"===i.availabilityStatus?t.modal||(t.triggerEl.current.setAttribute("data-link",!0),t.triggerEl.current.classList.add("modal__trigger"),t.modal=new f.default(t.triggerEl.current,null,null,{label:i.analyticsLinkName})):t.modal&&0!=Object.entries(t.modal).length&&(t.modal.removeEventListeners(),t.modal=null)})}}},{key:"render",value:function(){var e,t,n,i,r=this,a="small"===this.size?" b-button--small":"";return d.default.createElement(d.default.Fragment,null,(!this.cartUrl||"external"==this.state.availabilityStatus||"notify"==this.state.availabilityStatus)&&d.default.createElement("div",{className:"",ref:this.mainElRef},d.default.createElement("a",{ref:this.triggerEl,className:"b-button b-button--dark ".concat(a),href:this.state.href,target:this.state.target,rel:this.state.rel,"aria-live":"polite",onClick:function(e){return r.handleSubmit(e)},disabled:!this.state.active},this.state.loading&&d.default.createElement("span",{className:"beats-btn-inner beats-btn-inner--loading",dangerouslySetInnerHTML:{__html:this.state.addingCta?this.state.addingCta:this.state.configuredButtonLabel?this.state.configuredButtonLabel:null===(e=this.props.children)||void 0===e?void 0:e.toString()}}),!this.state.loading&&d.default.createElement("span",{className:"beats-btn-inner",dangerouslySetInnerHTML:{__html:this.state.configuredButtonLabel?this.state.configuredButtonLabel:null===(t=this.props.children)||void 0===t?void 0:t.toString()}}),!this.state.loading&&d.default.createElement("span",{className:"beats-btn-mask"})),!this.state.hideSecondaryCta&&this.state.secondaryCta&&d.default.createElement(d.default.Fragment,null,d.default.createElement("p",{className:"b-button__secondary-cta"},this.state.secondaryCta))),this.cartUrl&&"notify"!=this.state.availabilityStatus&&"external"!=this.state.availabilityStatus&&d.default.createElement("form",{action:this.cartUrl,method:"POST",onSubmit:function(e){return r.handleFormSubmit(e)},ref:this.mainElRef},d.default.createElement("input",{type:"hidden",name:"sku",value:this.state.sku}),this.getPartNumbersList()[this.state.sku].cid&&d.default.createElement("input",{type:"hidden",name:"cid",value:this.getPartNumbersList()[this.state.sku].cid+(sessionStorage.getItem("cid")?"_".concat(sessionStorage.getItem("cid")):"")}),d.default.createElement("input",{type:"hidden",name:"locale",value:this.state.locale}),d.default.createElement("button",{type:"submit",className:"b-button b-button--dark ".concat(a),role:"link",onClick:function(e){return r.handleFormSubmit(e)},ref:this.triggerEl,disabled:!this.state.active},this.state.loading&&d.default.createElement("span",{className:"beats-btn-inner beats-btn-inner--loading",dangerouslySetInnerHTML:{__html:this.state.addingCta?this.state.addingCta:this.state.configuredButtonLabel?this.state.configuredButtonLabel:null===(n=this.props.children)||void 0===n?void 0:n.toString()}}),!this.state.loading&&d.default.createElement("span",{className:"beats-btn-inner",dangerouslySetInnerHTML:{__html:this.state.configuredButtonLabel?this.state.configuredButtonLabel:null===(i=this.props.children)||void 0===i?void 0:i.toString()}}),!this.state.loading&&d.default.createElement("span",{className:"beats-btn-mask"})),!this.state.hideSecondaryCta&&this.state.secondaryCta&&d.default.createElement(d.default.Fragment,null,d.default.createElement("p",{className:"b-button__secondary-cta"},this.state.secondaryCta))))}}])}(d.Component);t.default=y},6241:(e,t,n)=>{"use strict";var i=n(4836);t._H=function(){document.querySelectorAll("[data-clickable-link]").forEach(function(e){new s(e)})};var r=i(n(6690)),a=i(n(9728)),s=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),this.wrapper=t,this.index=Math.max(0,parseInt(t.getAttribute("data-clickable-link"))-1),this.anchors=Array.from(t.querySelectorAll("[data-link], a")),this.anchors.length>this.index&&(this.targetAnchor=this.anchors[this.index],this.enhance(),this.addEventListeners())},[{key:"enhance",value:function(){this.wrapper.style.cursor="pointer"}},{key:"addEventListeners",value:function(){var e=this;this.wrapper.addEventListener("click",function(t){"a"===t.target.tagName.toLowerCase()||t.target.closest("a")||e.targetAnchor&&e.targetAnchor.click()})}}])}()},3807:(e,t,n)=>{"use strict";var i=n(4836),r=n(8698);t.AE=function(){document.querySelectorAll(".compare-component-wrapper").forEach(function(e){(0,l.createRoot)(e).render(o.default.createElement(v,null))})};var a=i(n(861)),s=i(n(7424)),o=c(n(7294)),l=c(n(745)),u=i(n(8652));function c(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;
67return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var a,s,o={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return o;if(a=t?i:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((s=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(s.get||s.set)?a(o,l,s):o[l]=e[l]);return o})(e,t)}var d=n(9061),h=n(3738).getProductsList,p=n(2050).getLocalized,f=(0,o.createContext)(null),m=document.querySelector('meta[name="description"]'),g=null==m?void 0:m.getAttribute("content"),v=function(){var e,t,n,i,r,l,c,v=window.compareData;if(v){var y=null===(e=v.data)||void 0===e?void 0:e.config,_=null===(t=v.data)||void 0===t?void 0:t.defaultProducts,w=null===(n=v.data)||void 0===n?void 0:n.productGroups,E=null===(i=v.data)||void 0===i?void 0:i.products,T=null==y?void 0:y.dropdownAriaLabels,x=null===(r=v.data)||void 0===r?void 0:r.productsFeatures,C=(0,o.useRef)(),I=(0,o.useState)(w),M=(0,s.default)(I,1)[0],k=(0,o.useState)({label:null==y||null===(l=y.highlightText)||void 0===l?void 0:l.label,desc:null==y||null===(c=y.highlightText)||void 0===c?void 0:c.desc}),P=(0,s.default)(k,1)[0],R=(0,o.useState)(!1),L=(0,s.default)(R,2),B=L[0],D=L[1],N=(0,o.useState)(!1),O=(0,s.default)(N,2),U=O[0],F=O[1],z=(0,o.useState)(!1),Q=(0,s.default)(z,2),V=Q[0],H=Q[1],G=(0,o.useState)(!!window.matchMedia("(max-width:734px)").matches),j=(0,s.default)(G,2),q=j[0],W=j[1],Y=(0,o.useState)(!1),X=(0,s.default)(Y,2),K=X[0],$=X[1],J=(0,o.useState)(""),Z=(0,s.default)(J,2),ee=Z[0],te=Z[1],ne=(0,o.useState)(""),ie=(0,s.default)(ne,2),re=ie[0],ae=ie[1],se=(0,o.useState)(""),oe=(0,s.default)(se,2),le=oe[0],ue=oe[1],ce=(0,o.useState)(!1),de=(0,s.default)(ce,2),he=de[0],pe=de[1],fe=(0,o.useState)(!1),me=(0,s.default)(fe,2),ge=me[0],ve=me[1],Ae=(0,o.useState)(null==_?void 0:_[0]),ye=(0,s.default)(Ae,2),be=ye[0],_e=ye[1],we=(0,o.useState)(null==_?void 0:_[1]),Ee=(0,s.default)(we,2),Se=Ee[0],Te=Ee[1],xe=(0,o.useState)(null==_?void 0:_[2]),Ce=(0,s.default)(xe,2),Ie=Ce[0],Me=Ce[1],ke=function(){var e=[be,Se];return q||e.push(Ie),e},Pe=function(){var e=document.querySelector("link[rel='canonical']"),t=new URLSearchParams(location.search),n=new URL(window.location),i=t.has("modelList")&&t.get("modelList").split(",").length,r=document.querySelector('meta[property="og:title"]'),a=document.querySelector('meta[property="og:description"]'),s="",o="",l=Re(be),u=Re(Se),c=Re(Ie);switch(e&&1!=i&&(e.href=n.href),i){case 2:s=l+" vs "+u+" - Beats",o=g?"".concat(g.trim()," ").concat(l,", ").concat(u," and more."):"";break;case 3:s=l+" vs "+u+" vs "+c+" - Beats",o=g?"".concat(g.trim()," ").concat(l,", ").concat(u," and more."):""}i&&1!==i||(o=g?"".concat(g.trim()," ").concat(l,", ").concat(u," and more."):""),s&&(document.title=s,null==r||r.setAttribute("content",s)),null==m||m.setAttribute("content",o),null==a||a.setAttribute("content",o)},Re=function(e){var t;return null==w||w.map(function(n,i){var r;null==n||null===(r=n.items)||void 0===r||r.some(function(n){(null==n?void 0:n.id)==e&&(t=null==n?void 0:n.displayName)})}),t},Le=function(e){var t;return null==w||w.map(function(n,i){var r;null==n||null===(r=n.items)||void 0===r||r.some(function(n){(null==n?void 0:n.name)==e&&(t=null==n?void 0:n.id)})}),t},Be=function(e){_e(Le(e[0])),Te(Le(e[1])),Me(Le(e[2]))},De=function(e){_e(e[0]),Te(e[1]),Me(e[2])},Ne=function(){var e,t=new URLSearchParams(location.search);t.set("modelList",(e=[],ke().forEach(function(t){null==w||w.forEach(function(n){var i;null==n||null===(i=n.items)||void 0===i||i.forEach(function(n){(null==n?void 0:n.id)===t&&(null==e||e.push(null==n?void 0:n.name))})})}),e)),window.history.replaceState(null,null,"?"+decodeURIComponent(t))},Oe=function(e,t){var n;Object.values(null===(n=E[e])||void 0===n?void 0:n.items).every(function(e){return!0!==e.defaultSku||(t(e.sku),!1)})};(0,o.useEffect)(function(){var e,t;!function(){var e=h(w);switch(e.key){case"id":De(e.products);break;case"name":Be(e.products)}Pe()}(),t=[],E&&Object.values(E).forEach(function(e){(null==e?void 0:e.items)&&Object.values(null==e?void 0:e.items).forEac
67h(function(e){t.push((null==e?void 0:e.img)+".large.2x.jpg")})}),t.forEach(function(e){var t=document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("as","image"),t.setAttribute("href",e),document.head.append(t)}),d.track({type:"compareProducts",data:{modelList:null===(e=ke())||void 0===e?void 0:e.join(",")}});var n=new CustomEvent("dom-changed");document.dispatchEvent(n),document.querySelectorAll(".category--column-group").forEach(function(e){var t,n,i=[];(null===(t=e.querySelectorAll(".category--description span[data-id]"))||void 0===t||t.forEach(function(e){i.push(null==e?void 0:e.getAttribute("data-id"))}),ze(i))&&(null===(n=e.querySelectorAll(".category--description span[data-id] .a11y"))||void 0===n||n.forEach(function(e){e.remove()}))})},[]),(0,o.useEffect)(function(){Qe(),ge&&Ne(),K&&Ue()},[be]),(0,o.useEffect)(function(){Ve(),ge&&Ne(),K&&Ue()},[Se]),(0,o.useEffect)(function(){He(),ge&&Ne(),K&&Ue()},[Ie,q]),(0,o.useEffect)(function(){var e,t=function(){W(!!window.matchMedia("(max-width:734px)").matches)};(window.addEventListener("resize",t),K&&Ue(),ge)&&d.track({type:"compareProducts",data:{modelList:null===(e=ke())||void 0===e?void 0:e.join(",")}});return ve(!1),function(){window.removeEventListener("resize",t)}},[K,ge]),(0,o.useEffect)(function(){Pe()},[be,Se,Ie]);var Ue=function(){Fe(),document.querySelectorAll(".category--column-group").forEach(function(e){var t,n=[];null===(t=e.querySelectorAll(".category--description span[data-id]"))||void 0===t||t.forEach(function(e){n.push(null==e?void 0:e.getAttribute("data-id"))}),ze(n)||null==e||e.classList.add("highlight")})},Fe=function(){document.querySelectorAll(".highlight").forEach(function(e){null==e||e.classList.remove("highlight")})},ze=function(e){return 1==(0,a.default)(new Set(e)).length},Qe=function(){Ge(0,te)},Ve=function(){Ge(1,ae)},He=function(){Ge(2,ue)},Ge=function(e,t){ke().forEach(function(n,i){var r;E&&n&&Object.values(null===(r=E[n])||void 0===r?void 0:r.items).every(function(n){return!0!==(null==n?void 0:n.defaultSku)||(i==e&&t(null==n?void 0:n.sku),!1)})})},je=function(e,t,n){switch(t){case"first":te(e);break;case"second":ae(e);break;case"third":ue(e)}d.track({type:"colorSelector",event:"colorSelector",data:{item:[{productInfo:{sku:null==n?void 0:n.sku,category:null==n?void 0:n.productFamily,color:null==n?void 0:n.colorName}}]}})},qe=function(e){return null!=E&&E[e]?E[e]:null},We=function(e,t){d.track({type:"allClick",event:"allClick",data:{moduleName:$e("data-analytics-module"),regionName:$e("data-analytics-region"),label:t.id,pageName:Je()}}),new u.default(e.currentTarget,null,Ke(t)).open();var n=new Event("generate-footnotes");document.dispatchEvent(n)},Ye=function(e){var t=[];return ke().forEach(function(n,i){var r;null==e||null===(r=e.itemValues)||void 0===r||r.map(function(e){var i,r;null!=e&&null!==(i=e.productIds)&&void 0!==i&&i.includes(n)&&((null==e||null===(r=e.tooltip)||void 0===r?void 0:r.length)>0&&t.push(e))})}),Xe(t)},Xe=function(e){var t=new Map;return e.forEach(function(e){return t.set(e,e)}),(0,a.default)(t.values())},Ke=function(e){var t,n=null==e||null===(t=e.featureItems)||void 0===t?void 0:t.map(function(e){var t=[],n=[];return Ye(e).map(function(e){var i;return null==e||null===(i=e.tooltip)||void 0===i||i.map(function(t){t&&n.push(e.tooltip)}),t.push(n),t})}),i=Xe(n.flat(1/0)),r=null==i?void 0:i.map(function(t){var n,r,a,s,o=null===(n=e.tooltips)||void 0===n||null===(r=n[t])||void 0===r?void 0:r.tooltipText,l=null===(a=e.tooltips)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.icon,u='<div class="icon" aria-hidden="true"><i class=\''.concat(null==l?void 0:l.faIcon,"'></i></div>");return"image"==(null==l?void 0:l.type)&&(u='<div class="icon"><img src=\''.concat(null==l?void 0:l.imagePath,"' alt='").concat(null==l?void 0:l.imageAltText,"'/></div>")),'<div className="'.concat(!1===e.enableTwoColumnModalLayout||(null==i?void 0:i.length)<=1?"sm-12 lg-12":"sm-12 lg-6",' sm-12 lg-6">\n            <div className="item h-align-sm-left">\n                ').concat(o?"".concat(u," ").concat(o):"","\n            </div>\n            </div>")}).join("");return'\n                <div class="compare-tooltip">\n                    <div class="compare-tooltip__inner" style="width: '.concat(e.modalContentWidth,';">\n                        <h2 class="tooltip--title headline-3" id="modal-title">').concat(e.name,'</h2>\n                        <div class="layout-flex ').concat(q?"row-gap-sm-4 column-gap-sm-4":"row-gap-sm-5 column-gap-sm-5",' ">').concat(r,"</div>\n                    </div>\n                </div>\n                ").concat(e.learnMoreURL?'<div class="beats-button learn-more-button" data-analytics-module="'.concat($e("data-analytics-module"),'" data-analytics-region="').concat($e("data-analytics-region"),'">\n                    <a class="b-button b-button--dark" aria-label="').concat(e.accessibilityText?e.accessibilityText:e.learnMoreButtonAriaLabel,'" data-analytics-click="" data-analytics-label="').concat(e.learnMoreButtonAnalyticsLabel,'" data-analytics-link-type="siteClick" href=').concat(e.learnMoreURL," target=").concat(e.learnMoreTarget,'>
67\n                        <span class="beats-btn-inner" tabIndex="-1">').concat(e.learnMoreButtonLabel,'</span> \n                        <span class="beats-btn-mask"></span> \n                    </a>\n                </div>'):"","\n                ")},$e=function(e){var t;return C.current.closest(".compare-component-wrapper")?null===(t=C.current.closest(".compare-component-wrapper"))||void 0===t?void 0:t.getAttribute(e):null},Je=function(){var e="";return window.pageTrackData&&(e=window.pageTrackData.content.pageName?window.pageTrackData.content.pageName:""),e},Ze=function(e,t){var n=[];return null==e||e.forEach(function(e,i){var r;null==t||null===(r=t.featureItems)||void 0===r||r.map(function(t){var i,r,a=!1;(null==t||null===(i=t.itemValues)||void 0===i||i.every(function(i){if(null!=i&&i.productIds.includes(e)){var r;if(a=!0,n.hasOwnProperty(t.id))null===(r=n[t.id])||void 0===r||r.push(i);else n[t.id]=[i];return!1}return!0}),a)||(n.hasOwnProperty(t.id)||(n[t.id]=[]),null===(r=n[t.id])||void 0===r||r.push({}))})}),n},et=function(e){var t=[],n=!1;null==e||e.featureItems.map(function(e){var n;t.push(null===(n=Ye(e))||void 0===n?void 0:n.length)});return t.some(function(e){return e>0})&&(n=!0),n};return o.default.createElement(o.default.Fragment,null,o.default.createElement(f.Provider,{value:q},o.default.createElement("div",{className:"compare-container",role:"table","aria-label":"".concat(p("compareProducts","Compare Products")),ref:C},o.default.createElement("div",{role:"rowgroup"},o.default.createElement("div",{role:"row",className:"visuallyhidden"},o.default.createElement("div",{role:"columnheader"},p("compareProducts","Compare Products")),o.default.createElement("div",{role:"columnheader"},be),o.default.createElement("div",{role:"columnheader"},Se),!q&&o.default.createElement("div",{role:"columnheader"},Ie))),o.default.createElement("div",{role:"rowgroup"},o.default.createElement("div",{role:"row",className:"compare-container__products-list compare-container__rowgroup ".concat(1==(null==y?void 0:y.enableStickyDropdown)?"compare-dropdown__sticky":""," ")},o.default.createElement(A,{change:function(e,t){switch(t){case"first":_e(e),D(!B),Oe(e,te);break;case"second":Te(e),F(!U),Oe(e,ae);break;case"third":Me(e),H(!V),Oe(e,ue)}if(ve(!0),q&&Ie==e)switch(t){case"first":Me(be),H(!V),Oe(be,ue);break;case"second":Me(Se),H(!V),Oe(Se,ue)}requestAnimationFrame(function(){var e=new Event("generate-footnotes");document.dispatchEvent(e)})},prodOptionFirst:be,prodOptionSecond:Se,prodOptionThird:Ie,selectedOptions:null==M?void 0:M.defaultProducts,productsList:M,isMobile:q,ariaLabels:T}))),o.default.createElement("div",{role:"rowgroup"},o.default.createElement("div",{role:"row",className:"compare-container__sku-block compare-container__rowgroup"},o.default.createElement("div",{role:"rowheader"}),o.default.createElement(b,{products:qe(be),handleSelectSwatch:je,selectedSku:ee,skuKey:"first",triggerForSwatchBlockOption:B,config:y}),o.default.createElement(b,{products:qe(Se),handleSelectSwatch:je,selectedSku:re,skuKey:"second",triggerForSwatchBlockOption:U,config:y}),!q&&o.default.createElement(b,{products:qe(Ie),handleSelectSwatch:je,selectedSku:le,skuKey:"third",triggerForSwatchBlockOption:V,config:y}))),o.default.createElement("div",{role:"rowgroup"},o.default.createElement("div",{role:"row"},o.default.createElement("div",{role:"cell gridcell",className:"compare-container__highlight-differences title-3","aria-colspan":q?"3":"4"},o.default.createElement("input",{className:"b-checkbox",checked:K,id:"highlight",type:"checkbox",name:"highlight",onChange:function(){$(!K),K?Fe():(Ue(),he||(d.track({type:"allClick",event:"allClick",data:{moduleName:$e("data-analytics-module"),regionName:$e("data-analytics-region"),label:"highlight-product-differences",pageName:Je()}}),d.track({type:"siteClick",event:"siteClick",data:{module:$e("data-analytics-module"),position:$e("data-analytics-region"),label:"highlight-product-differences",pageName:Je()}}),pe(!0)))},"aria-label":null==P?void 0:P.label}),o.default.createElement("label",{id:"highlight-label",className:"b-label",htmlFor:"highlight",dangerouslySetInnerHTML:{__html:"".concat(null==P?void 0:P.label,'<span className="b-touch-area"></span>')}}),o.default.createElement("div",{id:"highlight-desc",className:"highlight-text body-small ".concat(K?"text-show":"text-hide"),"aria-hidden":"true",dangerouslySetInnerHTML:{__html:null==P?void 0:P.desc}}),o.default.createElement("span",{className:"visuallyhidden","aria-live":"polite","aria-atomic":"true",dangerouslySetInnerHTML:K?{__html:null==P?void 0:P.desc}:{__html:""}})))),x.map(function(e,t){return o.default.createElement("div",{className:"compare-feature",role:"rowgroup",key:t},o.default.createElement("div",{role:"row"},o.default.createElement("div",{role:"rowheader"},o.default.createElement("h3",{className:"category--title ".concat(q?"title-2":"title-1")},null==e?void 0:e.name,!0===(null==e?void 0:e.enableToolTipModal)&&!0===et(e)&&o.default.createElement("button",{type:"button",className:"category--tooltip","aria-label":null==e?void 0:e.tooltipAriaLabel,onClick:function(t){return We(t,e)}},o.default.createElement("span",null,o.default.createElement("i",{className:"fa fa-info-circle fa-sm"}))))),o.default.createElement("div",{role:"cell gridcell"}),o.default.createElement("div",{role:"cell gridcell"}),!q&&o.default.createElement("div",{role:"cell gridcell"})),o.default.createElement(S,{data:Ze(ke(),e),modal:function(t){return We(t,e)},toolTipFlag:null==e?void 0:e.enableToolTipModal,tooltipValue:et(e),isChecked:K}
67))}),o.default.createElement("div",{role:"rowgroup"},1==y.displayProductSectionSecondary&&o.default.createElement("div",{role:"row",className:"compare-container__product-bottom compare-container__rowgroup"},o.default.createElement("div",{role:"rowheader"}),o.default.createElement(b,{isProductBottom:"true",products:qe(be),selectedSku:ee,config:y}),o.default.createElement(b,{isProductBottom:"true",products:qe(Se),selectedSku:re,config:y}),!q&&o.default.createElement(b,{isProductBottom:"true",products:qe(Ie),selectedSku:le,config:y})))),o.default.createElement("div",{className:"hidden","aria-hidden":"true",inert:"true"},o.default.createElement(o.default.Fragment,null,x.map(function(e){var t,n;return o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{dangerouslySetInnerHTML:{__html:e.name}}),null==e||null===(t=e.featureItems)||void 0===t?void 0:t.map(function(e){var t;return null==e||null===(t=e.itemValues)||void 0===t?void 0:t.map(function(e){return o.default.createElement("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}})})}),null===(n=Object.values(e.tooltips))||void 0===n?void 0:n.map(function(e){return o.default.createElement("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.tooltipText}})}))})))))}},A=function(e){var t,n,i,r=(0,o.useContext)(f);return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{role:"rowheader"},o.default.createElement("span",{className:"visuallyhidden"},p("dropdown","Dropdown"))),o.default.createElement(y,{productsList:e.productsList,value:e.prodOptionFirst,handleChange:function(t){return e.change(t.target.value,"first")},compOptionOne:e.prodOptionSecond,compOptionTwo:!r&&e.prodOptionThird,ariaLabel:null==e||null===(t=e.ariaLabels)||void 0===t?void 0:t[0]}),o.default.createElement(y,{productsList:e.productsList,value:e.prodOptionSecond,handleChange:function(t){return e.change(t.target.value,"second")},compOptionOne:e.prodOptionFirst,compOptionTwo:!r&&e.prodOptionThird,ariaLabel:null==e||null===(n=e.ariaLabels)||void 0===n?void 0:n[1]}),r?"":o.default.createElement(y,{productsList:e.productsList,value:e.prodOptionThird,handleChange:function(t){return e.change(t.target.value,"third")},compOptionOne:e.prodOptionSecond,compOptionTwo:e.prodOptionFirst,ariaLabel:null==e||null===(i=e.ariaLabels)||void 0===i?void 0:i[2]}))},y=function(e){var t=e.productsList,n=e.value,i=e.handleChange,r=e.compOptionOne,a=e.compOptionTwo;e.ariaLabel;return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{role:"cell",className:"compare-container__dropdown-column"},o.default.createElement("form",{autoComplete:"off",className:"compare-container--selector"},o.default.createElement("select",{value:n,onChange:i,className:"compare-container--selector-dropdown"},t&&t.length>0&&t.map(function(e,t){var n;return o.default.createElement("optgroup",{key:t,label:e.label},null===(n=e.items)||void 0===n?void 0:n.map(function(e,t){return o.default.createElement("option",{key:t,value:e.id,disabled:e.id===r||e.id===a?"disabled":""},e.displayName)}))})),o.default.createElement("span",{"aria-hidden":"true",className:"compare-container--selector-icon fa fa-chevron-down"}))))},b=function(e){var t,n,i=e.isProductBottom,r=e.products,a=e.handleSelectSwatch,l=e.selectedSku,u=e.skuKey,c=e.triggerForSwatchBlockOption,d=e.config,h=(0,o.useState)(!1),p=(0,s.default)(h,2),f=p[0],m=p[1],g=(0,o.useState)(""),v=(0,s.default)(g,2),A=v[0],y=v[1],b=(0,o.useState)(""),S=(0,s.default)(b,2),T=S[0],x=S[1];return(0,o.useEffect)(function(){m(!1),function(e){var t,n;if(1==(null==e?void 0:e.enableBuyLink)){var i,r,a;y(null!==(i=null==e||null===(r=e.items)||void 0===r||null===(a=r[l])||void 0===a?void 0:a.externalURL)&&void 0!==i?i:"")}else{var s,o,u,c,d=null==e||null===(s=e.items)||void 0===s||null===(o=s[l])||void 0===o||null===(u=o.sku)||void 0===u?void 0:u.substring(0,5);null!=e&&null!==(c=e.viewMoreURL)&&void 0!==c&&c.includes("?")?y((null==e?void 0:e.viewMoreURL)+"&sku="+d):y((null==e?void 0:e.viewMoreURL)+"?sku="+d)}x(!(null==e||null===(t=e.items)||void 0===t||null===(n=t[l])||void 0===n||!n.openInNewTab))}(r)}),o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{role:"cell gridcell",className:"compare-container__sku-block-column","data-skuurl":A,"data-external":T,onClick:function(e){"product__price-discount"!=e.target.parentNode.className&&"product__price"!=e.target.parentNode.className&&"beats-picture"!=e.target.parentNode.className&&"product__title"!=e.target.parentNode.className||(T?window.open(e.currentTarget.dataset.skuurl,"_blank"):location.href=e.currentTarget.dataset.skuurl)}},!i&&o.default.createElement(w,{swatch:null==r?void 0:r.items,handleSelectSwatch:a,selectedSku:l,skuKey:u,triggerForSwatchBlockOption:c,changeImage:function(e){e&&m(!0)}}),o.default.createElement(_,{image:null==r||null===(t=r.items)||void 0===t?void 0:t[l],productDetails:r,skuUrl:A,imageState:f,isProductBottom:i}),o.default.createElement(E,{isProductBottom:i,productDetails:r,selectedSku:l,config:d,skuUrl:A,image:null==r||null===(n=r.items)||void 0===n?void 0:n[l]})))},_=function(e){var t,n=e.image,i=e.productDetails,r=e.skuUrl,a=e.imageState,l=e.isProductBottom,u=(0,o.useState)(!1),c=(0,s.default)(u,2),d=c[0],h=c[1];return(0,o.useEffect)(function(){a?(h(!1),setTimeout(function(){h(!0)},200)):h(!0)},[n]),o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"compare-container__product-image",role:l?null:"tabpanel",id:"compare-tabpanel","aria-label":(t=null==i?void 0:i.title,((new DOMParser).parseFromString(t,"text/html").body.textContent||"").trim()+" in "+(null==n?void 0:n.colorName))},o.default.createElement("span",{className:"compare-container--image","data-href":r,target:null==i?void 0:i.viewMoreTarget,"data-analytics-click":"","data-analytics-label":null==i?void 0:i.analyticsLinkName,"data-analytics-link-type":"siteClick"},o.default.createElement("picture",{className:"beats-picture"},o.default.createElement("source",{media:"(min-width: 1069px)",srcSet:"".concat(null==n?void 0:n.img,".large.2x.jpg"),"data-srcset":"".concat(null==n?void 0:n.img,".large.2x.jpg")}
67),o.default.createElement("source",{media:"(min-width: 735px) and (max-width: 1068px)",srcSet:"".concat(null==n?void 0:n.img,".medium.2x.jpg"),"data-srcset":"".concat(null==n?void 0:n.img,".medium.2x.jpg")}),o.default.createElement("source",{media:"(max-width: 734px)",srcSet:"".concat(null==n?void 0:n.img,".small.2x.jpg"),"data-srcset":"".concat(null==n?void 0:n.img,".small.2x.jpg")}),o.default.createElement("img",{className:"bbd-media-image ".concat(d?"anime":""),src:"".concat(null==n?void 0:n.img,".large.2x.jpg"),"data-src":"".concat(null==n?void 0:n.img,".large.2x.jpg"),alt:null==n?void 0:n.altText,"data-resp-exclude":!0})))))},w=function(e){var t=e.swatch,n=e.handleSelectSwatch,i=e.selectedSku,r=e.skuKey,a=e.triggerForSwatchBlockOption,l=e.changeImage,u=(0,o.useRef)(),c=(0,o.useRef)(),d=(0,o.useRef)(),h=(0,o.useRef)(),f=(0,o.useRef)(),m=(0,o.useState)(0),g=(0,s.default)(m,2),v=g[0],A=g[1],y=(0,o.useState)(0),b=(0,s.default)(y,2),_=b[0],w=b[1],E=(0,o.useState)(0),S=(0,s.default)(E,2),T=S[0],x=S[1],C=(0,o.useState)(0),I=(0,s.default)(C,2),M=I[0],k=I[1],P=function(e,t){u.current.style.marginLeft=-e+"px",requestAnimationFrame(function(){L(e,t)})},R=function(e,t){t?(e.current.setAttribute("disabled",""),e.current.setAttribute("aria-hidden",!0)):(e.current.removeAttribute("disabled"),e.current.removeAttribute("aria-hidden"))},L=function(e,t){R(c,t<=0),f.current.offsetWidth<u.current.scrollWidth-e+v?R(d,!1):R(d,!0)},B=function(){R(c,!0),f.current.offsetWidth<u.current.scrollWidth?R(d,!1):R(d,!0)},D=function(){u.current.style.marginLeft=0,w(0),B(),h.current.style.width="";var e=Array.from(u.current.querySelectorAll(".compare-container--swatches > *")),t=e[0],n=null==t?void 0:t.offsetWidth,i=e.length<=2?0:e[1].offsetLeft-e[0].offsetLeft-n,r=n+i;k(n+i),A(i),x(Math.floor(h.current.offsetWidth/r)),f.current.offsetWidth<u.current.scrollWidth&&(h.current.style.width=Math.floor(h.current.offsetWidth/r)*r-1*i+"px"),B()};return(0,o.useEffect)(function(){requestAnimationFrame(function(){D()});var e=function(){D()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[a]),o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"compare-container__product-sku",ref:f},o.default.createElement("div",{className:"compare-container--product-swatches",ref:h},o.default.createElement("button",{className:"product-swatch__control product-swatch__control--prev",ref:c,type:"button","aria-label":p("prevOptions","Previous Options"),onClick:function(e){return w(_-1),void P((_-1)*(T-2)*M,_-1)}},o.default.createElement("i",{className:"fa fa-chevron-left notranslate"})),o.default.createElement("ul",{role:"tablist","aria-label":p("colorSelector","Color Selector"),className:"compare-container--swatches",ref:u},t&&(null==Object?void 0:Object.values(t).map(function(e,t){return o.default.createElement("li",{role:"presentation",key:t},o.default.createElement("button",{className:"product-swatch",type:"button",role:"tab",onClick:function(t){return function(e,t,i){n(e,t,i),l(!0)}(e.sku,r,e)},onKeyDown:function(t){return function(e){var t=!1;if("ArrowRight"===e.key||"ArrowUp"===e.key)e.preventDefault(),t=!0;else{if("ArrowLeft"!==e.key&&"ArrowDown"!==e.key)return;e.preventDefault(),t=!1}var n=u.current.querySelectorAll("button"),i=u.current.querySelector("button[aria-selected=true]"),r=t?Number(i.getAttribute("data-index"))+1:Number(i.getAttribute("data-index"))-1;n[r]&&(n[r].click(),n[r].focus())}(t,e.sku)},id:"tab-".concat(r,"-").concat(t),"aria-selected":"".concat(e.sku==i),"aria-label":"".concat(e.ariaLabel),"aria-controls":"compare-tabpanel","data-default-sku":"".concat(e.defaultSku?"true":"false"),tabIndex:"".concat(e.sku==i?"0":"-1"),"data-index":"".concat(t)},o.default.createElement("span",{className:"product-swatch__inner",style:{backgroundColor:e.background,backgroundImage:"url(".concat(e.colorSwatchImage,")")}})))}))),o.default.createElement("button",{className:"product-swatch__control product-swatch__control--next",ref:d,type:"button","aria-label":p("nextOptions","Next Options"),onClick:function(e){return w(_+1),void P((_+1)*(T-2)*M,_+1)}},o.default.createElement("i",{className:"fa fa-chevron-right notranslate"})))))},E=function(e){var t,n,i,r,a,s,l,u,c,d,h,m,g,v,A,y,b,_=e.isProductBottom,w=e.productDetails,E=e.selectedSku,S=e.config,T=e.skuUrl,x=e.image,C=null==w||null===(t=w.items)||void 0===t?void 0:t[E];!0===(null==w?void 0:w.priceOverride)&&(C=null==w||null===(b=w.override)||void 0===b?void 0:b.priceDetails);var I=(0,o.useContext)(f),M=function(e){return((new DOMParser).parseFromString(e,"text/html").body.textContent||"").trim()};return o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{className:"compare-container__title--wrapper--link","data-href":T,target:null==w?void 0:w.viewMoreTarget,"data-analytics-click":"","data-analytics-label":null==w?void 0:w.analyticsLinkName,"data-analytics-link-type":"siteClick"},o.default.createElement("div",{className:"compare-container__product--title"},o.default.createElement("div",{className:"product__title"},o.default.createElement("div",{className:I?"title-2":"title-1",dangerouslySetInnerHTML:{__html:null==w?void 0:w.title}})))),o.default.createElement("div",{className:"compare-container__product--pricing"},!_&&o.default.createElement("span",{className:"compare-container__price--wrapper--link","data-href":T,target:null==w?void 0:w.viewMoreTarget,"data-analytics-click":"","data-analytics-label":null==w?void 0:w.analyticsLinkName,"data-analytics-link-type":"siteClick"},o.default.createElement("div",{className:"product__price body-medium"},o.default.createElement("span",{className:"a11y price__discount"},!0===(null===(n=C)||void 0===n?void 0:n.onSale)?p("salePrice","Sale price"):p("originalPrice","Original price")),!0===(null==w?void 0:w.priceOverride)&&o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{className:"product__price-discount"},o.default.createElement("span",{className:"title-3"},null!==(i=C)&&void 0!==i&&i.prependText?"".concat(C.prependText):"")," ",o.default.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(null!==(r=C)&&void 0!==r&&r.offerPriceStart?null===(a=C)||void 0===a?void 0:a.offerPriceStart:null===(s=C)||void 0===s?void 0:s.offerPrice,"  ").concat(null!==(l=C)&&void 0!==l&&l.offerPriceEnd?"- "+(null===(u=C)||void 0===u?void 0:u.offerPriceEnd):"")}})," "),o.default.createElement("s",{className:"product__price-original",dangerouslySetInnerHTML:{__html:null===(c=C)||void 0===c?void 0:c.originalPrice}})),!1===(null==w?void 0:w.priceOverride)&&o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{className:!0===(null===(d=C)||void 0===d?void 0:d.onSale)?"product__price-discount":"product__price-original",dangerouslySetInnerHTML:{__html:!0===(null===(h=C)||void 0===h?void 0:h.onSale)?(null===(m=C)||void 0===m?void 0:m.offerPrice)+" ":null===(g=C)||void 0===g?void 0:g.originalPrice}}),o.default.createElement("span",{className:"a11y price__original"},!0===(null===(v=C)||void 0===v?void 0:v.onSale)?p("originalPrice","Original price"):""),o.default.createElement("s",{className:"product__price-original",dangerouslySetInnerHTML:{__html:!0===(null===(A=C)||void 0===A?void 0:A.onSale)?null===(y=C)||void 0===y?void 0:y.originalPrice
67:""}})))),(null==S?void 0:S.viewMoreLabel)&&o.default.createElement("div",{className:"beats-button"},o.default.createElement("a",{className:"b-button b-button--transparent ","data-analytics-click":"","data-analytics-label":null==w?void 0:w.analyticsLinkName,"data-analytics-link-type":"siteClick",href:T,target:null==w?void 0:w.viewMoreTarget,"aria-label":"_blank"===(null==w?void 0:w.viewMoreTarget)?M(null==S?void 0:S.viewMoreLabel)+" about "+M(null==w?void 0:w.title)+" in "+(null==x?void 0:x.colorName)+" ("+p("externalLinkLabel","Opens in a new window")+")":M(null==S?void 0:S.viewMoreLabel)+" about "+M(null==w?void 0:w.title)+" in "+(null==x?void 0:x.colorName)},o.default.createElement("span",{className:"beats-btn-inner",tabIndex:"-1",dangerouslySetInnerHTML:{__html:null==S?void 0:S.viewMoreLabel}}),o.default.createElement("span",{className:"beats-btn-mask"})))))},S=function(e){var t=e.data,n=e.modal,i=e.toolTipFlag,r=e.tooltipValue,a=e.isChecked;(0,o.useContext)(f);return o.default.createElement(o.default.Fragment,null,Object.values(t).map(function(e,t){return s=e,Object.values(s).some(function(e,t){return Object.keys(e).length>0})&&o.default.createElement("div",{role:"row",className:"category--column-group",key:t},o.default.createElement("div",{role:"rowheader"}),e.map(function(e,t){var s=null==e?void 0:e.icon;return e&&o.default.createElement(T,{key:t,id:e.id,desc:e.description,icon:s,modal:n,toolTipFlag:i,tooltipValue:r,isChecked:a})}));var s}))},T=function(e){var t=e.id,n=e.desc,i=e.icon,r=e.modal,a=e.toolTipFlag,s=e.tooltipValue,l=e.isChecked,u="";switch(null==i?void 0:i.type){case"icon":u='<i class="'.concat(null==i?void 0:i.faIcon,'" aria-hidden="true"></i>');break;case"image":u='<img src="'.concat(null==i?void 0:i.imagePath,'" alt="').concat(null==i?void 0:i.imageAltText,'"/>')}return o.default.createElement("div",{role:"cell gridcell",className:"category--description"},o.default.createElement("div",{className:"icon ".concat(!0===a&&!0===s&&"toolTipEnabled"),onClick:!0===a&&!0===s?function(e){return r(e)}:null,dangerouslySetInnerHTML:{__html:u},"aria-hidden":"true"}),o.default.createElement("div",{className:"description body-medium"},t?o.default.createElement("span",{"data-id":t,key:t,dangerouslySetInnerHTML:{__html:n+(l?'<span class="differences-a11y a11y">'.concat(p("featDiffers","This feature differs between models."),"</span>"):"")}}):o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{"aria-hidden":"true",className:"dash","data-id":"null"},"----------"),o.default.createElement("span",{className:"visuallyhidden"},p("featUnavailable","Feature not available")))))}},5264:(e,t,n)=>{"use strict";var i=n(4836);t.hs=function(){new l};var r=i(n(6690)),a=i(n(9728)),s=".pdp-btn-apple-svg",o="hidden",l=(n(9669),function(){return(0,a.default)(function e(){var t=this;(0,r.default)(this,e),this.ctas=document.querySelectorAll("[data-product-cta]"),this.isProductSelected=!1,this.disableTimeout,this.preventNavHandler=this.preventNav.bind(this),this.disableCTAsHandler=this.disableCTAs.bind(this),window.addEventListener("pdp-sku-selected",this.enableAddCTAs.bind(this)),window.addEventListener("pageshow",this.resetAddCTAs.bind(this)),this.ctas.forEach(function(e){e.hasAttribute("data-product")&&!e.getAttribute("rel")&&e.addEventListener("click",t.disableCTAsHandler)})},[{key:"addToCart",value:function(e,t,n,i,r){var a=document.createElement("form");a.classList.add("hidden"),a.setAttribute("action",r),a.setAttribute("method","POST"),a.innerHTML='\n            <input type="hidden" name="sku" value="'.concat(e,'" />\n            <input type="hidden" name="cid" value="').concat(n,'" />\n            <input type="hidden" name="locale" value="').concat(t,'" />\n            <button type="submit"></button>\n        '),document.body.appendChild(a),setTimeout(function(){a.submit()},300)}},{key:"enableAddCTAs",value:function(e){var t=this;this.ctas.forEach(function(n){t.isProductSelected||t.enableAddCTA(n),$(n).unbind("click"),$(n).unbind("openModal");var i=e.detail.buttonDetails;!(i.buttonState||"true"===i.openLinkInNewTab||"external"===i.availabilityStatus)?n.addEventListener("click",t.disableCTAsHandler):n.removeEventListener("click",t.disableCTAsHandler),e.detail.variant&&(n.setAttribute("data-product",e.detail.variant),t.setAriaToProduct(n))}),this.isProductSelected=!0}},{key:"enableAddCTA",value:function(e){e.setAttribute("tabindex",0),e.addEventListener("click",this.disableCTAsHandler),this.updateCopy(e,"data-selected-cta",!0)}},{key:"disableCTAs",value:function(e){var t=this;e.preventDefault();var n=e.target.closest("a"),i=n.href;this.ctas.forEach(function(e){t.disableCTA(e)}),this.enableAddingCTA(n);n.getAttribute("data-token-url");var r=n.getAttribute("data-cart-url"),a=n.getAttribute("data-selected-sku"),s=n.getAttribute("data-cid"),o=n.getAttribute("data-selected-locale");r?this.addToCart(a,o,s,null,r):setTimeout(function(){location.href=i},500),this.disableTimeout&&clearTimeout(this.disableTimeout),this.disableTimeout=setTimeout(function(){var e=document.querySelector(".disabled-clicked");e&&(t.ctas.forEach(function(e){t.enableCTA(e)}),t.resetAddingCTA(e))},5e3)}},{key:"disableCTA",value:function(e){e.classList.add("disabled"),e.setAttribute("tabindex",-1),e.blur(),e.removeEventListener("click",this.disableCTAsHandler),e.addEventListener("click",this.preventNavHandler)}},{key:"enableAddingCTA",value:function(e){e.classList.add("disabled-clicked"),e.removeAttribute("aria-label"),this.updateCopy(e,"data-adding-cta")}},{key:"resetAddCTAs",value:function(e){var t=this,n=document.querySelector(".disabled-clicked");e.persisted&&this.ctas.forEach(function(e){t.enableCTA(e)}),n&&this.resetAddingCTA(n)}},{key:"enableCTA",value:function(e){var t=[];["soldOut","unavailable","outOfStock","announced"].find(function(n){e.classList.contains(n)&&t.push(n)}),t.length?e.removeAttribute("tabindex"):(e.classList.remove("disabled"),e.setAttribute("tabindex",0),e.classList.contains("notify")||e.getAttribute("rel")||e.addEventListener("click",this.disableCTAsHandler),e.removeEventListener("click",this.preventNavHandler))}},{key:"resetAddingCTA",value:function(e){e.classList.remove("disabled-clicked"),this.updateCopy(e,"data-selected-cta",!0),this.setAriaToProduct(e)}},{key:"preventNav",value:function(e){e.preventDefault()}},{key:"setAriaToProduct",value:function(e){e.hasAttribute("data-aria-label-prefix")&&e.hasAttribute("data-product")&&e.setAttribute("aria-label",e.getAttribute("data-aria-label-prefix")+e.getAttribute("data-product"))}},{key:"updateCopy",value:function(e,t,n){var i=e.querySelector(".pdp-btn-inner");i&&i.hasAttribute(t)&&(i.querySelector(".pdp-btn-text").innerHTML=i.getAttribute(t).replace("style","data-style"),null!=e.querySelector(s)&&(n?e.querySelector(s).classList.remove(o):e.querySelector(s).classList.add(o)))}}])}())},6901:(e,t,n)=>{"use strict";var i=n(4836);t.xh=function(){document.querySelectorAll("[data-link-selector]").forEach(function(e){e&&!e.hasAttribute("data-initialized")&&new o(e)})};var r=i(n(6690)),a=i(n(9728)),s=n(9061),o=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),this.el=t,this.el.setAttribute("data-initialized",!0),this.options=Array.from(this.el.querySelectorAll("option")),this.initialSelectedIndex=this.el.selectedIndex,this.tracker=s,this.el.addEventListener("change",this.change.bind(this)),window.addEventListener("pageshow",this.reset.bind(this)),this.selectActiveFromUrl()},[{key:"change",value:function(e){var t,n,i,r,a,s=this,o=e.target.value,l=null!==(t=null==e||null===(n=e.target)||void 0===n||null===(i=n.selectedOptions)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.getAttribute("target"))&&void 0!==t?t:"_self",u=this.selectedIndex,c=this.getElAndAttribute("data-analytics-module"),d=this.getElAndAttribute("data-analytics-region"),h=null===(a=e.target.selectedOptions[0])||void 0===a?void 0:a.getAttribute("data-analytics-label");this.tracker.track({type:"siteClick",event:e,data:{label:h,module:c,position:d}}),requestAnimationFrame(function(){if("_blank"===l){window.open(o,"_blank");var e=s.options[u];s.el.value=e.value,s.selectedIndex=u}else window.location.href=o})}},{key:"selectActiveFromUrl",value:function(){var e="".concat(window.location.pathname,"/").replace(".html",""),t=this.options.find(function(t){var n=t.value;return n=(n=n.replace("?wcmmode=disabled","")).replace(".html",""),e.startsWith("".concat(n,"/"))});t&&(t.selected=!0,this.selectedIndex=this.el.selectedIndex)}},{key:"getElAndAttribute",value:function(e){return this.el.closest("[".concat(e,"]"))?this.el.closest("[".concat(e,"]")).getAttribute(e):null}},{key:"reset",value:function(e){var t=this.options[this.initialSelectedIndex];this.el.value=t.value,this.selectActiveFromUrl()}}])}()}
67,8652:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.initModals=function(){document.querySelectorAll(".modal__trigger").forEach(function(e){new u(e)}),document.querySelectorAll(".modal").forEach(function(e){new u(null,e)})};var r=i(n(861)),a=i(n(6690)),s=i(n(9728)),o=i(n(722)),l=n(2050),u=function(){return(0,s.default)(function e(t,n,i,r){(0,a.default)(this,e),t&&"true"==t.getAttribute("data-initialized")&&!i||(this.modal=n||null,this.content=i,this.pureModal=!t,this.trigger=t||document.createElement("div"),this.trigger.setAttribute("data-initialized",!0),this.new=!0,this.type=t?t.getAttribute("data-type"):null,this.backgroundElements=Array.from(document.querySelectorAll(".beats-header, .main-header header a, .main-header header button, body #main, .promobar, body footer.footer, body #footercontent .footerColumn, body #footercontent .experiencefragment, body > .newsLetter, body div#newsletter, .footnote-section, #maincontent.support, #maincontent > h1")),this.analyticsModuleName="",this.analyticsLabel=r?r.label:"",this.openEvent=this.open.bind(this),this.keyDownEventTrigger=this.keyDownTrigger.bind(this),this.keyDownEvent=this.keyDown.bind(this),this.closeEvent=this.close.bind(this),this.x=0,this.y=0,this.modalTitle="",this.isModalTitle=!1,this.addEventListeners(),this.modal&&(document.body.appendChild(this.modal),this.setupControls(this.modal),this.open()))},[{key:"addEventListeners",value:function(){this.trigger.addEventListener("click",this.openEvent),this.trigger.addEventListener("keydown",this.keyDownEventTrigger),this.modal&&this.modal.addEventListener("keydown",this.keyDownEvent),window.addEventListener("pageshow",this.onPageShow.bind(this)),document.addEventListener("modal-close",this.closeEvent)}},{key:"removeEventListeners",value:function(){this.trigger.removeEventListener("click",this.openEvent),this.trigger.removeAttribute("keydown",this.keyDownEventTrigger),this.modal&&this.modal.removeEventListener("keydown",this.keyDownEvent),document.removeEventListener("modal-close",this.closeEvent)}},{key:"onPageShow",value:function(e){e.persisted&&this.close(e)}},{key:"clickOutsideModal",value:function(e){this.close()}},{key:"sanitizeUrl",value:function(e){return null==e?null:(e=e.replace(".html?wcmmode=disabled",""),"true"!=window.stripHtmlExtension&&(e+=".html"),"true"==window.isAuthorMode&&(e+="?wcmmode=disabled"),e)}},{key:"open",value:function(e){var t,n,i=this;e&&(e.preventDefault(),e.stopPropagation()),document.documentElement.classList.add("noscroll"),document.dispatchEvent(new CustomEvent("scroll")),null!=window.clickEventPos&&null!=window.clickEventPos||(window.clickEventPos=window.pageYOffset);var r=null===(t=this.trigger)||void 0===t?void 0:t.getAttribute("data-video-src"),a=this.sanitizeUrl(null===(n=this.trigger)||void 0===n?void 0:n.getAttribute("href")),s=this.trigger.getAttribute("data-iframe");if(this.trigger&&(this.modalTitle=r?this.trigger.getAttribute("data-aria-label")||this.trigger.getAttribute("aria-label")||(0,l.getLocalized)("videoPlayer","Video player"):this.trigger.getAttribute("data-aria-label")||this.trigger.getAttribute("aria-label")),""!==this.modalTitle&&(this.isModalTitle=!0),r||null===a||(null!==s?this.setIframeContent(a):this.fetchModalContent(a)),this.content){var o;if(document.querySelector(".modal--contained"))return;null!==(o=this.content)&&void 0!==o&&o.includes("<h2")&&(this.modalTitle=""),this.createModal("modal--contained",this.modalTitle,this.isModalTitle),this.modal.querySelector(".modal-content").innerHTML=this.content;var u=this.modal.querySelector(".modal-inner");document.body.appendChild(this.modal),requestAnimationFrame(function(){u.focus(),document.dispatchEvent(new CustomEvent("basicDomUpdate")),document.documentElement.classList.add("modal-open")})}requestAnimationFrame(function(){document.body.classList.add("modal-loaded"),i.updateBackgroun
67dElements(!0),(i.modal.querySelector(".modal")||i.modal).addEventListener("close",i.close.bind(i));var e=i.modal.querySelector(".modal-screen");e&&e.addEventListener("click",i.clickOutsideModal.bind(i))}),null!==a||s||setTimeout(function(){document.documentElement.classList.add("modal-open")},100),this.x=window.scrollX,this.y=window.scrollY||document.body.getBoundingClientRect().top,document.body.style.top="-".concat(this.y,"px"),document.body.style.position="fixed"}},{key:"close",value:function(e){var t=this;this.content&&this.removeEventListeners(),document.documentElement.classList.remove("noscroll","modal-open"),document.body.classList.remove("modal-loaded"),this.updateBackgroundElements(),requestAnimationFrame(function(){t.modal&&t.modal.remove()}),setTimeout(function(){var n,i;!t.trigger||null!=e&&e.persisted||null!=e&&null!==(n=e.detail)&&void 0!==n&&n.customTrigger&&!1!==(null==e||null===(i=e.detail)||void 0===i?void 0:i.customTrigger)||(t.trigger.focus(),t.trigger.scrollIntoView({block:"nearest"}))},100),this.new||this.pureModal||history.back(),document.body.style.top="",document.body.style.position="",window.scrollTo(this.x,this.y)}},{key:"keyDownTrigger",value:function(e){if(" "===e.key)this.open(e)}},{key:"keyDown",value:function(e){if("Escape"===e.key)this.close()}},{key:"setIframeContent",value:function(e){this.createModal("modal--iframe");var t='\n            <iframe src="'.concat(e,'"></iframe>\n        ');this.populateModal(t)}},{key:"fetchModalContent",value:function(e){var t=this;history.pushState&&!this.new&&requestAnimationFrame(function(){history.pushState({parent:location.pathname},document.title,e)}),this.createModal(null,this.modalTitle,this.isModalTitle),fetch(e).then(function(e){if(!e.ok)throw new Error("HTTP error! status: ".concat(e.status));return e.text()}).then(function(e){t.populateModal(e),t.analytics("subPageView",t.analyticsModuleName),setTimeout(function(){document.documentElement.classList.add("modal-open")},100)}).catch(function(e){console.log(e)})}},{key:"createModal",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(null===(e=this.trigger)||void 0===e?void 0:e.getAttribute("data-close-aria-label"))||(0,l.getLocalized)("close","Close"),a='\n            <div class="modal '.concat(this.type?this.type:""," ").concat(t," ").concat(this.new?"modal--new":"",'">\n                <div class="modal-inner" tabindex="-1" role="dialog" ').concat(i?'aria-labelledby="modal-title"':"",">\n                    ").concat(n?'<h2 class="visuallyhidden" id="modal-title">'.concat(n,"</h2>"):"",'\n                    <div class="modal-screen" aria-hidden="true"></div>\n                    <div class="modal-inner__container">\n                        <div class="modal-content">\n                        </div>\n                        <button class="modal__close" type="button">\n                            <span class="a11y">').concat(r,'</span>\n                            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12.02 12"><path d="M7,6l4.84-4.83a0.68,0.68,0,0,0-1-1L6,5,1.17,0.2a0.68,0.68,0,0,0-1,1L5,6,0.2,10.83a0.68,0.68,0,1,0,1,1L6,7l4.83,4.83a0.68,0.68,0,1,0,1-1Z" fill="#161616" stroke="#161616" stroke-width="1"></path></svg>\n                        </button>\n                    </div>\n                </div>\n            </div>\n        '),s=document.createElement("div");s.innerHTML=a,this.setupControls(s),this.modal=s}},{key:"setupControls",value:function(e){var t=this;Array.from(e.querySelectorAll(".modal-close, .modal-back, .modal__close")).map(function(e){e.addEventListener("click",t.close.bind(t))}),e.addEventListener("keydown",this.keyDownEvent)}},{key:"populateModal",value:function(e){var t,n,i,a=this,s=document.createElement("div");s.classList.add("modal__html"),s.innerHTML=e;var o=s.querySelector("[data-modal-classes]")?s.querySelector("[data-modal-classes]"):s.querySelector(".modal")?s.querySelector(".modal"):s,l=o.getAttribute("data-modal-classes"),u=o.classList.value,c=s.querySelector(".modal-inner .modal-content")?s.querySelector(".modal-inner .modal-content"):s.querySelector("#main")?s.querySelector("#main"):s.querySelector("#content")?s.querySelector("#content"):s;l&&(t=this.modal.querySelector(".modal").classList).add.apply(t,(0,r.default)(l.split(" ").filter(function(e){return""!=e}))),u&&(n=this.modal.querySelector(".modal").classList).add.apply(n,(0,r.default)(u.split(" ").filter(function(e){return""!=e}
67))),Array.from(o.attributes).forEach(function(e){e.nodeName.startsWith("data-analytics")&&a.modal.querySelector(".modal").setAttribute(e.nodeName,e.nodeValue)});var d=s.querySelector(".modal-inner .modal-content");this.analyticsModuleName=(null===(i=s.querySelector("[data-analytics-module]"))||void 0===i?void 0:i.getAttribute("data-analytics-module"))||"";var h=this.modal.querySelector(".modal-content");d?h.replaceWith(c):h.appendChild(c);var p=this.modal.querySelector(".modal-inner");(document.body.appendChild(this.modal),requestAnimationFrame(function(){p.focus(),document.dispatchEvent(new CustomEvent("basicDomUpdate"));var e=new CustomEvent("dom-changed");document.dispatchEvent(e),s.querySelector(".ctaPlayBack, beats-video")&&window.beatsVideoManager.initialize(a.el),window.initPageScroll(a.modal.querySelector(".modal-content"))}),window.initInlineForms&&document.querySelector("#notify-me-form"))&&(window.initInlineForms(),document.querySelector("#notify-me-form").querySelector('[type="submit"]').setAttribute("data-analytics-label",this.analyticsLabel))}}
67,{key:"updateBackgroundElements",value:function(e){this.backgroundElements&&this.backgroundElements.map(function(t){e?(t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),t.setAttribute("inert","true")):(t.removeAttribute("aria-hidden"),t.removeAttribute("tabindex"),t.removeAttribute("inert"))})}},{key:"analytics",value:function(e,t){var n={eventType:e,data:{subPageName:t}};(0,o.default)("analytics-track",n)}}])}();t.default=u},4430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arInteraction=function(e,t){e&&e.addEventListener("click",function(){var n,r,a,s=t||e;s.querySelector("model-viewer").getAttribute("user-interacted-withAR")||(s.querySelector("model-viewer").setAttribute("user-interacted-withAR",!0),i.track({type:"otherInteraction",data:{interactionName:"3D Model AR View",moduleName:(null===(n=s.closest("[data-analytics-module]"))||void 0===n?void 0:n.getAttribute("data-analytics-module"))||"",regionName:(null===(r=s.closest("[data-analytics-region]"))||void 0===r?void 0:r.getAttribute("data-analytics-region"))||"",itemName:(null===(a=s.querySelector("model-viewer"))||void 0===a?void 0:a.getAttribute("item-name"))||""}}))})},t.userInteraction=function(e,t){e&&(e.addEventListener("camera-change",function t(i){n(e,i,t)}),e.addEventListener("camera-change",function(t){if(t.detail.source&&"user-interaction"==t.detail.source){var n=e.getCameraOrbit(),i=57.2958,r=Math.round(n.theta*i)%360,a=Math.round(n.phi*i)%360,s=a<68?"top":a>113?"bottom":"middle",o="".concat(r>45&&r<135?"left":r>=135&&r<225?"back":r>=225&&r<315?"right":"front"," ").concat(s," view"),l="".concat(e.getAttribute("data-aria-label")," ").concat(o);e.setAttribute("aria-label",l);var u=new CustomEvent("a11y-status",{detail:l});window.dispatchEvent(u)}}));var n=function(e,n,r){if(n.detail.source&&"user-interaction"==n.detail.source&&!n.target.getAttribute("user-interacted")){var a,s;n.target.setAttribute("user-interacted",!0);var o=t||e;i.track({type:"otherInteraction",data:{interactionName:"3D Model Drag",moduleName:(null===(a=o.closest("[data-analytics-module]"))||void 0===a?void 0:a.getAttribute("data-analytics-module"))||"",regionName:(null===(s=o.closest("[data-analytics-region]"))||void 0===s?void 0:s.getAttribute("data-analytics-region"))||"",itemName:e.getAttribute("item-name")||""}}),e.removeEventListener("camera-change",r)}}};var i=n(9061)},5003:(e,t,n)=>{"use strict";var i=n(4836);t.Yh=function(){document.body.classList.contains("preload-manager-initialized")||new s};var r=i(n(6690)),a=i(n(9728)),s=function(){return(0,a.default)(function e(){var t=this;(0,r.default)(this,e),this.items=[],document.body.classList.add("preload-manager-initialized"),window.addEventListener("preload",function(e){t.addMetaTag(e.detail.srcs)})},[{key:"addMetaTag",value:function(e){var t=this;e.forEach(function(e){if(!t.items.includes(e)){t.items.push(e);var n=document.createElement("link");n.setAttribute("rel","preload"),n.setAttribute("as","image"),n.setAttribute("href",e),document.head.append(n)}})}}])}()},4979:(e,t,n)=>{"use strict";var i=n(4836);t.Jm=function(){document.querySelectorAll("[data-dynamic-price]").forEach(function(e){new s(e)})};var r=i(n(6690)),a=i(n(9728)),s=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),this.el=t,this.price=t.querySelector(".price"),this.discountPrice=t.querySelector("s.price"),this.priceDescription=t.querySelector(".price-description"),this.a11yDiscountPriceEl=t.querySelector(".a11y.price__discount"),this.a11yPriceDescriptionEl=t.querySelector(".a11y.price__original"),this.a11yDiscountPriceText=t.querySelector(".a11y.price__discount").innerHTML||"",this.a11yPriceDescriptionText=t.querySelector(".a11y.price__original").innerHTML||"",this.id=t.getAttribute("data-id"),this.addListeners()},[{key:"addListeners",value:function(){window.addEventListener("select-swatch",this.handleSelectSwatch.bind(this)),window.addEventListener("select-swatch-price-only",this.handleSelectSwatch.bind(this))}},{key:"handleSelectSwatch",value:function(e){if(this.id===e.detail.id){var t=e.detail.sku[1].originalPrice,n=e.detail.sku[1].offerPrice,i=e.detail.sku[1].discountDescription;this.price.innerHTML=n||t,this.discountPrice.innerHTML=n?t:"",this.priceDescription.innerHTML=i||"",n||t?this.el.classList.remove("hidden"):this.el.classList.add("hidden"),n?(this.price.classList.add("price--discount"),this.a11yDiscountPriceEl.innerHTML=this.a11yDiscountPriceText,this.a11yPriceDescriptionEl.innerHTML=this.a11yPriceDescriptionText):(this.price.classList.remove("price--discount"),this.a11yDiscountPriceEl.innerHTML=this.a11yPriceDescriptionText,this.a11yPriceDescriptionEl.innerHTML="")}}}])}()}
67,1764:(e,t,n)=>{"use strict";var i=n(4836),r=n(8698);t.kN=function(){var e=document.querySelectorAll(".product-bar-el");e.length&&e.forEach(function(e){(0,d.createRoot)(e).render(c.default.createElement(g,e.dataset))})};var a=i(n(6690)),s=i(n(9728)),o=i(n(4993)),l=i(n(3808)),u=i(n(1655)),c=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,s,o={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return o;if(a=t?i:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((s=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(s.get||s.set)?a(o,l,s):o[l]=e[l]);return o}(e,t)}(n(7294)),d=n(745),h=i(n(1879)),p=n(8418);function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}n(4730);var m=n(2942).getSelectedIndexFromURL,g=function(e){function t(e){var n,i,r,s;return(0,a.default)(this,t),i=this,r=t,s=[e],r=(0,l.default)(r),(n=(0,o.default)(i,f()?Reflect.construct(r,s||[],(0,l.default)(i).constructor):r.apply(i,s))).mainElRef=c.default.createRef(),n.buyButtonElRef=c.default.createRef(),n.skus=Object.entries(window.partNumbersList),n.index=m(),n.id=e.id,n.title=e.title,n.locale=e.locale,n.addingCta=e.addingCta,n.selectedCta=e.selectedCta,n.standalone=e.standalone,n.colorSelectBehavior=e.colorSelectBehavior,n.ariaOriginalPrice=e.ariaOriginalPrice,n.ariaDiscountPrice=e.ariaDiscountPrice,n.cartUrl=e.cartUrl,n.state={active:!1,selectedSwatch:n.skus[n.index]},n.addListeners(),n}return(0,u.default)(t,e),(0,s.default)(t,[{key:"addListeners",value:function(){window.addEventListener("select-swatch",this.handleSelectSwatch.bind(this)),window.addEventListener("scroll",this.handleScroll.bind(this))}},{key:"handleScroll",value:function(){if(this.mainElRef.current){var e="true"==this.standalone?215:this.mainElRef.current.offsetTop;document.documentElement.scrollTop>e?(document.body.classList.add("with-buy-bar"),this.setState({active:!0})):(document.body.classList.remove("with-buy-bar"),this.setState({active:!1}))}}},{key:"handleSelectSwatch",value:function(e){this.id===e.detail.id&&this.setState({selectedSwatch:e.detail.sku})}},{key:"render",value:function(){return c.default.createElement("div",{ref:this.mainElRef},c.default.createElement("div",{className:"product-bar \n          ".concat(this.state.active?"active":"","\n          "),inert:this.state.active?void 0:"true"},c.default.createElement("div",{className:"product-bar__inner"},c.default.createElement("h2",{dangerouslySetInnerHTML:{__html:this.title}}),c.default.createElement("div",{className:"product-selector new"},c.default.createElement("span",{className:"product-swatch product-swatch--static\n                ".concat(p.productNotAvailable.includes(this.state.selectedSwatch[1].buttonDetails.availabilityStatus)?"product-swatch--disabled":"")},c.default.createElement("span",{className:"product-swatch__inner",style:{backgroundColor:this.state.selectedSwatch[1].background,backgroundImage:this.state.selectedSwatch[1].colorSwatchImage?"url('".concat(this.state.selectedSwatch[1].colorSwatchImage,"')"):null}}))),c.default.createElement("div",{className:"product-bar__price"},c.default.createElement("span",{className:"a11y price__discount"},this.state.selectedSwatch[1].offerPrice?this.ariaDiscountPrice:this.ariaOriginalPrice),c.default.createElement("span",{className:"price ".concat(this.state.selectedSwatch[1].offerPrice?"price--discount":"")},this.state.selectedSwatch[1].offerPrice?this.state.selectedSwatch[1].offerPrice:this.state.selectedSwatch[1].originalPrice),this.state.selectedSwatch[1].offerPrice&&c.default.createElement(c.default.Fragment,null,c.default.createElement("span",{className:"a11y price__original"},this.ariaOriginalPrice),c.default.createElement("s",{className:"price"},this.state.selectedSwatch[1].originalPrice))),c.default.createElement("div",{className:"product-bar__cta"},c.default.createElement(h.default,{id:this.id,cartUrl:this.cartUrl,hideSecondaryCta:!0,locale:this.locale,addingCta:this.addingCta,colorSelectBehavior:this.colorSelectBehavior,selectedCta:this.selectedCta})))))}}])}(c.Component)},221:(e,t,n)=>{"use strict";var i=n(4836),r=n(8698);
67t.RT=function(){var e=document.querySelectorAll(".product-carousel-el");if(e.length){if(!document.querySelector(".r-modal")){var t=document.createElement("div");t.classList.add("r-modal"),document.body.append(t)}e.forEach(function(e){(0,A.createRoot)(e).render(g.default.createElement(k,e.dataset))})}document.addEventListener("at-content-rendering-succeeded",function(e){var t=Array.from(document.querySelectorAll(".root"));t.length>0&&t.map(function(e){var t=e.querySelectorAll(".product-carousel-el");t.length&&t.forEach(function(e){(0,A.createRoot)(e).render(g.default.createElement(k,e.dataset))})})})};var a=i(n(7424)),s=i(n(434)),o=i(n(861)),l=i(n(6690)),u=i(n(9728)),c=i(n(4993)),d=i(n(3808)),h=i(n(1655)),p=i(n(8416)),f=i(n(456)),m=i(n(840)),g=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,s,o={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return o;if(a=t?i:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((s=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(s.get||s.set)?a(o,l,s):o[l]=e[l]);return o}(e,t)}(n(7294)),v=n(3935),A=n(745);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){(0,p.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return t=(0,d.default)(t),(0,c.default)(e,w()?Reflect.construct(t,n||[],(0,d.default)(e).constructor):t.apply(e,n))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}n(6289);n(4730);var E=n(1602),S=n(7754).cycleTabs,T=n(9061),x=n(2942).getSelectedIndexFromURL,C=n(4430),I=n(6486),M=n(2050).getLocalized,k=function(e){function t(e){var n,i;(0,l.default)(this,t),i=_(this,t,[e]),(0,p.default)(i,"handleModalAnchorClick",function(e){var t=e.target.closest('a[href^="#"]');if(t){var n=t.closest("[data-footnote]"),r=t.closest(".product-carousel_modal");if(n&&r){var a=t.getAttribute("href");document.querySelector(a)&&(e.preventDefault(),i.closeModal())}}}),i.mainElRef=g.default.createRef(),i.skus=Object.entries((null===(n=window.productCarouselJson)||void 0===n?void 0:n.partNumbersList)||window.partNumbersList),i.id=e.id,i.index=x(),i.modalRef=g.default.createRef(),i.maxThumbnailInitialView=8,i.moreThumbnailText=e.moreThumbnailText,i.mediaContainer=g.default.createRef(),i.mediaContainerModal=g.default.createRef(),i.disclaimer=e.disclaimer,i.ariaLabelSection=e.ariaLabelSection,i.ariaLabelNext=e.ariaLabelNext,i.ariaLabelPrevious=e.ariaLabelPrevious,i.ariaLabelClose=e.ariaLabelClose,i.ariaLabelMore=e.ariaLabelMore,i.ariaLabelGoToSlide=e.ariaLabelGoToSlide,i.configuratorConfig=e.configuratorConfig,i.configuratorHash=e.configuratorHash,i.tracker=T,i.carouselName=e.analyticsModule||"",i.zoom,i.defaultDescTextHeight=70,i.trigger,i.backgroundElements=Array.from(document.querySelectorAll(".beats-header, body #main, body footer.footer, .promobar, body #footercontent .footerColumn, body #footercontent .experiencefragment, body > .newsLetter, body div#newsletter, .footnote-section, #maincontent.support, #maincontent > h1")),i.modelViewer=C,i.preventFocusChange=!1,i.model3dHandlers={},i.newAssetIndex=null,i.itemRefs={},i.view3dFromGallery=!1,i.loaded=!1,i.visualSizeIsSquare="true"===(null==e?void 0:e.visualSizeIsSquare);var r=i.skus[i.index],a=r[1].asset||[];(window.locale||"en").toLowerCase().split("_")[0];return i.state={modal:!1,view3dActive:!1,carouselIndex:0,modalIndex:0,selectedSwatch:r,carouselAsset:a[0],modalAsset:a[0],selectedIndexLength:a.length,imgLoadedState:!1,inlineVideoStarted:{},upsellSku:null},requestAnimationFrame(function(){document.body.classList.remove("modal"),i.imgLoaded()}),i.mobileOrTabletMQ=window.matchMedia("(max-width: 1068px)"),i.touchCapableMQ=window.matchMedia("(pointer: coarse)"),i.handleBreakpointChange=function(){return i.force
67Update()},i.addListeners(),i.preload(),i}return(0,h.default)(t,e),(0,u.default)(t,[{key:"registerSwipeActions",value:function(){this.setupDragFollow(this.mediaContainer.current,!1)}},{key:"registerSwipeActionsForModal",value:function(){this.setupDragFollow(this.mediaContainerModal.current,!0)}},{key:"setupDragFollow",value:function(e,t){var n=this;if(e){var i=new m.default(e,{inputClass:m.default.TouchInput,touchAction:"pan-y"}),r=null,a=function(e){var i=n.skus[n.index][1].asset;if(e<0||e>=i.length)return!1;if(!t&&(window.matchMedia("(min-width: 1069px)").matches&&e>=n.maxThumbnailInitialView))return!1;return!0},s=null,o=null,l=function(e){r&&(r.currentEl.style.transform="translate3d(".concat(e,"px, 0, 0)"),r.prevEl&&(r.prevEl.style.transform="translate3d(calc(-100% + ".concat(e,"px), 0, 0)")),r.nextEl&&(r.nextEl.style.transform="translate3d(calc(100% + ".concat(e,"px), 0, 0)")))},u=function(){null!==s&&(cancelAnimationFrame(s),s=null)},c=function(e){e.style.top="",e.style.left="",e.style.right="",e.style.bottom="",e.style.width="",e.style.height=""};i.on("panstart",function(i){if(n.touchCapableMQ.matches&&"x"===(Math.abs(i.deltaX)>Math.abs(i.deltaY)?"x":"y")){var s=t?n.state.modalIndex:n.state.carouselIndex,o=n.itemRefs[n.getItemKey(s,t)];if(o&&(!t||!n.state.view3dActive)){var l={top:o.offsetTop,left:o.offsetLeft,width:o.offsetWidth,height:o.offsetHeight},u=l.width||e.getBoundingClientRect().width,c=function(e){var t=s+e;return a(t)?t:null},d=c(-1),h=c(1),p=null!==d?n.itemRefs[n.getItemKey(d,t)]:null,f=null!==h?n.itemRefs[n.getItemKey(h,t)]:null;r={activeIndex:s,prevIndex:d,nextIndex:h,currentEl:o,prevEl:p,nextEl:f,width:u},[o,p,f].forEach(function(e){e&&(e.setAttribute("data-dragging","true"),e.style.transition="none",function(e,t){e.style.top="".concat(t.top,"px"),e.style.left="".concat(t.left,"px"),e.style.right="auto",e.style.bottom="auto",e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px")}(e,l),e!==o&&(e.removeAttribute("hidden"),e.removeAttribute("inert")))}),p&&(p.style.transform="translate3d(-100%, 0, 0)"),f&&(f.style.transform="translate3d(100%, 0, 0)")}}}),i.on("panmove",function(e){if(r){var t=e.deltaX;t>0&&!r.prevEl&&(t=0),t<0&&!r.nextEl&&(t=0),function(e){o=e,null===s&&(s=requestAnimationFrame(function(){s=null,l(o)}))}(t)}});i.on("panend",function(e){if(r){u();var t=r,i=t.activeIndex,a=t.prevIndex,s=t.nextIndex,o=e.deltaX,d=i;o<0&&null!==s&&Math.abs(o)>20?d=s:o>0&&null!==a&&Math.abs(o)>20&&(d=a);var h=r,p=h.currentEl,f=h.prevEl,m=h.nextEl;[p,f,m].forEach(function(e){e&&(e.style.transition="transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1)")}),l(d===s?-r.width:d===a?r.width:0);var g=r;r=null;var v=d===s?m:d===a?f:p,A=!1,y=function(){if(!A){A=!0;var e=[];[g.currentEl,g.prevEl,g.nextEl].forEach(function(t){t&&t!==v&&(t.style.transform="",t.style.transition="",c(t),t.removeAttribute("data-dragging"),t.setAttribute("hidden",!0),t.setAttribute("inert",""),t.style.display="none",e.push(t))});var t=function(){v.style.transform="",v.style.transition="",c(v),v.removeAttribute("data-dragging"),e.forEach(function(e){e.style.display=""})};d!==i?n.selectImage(d,t):t()}};g.currentEl.addEventListener("transitionend",y,{once:!0}),setTimeout(y,260)}}),i.on("pancancel",function(){u(),r&&[r.currentEl,r.prevEl,r.nextEl].forEach(function(e){e&&(e.style.transform="",e.style.transition="",c(e),e.removeAttribute("data-dragging"),e!==r.currentEl&&(e.setAttribute("hidden",!0),e.setAttribute("inert","")))}),r=null})}}},{key:"addListeners",value:function(){window.addEventListener("update-product-data",this.updateProductData.bind(this)),window.addEventListener("select-swatch",this.handleSelectSwatch.bind(this)),document.addEventListener("click",this.clickOutsideModal.bind(this)),window.beatsVideoManager?window.beatsVideoManager.initialize(this.mainElRef.current):window.beatsVideoManager=E()}},{key:"updateProductData",value:function(e){var t=this;if(e.detail){e.detail.map(function(e){var n=t.skus.findIndex(function(t){return t[0]==e.sku});t.skus[n][1]=I.merge(t.skus[n][1],e.data)});var n=this.skus[this.state.carouselIndex],i=n[1].asset||[];this.disposeAllVideoElements();var r={selectedSwatch:n,carouselAsset:i[0],inlineVideoStarted:{}};this.setState(r);var a={index:this.state.carouselIndex,id:this.id,sku:n},s=new CustomEvent("select-swatch",{detail:a});window.dispatchEvent(s)}}},{key:"addImgSize",value:function(e){var t=e,n=window.innerWidth>=1068?"large":window.innerWidth>=735?"medium":"small";return e.endsWith(".jpg")&&(t="".concat(e,".").concat(n,".2x.jpg")),e.endsWith(".jpeg")&&(t="".concat(e,".").concat(n,".2x.jpg")),e.endsWith(".png")&&(t="".concat(e,".").concat(n,".2x.png")),t}},{key:"preload",value:function(){var e=this,t=this.skus.map(function(t,n){if(t[1].asset){var i,r=[];if(0==n)r=t[1].asset.map(function(t){return e.getPreloadContent(t)[0]});else(i=r).push.apply(i,(0,o.default)(e.getPreloadContent(t[1].asset[0],!1)).concat((0,o.default)(t[1].asset.map(function(e){return e.thumbnail}))));return r}}).flat(2).filter(function(e){return e}),n=new CustomEvent("preload",{detail:{srcs:t}});window.dispatchEvent(n)}},{key:"getPreloadContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],i=this.checkForAssetS
67ource(e);return"3d"==e.type&&e.fallbackImg&&""!=e.fallbackImg?[this.addImgSize(e.fallbackImg)]:(null!=i&&n.push(this.addImgSize(i)),t&&e.thumbnail&&""!=e.thumbnail.trim()&&n.push(e.thumbnail),n)}},{key:"checkForAssetSource",value:function(e){var t,n,i,r,a=null;if(e.src&&""!=(null===(t=e.src)||void 0===t?void 0:t.trim()))a=null===(r=e.src)||void 0===r?void 0:r.trim();else if(e.thumbnail&&""!=(null===(n=e.thumbnail)||void 0===n?void 0:n.trim())){var s;a=null===(s=e.thumbnail)||void 0===s?void 0:s.trim()}else if(e.fallbackImg&&""!=(null===(i=e.fallbackImg)||void 0===i?void 0:i.trim())){var o;a=null===(o=e.fallbackImg)||void 0===o?void 0:o.trim()}return a}},{key:"clickOutsideModal",value:function(e){e.target.classList.contains("modal-screen")&&this.handleClose()}},{key:"selectImage",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.zoom&&(this.zoom.destroy(),this.zoom=null);var r={},a=window.matchMedia("(min-width: 1069px)").matches;if(!(e<0||e>this.skus[this.index][1].asset.length-1||!this.state.modal&&a&&e>this.maxThumbnailInitialView)){var s="image"==this.skus[this.index][1].asset[e].type,o=this.state.modal,l=o?this.state.modalIndex:this.state.carouselIndex;"3d"==this.skus[this.index][1].asset[e].type&&(this.newAssetIndex=this.getItemKey(e,o)),r=o?{imgLoadedState:this.state.modalIndex==e,modalIndex:e,modalAsset:this.skus[this.index][1].asset[e]}:{imgLoadedState:this.state.carouselIndex==e,carouselIndex:e,carouselAsset:this.skus[this.index][1].asset[e]},this.setState(r,function(){var r,a,u,c=n.itemRefs[n.getItemKey(e,o)];null==c||null===(r=c.querySelector("model-viewer"))||void 0===r||r.removeAttribute("user-interacted"),null==c||null===(a=c.querySelector("model-viewer"))||void 0===a||a.removeAttribute("user-interacted-withAR"),n.pauseVideoItem(l,o);var d=n.skus[n.index][1].asset[e];if("video"===d.type&&"looping"===d.videoType?n.playVideoItem(e,o):o&&"video"===d.type&&"inline-user-playback"===d.videoType&&n.playInlineUserPlaybackFromStart(e,o),i&&n.track(),!0!==n.preventFocusChange){var h=(o?n.modalRef.current:n.mainElRef.current).querySelector('[role="tablist"] [tabindex="0"]');h&&h.focus()}n.preventFocusChange=!1,s?null!=c&&null!==(u=c.querySelector("img"))&&void 0!==u&&u.complete&&n.imgLoaded():requestAnimationFrame(function(){n.imgLoaded()}),t&&requestAnimationFrame(t)})}}},{key:"disposeVideoElement",value:function(e){var t=(null==e?void 0:e.querySelectorAll("video-js"))||[];t.forEach(function(e){return window.beatsVideoManager.disposeVideo(e.id)}),t.length&&window.beatsVideoManager.removeSupportElements(e)}},{key:"disposeAllVideoElements",value:function(){this.disposeVideoElement(this.modalRef.current),this.disposeVideoElement(this.mainElRef.current)}},{key:"getItemKey",value:function(e,t){return"".concat(t?"modal":"main","-").concat(e)}},{key:"startInlineUserPlayback",value:function(e){this.state.inlineVideoStarted[e]||this.setState({inlineVideoStarted:b(b({},this.state.inlineVideoStarted),{},(0,p.default)({},e,!0))})}},{key:"playInlineUserPlaybackFromStart",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getItemKey(e,t),a=function(e){var t=e.closest(".video-block"),n=null==t?void 0:t.querySelector("picture");n&&(n.style.display="none",n.style.zIndex=0),e.style.display="block";var i=e.closest(".video-ratio-parent"),r=e.querySelector("video");if(i&&r&&r.videoWidth&&r.videoHeight){var a="".concat(r.videoWidth," / ").concat(r.videoHeight);i.style.aspectRatio=a,e.style.aspectRatio=a,e.style.height="auto",e.style.paddingTop="0px",e.style.maxHeight="100%"}},s=function(){var s=n.itemRefs[r],o=null==s?void 0:s.querySelector("video-js"),l=null==o?void 0:o.player;if(l&&!l.isDisposed()){l.isPausedByUser=!1,l.currentTime(0);var u=l.play();null!=u&&u.then?u.then(function(){return a(o)}).catch(function(){}):a(o)}else i<30&&requestAnimationFrame(function(){return n.playInlineUserPlaybackFromStart(e,t,i+1)})};this.state.inlineVideoStarted[r]?s():this.setState({inlineVideoStarted:b(b({},this.state.inlineVideoStarted),{},(0,p.default)({},r,!0))},function(){return requestAnimationFrame(s)})}},{key:"pauseVideoItem",value:function(e,t){var n,i=this.itemRefs[this.getItemKey(e,t)],r=null==i||null===(n=i.querySelector("video-js"))||void 0===n?void 0:n.player;r&&!r.isDisposed()&&r.pause()}},{key:"playVideoItem",value:function(e,t){var n=this.itemRefs[this.getItemKey(e,t)],i=null==n?void 0:n.querySelector("video-js"),r=null==i?void 0:i.player;if(r&&!r.isDisposed()){var a=function(){var e=i.closest(".video-block"),t=null==e?void 0:e.querySelector("picture");t&&(t.style.display="none",t.style.zIndex=0),i.style.display="block";var n=i.closest(".video-ratio-parent"),r=i.querySelector("video");if(n&&r&&r.videoWidth&&r.videoHeight){var a="".concat(r.videoWidth," / ").concat(r.videoHeight);n.style.aspectRatio=a,i.style.aspectRatio=a,i.style.height="auto",i.style.paddingTop="0px",i.style.maxHeight="100%"}};r.isPausedByUser=!1,r.currentTime(0);var s=r.play();null!=s&&s.then?s.then(a).catch(function(){}):a()}}},{key:"pauseAllVideoElements",value:function(e){((null==e?void 0:e.querySelectorAll("video-js"))||[]).forEac
67h(function(e){var t=e.player;t&&!t.isDisposed()&&t.pause()})}},{key:"selectImageOnControls",value:function(e,t){if(!(t&&this.state.modal&&this.state.view3dActive)){t&&document.body.classList.add("using-mouse");var n=this.state.modal?this.state.modalIndex:this.state.carouselIndex;if(this.state.modal)e?this.selectImage(n+1):this.selectImage(n-1);else if(e){if(window.matchMedia("(min-width: 1069px)").matches&&!this.state.modal&&this.state.carouselIndex>=this.maxThumbnailInitialView)return;var i=n+1;this.selectImage(i)}else{var r=n-1;this.selectImage(r)}}}},{key:"handleSelectSwatch",value:function(e){var t=this;if(this.id===e.detail.id){this.index=e.detail.index;var n=this.state.carouselIndex<this.skus[this.index][1].asset.length?this.state.carouselIndex:0;this.disposeAllVideoElements(),this.view3dFromGallery=!1,this.setState({modal:!1,view3dActive:!1,imgLoadedState:this.state.selectedSwatch[0]==this.skus[this.index][0],carouselIndex:n,modalIndex:n,selectedSwatch:this.skus[this.index],carouselAsset:this.skus[this.index][1].asset[n],modalAsset:this.skus[this.index][1].asset[n],selectedIndexLength:this.skus[this.index][1].asset.length,inlineVideoStarted:{}},function(){var e,i=t.state.selectedSwatch[1].asset.slice(1),r=[];i.map(function(e){r.push.apply(r,(0,o.default)(t.getPreloadContent(e)))});var a=new CustomEvent("preload",{detail:{srcs:r}});window.dispatchEvent(a);var s="image"==t.skus[t.index][1].asset[n].type,l=t.itemRefs[t.getItemKey(n,!1)];null==l||null===(e=l.querySelector("model-viewer"))||void 0===e||e.removeAttribute("user-interacted"),s||requestAnimationFrame(function(){t.imgLoaded()})})}}},{key:"openModal",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.state.modal){this.trigger=e.currentTarget,this.updateBackgroun
67dElements(!0);var r=void 0!==t?t:this.state.carouselIndex,a=this.skus[this.index][1].asset[r];i&&"3d"===a.type&&(this.newAssetIndex=this.getItemKey(r,!0)),this.view3dFromGallery=!1,this.setState({modal:!0,view3dActive:i,modalIndex:r,modalAsset:a},function(){document.body.classList.add("modal"),document.body.classList.add("modal-screen"),document.documentElement.classList.add("noscroll","modal-open"),"video"===a.type&&"looping"===a.videoType?n.playVideoItem(r,!0):"video"===a.type&&"inline-user-playback"===a.videoType&&n.playInlineUserPlaybackFromStart(r,!0),setTimeout(function(){n.modalRef.current.focus()},400)})}}},{key:"is3dInteractive",value:function(){return"3d"===this.state.modalAsset.type&&this.state.view3dActive}},{key:"enterView3d",value:function(e,t){var n=this;null==e||e.stopPropagation();var i=void 0!==t?t:this.state.carouselIndex;this.state.modal?(this.newAssetIndex=this.getItemKey(i,!0),this.view3dFromGallery=!0,this.setState({view3dActive:!0,imgLoadedState:!1,modalIndex:i,modalAsset:this.skus[this.index][1].asset[i]},function(){requestAnimationFrame(function(){n.imgLoaded()})})):this.openModal(e,i,!0)}},{key:"openModalForInlineVideo",value:function(e,t){this.state.modal||this.openModal(e,t)}},{key:"closeModal",value:function(){var e=this;this.zoom&&this.zoom.destroy(),this.pauseAllVideoElements(this.modalRef.current),this.updateBackgroun
67dElements(),this.view3dFromGallery=!1,this.setState({modal:!1,view3dActive:!1},function(){document.body.classList.remove("modal"),document.body.classList.remove("modal-screen"),document.documentElement.classList.remove("noscroll","modal-open"),e.trigger&&e.trigger.focus()})}},{key:"exitView3d",value:function(){var e=this;this.view3dFromGallery=!1,this.setState({view3dActive:!1,imgLoadedState:!1},function(){var t;requestAnimationFrame(function(){e.imgLoaded()});var n,i=null===(t=e.modalRef.current)||void 0===t?void 0:t.querySelector('[role="tablist"] [tabindex="0"]');i?i.focus():null===(n=e.modalRef.current)||void 0===n||n.focus()})}},{key:"handleClose",value:function(){this.state.view3dActive&&this.view3dFromGallery?this.exitView3d():this.closeModal()}},{key:"carouselKeyDown",value:function(e){var t,n=this.state.modal?this.state.modalIndex:this.state.carouselIndex;switch(e.key){case"Escape":case"Esc":this.handleClose();break;case"Tab":this.state.modal&&S(e,this.modalRef.current);break;case"ArrowLeft":case"ArrowUp":e.preventDefault(),t=Math.max(n-1,0),this.selectImage(t);break;case"ArrowRight":case"ArrowDown":e.preventDefault(),t=Math.min(n+1,this.state.selectedSwatch[1].asset.length),this.selectImage(t);break;case"Home":this.selectImage(0);break;case"End":this.selectImage(this.state.selectedSwatch[1].asset.length)}}}
67,{key:"updateBackgroundElements",value:function(e){this.backgroundElements.map(function(t){e?(t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),t.setAttribute("inert","true")):(t.removeAttribute("aria-hidden"),t.removeAttribute("tabindex"),t.removeAttribute("inert"))})}},{key:"track",value:function(){var e=this.state.modal?this.state.modalIndex+1:this.state.carouselIndex+1,t=this.state.modal?this.state.modalAsset.analyticsSlideName:this.state.carouselAsset.analyticsSlideName,n=this.state.modal?"|modal":"";this.tracker.track({type:"carouselClick",data:{carouselName:"".concat(this.carouselName,"|").concat(e,"|").concat(t).concat(n)}})}},{key:"trackMore",value:function(e){this.tracker.track({type:"carouselClick",data:{carouselName:"".concat(this.carouselName,"|").concat(e+1,"|more")}})}},{key:"imgLoaded",value:function(){this.setState({imgLoadedState:!0})}},{key:"renderExtraThumbnail",value:function(){var e=this;if(this.state.selectedSwatch[1].asset.length>this.maxThumbnailInitialView+1)return g.default.createElement("div",{className:"product-thumbnail extra-thumbnail"},g.default.createElement("button",{type:"button",onClick:function(t){e.selectImage(e.maxThumbnailInitialView+1),e.openModal(t,e.maxThumbnailInitialView+1),e.trackMore(e.maxThumbnailInitialView+1)},"aria-haspopup":"dialog","aria-controls":"product-modal","aria-label":M("exploreMoreFeatures","Explore More Features")},g.default.createElement("img",{src:this.state.selectedSwatch[1].asset[this.maxThumbnailInitialView+1].thumbnail,alt:this.state.selectedSwatch[1].asset[this.maxThumbnailInitialView+1].altText}),g.default.createElement("span",null,"+ ",this.state.selectedSwatch[1].asset.length-(this.maxThumbnailInitialView+1)," ",this.moreThumbnailText)))}},{key:"renderProductControlsLeft",value:function(){var e=this;if(!this.is3dInteractive()||!this.state.modal){var t=this.state.modalIndex<=0;return g.default.createElement("button",{className:"product-carousel__control product-carousel__control--previous",disabled:!!t||null,"data-index":this.state.modalIndex,type:"button","aria-label":M("prevSlide","Previous Slide"),onClick:function(){e.preventFocusChange=!0,e.selectImageOnControls(!1)}},g.default.createElement("i",{className:"fa fa-chevron-left notranslate"}))}}},{key:"renderProductControlsRight",value:function(){var e=this;if(!this.is3dInteractive()||!this.state.modal){var t=this.state.selectedSwatch[1].asset,n=this.state.modalIndex>=t.length-1;return g.default.createElement("button",{className:"product-carousel__control product-carousel__control--next",disabled:!!n||null,"data-index":this.state.modalIndex,type:"button","aria-label":M("nextSlide","Next Slide"),onClick:function(){e.preventFocusChange=!0,e.selectImageOnControls(!0)}},g.default.createElement("i",{className:"fa fa-chevron-right notranslate"}))}}},{key:"renderProductControlsClose",value:function(){var e=this;return g.default.createElement("button",{className:"product-carousel__control product-carousel__control--close",onClick:function(){e.handleClose()},type:"button","aria-label":this.ariaLabelClose},g.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12.02 12"},g.default.createElement("path",{d:"M7,6l4.84-4.83a0.68,0.68,0,0,0-1-1L6,5,1.17,0.2a0.68,0.68,0,0,0-1,1L5,6,0.2,10.83a0.68,0.68,0,1,0,1,1L6,7l4.83,4.83a0.68,0.68,0,1,0,1-1Z",fill:"#161616",stroke:"#161616",strokeWidth:"1"})))}},{key:"renderView3dButton",value:function(e,t){var n=this;return"3d"===e.type&&e.initText3d?g.default.createElement("div",{className:"product-image__view-3d ".concat(this.state.imgLoadedState?"loaded":""),onClick:function(e){return n.enterView3d(e,t)},role:"button",tabIndex:"0","data-analytics-click":!0,"data-analytics-label":e.analyticsSlideName,onKeyPress:function(e){"Enter"!==e.key&&" "!==e.key||n.enterView3d(e,t)}},g.default.createElement("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M11.3088 3.13666C11.4627 3.0197 11.4926 2.80013 11.3756 2.64623L9.46962 0.138323C9.35265 -0.0155747 9.13308 -0.0455163 8.97918 0.0714467C8.82528 0.18841 8.79534 0.407985 8.9123 0.561883L10.6065 2.79113L8.37729 4.48537C8.2234 4.60233 8.19345 4.82191 8.31042 4.97581C8.42738 5.
6712971 8.64696 5.15965 8.80085 5.04268L11.3088 3.13666ZM0.779871 6.85801L1.06785 6.65909C0.818817 6.29856 0.662901 5.82715 0.707808 5.35187C0.751596 4.88843 0.988887 4.38838 1.58737 3.95371C2.195 3.51239 3.18296 3.13432 4.72098 2.9637C6.2563 2.79337 8.31763 2.83225 11.0497 3.2048L11.097 2.85801L11.1443 2.51122C8.3763 2.13378 6.25407 2.08933 4.6438 2.26796C3.03623 2.4463 1.91655 2.84948 1.17601 3.38733C0.426322 3.93182 0.0748942 4.60885 0.0109116 5.28603C-0.0519528 5.95137 0.165308 6.58412 0.491893 7.05693L0.779871 6.85801Z",fill:"currentColor"}),g.default.createElement("path",{d:"M2.88509 8.5794C2.73119 8.69636 2.70125 8.91594 2.81821 9.06984L4.72423 11.5777C4.84119 11.7316 5.06077 11.7616 5.21467 11.6446C5.36857 11.5277 5.39851 11.3081 5.28154 11.1542L3.58731 8.92493L5.81655 7.23069C5.97045 7.11373 6.00039 6.89415 5.88343 6.74026C5.76647 6.58636 5.54689 6.55642 5.39299 6.67338L2.88509 8.5794ZM13.414 4.85806L13.126 5.05697C13.375 5.4175 13.5309 5.88891 13.486 6.36419C13.4423 6.82764 13.205 7.32769 12.6065 7.76236C11.9988 8.20367 11.0109 8.58174 9.47287 8.75237C7.93755 8.92269 5.87622 8.88381 3.14416 8.51126L3.09687 8.85806L3.04958 9.20485C5.81754 9.58229 7.93977 9.62674 9.55005 9.4481C11.1576 9.26976 12.2773 8.86658 13.0178 8.32874C13.7675 7.78424 14.119 7.10721 14.1829 6.43004C14.2458 5.7647 14.0285 5.13194 13.702 4.65914L13.414 4.85806Z",fill:"currentColor"})),g.default.createElement("div",{dangerouslySetInnerHTML:{__html:e.initText3d}})):null}},{key:"renderMainAssets",value:function(){var e=this,t=this.state.selectedSwatch[0],n=this.state.selectedSwatch[1].asset,i=this.state.carouselIndex,r=!1,a=n.map(function(n,a){var o=a===i;return g.default.createElement("div",{key:"".concat(t,"-").concat(a),className:"product-carousel__main ".concat(o?"active":"","\n          ").concat("image"===n.type&&!0===n.lifestyle?"product-carousel__main--no-padding":"","\n          ").concat(["video","3d"].includes(n.type)?"product-carousel__main--no-side-padding":"","\n          "),"aria-hidden":o?"false":"true",hidden:!o||void 0,inert:o?void 0:"",role:"tabpanel","aria-label":n.altText,ref:function(t){e.itemRefs[e.getItemKey(a,r)]=t}},g.default.createElement("div",(0,s.default)({className:"product-main__inner ".concat("3d"===n.type?"full-size":""," ").concat(n.lifestyle?"talent-full-size":""),tabIndex:"0",role:"button","aria-label":"image"!==n.type?n.ariaLabel:M("previewImage","Preview Image")+": "+n.altText,onKeyPress:function(t){"Enter"!==t.key&&" "!==t.key||(["image","3d"].includes(n.type)?e.openModal(t,a):e.openModalForInlineVideo(t,a))},onClick:function(t){["image","3d"].includes(n.type)?e.openModal(t,a):e.openModalForInlineVideo(t,a)},"data-analytics-click":!0,"data-analytics-label":null==n?void 0:n.analyticsSlideName},"video"===n.type?{"data-analytics-video":""}:{}),g.default.createElement("div",{className:"\n            ".concat("image"===n.type?"product-image":"3d"===n.type?"product-3d":"product-video","\n            ").concat(n.overlay||"3d"===n.type&&!n.lifestyle?"product-image--overlay":"","\n            ").concat(e.state.upsellSku&&a===e.getUpsellCarouselPosition()&&"image"===n.type?"product-image--upsell-active":"","\n            ")},e.renderAsset(n,a,r,o))),!e.isUpsellComboForAsset(n,a)&&g.default.createElement("div",{className:"product-image__text-container",onClick:function(t){["image","3d"].includes(n.type)?e.openModal(t,a):e.openModalForInlineVideo(t,a)}},("3d"!==n.type||e.state.modal)&&(n.textTitle||n.textDesc)&&g.default.createElement("div",{className:"product-image__text product-image__text--overlay loaded ".concat("left"===n.captionAlignment?"product-main__image-caption talent-caption talent-caption--left":"right"===n.captionAlignment?"product-main__image-caption talent-caption talent-caption--right":"product-main__image-caption")},g.default.createElement("div",{className:"product-image__text-inner"},n.textTitle&&g.default.createElement("strong",{dangerouslySetInnerHTML:{__html:n.textTitle}}),n.textDesc&&g.default.createElement("p",{dangerouslySetInnerHTML:{__html:n.textDesc}}))),!e.state.modal&&e.renderView3dButton(n,a)),g.default.createElement("div",{className:"product-image__disclaimer",dangerouslySetInnerHTML:{__html:"3d"===n.type?"":e.disclaimer}}
67),e.state.upsellSku&&a===e.getUpsellCarouselPosition()&&!0!==n.lifestyle&&"true"!==n.lifestyle&&"video"!==n.type&&"3d"!==n.type&&g.default.createElement("div",{className:"upsell-combo-overlay"},g.default.createElement("span",{className:"upsell-combo-overlay__plus"},"+"),e.state.upsellSku[1].addOnImage||e.state.upsellSku[1].imgSrc?e.renderUpsellComboImage():g.default.createElement("div",{className:"upsell-combo-overlay__cushion",style:{backgroundColor:e.state.upsellSku[1].background},"aria-label":"".concat(e.state.upsellSku[1].variant," Cushion Kit")})))});return requestAnimationFrame(function(){var e=new CustomEvent("generate-footnotes");document.dispatchEvent(e)}),a}},{key:"renderModalAssets",value:function(){var e=this,t=this.state.selectedSwatch[0],n=this.state.selectedSwatch[1].asset,i=this.state.modalIndex,r=!0,a=n.map(function(n,a){var s=a===i;return g.default.createElement("div",{key:"".concat(t,"-").concat(a),className:"product-carousel__main ".concat(s?"active":"","\n          ").concat("image"===n.type&&!0===n.lifestyle?"product-carousel__main--no-padding":"","\n          ").concat("video"===n.type?"product-carousel__main--no-side-padding":"","\n          "),"aria-hidden":s?"false":"true",hidden:!s||void 0,inert:s?void 0:"",role:"tabpanel","aria-label":n.altText,ref:function(t){e.itemRefs[e.getItemKey(a,r)]=t}},g.default.createElement("div",{className:"product-main__inner ".concat("3d"===n.type?"full-size":""," ").concat(n.lifestyle&&"3d"===n.type?"talent-full-size":"")},g.default.createElement("div",{className:"\n            ".concat("image"===n.type?"product-image":"3d"===n.type?"product-3d":"product-video","\n            ").concat(n.overlay||"3d"===n.type&&!n.lifestyle?"product-image--overlay":"","\n            zoom-container\n            ")},e.renderAsset(n,a,r,s)),(n.textTitle||n.textDesc)&&g.default.createElement("div",{className:"product-image__text product-image__text--gallery ".concat(e.state.imgLoadedState?"loaded":"")},n.textTitle&&g.default.createElement("strong",{dangerouslySetInnerHTML:{__html:n.textTitle}}),g.default.createElement("br",null),n.textDesc&&g.default.createElement("p",{dangerouslySetInnerHTML:{__html:n.textDesc}})),!e.state.view3dActive&&e.renderView3dButton(n,a)),g.default.createElement("div",{className:"product-image__disclaimer",dangerouslySetInnerHTML:{__html:e.disclaimer}}))});return requestAnimationFrame(function(){var e=new CustomEvent("generate-footnotes");document.dispatchEvent(e)}),a}},{key:"getImageExtension",value:function(e){var t=e.slice(e.lastIndexOf(".")+1);return"jpeg"==t&&(t="jpg"),t}},{key:"renderUpsellComboImage",value:function(){var e=this.state.upsellSku[1],t=e.addOnImage||e.imgSrc,n=this.getImageExtension(t),i="".concat(t,".large.2x.").concat(n);return g.default.createElement("picture",{className:"beats-picture upsell-combo-overlay__cushion-picture"},g.default.createElement("source",{media:"(min-width: 1069px)",srcSet:i}),g.default.createElement("source",{media:"(min-width: 735px) and (max-width: 1068px)",srcSet:"".concat(t,".medium.2x.").concat(n)}),g.default.createElement("source",{media:"(max-width: 734px)",srcSet:"".concat(t,".small.2x.").concat(n)}),g.default.createElement("img",{className:"upsell-combo-overlay__cushion-img",src:i,srcSet:i,alt:e.addOnImageAlt||e.altText||"".concat(e.variant," Cushion Kit"),"data-resp-exclude":!0}))}},{key:"renderAsset",value:function(e,t,n,i){var r,a=this,o=["image","3d"].includes(e.type)?e.type:e.videoType,l="image"==e.type?this.getImageExtension(e.src):"",u=this.getItemKey(t,n),c="".concat(this.state.selectedSwatch[0]).concat(t);switch(requestAnimationFrame(function(){var r,s=a.itemRefs[u];if(s){if("3d"==o&&n){var l=s.querySelector("model-viewer");if(l&&!l.dataset.interactionBound){var c;l.dataset.interactionBound="true",a.modelViewer.userInteraction(l,a.mainElRef.current);var d=null===(c=l.shadowRoot)||void 0===c?void 0:c.querySelector("#default-ar-button");d&&a.modelViewer.arInteraction(d,a.mainElRef.current)}i&&a.update3d(s,e,t,n)}else if("image"!=o&&"3d"!=o){s.querySelectorAll(".video-block").length&&(window.beatsVideoManager.initialize(s),i&&"looping"===o?a.playVideoItem(t,n):i||a.pauseVideoItem(t,n))}else if("image"===e.type&&n&&i){var h=s.querySelector(".zoom");h&&!h.classList.contains("zoom-initialized")&&(a.zoom=new f.default(h))}var p=s.querySelector(".video-ratio-parent");!p||null!==(r=p.querySelector("video-js"))&&void 0!==r&&r.player||(p.style.removeProperty("aspect-ratio"),p.removeAttribute("data-video-initialized"))}}),o){case"image":return g.default.createElement("div",{className:"image-block"},g.default.createElement("picture",{className:"beats-picture"},g.default.createElement("source",{media:"(min-width: 1069px)",srcSet:"".concat(e.src,".large.2x.").concat(l)}),g.default.createElement("source",{media:"(min-width: 735px) and (max-width: 1068px)",srcSet:"".concat(e.src,".medium.2x.").concat(l)}),g.default.createElement("source",{media:"(max-width: 734px)",srcSet:"".concat(e.src,".small.2x.").concat(l)}),g.default.createElement("img",{className:"bbd-media-image ".concat(n?"zoom":""),onLoad:function(e){return i?a.imgLoaded():null},key:e.src+this.state.selectedSwatch[0]+c,"data-zoom-contained":n?"true":null,src:"".concat(e.src,".large.2x.").concat(l),srcSet:"".concat(e.src,".large.2x.").concat(l),alt:e.altText,"data-resp-exclude":!0})));case"3d":var d={};return!1!==e.ar&&(d.ar=!0),n&&this.state.view3dActive?g.default.createElement("div",{className:"image-block asset-3d-container",onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){return e.stopPropagation()}},g.default.createElement("model-viewer",(0,s.default)({className:"asset-3d","data-aria-label":e.arialLabel,"aria-label":null===(r=e.arialLabel)||void 0===r?void 0:r.replace(/<[^>]*>/g,""),alt:e.altText,src:e.src+"?".concat(c),"ios-src":e.iosSrc,poster:e.fallbackImg,"camera-orbit":e.cameraOrbitText?e.cameraOrbitText:"0deg 75deg 105%","item-name":e.analyticsSlideName},d,{"ar-scale":"fixed",loading:"eager","disable-tap":!0,"disable-pan":!0,"shadow-intensity":"1",exposure:e.exposure||"1","environment-image":e.environmentImage,"tone-mapping":e.toneMapping,"camera-controls":!0,"touch-action":"none"}),g.default.createElement("button",{slot:"ar-button",className:"asset-3d__ar"},g.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g.default.createElement("path",{d:"M10.3092 6.79446C10.1992 6.59325 9.94825 6.51858 9.74705 6.62851L8.00469 7.57644C8.00469 7.57644 7.98602 7.5
677437 7.97565 7.57437C7.96943 7.57437 7.96528 7.57437 7.95906 7.57437L6.21462 6.62229C6.01342 6.51236 5.76243 6.58703 5.6525 6.78823C5.54256 6.98943 5.61724 7.24042 5.81844 7.35035L7.56288 8.30243V10.2501C7.56288 10.4783 7.74956 10.665 7.97772 10.665C8.20589 10.665 8.39257 10.4783 8.39257 10.2501V8.31073L10.1453 7.35657C10.3465 7.24664 10.4212 6.99566 10.3112 6.79446H10.3092Z",fill:"black"}),g.default.createElement("path",{d:"M10.1515 0.938859L8.95676 0.248137C8.34693 -0.0837421 7.6168 -0.0837421 6.99867 0.254359L5.80806 0.945082C5.60893 1.05917 5.54255 1.3143 5.65664 1.51135C5.73338 1.6441 5.87236 1.71877 6.01548 1.71877C6.086 1.71877 6.1586 1.70011 6.2229 1.66277L7.40522 0.97827C7.45501 0.951305 7.50894 0.928488 7.56079 0.907746V3.13756C7.56079 3.36572 7.74747 3.5524 7.97564 3.5524C8.20381 3.5524 8.39049 3.36572 8.39049 3.13756V0.901523C8.44442 0.922265 8.49835 0.945082 8.5502 0.972047L9.73667 1.65655C9.9358 1.77063 10.1889 1.70218 10.3029 1.50513C10.417 1.306 10.3506 1.05294 10.1515 0.938859Z",fill:"black"}),g.default.createElement("path",{d:"M10.3029 14.4962C10.1889 14.297 9.93372 14.2286 9.73667 14.3448L8.56058 15.023C8.50457 15.0521 8.44857 15.077 8.39049 15.0977V12.8637C8.39049 12.6356 8.20381 12.4489 7.97564 12.4489C7.74747 12.4489 7.56079 12.6356 7.56079 12.8637V15.0936C7.51101 15.0749 7.46123 15.0521 7.41352 15.0272L6.2229 14.3385C6.02585 14.2244 5.77072 14.2908 5.65664 14.49C5.54255 14.6891 5.60893 14.9421 5.80806 15.0562L7.00697 15.7511C7.31188 15.917 7.64583 16 7.97979 16C8.31374 16 8.65392 15.915 8.96505 15.7469L10.1515 15.0624C10.3506 14.9484 10.417 14.6953 10.3029 14.4962Z",fill:"black"}),g.default.createElement("path",{d:"M15.4406 4.98165V4.95883C15.3991 4.25981 15.0195 3.63961 14.4242 3.30358L13.244 2.62116C13.0449 2.50707 12.7918 2.57345 12.6777 2.77258C12.5636 2.9717 12.63 3.22476 12.8291 3.33885L14.0135 4.02335C14.0965 4.07105 14.1733 4.12913 14.2417 4.19343L12.3044 5.243C12.1032 5.35294 12.0285 5.60392 12.1363 5.80512C12.211 5.94409 12.3541 6.02292 12.5014 6.02292C12.5678 6.02292 12.6362 6.00632 12.6985 5.97313L14.6047 4.94016C14.6047 4.95883 14.6109 4.9775 14.6109 4.99617L14.6151 6.35687C14.6151 6.58504 14.8017 6.76964 15.0299 6.76964C15.2581 6.76964 15.4448 6.58296 15.4427 6.35272L15.4385 4.98165H15.4406Z",fill:"black"}),g.default.createElement("path",{d:"M3.64248 5.20967L1.73625 4.16632C1.79848 4.11239 1.86278 4.06261 1.93745 4.02113L3.10732 3.34492C3.30645 3.23084 3.37283 2.97571 3.25874 2.77865C3.14466 2.57953 2.88953 2.51315 2.69247 2.62723L1.52468 3.30136C0.92522 3.63947 0.545633 4.25966 0.504149 4.95868L0.5 6.35257C0.5 6.58074 0.684608 6.76742 0.912774 6.7695C1.14094 6.7695 1.32762 6.58489 1.32762 6.35672L1.33177 4.99602C1.33385 4.96283 1.34007 4.93172 1.34422 4.9006L3.24422 5.9398C3.30645 5.97506 3.3749 5.99166 3.44335 5.99166C3.59062 5.99166 3.73167 5.91284 3.80842 5.77594C3.91835 5.57473 3.84368 5.32375 3.64248 5.21381V5.20967Z",fill:"black"}),g.default.createElement("path",{d:"M15.0341 9.21924C14.8059 9.21924 14.6192 9.40384 14.6192 9.63409L14.6151 10.9948C14.6151 11.0135 14.6109 11.0321 14.6089 11.0508L12.7026 10.0178C12.5014 9.90789 12.2505 9.98463 12.1405 10.1858C12.0306 10.387 12.1053 10.6401 12.3085 10.748L14.2459 11.7975C14.1774 11.8639 14.1007 11.922 14.0156 11.9697L12.8354 12.65C12.6363 12.7641 12.5678 13.0172 12.684 13.2163C12.7607 13.3491 12.8997 13.4237 13.0428 13.4237C13.1133 13.4237 13.1839 13.4051 13.2502 13.3677L14.4284 12.6894C15.0279 12.3513 15.4075 11.7311 15.4489 11.0321L15.4531 9.63824C15.4531 9.41007 15.2685 9.22339 15.0382 9.22339L15.0341 9.21924Z",fill:"black",role:"tab","aria-selected":"false"})),g.default.createElement("span",null,e.arText)),e.helperText&&g.default.createElement("div",{className:"annotation__helper",dangerouslySetInnerHTML:{__html:e.helperText}}))):g.default.createElement("div",{className:"image-block asset-3d-container"},g.default.createElement("picture",{className:"beats-picture"},g.default.createElement("img",{className:"bbd-media-image",src:e.fallbackImg,alt:e.altText,"data-resp-exclude":!0})));case"looping":return g.default.createElement("div",{className:"beats-video-block looping-block"},g.default.createElement("div",{className:"video-ratio-parent product-carou
67sel__item__inner video-block"},g.default.createElement("picture",{className:"beats-picture"},g.default.createElement("source",{media:"(min-width: 1069px)",srcSet:e.fallbackImg}),g.default.createElement("source",{media:"(min-width: 735px) and (max-width: 1068px)",srcSet:e.fallbackImg}),g.default.createElement("source",{media:"(max-width: 734px)",srcSet:e.fallbackImg}),g.default.createElement("img",{className:"bbd-media-image",src:e.fallbackImg,srcSet:e.fallbackImg,alt:e.altText,"data-resp-exclude":""})),g.default.createElement("beats-video",{"data-video-type":"looping","data-btn-color":e.btnColor,"data-aria-label":e.ariaLabel},g.default.createElement("source",{"data-desktop-mp4-src":e.videoSrc.mp4,type:e.videoSrc&&"hvc1"==e.videoSrc.codec_tag_string?'video/mp4; codecs="hvc1"':"video/mp4"}),g.default.createElement("source",{"data-desktop-webm-src":e.videoSrc.webm,type:"video/webm"}))));case"inline-user-playback":var h=!!this.state.inlineVideoStarted[u];return g.default.createElement("div",{className:"beats-video-block inline-user-playback-block"},g.default.createElement("div",{className:"video-ratio-parent product-carousel__item__inner ".concat(h?"video-block":""),"data-analytics-video":!0},g.default.createElement("picture",{className:"beats-picture"},g.default.createElement("source",{media:"(min-width: 1069px)",srcSet:e.fallbackImg}),g.default.createElement("source",{media:"(min-width: 735px) and (max-width: 1068px)",srcSet:e.fallbackImg}),g.default.createElement("source",{media:"(max-width: 734px)",srcSet:e.fallbackImg}),g.default.createElement("img",{className:"bbd-media-image is-visible",src:e.fallbackImg,srcSet:e.fallbackImg,alt:e.altText,"data-resp-exclude":""})),h&&g.default.createElement(g.default.Fragment,null,g.default.createElement("beats-video",{"data-autoplay":"true","data-video-type":"inline-user-playback","data-analytics-label":e.analyticsLabel,"data-btn-color":e.btnColor,"data-last-frame":e.lastFrame,"data-aria-label":e.ariaLabel,"data-video-length":e.videoLength},g.default.createElement("source",{"data-desktop-mp4-src":e.videoSrc.mp4,type:e.videoSrc&&"hvc1"==e.videoSrc.codec_tag_string?'video/mp4; codecs="hvc1"':"video/mp4"}),g.default.createElement("source",{"data-desktop-webm-src":e.videoSrc.webm,type:"video/webm"})),g.default.createElement("beats-video-track",{"auto-enable-caption":e.videoSrc.autoEnableCaption,tabIndex:"-1","aria-hidden":"true","caption-path":e.videoSrc.caption,"transcript-path":e.videoSrc.transcript})),!h&&g.default.createElement("div",{className:"video__play","data-btn-color":e.btnColor,role:"button",tabIndex:"0","aria-label":e.ariaLabel,onClick:function(e){n&&(e.stopPropagation(),a.startInlineUserPlayback(u))},onKeyDown:function(e){!n||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),a.startInlineUserPlayback(u))}})))}}},{key:"update3d",value:function(e,t,n,i){var r=this;requestAnimationFrame(function(){var s=null==e?void 0:e.querySelector("model-viewer");if(s){var o=r.getItemKey(n,i);if(r.newAssetIndex===o&&(s.resetInteractionPrompt(),r.newAssetIndex=null),"true"==t.autoPlay?s.autoplay=!0:(s.autoplay=!1,s.pause(),s.currentTime=0),r.model3dHandlers[o]?s.removeEventListener("load",r.model3dHandlers[o]):r.load3d(t,s),r.model3dHandlers[o]=r.load3d.bind(r,t,s),s.addEventListener("load",r.model3dHandlers[o]),s.model&&t.color)(0,a.default)(s.model.materials,1)[0].pbrMetallicRoughness.setBaseColorFactor(t.color)}})}},{key:"load3d",value:function(e,t){(t.cameraOrbit=e.cameraOrbitText?e.cameraOrbitText:"0deg 75deg 105%",t.fieldOfView="auto","true"==e.autoPlay?t.autoplay=!0:(t.autoplay=!1,t.pause(),t.currentTime=0),t.model&&e.color)&&(0,a.default)(t.model.materials,1)[0].pbrMetallicRoughness.setBaseColorFactor(e.color)}},{key:"getUpsellCarouselPosition",value:function(){var e,t;return null!==(e=null===(t=window.productCarouselJson)||void 0===t?void 0:t.addOnCarouselPosition)&&void 0!==e?e:0}},{key:"isUpsellOverlayEligible",value:function(e){return!!e&&"image"===e.type&&!0!==e.lifestyle&&"true"!==e.lifestyle}},{key:"isConfiguratorEnabled",value:function(e){return!!e&&(!0===e.enableConfigurator||"true"===e.enableConfigurator)}},{key:"isUpsellComboForAsset",value:function(e,t){return!!this.state.upsellSku&&t===this.getUpsellCarouselPosition()&&this.isUpsellOverlayEligible(e)}},{key:"isUpsellComboActive",value:function(){return this.isUpsellComboForAsset(this.state.carouselAsset,this.state.carouselIndex)}},{key:"componentDidMount",value:function(){var e=this;this.registerSwipeActions(),this.registerSwipeActionsForModal(),document.addEventListener("click",this.handleModalAnchorClick,!0),this.mobileOrTabletMQ.addEventListener("change",this.handleBreakpointChange),this.handleUpsellSwatch=function(t){var n=t.detail,i=n.isNone,r=n.sku;if(e.setState({upsellSku:i?null:r}),i)e.selectImage(0,null,!1);else{var a=e.getUpsellCarouselPosition();e.selectImage(a,null,!1)}},window.addEventListener("select-upsell-swatch",this.handleUpsellSwatch),requestAnimationFrame(function(){var t=e.mediaContainer.current.querySelector("model-viewer");if(t)try{var n=new CSSStyleSheet;n.replaceSync(":focus-visible {\n            outline: 3px solid var(--outline);\n            outline-offset: -3px;\n          }"),t.shadowRoot.adoptedStyleSheets.push(n)}catch(e){console.log("Support CSSStyleSheet error",e)}})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleModalAnchorClick,!0),this.mobileOrTabletMQ.removeEventListener("change",this.handleBreakpointChange),this.disposeAllVideoElements(),window.removeEventListener("select-upsell-swatch",this.handleUpsellSwatch)}},{key:"isMobileOrTablet",value:function(){return this.mobileOrTabletMQ.matches}},{key:"render",value:function(){var e=this;return requestAnimationFrame(function(){if(!e.loaded){e.loaded=!0;
67var t=new CustomEvent("product-carousel-loaded");document.dispatchEvent(t)}}),g.default.createElement(g.default.Fragment,null,g.default.createElement("div",{className:"product-carousel product-carousel--base ".concat(this.state.modal?"active":""),ref:this.mainElRef,onKeyDown:function(t){return e.carouselKeyDown(t)}},!this.isMobileOrTablet()&&g.default.createElement("div",{className:"product-carousel__list"},g.default.createElement("div",{className:"product-carousel__list__items",role:"group","aria-label":M("productFeatures","Product Features")},g.default.createElement("ul",{className:"product-carousel__list__items__inner","aria-label":M("productCarousel","Product Carousel"),role:"tablist"},this.state.selectedSwatch[1].asset.map(function(t,n){return g.default.createElement("li",{key:n,role:"presentation",className:"product-thumbnail \n                        ".concat(n<=e.maxThumbnailInitialView?"":"product-thumbnail--more","\n                        ").concat(n==e.state.carouselIndex?"product-thumbnail--selected":"","\n                        ").concat("video"===t.type?"product-thumbnail--video":"","\n                        ")},g.default.createElement("button",{type:"button",role:"tab",tabIndex:n==e.state.carouselIndex?0:-1,"data-index":n,"data-product-image-thumbnail":!0,onClick:function(){return e.selectImage(n)},"aria-selected":n==e.state.carouselIndex?"true":"false"},t.thumbnail?g.default.createElement("img",{src:t.thumbnail,alt:t.altTextThumbnail}):""),"video"===t.type&&"looping"!==t.videoType&&g.default.createElement("div",{className:"product-thumbnail--video__icon"}))})),this.renderExtraThumbnail())),this.isMobileOrTablet()&&g.default.createElement("div",{className:"product-carousel__dots"},this.state.selectedSwatch[1].asset.map(function(t,n){return g.default.createElement("button",{key:n,className:"carousel-dot",onClick:function(){return e.selectImage(n)},tabIndex:n===e.state.carouselIndex?0:-1,"aria-label":"".concat(e.ariaLabelGoToSlide," ").concat(n+1),"aria-current":n===e.state.carouselIndex?"true":void 0},(e.state.carouselIndex,g.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none"},g.default.createElement("circle",{cx:"4",cy:"4",r:"4",fill:"currentColor"}))))})),g.default.createElement("div",{className:"product-carousel__viewport ".concat(this.visualSizeIsSquare?"product-carousel__viewport--square":""),ref:this.mediaContainer},this.configuratorConfig&&this.isConfiguratorEnabled(this.state.carouselAsset)&&!this.isUpsellComboActive()&&g.default.createElement("beats-configurator",{"buy-button-id":this.id,"configurator-hash":this.configuratorHash,config:this.configuratorConfig}),this.renderMainAssets())),g.default.createElement(P,null,g.default.createElement("div",{role:"dialog",id:"product-modal",className:"product-carousel_modal ".concat(this.state.modal?"active":""),"aria-labelledby":"product-carousel_modal_title",tabIndex:"-1",ref:this.modalRef,onKeyDown:function(t){return e.carouselKeyDown(t)}},g.default.createElement("h2",{className:"visuallyhidden",id:"product-carousel_modal_title"},M("productCarousel","Product Carousel")),g.default.createElement("div",{className:"product-carousel"},!this.is3dInteractive()&&g.default.createElement("div",{className:"product-carousel__list"},g.default.createElement("div",{className:"product-carousel__count"},this.state.modalIndex+1," / ",this.state.selectedSwatch[1].asset.length),g.default.createElement("div",{className:"product-carousel__list__items"},g.default.createElement("ul",{className:"product-carousel__list__items__inner","aria-label":M("productCarousel","Product Carousel"),role:"tablist"},this.state.selectedSwatch[1].asset.map(function(t,n){return g.default.createElement("li",{key:n,role:"presentation",className:"product-thumbnail \n                        ".concat(n<e.maxThumbnailInitialView-1?"":"product-thumbnail--more","\n                        ").concat(n==e.state.modalIndex?"product-thumbnail--selected":"","\n                        ").concat("video"===t.type?"product-thumbnail--video":"","\n                        ")},g.default.createElement("button",{type:"button",role:"tab",tabIndex:n==e.state.modalIndex?0:-1,"data-index":n,"data-product-image-thumbnail":!0,onClick:function(){return e.selectImage(n)},"aria-selected":n==e.state.modalIndex?"true":"false"},t.thumbnail?g.default.createElement("img",{src:t.thumbnail,alt:t.altTextThumbnail}):""))}
67)))),g.default.createElement("div",{className:"product-carousel__viewport",ref:this.mediaContainerModal},this.renderProductControlsLeft(),this.renderModalAssets(),this.renderProductControlsRight()),this.renderProductControlsClose()))))}}])}(g.Component),P=function(e){function t(e){var n;return(0,l.default)(this,t),(n=_(this,t,[e])).el=document.createElement("div"),n.modalRootEl=document.querySelector(".r-modal"),n}return(0,h.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.modalRootEl.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.modalRootEl.removeChild(this.el)}},{key:"render",value:function(){return(0,v.createPortal)(this.props.children,this.el)}}])}(g.Component)},2758:(e,t,n)=>{"use strict";var i=n(4836);t.Ld=function(){document.querySelectorAll("[data-dynamic-eyebrow]").forEach(function(e){new s(e)})};var r=i(n(6690)),a=i(n(9728)),s=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),this.el=t,this.id=t.getAttribute("data-id"),this.addListeners()},[{key:"addListeners",value:function(){window.addEventListener("select-swatch",this.handleSelectSwatch.bind(this)),window.addEventListener("select-swatch-price-only",this.handleSelectSwatch.bind(this))}},{key:"handleSelectSwatch",value:function(e){if(this.id===e.detail.id){var t=e.detail.sku[1].eyebrowText||"";this.el.innerHTML=t}}}])}()},6913:(e,t,n)=>{"use strict";var i=n(4836),r=n(8698);t.oI=function(){var e=document.querySelectorAll(".product-selector-el");e.length&&e.forEach(function(e){(0,p.createRoot)(e).render(h.default.createElement(A,e.dataset))});document.addEventListener("at-content-rendering-succeeded",function(e){var t=Array.from(document.querySelectorAll(".root"));t.length>0&&t.map(function(e){var t=e.querySelectorAll(".product-selector-el");t.length&&t.forEach(function(e){(0,p.createRoot)(e).render(h.default.createElement(A,e.dataset))})})})};var a=i(n(7424)),s=i(n(6690)),o=i(n(9728)),l=i(n(4993)),u=i(n(3808)),c=i(n(1655)),d=i(n(8416)),h=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,s,o={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return o;if(a=t?i:n){if(a.has(e))return a.get(e);a.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((s=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(s.get||s.set)?a(o,l,s):o[l]=e[l]);return o}(e,t)}(n(7294)),p=n(745),f=n(8418);function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(m=function(){return!!e})()}n(4730);var g=n(2942).getSelectedIndexFromURL,v=n(722),A=function(e){function t(e){var n,i,r,o;return(0,s.default)(this,t),i=this,r=t,o=[e],r=(0,u.default)(r),n=(0,l.default)(i,m()?Reflect.construct(r,o||[],(0,u.default)(i).constructor):r.apply(i,o)),(0,d.default)(n,"handleFilterChange",function(e){if(n.id===e.detail.id){var t=e.detail.filterId,i=(0,a.default)(n.state.selectedSwatch,2)[1];if(!(!t||i&&Array.isArray(i.filters)&&i.filters.includes(t))){var r=n.skus.map(function(e,t){return{sku:e,index:t}}).filter(function(e){var n=e.sku;return Array.isArray(n[1].filters)&&n[1].filters.includes(t)}),s=r.find(function(e){return!e.sku[1].eyebrowText})||r[0];s&&n.selectSwatch(s.sku,s.index)}n.setState({activeFilterId:t})}}),(0,d.default)(n,"triggerAnalytics",function(e,t){v("analytics-track",{eventType:e,data:t})}),n.mainElRef=h.default.createRef(),n.skus=Object.entries(window.partNumbersList),n.index=g(),n.id=e.id,n.colorLegend=e.colorLegend,n.showColorLabel="true"===e.showColorLabel,n.hasFilters=!!(window.productCarouselJson&&window.productCarouselJson.productFilters&&Object.keys(window.productCarouselJson.productFilters).length),n.state={selectedSwatch:n.skus[n.index],activeFilterId:null},n.updateLoadSku(),n}
67return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){window.addEventListener("select-filter-value",this.handleFilterChange)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("select-filter-value",this.handleFilterChange)}},{key:"getElAndAttribute",value:function(e){var t,n=null===(t=this.mainElRef.current)||void 0===t?void 0:t.closest("[".concat(e,"]"));return n?n.getAttribute(e):null}},{key:"getPageName",value:function(){var e,t,n="";window.pageTrackData&&(n=null!==(e=null===(t=window.pageTrackData.content)||void 0===t?void 0:t.pageName)&&void 0!==e?e:"");return n}},{key:"getFilterGroupNameByFilterId",value:function(e){for(var t,n,i,r=null!==(t=null===(n=window)||void 0===n||null===(i=n.productCarouselJson)||void 0===i?void 0:i.productFilters)&&void 0!==t?t:{},a=0,s=Object.values(r);a<s.length;a++){var o,l,u=s[a];if(null==u||null===(o=u.values)||void 0===o?void 0:o.some(function(t){return t.id===e}))return"".concat(null!==(l=null==u?void 0:u.analyticsLabel)&&void 0!==l?l:"")}return""}},{key:"selectSwatch",value:function(e,t){var n,i=this,r={index:t,id:this.id,sku:e,hasSkuInUrl:!0};if(window.productPathname){var a=window.productPathname,s=new URL(window.location),o=e[0].slice(0,5);s.searchParams.delete("sku"),n="".concat(window.location.origin).concat(a,"/").concat(o).concat(e[1].urlVariant?"/".concat(e[1].urlVariant):"").concat("true"==stripHtmlExtension?"":".html").concat(s.search),window.history.replaceState("","",n)}else(n=new URL(window.location)).searchParams.set("sku",e[0].slice(0,5)),window.history.replaceState("","",n);var l=new CustomEvent("select-swatch",{detail:r});window.dispatchEvent(l),this.setState({selectedSwatch:e},function(){if(i.hasFilters){var e,t,n,r=i.state.activeFilterId,a="".concat(i.getFilterGroupNameByFilterId(r),":").concat(r);v("analytics-track",{eventType:"allClick",data:{moduleName:i.getElAndAttribute("data-analytics-module"),regionName:i.getElAndAttribute("data-analytics-region"),label:"".concat(a,":").concat(null!==(e=null===(t=i.state.selectedSwatch)||void 0===t||null===(n=t[1])||void 0===n?void 0:n.urlVariant)&&void 0!==e?e:i.state.selectedSwatch[1].variant),pageName:i.getPageName()}})}else{var s,o;i.triggerAnalytics("colorSelector",{item:[{productInfo:{sku:i.state.selectedSwatch[1].sku,category:i.state.selectedSwatch[1].productFamily,color:(null===(s=i.state.selectedSwatch)||void 0===s||null===(o=s[1])||void 0===o?void 0:o.urlVariant)||i.state.selectedSwatch[1].variant}}]})}})}},{key:"updateLoadSku",value:function(){var e=new URL(window.location),t=!!window.location.pathname.replace(window.productPathname,"").replace(/\//g,"").replace(".html","")||!!e.searchParams.get("sku"),n={id:this.id,sku:this.skus[this.index],hasSkuInUrl:t},i=new CustomEvent("select-swatch-price-only",{detail:n});window.dispatchEvent(i)}},{key:"render",value:function(){var e=this;return h.default.createElement("fieldset",{className:"product-selector new",ref:this.mainElRef},h.default.createElement("legend",{className:"product-swatch__selected-title ".concat(this.hasFilters?"product-swatch__selected-title--filter":"")},h.default.createElement("div",{className:"product-swatch__selected-collection",dangerouslySetInnerHTML:{__html:this.state.selectedSwatch[1].collection}}),h.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.colorLegend}}),!this.showColorLabel&&h.default.createElement(h.default.Fragment,null," ",h.default.createElement("strong",{dangerouslySetInnerHTML:{__html:this.state.selectedSwatch[1].variant}}))),h.default.createElement("div",null,h.default.createElement("ul",{className:"product-swatches"},this.skus&&this.skus.map(function(t,n){var i=e.state.activeFilterId&&!(Array.isArray(t[1].filters)&&t[1].filters.includes(e.state.activeFilterId));return h.default.createElement("li",{className:"",key:t[0],style:i?{display:"none"}:void 0},h.default.createElement("input",{type:"radio",id:"color-".concat(t[0]),name:"color","aria-label":t[1].variant,value:t[1].variant,checked:t[0]==e.state.selectedSwatch[0],onChange:e.selectSwatch.bind(e,t,n)}),h.default.createElement("label",{className:"product-swatch\n                  ".concat(t[0]==e.state.selectedSwatch[0]?"product-swatch--selected":"","\n                  ").concat(f.productNotAvailable.includes(t[1].buttonDetails.availabilityStatus)?"product-swatch--disabled":"","\n                  ").concat(e.showColorLabel?"product-swatch--labeled":"","\n                  "),htmlFor:"color-".concat(t[0])},h.default.createElement("span",{className:"product-swatch__inner",style:{backgroundColor:t[1].background,backgroundImage:t[1].colorSwatchImage?"url('".concat(t[1].colorSwatchImage,"')"):null}},h.default.createElement("span",{className:"a11y"},t[1].variant)),e.showColorLabel&&h.default.createElement("span",{className:"product-swatch__label"},t[1].variant)))}))))}}])}(h.Component)},8418:(e,t)=>{"use strict";
67Object.defineProperty(t,"__esModule",{value:!0}),t.productNotify=t.productNotAvailable=t.productAvailable=void 0;t.productNotify=["notify"],t.productAvailable=["buyable","preOrder","external"],t.productNotAvailable=["eyebrowOnly","announced","unavailable","outOfStock","soldOut"]},1576:(e,t,n)=>{"use strict";var i=n(4836);t.Xo=function(){var e=document.querySelector("#status");e&&new s(e)};var r=i(n(6690)),a=i(n(9728)),s=function(){return(0,a.default)(function e(t){var n=this;(0,r.default)(this,e),this.el=t,this.queue=[],this.active=!1,window.addEventListener("a11y-status",function(e){(n.queue.length<1||n.queue.length>0&&n.queue[n.queue.length-1]!==e.detail)&&n.queue.push(e.detail),0==n.active&&n.showMessage()})},[{key:"showMessage",value:function(){var e=this;this.el.innerHTML="",requestAnimationFrame(function(){e.active=!0,e.el.innerHTML=e.queue[0],setTimeout(function(){e.queue.shift(),e.queue.length<=0?(e.el.innerHTML="",e.active=!1):e.showMessage()},4e3)})}}])}()},2143:(e,t,n)=>{"use strict";var i=n(4836);t.Hw=function(){document.querySelectorAll("[data-value-props]").forEach(function(e){new s(e)})};var r=i(n(6690)),a=i(n(9728)),s=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),this.el=t,this.id=t.getAttribute("data-id"),this.addListeners()},[{key:"addListeners",value:function(){window.addEventListener("select-swatch",this.handleSelectSwatch.bind(this)),window.addEventListener("select-swatch-price-only",this.handleSelectSwatch.bind(this))}},{key:"handleSelectSwatch",value:function(e){this.id===e.detail.id&&("external"===e.detail.sku[1].buttonDetails.availabilityStatus?this.el.style.display="none":this.el.style.display="block")}}])}()},456:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(6690)),a=i(n(9728)),s="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,o=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),t.classList.contains("zoom-initialized")||(this.zoomElement=t,this.zoomElement.classList.add("zoom-initialized"),this.zoomContainer=t.closest("div"),this.contained="true"==t.getAttribute("data-zoom-contained"),this.zoomEnabledClass=this.contained?"zoom--enabled--contained":"zoom--enabled",this.scale=2,this.clickHandler=this.handleClick.bind(this),this.mousemoveHandler=this.handleMouseMove.bind(this),this.addListeners())},[{key:"addListeners",value:function(){this.zoomElement.addEventListener("click",this.clickHandler),document.addEventListener("mousemove",this.mousemoveHandler)}},{key:"destroy",value:function(){this.resetZoom(),this.zoomContainer.classList.remove(this.zoomEnabledClass),this.zoomElement.classList.remove("zoom-initialized"),this.zoomElement.removeEventListener("click",this.clickHandler),document.removeEventListener("mousemove",this.mousemoveHandler)}},{key:"handleClick",value:function(e){s||(this.zoomContainer.classList.contains(this.zoomEnabledClass)?(this.zoomContainer.classList.remove(this.zoomEnabledClass),this.resetZoom()):(this.zoomContainer.classList.add(this.zoomEnabledClass),this.handleMouseMove(e)))}},{key:"handleMouseMove",value:function(e){this.zoomContainer.classList.contains(this.zoomEnabledClass)&&(this.contained?this.mouseMoveContained():this.mouseMove())}},{key:"mouseMove",value:function(){var e=event.clientX/window.innerWidth,t=event.clientY/window.innerHeight,n=Math.max(0,(this.zoomElement.clientWidth-window.innerWidth)*e),i=Math.max(0,(this.zoomElement.clientHeight-window.innerHeight)*t);this.zoomElement.style.left="-".concat(n,"px"),this.zoomElement.style.top="-".concat(i,"px")}},{key:"mouseMoveContained",value:function(){var e=this.zoomContainer.getBoundingClientRect(),t=.5-(event.clientX-e.left)/e.width,n=.5-(event.clientY-e.top)/e.height,i=this.zoomElement.clientWidth*(this.scale-1)*t,r=this.zoomElement.clientHeight*(this.scale-1)*n,a=e.width*(this.scale-1)/2,s=-1*a,o=e.height*(this.scale-1)/2,l=-1*o,u=Math.min(Math.max(i,s),a),c=Math.min(Math.max(r,l),o);this.zoomElement.style.transform="scale(".concat(this.scale,") translateX(").concat(u/this.scale,"px) translateY(").concat(c/this.scale,"px)")}},{key:"resetZoom",value:function(){this.contained?this.zoomElement.style.transform="scale(1) translateX(0) translateY(0)":(this.zoomElement.style.left="0",this.zoomElement.style.top="0")}}])}();t.default=o},4081:(e,t,n)=>{"use strict";var i=n(4836);t.ZP=void 0;var r=i(n(8416)),a=i(n(6690)),s=i(n(9728));function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
67t%2?o(Object(n),!0).forEach(function(t){(0,r.default)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u={buyable:"https://schema.org/InStock",preOrder:"https://schema.org/PreOrder"},c=(t.ZP=function(){return(0,s.default)(function e(t){(0,a.default)(this,e),this.selectedSku=t.selectedSKU,this.el=document.getElementById("product-structured-data"),this.prodStructuredData=this.el&&JSON.parse(this.el.textContent)||{},this.el&&window.partNumbersList&&this.selectedSku&&this.updateStructuredData()},[{key:"getNumericPriceFromOffer",value:function(e){if(!e||"string"!=typeof e)return"0.00";var t,n=e.trim().replace(/[^\d.,\s]/g,""),i=(n.match(/,/g)||[]).length,r=(n.match(/\./g)||[]).length;if(1===i&&0===r)t=n.replace(",",".");else if(0===i&&1===r)t=n;else if(i>0&&r>0){t=n.lastIndexOf(",")>n.lastIndexOf(".")?n.replace(/\./g,"").replace(",","."):n.replace(/,/g,"")}else t=n.replace(/[,.\s]/g,"");t=t.replace(/[^0-9.]/g,"");var a=parseFloat(t);return isNaN(a)?"0.00":a.toFixed(2)}},{key:"updateStructuredData",value:function(){var e=window.partNumbersList[this.selectedSku.sku],t=window.location.href,n=e.sku,i=e.aosUrl,r=e.numericPrice,a=e.buttonDetails,s=e.structuredDataImage,o=e.offerPrice,c=e.variant,d=i&&i.length&&new URL(i),h=d&&d.origin+d.pathname,p=this.prodStructuredData.offers,f=void 0===p?{}:p,m=a.availabilityStatus,g=u[m],v=o&&this.getNumericPriceFromOffer(o)||r,A=l(l({},f),{},{price:v,url:h||""}),y=l(l({},this.prodStructuredData),{},{url:t,mpn:n,sku:n,offers:A,image:s,color:c,mainEntityOfPage:t});y.offers.availability=g||"",this.el.textContent=JSON.stringify(y)}}])}(),function(){return(0,s.default)(function e(){(0,a.default)(this,e),this.el=document.getElementById("product-structured-data"),this.el&&(this.prodStructuredData=this.el&&JSON.parse(this.el.textContent)||{},this.addListeners())},[{key:"addListeners",value:function(){window.addEventListener("select-swatch",this.handleSelectSwatch.bind(this)),window.addEventListener("select-swatch-price-only",this.handleSelectSwatch.bind(this))}},{key:"getNumericPriceFromOffer",value:function(e){if(!e||"string"!=typeof e)return"0.00";var t,n=e.trim().replace(/[^\d.,\s]/g,""),i=(n.match(/,/g)||[]).length,r=(n.match(/\./g)||[]).length;if(1===i&&0===r)t=n.replace(",",".");else if(0===i&&1===r)t=n;else if(i>0&&r>0){t=n.lastIndexOf(",")>n.lastIndexOf(".")?n.replace(/\./g,"").replace(",","."):n.replace(/,/g,"")}else t=n.replace(/[,.\s]/g,"");t=t.replace(/[^0-9.]/g,"");var a=parseFloat(t);return isNaN(a)?"0.00":a.toFixed(2)}},{key:"handleSelectSwatch",value:function(e){if(e.detail.id){var t=window.location.href,n=e.detail.sku[1],i=n.sku,r=n.aosUrl,a=n.numericPrice,s=n.buttonDetails,o=n.structuredDataImage,c=n.offerPrice,d=n.subFamily,h=n.variant,p=r&&r.length&&new URL(r),f=p&&p.origin+p.pathname||"",m=s.availabilityStatus,g=u[m],v=c&&this.getNumericPriceFromOffer(c)||a,A=l(l({},this.prodStructuredData.offers),{},{price:v,url:f,availability:g||""}),y={name:"".concat(d," ").concat(e.detail.hasSkuInUrl?"- ".concat(h):""),url:t,mpn:i,sku:i,image:o,offers:A,color:h,mainEntityOfPage:t};this.prodStructuredData=l(l({},this.prodStructuredData),y),this.el.textContent=JSON.stringify(this.prodStructuredData)}}}])}())},6252:e=>{e.exports=function(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},4663:e=>{e.exports=function(e,t,n){var i=Math.sin(n),r=Math.cos(n),a=t[4],s=t[5],o=t[6],l=t[7],u=t[8],c=t[9],d=t[10],h=t[11];t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[4]=a*r+u*i,e[5]=s*r+c*i,e[6]=o*r+d*i,e[7]=l*r+h*i,e[8]=u*r-a*i,e[9]=c*r-s*i,e[10]=d*r-o*i,e[11]=h*r-l*i,e}},2113:e=>{e.exports=function(e,t,n){var i=Math.sin(n),r=Math.cos(n),a=t[0],s=t[1],o=t[2],l=t[3],u=t[8],c=t[9],d=t[10],h=t[11];t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=a*r-u*i,e[1]=s*r-c*i,e[2]=o*r-d*i,e[3]=l*r-h*i,e[8]=a*i+u*r,e[9]=s*i+c*r,e[10]=o*i+d*r,e[11
67]=l*i+h*r,e}},974:e=>{e.exports=function(e,t,n){var i=Math.sin(n),r=Math.cos(n),a=t[0],s=t[1],o=t[2],l=t[3],u=t[4],c=t[5],d=t[6],h=t[7];t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]);return e[0]=a*r+u*i,e[1]=s*r+c*i,e[2]=o*r+d*i,e[3]=l*r+h*i,e[4]=u*r-a*i,e[5]=c*r-s*i,e[6]=d*r-o*i,e[7]=h*r-l*i,e}},4028:e=>{e.exports=function(e,t,n){var i=n[0],r=n[1],a=n[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},840:(e,t,n)=>{var i;!function(r,a,s,o){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=a.createElement("div"),d=Math.round,h=Math.abs,p=Date.now;function f(e,t,n){return setTimeout(_(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==o)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function v(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=r.console&&(r.console.warn||r.console.log);return a&&a.call(r.console,i,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===o||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==o&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign;var A=v(function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&e[i[r]]===o)&&(e[i[r]]=t[i[r]]),r++;return e},"extend","Use `assign`."),y=v(function(e,t){return A(e,t,!0)},"merge","Use `assign`.");function b(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&l(i,n)}function _(e,t){return function(){return e.apply(t,arguments)}}function w(e,t){return"function"==typeof e?e.apply(t&&t[0]||o,t):e}function E(e,t){return e===o?t:e}function S(e,t,n){g(I(t),function(t){e.addEventListener(t,n,!1)})}function T(e,t,n){g(I(t),function(t){e.removeEventListener(t,n,!1)})}function x(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function C(e,t){return e.indexOf(t)>-1}function I(e){return e.trim().split(/\s+/g)}function M(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function k(e){return Array.prototype.slice.call(e,0)}function P(e,t,n){for(var i=[],r=[],a=0;a<e.length;){var s=t?e[a][t]:e[a];M(r,s)<0&&i.push(e[a]),r[a]=s,a++}return n&&(i=t?i.sort(function(e,n){return e[t]>n[t]}):i.sort()),i}function R(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),a=0;a<u.length;){if((i=(n=u[a])?n+r:t)in e)return i;a++}return o}var L=1;function B(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}var D="ontouchstart"in r,N=R(r,"PointerEvent")!==o,O=D&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U="touch",F="mouse",z=24,Q=["x","y"],V=["clientX","clientY"];function H(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){w(e.options.enable,[e])&&n.handler(t)},this.init()}function G(e,t,n){var i=n.pointers.length,r=n.changedPointers.length,a=1&t&&i-r===0,s=12&t&&i-r===0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,r=i.length;n.firstInput||(n.firstInput=j(t));r>1&&!n.firstMultiple?n.firstMultiple=j(t):1===r&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,l=s?s.center:a.center,u=t.center=q(i);t.timeStamp=p(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=K(l,u),t.distance=X(l,u),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},a=e.prevInput||{};1!==t.eventType&&4!==a.eventType||(r=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var c=W(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=h(c.x)>h(c.y)?c.x:c.y,t.scale=s?(d=s.pointers,f=i,X(f[0],f[1],V)/X(d[0],d[1],V)):1,t.rotation=s?function(e,t){return K(t[1],t[0],V)+K(e[1],e[0],V)}(s.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,r,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(8!=t.eventType&&(l>25||s.velocity===o)){var u=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,d=W(l,u,c);i=d.x,r=d.y,n=h(d.x)>h(d.y)?d.x:d.y,a=Y(u,c),e.lastInterval=t}else n=s.velocity,i=s.velocityX,r=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=a}(n,t);var d,f;var m=e.element;x(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function j(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:q(t),deltaX:e.deltaX,deltaY:e.deltaY}}function q(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:d(n/t),y:d(i/t)}}function W(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:h(e)>=h(t)?e<0?2:4:t<0?8:16}
vendor: 3,773 bytes, line 67
67function X(e,t,n){n||(n=Q);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function K(e,t,n){n||(n=Q);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(B(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(B(this.element),this.evWin,this.domHandler)}};var $={mousedown:1,mousemove:2,mouseup:4},J="mousedown",Z="mousemove mouseup";function ee(){this.evEl=J,this.evWin=Z,this.pressed=!1,H.apply(this,arguments)}b(ee,H,{handler:function(e){var t=$[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:F,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:U,3:"pen",4:F,5:"kinect"},ie="pointerdown",re="pointermove pointerup pointercancel";function ae(){this.evEl=ie,this.evWin=re,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(ie="MSPointerDown",re="MSPointerMove MSPointerUp MSPointerCancel"),b(ae,H,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=te[i],a=ne[e.pointerType]||e.pointerType,s=a==U,o=M(t,e.pointerId,"pointerId");1&r&&(0===e.button||s)?o<0&&(t.push(e),o=t.length-1):12&r&&(n=!0),o<0||(t[o]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:a,srcEvent:e}),n&&t.splice(o,1))}});var se={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function oe(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function le(e,t){var n=k(e.touches),i=k(e.changedTouches);return 12&t&&(n=P(n.concat(i),"identifier",!0)),[n,i]}b(oe,H,{handler:function(e){var t=se[e.type];if(1===t&&(this.started=!0),this.started){var n=le.call(this,e,t);12&t&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:U,srcEvent:e})}}});var ue={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ce="touchstart touchmove touchend touchcancel";function de(){this.evTarget=ce,this.targetIds={},H.apply(this,arguments)}function he(e,t){var n=k(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,a,s=k(e.changedTouches),o=[],l=this.target;if(a=n.filter(function(e){return x(e.target,l)}),1===t)for(r=0;r<a.length;)i[a[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&o.push(s[r]),12&t&&delete i[s[r].identifier],r++;return o.length?[P(a.concat(o),"identifier",!0),o]:void 0}b(de,H,{handler:function(e){var t=ue[e.type],n=he.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:U,srcEvent:e})}});function pe(){H.apply(this,arguments);var e=_(this.handler,this);this.touch=new de(this.manager,e),this.mouse=new ee(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function fe(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,me.call(this,t)):12&e&&me.call(this,t)}function me(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)},2500)}}function ge(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],a=Math.abs(t-r.x),s=Math.abs(n-r.y);if(a<=25&&s<=25)return!0}return!1}
67b(pe,H,{handler:function(e,t,n){var i=n.pointerType==U,r=n.pointerType==F;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)fe.call(this,t,n);else if(r&&ge.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ve=R(c.style,"touchAction"),Ae=ve!==o,ye="compute",be="auto",_e="manipulation",we="none",Ee="pan-x",Se="pan-y",Te=function(){if(!Ae)return!1;var e={},t=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!t||r.CSS.supports("touch-action",n)}),e}();function xe(e,t){this.manager=e,this.set(t)}xe.prototype={set:function(e){e==ye&&(e=this.compute()),Ae&&this.manager.element.style&&Te[e]&&(this.manager.element.style[ve]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,function(t){w(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(C(e,we))return we;var t=C(e,Ee),n=C(e,Se);if(t&&n)return we;if(t||n)return t?Ee:Se;if(C(e,_e))return _e;return be}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=C(i,we)&&!Te[we],a=C(i,Se)&&!Te[Se],s=C(i,Ee)&&!Te[Ee];if(r){var o=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(o&&l&&u)return}if(!s||!a)return r||a&&6&n||s&&n&z?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ce=32;function Ie(e){this.options=l({},this.defaults,e||{}),this.id=L++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Me(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function ke(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Pe(e,t){var n=t.manager;return n?n.get(e):e}function Re(){Ie.apply(this,arguments)}function Le(){Re.apply(this,arguments),this.pX=null,this.pY=null}function Be(){Re.apply(this,arguments)}function De(){Ie.apply(this,arguments),this._timer=null,this._input=null}function Ne(){Re.apply(this,arguments)}function Oe(){Re.apply(this,arguments)}function Ue(){Ie.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Fe(e,t){return(t=t||{}).recognizers=E(t.recognizers,Fe.defaults.preset),new ze(e,t)}Ie.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Pe(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=Pe(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===M(t,e=Pe(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=Pe(e,this);var t=M(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Me(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Me(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ce},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!w(this.options.enable,[this,t]))return this.reset(),void(this.state=Ce);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},b(Re,Ie,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?16|t:i||r?4&n?8|t:2&t?4|t:2:Ce}}),b(Le,Re,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Se),e&z&&t.push(Ee),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,a=e.deltaX,s=e.deltaY;return r&t.direction||(6&t.direction?(r=0===a?1:a<0?2:4,n=a!=this.pX,i=Math.abs(e.deltaX)):(r=0===s?1:s<0?8:16,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return Re.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ke(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(Be,Re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),b(De,Ie,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[be]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=f(function(){this.state=8,this.tryEmit()},t.time,this);else if(4&e.eventType)return 8;return Ce},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),b(Ne,Re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),b(Oe,Re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Le.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&z&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ke(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(Ue,Ie,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=e.eventType)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&a?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return Ce},failTimeout:function(){return this._timer=f(function(){this.state=Ce},this.options.interval,this),Ce},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Fe.VERSION="2.0.7",Fe.defaults={domEvents:!1,touchAction:ye,enable:!0,inputTarget:null,inputClass:null,preset:[[Ne,{enable:!1}],[Be,{enable:!1},["rotate"]],[Oe,{direction:6}],[Le,{direction:6},["swipe"]],[Ue],[Ue,{event:"doubletap",taps:2},["tap"]],[De]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function ze(e,t){var n;this.options=l({},Fe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(N?ae
67:O?de:D?pe:ee))(n,G),this.touchAction=new xe(this,this.options.touchAction),Qe(this,!0),g(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Qe(e,t){var n,i=e.element;i.style&&(g(e.options.cssProps,function(r,a){n=R(i.style,a),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}ze.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(r=t.curRecognizer=null);for(var a=0;a<i.length;)n=i[a],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(r=t.curRecognizer=n),a++}},get:function(e){if(e instanceof Ie)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=M(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==o&&t!==o){var n=this.handlers;return g(I(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==o){var n=this.handlers;return g(I(e),function(e){t?n[e]&&n[e].splice(M(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=a.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&Qe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Fe,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Ce,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:z,DIRECTION_ALL:30,Manager:ze,Input:H,TouchAction:xe,TouchInput:de,MouseInput:ee,PointerEventInput:ae,TouchMouseInput:pe,SingleTouchInput:oe,Recognizer:Ie,AttrRecognizer:Re,Tap:Ue,Pan:Le,Swipe:Oe,Pinch:Be,Rotate:Ne,Press:De,on:S,off:T,each:g,merge:y,extend:A,assign:l,inherit:b,bindFn:_,prefixed:R}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Fe,(i=function(){return Fe}.call(t,n,t,e))===o||(e.exports=i)}(window,document)},6486:function(e,t,n){var i;e=n.nmd(e),function(){var r,a="Expected a function",s="__lodash_hash_undefined__",o="__lodash_placeholder__",l=16,u=32,c=64,d=128,h=256,p=1/0,f=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",h]],A="[object Arguments]",y="[object Array]",b="[object Boolean]",_="[object Date]",w="[object Error]",E="[object Function]",S="[object GeneratorFunction]",T="[object Map]",x="[object Number]",C="[object Object]",I="[object Promise]",M="[object RegExp]",k="[object Set]",P="[object String]",R="[object Symbol]",L="[object WeakMap]",B="[object ArrayBuffer]",D="[object DataView]",N="[object Float32Array]",O="[object Float64Array]",U="[object Int8Array]",F="[object Int16Array]",z="[object Int32Array]",Q="[object Uint8Array]",V="[object Uint8ClampedArray]",H="[object Uint16Array]",G="[object Uint32Array]",j=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,K=RegExp(Y.source),$=RegExp(X.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(re.source),se=/^\s+/,oe=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,Ae=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 16,508 bytes, line 67
677f]/g,we=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Re="["+Se+"]",Le="["+ke+"]",Be="["+Te+"]",De="\\d+",Ne="["+xe+"]",Oe="["+Ce+"]",Ue="[^"+Se+ke+De+xe+Ce+Ie+"]",Fe="\\ud83c[\\udffb-\\udfff]",ze="[^"+Se+"]",Qe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Ie+"]",Ge="\\u200d",je="(?:"+Oe+"|"+Ue+")",qe="(?:"+He+"|"+Ue+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ye="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xe="(?:"+Be+"|"+Fe+")"+"?",Ke="["+Me+"]?",$e=Ke+Xe+("(?:"+Ge+"(?:"+[ze,Qe,Ve].join("|")+")"+Ke+Xe+")*"),Je="(?:"+[Ne,Qe,Ve].join("|")+")"+$e,Ze="(?:"+[ze+Be+"?",Be,Qe,Ve,Re].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(Be,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+Ze+$e,"g"),it=RegExp([He+"?"+Oe+"+"+We+"(?="+[Le,He,"$"].join("|")+")",qe+"+"+Ye+"(?="+[Le,He+je,"$"].join("|")+")",He+"?"+je+"+"+We,He+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Je].join("|"),"g"),rt=RegExp("["+Ge+Se+Te+Me+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,lt={};lt[N]=lt[O]=lt[U]=lt[F]=lt[z]=lt[Q]=lt[V]=lt[H]=lt[G]=!0,lt[A]=lt[y]=lt[B]=lt[b]=lt[D]=lt[_]=lt[w]=lt[E]=lt[T]=lt[x]=lt[C]=lt[M]=lt[k]=lt[P]=lt[L]=!1;var ut={};ut[A]=ut[y]=ut[B]=ut[D]=ut[b]=ut[_]=ut[N]=ut[O]=ut[U]=ut[F]=ut[z]=ut[T]=ut[x]=ut[C]=ut[M]=ut[k]=ut[P]=ut[R]=ut[Q]=ut[V]=ut[H]=ut[G]=!0,ut[w]=ut[E]=ut[L]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ft||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,At=vt&&vt.exports===gt,yt=At&&pt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),_t=bt&&bt.isArrayBuffer,wt=bt&&bt.isDate,Et=bt&&bt.isMap,St=bt&&bt.isRegExp,Tt=bt&&bt.isSet,xt=bt&&bt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,i){for(var r=-1,a=null==e?0:e.length;++r<a;){var s=e[r];t(i,s,n(s),e)}return i}function Mt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Rt(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n<i;){var s=e[n];t(s,n,e)&&(a[r++]=s)}return a}function Lt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Bt(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Dt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Nt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Ot(e,t,n,i){var r=-1,a=null==e?0:e.length;for(i&&a&&(n=e[++r]);++r<a;)n=t(n,e[r],r,e);return n}function Ut(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Ft(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var zt=Wt("length");function Qt(e,t,n){var i;return n(e,function(e,n,r){if(t(e,n,r))return i=n,!1}),i}function Vt(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return-1}function Ht(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):Vt(e,jt,n)}function Gt(e,t,n,i){for(var r=n-1,a=e.length;++r<a;)if(i(e[r],t))return r;return-1}function jt(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:m}function Wt(e){return function(t){return null==t?r:t[e]}}function Yt(e){return function(t){return null==e?r:e[t]}}function Xt(e,t,n,i,r){return r(e,function(e,r,a){n=i?(i=!1,e):t(n,e,r,a)}),n}function Kt(e,t){for(var n,i=-1,a=e.length;++i<a;){var s=t(e[i]);s!==r&&(n=n===r?s:n+s)}return n}function $t(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Jt(e){return e?e.slice(0,gn(e)+1).replace(se,""):e}function Zt(e){return function(t){return e(t)}}function en(e,t){return Dt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,i=e.length;++n<i&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var an=Yt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),sn=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function on(e){return"\\"+ct[e]}function ln(e){return rt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,i=e.length,r=0,a=[];++n<i;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[r++]=n)}return a}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function fn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var vn=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var An=function e(t){var n,i=(t=null==t?mt:An.defaults(mt.Object(),t,An.pick(mt,st))).Array,oe=t.Date,Se=t.Error,Te=t.Function,xe=t.Math,Ce=t.Object,Ie=t.RegExp,Me=t.String,ke=t.TypeError,Pe=i.prototype,Re=Te.prototype,Le=Ce.prototype,Be=t["__core-js_shared__"],De=Re.toString,Ne=Le.hasOwnProperty,Oe=0,Ue=(n=/[^.]+$/.exec(Be&&Be.keys&&Be.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=Le.toString,ze=De.call(Ce),Qe=mt._,Ve=Ie("^"+De.call(Ne).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=At?t.Buffer:r,Ge=t.Symbol,je=t.Uint8Array,qe=He?He.allocUnsafe:r,We=cn(Ce.getPrototypeOf,Ce),Ye=Ce.create,Xe=Le.propertyIsEnumerable,Ke=Pe.splice,$e=Ge?Ge.isConcatSpreadable:r,Je=Ge?Ge.iterator:r,Ze=Ge?Ge.toStringTag:r,nt=function(){try{var e=ha(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==mt.Date.now&&oe.now,pt=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=xe.ceil,gt=xe.floor,vt=Ce.getOwnPropertySymbols,yt=He?He.isBuffer:r,bt=t.isFinite,zt=Pe.join,Yt=cn(Ce.keys,Ce),yn=xe.max,bn=xe.min,_n=oe.now,wn=t.parseInt,En=xe.random,Sn=Pe.reverse,Tn=ha(t,"DataView"),xn=ha(t,"Map"),Cn=ha(t,"Promise"),In=ha(t,"Set"),Mn=ha(t,"WeakMap"),kn=ha(Ce,"create"),Pn=Mn&&new Mn,Rn={},Ln=Ua(Tn),Bn=Ua(xn),Dn=Ua(Cn),Nn=Ua(In),On=Ua(Mn),Un=Ge?Ge.prototype:r,Fn=Un?Un.valueOf:r,zn=Un?Un.toString:r;function Qn(e){if(to(e)&&!Gs(e)&&!(e instanceof jn)){if(e instanceof Gn)return e;if(Ne.call(e,"__wrapped__"))return Fa(e)}return new Gn(e)}var Vn=function(){function e(){}return function(t){if(!eo(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Hn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function jn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Wn(e);this.size=t.size}function $n(e,t){var n=Gs(e),i=!n&&Hs(e),r=!n&&!i&&Ys(e),a=!n&&!i&&!r&&uo(e),s=n||i||r||a,o=s?$t(e.length,Me):[],l=o.length;for(var u in e)!t&&!Ne.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ya(u,l))||o.push(u);return o}function Jn(e){var t=e.length;return t?e[Xi(0,t-1)]:r}function Zn(e,t){return Da(kr(e),li(t,0,e.length))}function ei(e){return Da(kr(e))}function ti(e,t,n){(n!==r&&!zs(e[t],n)||n===r&&!(t in e))&&si(e,t,n)}function ni(e,t,n){var i=e[t];Ne.call(e,t)&&zs(i,n)&&(n!==r||t in e)||si(e,t,n)}function ii(e,t){for(var n=e.length;n--;)if(zs(e[n][0],t))return n;return-1}function ri(e,t,n,i){return pi(e,function(e,r,a){t(i,e,n(e),a)}),i}function ai(e,t){return e&&Pr(t,Ro(t),e)}function si(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function oi(e,t){for(var n=-1,a=t.length,s=i(a),o=null==e;++n<a;)s[n]=o?r:Co(e,t[n]);return s}function li(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ui(e,t,n,i,a,s){var o,l=1&t,u=2&t,c=4&t;if(n&&(o=a?n(e,i,a,s):n(e)),o!==r)return o;if(!eo(e))return e;var d=Gs(e);if(d){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return kr(e,o)}else{var h=ma(e),p=h==E||h==S;if(Ys(e))return Sr(e,l);if(h==C||h==A||p&&!a){if(o=u||p?{}:va(e),!l)return u?function(e,t){return Pr(e,fa(e),t)}(e,function(e,t){return e&&Pr(t,Lo(t),e)}(o,e)):function(e,t){return Pr(e,pa(e),t)}(e,ai(o,e))}else{if(!ut[h])return a?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case B:return Tr(e);case b:case _:return new i(+e);case D:return function(e,t){var n=t?Tr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case O:case U:case F:case z:case Q:case V:case H:case G:return xr(e,n);case T:return new i;case x:case P:return new i(e);case M:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new i;case R:return r=e,Fn?Ce(Fn.call(r)):{}}var r}(e,h,l)}}s||(s=new Kn);var f=s.get(e);if(f)return f;s.set(e,o),so(e)?e.forEach(function(i){o.add(ui(i,t,n,i,e,s))}):no(e)&&e.forEach(function(i,r){o.set(r,ui(i,t,n,r,e,s))});var m=d?r:(c?u?aa:ra:u?Lo:Ro)(e);return Mt(m||e,function(i,r){m&&(i=e[r=i]),ni(o,r,ui(i,t,n,r,e,s))}),o}function ci(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ce(e);i--;){var a=n[i],s=t[a],o=e[a];if(o===r&&!(a in e)||!s(o))return!1}return!0}function di(e,t,n){if("function"!=typeof e)throw new ke(a);return Pa(function(){e.apply(r,n)},t)}function hi(e,t,n,i){var r=-1,a=Lt,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;n&&(t=Dt(t,Zt(n))),i?(a=Bt,s=!1):t.length>=200&&(a=tn,s=!1,t=new Xn(t));e:for(;++r<o;){var c=e[r],d=null==n?c:n(c);if(c=i||0!==c?c:0,s&&d==d){for(var h=u;h--;)if(t[h]===d)continue e;l.push(c)}else a(t,d,i)||l.push(c)}return l}Qn.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:Qn}},Qn.prototype=Hn.prototype,Qn.prototype.constructor=Qn,Gn.prototype=Vn(Hn.prototype),Gn.prototype.constructor=Gn,jn.prototype=Vn(Hn.prototype),jn.prototype.constructor=jn,qn.prototype.clear=function(){this.__data__=kn?kn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(kn){var n=t[e];return n===s?r:n}return Ne.call(t,e)?t[e]:r},qn.prototype.has=function(e){var t=this.__data__;return kn?t[e]!==r:Ne.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kn&&t===r?s:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=ii(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Wn.prototype.get=function(e){var t=this.__data__,n=ii(t,e);return n<0?r:t[n][1]},Wn.prototype.has=function(e){return ii(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,i=ii(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(xn||Wn),string:new qn}},Yn.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return ca(this,e).get(e)},Yn.prototype.has=function(e){return ca(this,e).has(e)},Yn.prototype.set=function(e,t){var n=ca(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,s),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var i=n.__data__;if(!xn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(i)}return n.set(e,t),this.size=n.size,this};var pi=Br(_i),fi=Br(wi,!0);function mi(e,t){var n=!0;return pi(e,function(e,i,r){return n=!!t(e,i,r)}),n}function gi(e,t,n){for(var i=-1,a=e.length;++i<a;){var s=e[i],o=t(s);if(null!=o&&(l===r?o==o&&!lo(o):n(o,l)))var l=o,u=s}return u}function vi(e,t){var n=[];return pi(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}function Ai(e,t,n,i,r){var a=-1,s=e.length;for(n||(n=Aa),r||(r=[]);++a<s;){var o=e[a];t>0&&n(o)?t>1?Ai(o,t-1,n,i,r):Nt(r,o):i||(r[r.length]=o)}return r}var yi=Dr(),bi=Dr(!0);function _i(e,t){return e&&yi(e,t,Ro)}function wi(e,t){return e&&bi(e,t,Ro)}function Ei(e,t){return Rt(t,function(t){return $s(e[t])})}function Si(e,t){for(var n=0,i=(t=br(t,e)).length;null!=e&&n<i;)e=e[Oa(t[n++])];return n&&n==i?e:r}function Ti(e,t,n){var i=t(e);return Gs(e)?i:Nt(i,n(e))}function xi(e){return null==e?e===r?"[object Undefined]":"[object Null]":Ze&&Ze in Ce(e)?function(e){var t=Ne.call(e,Ze),n=e[Ze];try{e[Ze]=r;var i=!0}catch(e){}var a=Fe.call(e);i&&(t?e[Ze]=n:delete e[Ze]);return a}(e):function(e){return Fe.call(e)}(e)}function Ci(e,t){return e>t}function Ii(e,t){return null!=e&&Ne.call(e,t)}function Mi(e,t){return null!=e&&t in Ce(e)}function ki(e,t,n){for(var a=n?Bt:Lt,s=e[0].length,o=e.length,l=o,u=i(o),c=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Dt(h,Zt(t))),c=bn(h.length,c),u[l]=!n&&(t||s>=120&&h.length>=120)?new Xn(l&&h):r}h=e[0];var p=-1,f=u[0];e:for(;++p<s&&d.length<c;){var m=h[p],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?tn(f,g):a(d,g,n))){for(l=o;--l;){var v=u[l];if(!(v?tn(v,g):a(e[l],g,n)))continue e}
vendor: 1,082 bytes, line 67
67f&&f.push(g),d.push(m)}}return d}function Pi(e,t,n){var i=null==(e=Ia(e,t=br(t,e)))?e:e[Oa(Ka(t))];return null==i?r:Ct(i,e,n)}function Ri(e){return to(e)&&xi(e)==A}function Li(e,t,n,i,a){return e===t||(null==e||null==t||!to(e)&&!to(t)?e!=e&&t!=t:function(e,t,n,i,a,s){var o=Gs(e),l=Gs(t),u=o?y:ma(e),c=l?y:ma(t),d=(u=u==A?C:u)==C,h=(c=c==A?C:c)==C,p=u==c;if(p&&Ys(e)){if(!Ys(t))return!1;o=!0,d=!1}if(p&&!d)return s||(s=new Kn),o||uo(e)?na(e,t,n,i,a,s):function(e,t,n,i,r,a,s){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B:return!(e.byteLength!=t.byteLength||!a(new je(e),new je(t)));case b:case _:case x:return zs(+e,+t);case w:return e.name==t.name&&e.message==t.message;case M:case P:return e==t+"";case T:var o=un;case k:var l=1&i;if(o||(o=hn),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=2,s.set(e,t);var c=na(o(e),o(t),i,r,a,s);return s.delete(e),c;case R:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,u,n,i,a,s);if(!(1&n)){var f=d&&Ne.call(e,"__wrapped__"),m=h&&Ne.call(t,"__wrapped__");
vendor: 38,328 bytes, line 67
67if(f||m){var g=f?e.value():e,v=m?t.value():t;return s||(s=new Kn),a(g,v,n,i,s)}}if(!p)return!1;return s||(s=new Kn),function(e,t,n,i,a,s){var o=1&n,l=ra(e),u=l.length,c=ra(t),d=c.length;if(u!=d&&!o)return!1;var h=u;for(;h--;){var p=l[h];if(!(o?p in t:Ne.call(t,p)))return!1}var f=s.get(e),m=s.get(t);if(f&&m)return f==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var v=o;for(;++h<u;){var A=e[p=l[h]],y=t[p];if(i)var b=o?i(y,A,p,t,e,s):i(A,y,p,e,t,s);if(!(b===r?A===y||a(A,y,n,i,s):b)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,i,a,s)}(e,t,n,i,Li,a))}function Bi(e,t,n,i){var a=n.length,s=a,o=!i;if(null==e)return!s;for(e=Ce(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var u=(l=n[a])[0],c=e[u],d=l[1];if(o&&l[2]){if(c===r&&!(u in e))return!1}else{var h=new Kn;if(i)var p=i(c,d,u,e,t,h);if(!(p===r?Li(d,c,3,i,h):p))return!1}}return!0}function Di(e){return!(!eo(e)||(t=e,Ue&&Ue in t))&&($s(e)?Ve:Ae).test(Ua(e));var t}function Ni(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Gs(e)?Vi(e[0],e[1]):Qi(e):pl(e)}function Oi(e){if(!Sa(e))return Yt(e);var t=[];for(var n in Ce(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ui(e){if(!eo(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Sa(e),n=[];for(var i in e)("constructor"!=i||!t&&Ne.call(e,i))&&n.push(i);return n}function Fi(e,t){return e<t}function zi(e,t){var n=-1,r=qs(e)?i(e.length):[];return pi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Qi(e){var t=da(e);return 1==t.length&&t[0][2]?xa(t[0][0],t[0][1]):function(n){return n===e||Bi(n,e,t)}}function Vi(e,t){return _a(e)&&Ta(t)?xa(Oa(e),t):function(n){var i=Co(n,e);return i===r&&i===t?Io(n,e):Li(t,i,3)}}function Hi(e,t,n,i,a){e!==t&&yi(t,function(s,o){if(a||(a=new Kn),eo(s))!function(e,t,n,i,a,s,o){var l=Ma(e,n),u=Ma(t,n),c=o.get(u);if(c)return void ti(e,n,c);var d=s?s(l,u,n+"",e,t,o):r,h=d===r;if(h){var p=Gs(u),f=!p&&Ys(u),m=!p&&!f&&uo(u);d=u,p||f||m?Gs(l)?d=l:Ws(l)?d=kr(l):f?(h=!1,d=Sr(u,!0)):m?(h=!1,d=xr(u,!0)):d=[]:ro(u)||Hs(u)?(d=l,Hs(l)?d=Ao(l):eo(l)&&!$s(l)||(d=va(u))):h=!1}h&&(o.set(u,d),a(d,u,i,s,o),o.delete(u));ti(e,n,d)}(e,t,o,n,Hi,i,a);else{var l=i?i(Ma(e,o),s,o+"",e,t,a):r;l===r&&(l=s),ti(e,o,l)}},Lo)}function Gi(e,t){var n=e.length;if(n)return ya(t+=t<0?n:0,n)?e[t]:r}function ji(e,t,n){t=t.length?Dt(t,function(e){return Gs(e)?function(t){return Si(t,1===e.length?e[0]:e)}:e}):[rl];var i=-1;t=Dt(t,Zt(ua()));var r=zi(e,function(e,n,r){var a=Dt(t,function(t){return t(e)});return{criteria:a,index:++i,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,function(e,t){return function(e,t,n){var i=-1,r=e.criteria,a=t.criteria,s=r.length,o=n.length;for(;++i<s;){var l=Cr(r[i],a[i]);if(l)return i>=o?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)})}function qi(e,t,n){for(var i=-1,r=t.length,a={};++i<r;){var s=t[i],o=Si(e,s);n(o,s)&&er(a,br(s,e),o)}return a}function Wi(e,t,n,i){var r=i?Gt:Ht,a=-1,s=t.length,o=e;for(e===t&&(t=kr(t)),n&&(o=Dt(e,Zt(n)));++a<s;)for(var l=0,u=t[a],c=n?n(u):u;(l=r(o,c,l,i))>-1;)o!==e&&Ke.call(o,l,1),Ke.call(e,l,1);return e}function Yi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==a){var a=r;ya(r)?Ke.call(e,r,1):hr(e,r)}}return e}function Xi(e,t){return e+gt(En()*(t-e+1))}function Ki(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function $i(e,t){return Ra(Ca(e,t,rl),e+"")}function Ji(e){return Jn(Qo(e))}function Zi(e,t){var n=Qo(e);return Da(n,li(t,0,n.length))}function er(e,t,n,i){if(!eo(e))return e;for(var a=-1,s=(t=br(t,e)).length,o=s-1,l=e;null!=l&&++a<s;){var u=Oa(t[a]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=o){var d=l[u];(c=i?i(d,u,l):r)===r&&(c=eo(d)?d:ya(t[a+1])?[]:{})}ni(l,u,c),l=l[u]}return e}var tr=Pn?function(e,t){return Pn.set(e,t),e}:rl,nr=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:rl;function ir(e){return Da(Qo(e))}function rr(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=i(a);++r<a;)s[r]=e[r+t];return s}function ar(e,t){var n;return pi(e,function(e,i,r){return!(n=t(e,i,r))}),!!n}function sr(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var a=i+r>>>1,s=e[a];null!==s&&!lo(s)&&(n?s<=t:s<t)?i=a+1:r=a}return r}return or(e,t,rl,n)}function or(e,t,n,i){var a=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,l=null===t,u=lo(t),c=t===r;a<s;){var d=gt((a+s)/2),h=n(e[d]),p=h!==r,f=null===h,m=h==h,g=lo(h);if(o)var v=i||m;else v=c?m&&(i||p):l?m&&p&&(i||!f):u?m&&p&&!f&&(i||!g):!f&&!g&&(i?h<=t:h<t);v?a=d+1:s=d}return bn(s,4294967294)}function lr(e,t){for(var n=-1,i=e.length,r=0,a=[];++n<i;){var s=e[n],o=t?t(s):s;if(!n||!zs(o,l)){var l=o;a[r++]=0===s?0:s}}return a}function ur(e){return"number"==typeof e?e:lo(e)?m:+e}function cr(e){if("string"==typeof e)return e;if(Gs(e))return Dt(e,cr)+"";if(lo(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function dr(e,t,n){var i=-1,r=Lt,a=e.length,s=!0,o=[],l=o;if(n)s=!1,r=Bt;else if(a>=200){var u=t?null:Kr(e);if(u)return hn(u);s=!1,r=tn,l=new Xn}else l=t?[]:o;e:for(;++i<a;){var c=e[i],d=t?t(c):c;if(c=n||0!==c?c:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),o.push(c)}else r(l,d,n)||(l!==o&&l.push(d),o.push(c))}return o}function hr(e,t){var n=-1,i=(t=br(t,e)).length;if(!i)return!0;for(var r=null==e||"object"!=typeof e&&"function"!=typeof e;++n<i;){var a=t[n];if("string"==typeof a){if("__proto__"===a&&!Ne.call(e,"__proto__"))return!1;if("constructor"===a&&n+1<i&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(r&&0===n)continue;return!1}}}var s=Ia(e,t);return null==s||delete s[Oa(Ka(t))]}function pr(e,t,n,i){return er(e,t,n(Si(e,t)),i)}function fr(e,t,n,i){for(var r=e.length,a=i?r:-1;(i?a--:++a<r)&&t(e[a],a,e););return n?rr(e,i?0:a,i?a+1:r):rr(e,i?a+1:0,i?r:a)}function mr(e,t){var n=e;return n instanceof jn&&(n=n.value()),Ot(t,function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))},n)}function gr(e,t,n){var r=e.length;if(r<2)return r?dr(e[0]):[];for(var a=-1,s=i(r);++a<r;)for(var o=e[a],l=-1;++l<r;)l!=a&&(s[a]=hi(s[a]||o,e[l],t,n));return dr(Ai(s,1),t,n)}function vr(e,t,n){for(var i=-1,a=e.length,s=t.length,o={};++i<a;){var l=i<s?t[i]:r;n(o,e[i],l)}return o}function Ar(e){return Ws(e)?e:[]}function yr(e){return"function"==typeof e?e:rl}function br(e,t){return Gs(e)?e:_a(e,t)?[e]:Na(yo(e))}var _r=$i;function wr(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:rr(e,t,n)}var Er=rt||function(e){return mt.clearTimeout(e)};function Sr(e,t){if(t)return e.slice();var n=e.length,i=qe?qe(n):new e.constructor(n);return e.copy(i),i}function Tr(e){var t=new e.constructor(e.byteLength);return new je(t).set(new je(e)),t}function xr(e,t){var n=t?Tr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Cr(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,s=lo(e),o=t!==r,l=null===t,u=t==t,c=lo(t);if(!l&&!c&&!s&&e>t||s&&o&&u&&!l&&!c||i&&o&&u||!n&&u||!a)return 1;if(!i&&!s&&!c&&e<t||c&&n&&a&&!i&&!s||l&&n&&a||!o&&a||!u)return-1}return 0}function Ir(e,t,n,r){for(var a=-1,s=e.length,o=n.length,l=-1,u=t.length,c=yn(s-o,0),d=i(u+c),h=!r;++l<u;)d[l]=t[l];for(;++a<o;)(h||a<s)&&(d[n[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}function Mr(e,t,n,r){for(var a=-1,s=e.length,o=-1,l=n.length,u=-1,c=t.length,d=yn(s-l,0),h=i(d+c),p=!r;++a<d;)h[a]=e[a];for(var f=a;++u<c;)h[f+u]=t[u];for(;++o<l;)(p||a<s)&&(h[f+n[o]]=e[a++]);return h}function kr(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function Pr(e,t,n,i){var a=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],u=i?i(n[l],e[l],l,n,e):r;u===r&&(u=e[l]),a?si(n,l,u):ni(n,l,u)}return n}function Rr(e,t){return function(n,i){var r=Gs(n)?It:ri,a=t?t():{};return r(n,e,ua(i,2),a)}}function Lr(e){return $i(function(t,n){var i=-1,a=n.length,s=a>1?n[a-1]:r,o=a>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(a--,s):r,o&&ba(n[0],n[1],o)&&(s=a<3?r:s,a=1),t=Ce(t);++i<a;){var l=n[i];l&&e(t,l,i,s)}return t})}function Br(e,t){return function(n,i){if(null==n)return n;if(!qs(n))return e(n,i);for(var r=n.length,a=t?r:-1,s=Ce(n);(t?a--:++a<r)&&!1!==i(s[a],a,s););return n}}function Dr(e){return function(t,n,i){for(var r=-1,a=Ce(t),s=i(t),o=s.length;o--;){var l=s[e?o:++r];if(!1===n(a[l],l,a))break}return t}}function Nr(e){return function(t){var n=ln(t=yo(t))?mn(t):r,i=n?n[0]:t.charAt(0),a=n?wr(n,1).join(""):t.slice(1);return i[e]()+a}}function Or(e){return function(t){return Ot(Jo(Go(t).replace(et,"")),e,"")}}function Ur(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),i=e.apply(n,t);return eo(i)?i:n}}function Fr(e){return function(t,n,i){var a=Ce(t);if(!qs(t)){var s=ua(n,3);t=Ro(t),n=function(e){return s(a[e],e,a)}}var o=e(t,n,i);return o>-1?a[s?t[o]:o]:r}}function zr(e){return ia(function(t){var n=t.length,i=n,s=Gn.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new ke(a);if(s&&!l&&"wrapper"==oa(o))var l=new Gn([],!0)}for(i=l?i:n;++i<n;){var u=oa(o=t[i]),c="wrapper"==u?sa(o):r;l=c&&wa(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[oa(c[0])].apply(l,c[3]):1==o.length&&wa(o)?l[u]():l.thru(o)}return function(){var e=arguments,i=e[0];if(l&&1==e.length&&Gs(i))return l.plant(i).value();for(var r=0,a=n?t[r].apply(this,e):i;++r<n;)a=t[r].call(this,a);return a}})}function Qr(e,t,n,a,s,o,l,u,c,h){var p=t&d,f=1&t,m=2&t,g=24&t,v=512&t,A=m?r:Ur(e);return function d(){for(var y=arguments.length,b=i(y),_=y;_--;)b[_]=arguments[_];if(g)var w=la(d),E=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(b,w);if(a&&(b=Ir(b,a,s,g)),o&&(b=Mr(b,o,l,g)),y-=E,g&&y<h){var S=dn(b,w);return Yr(e,t,Qr,d.placeholder,n,b,S,u,c,h-y)}var T=f?n:this,x=m?T[e]:e;return y=b.length,u?b=function(e,t){var n=e.length,i=bn(t.length,n),a=kr(e);for(;i--;){var s=t[i];e[i]=ya(s,n)?a[s]:r}return e}(b,u):v&&y>1&&b.reverse(),p&&c<y&&(b.length=c),this&&this!==mt&&this instanceof d&&(x=A||Ur(x)),x.apply(T,b)}}function Vr(e,t){return function(n,i){return function(e,t,n,i){return _i(e,function(e,r,a){t(i,n(e),r,a)}),i}(n,e,t(i),{})}}function Hr(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;"string"==typeof n||"string"==typeof i?(n=cr(n),i=cr(i)):(n=ur(n),i=ur(i)),a=e(n,i)}return a}}function Gr(e){return ia(function(t){return t=Dt(t,Zt(ua())),$i(function(n){var i=this;return e(t,function(e){return Ct(e,i,n)})})})}function jr(e,t){var n=(t=t===r?" ":cr(t)).length;if(n<2)return n?Ki(t,e):t;var i=Ki(t,ft(e/fn(t)));return ln(t)?wr(mn(i),0,e).join(""):i.slice(0,e)}function qr(e){return function(t,n,a){return a&&"number"!=typeof a&&ba(t,n,a)&&(n=a=r),t=fo(t),n===r?(n=t,t=0):n=fo(n),function(e,t,n,r){for(var a=-1,s=yn(ft((t-e)/(n||1)),0),o=i(s);s--;)o[r?s:++a]=e,e+=n;return o}(t,n,a=a===r?t<n?1:-1:fo(a),e)}}function Wr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vo(t),n=vo(n)),e(t,n)}}function Yr(e,t,n,i,a,s,o,l,d,h){var p=8&t;t|=p?u:c,4&(t&=~(p?c:u))||(t&=-4);var f=[e,t,a,p?s:r,p?o:r,p?r:s,p?r:o,l,d,h],m=n.apply(r,f);return wa(e)&&ka(m,f),m.placeholder=i,La(m,e,t)}function Xr(e){var t=xe[e];return function(e,n){if(e=vo(e),(n=null==n?0:bn(mo(n),292))&&bt(e)){var i=(yo(e)+"e").split("e");return+((i=(yo(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Kr=In&&1/hn(new In([,-0]))[1]==p?function(e){return new In(e)}:ul;function $r(e){return function(t){var n=ma(t);return n==T?un(t):n==k?pn(t):function(e,t){return Dt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Jr(e,t,n,s,p,f,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new ke(a);var A=s?s.length:0;if(A||(t&=-97,s=p=r),m=m===r?m:yn(mo(m),0),g=g===r?g:mo(g),A-=p?p.length:0,t&c){var y=s,b=p;s=p=r}var _=v?r:sa(e),w=[e,t,n,s,p,y,b,f,m,g];if(_&&function(e,t){var n=e[1],i=t[1],r=n|i,a=r<131,s=i==d&&8==n||i==d&&n==h&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Ir(u,l,t[4]):l,e[4]=u?dn(e[3],o):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Mr(u,l,t[6]):l,e[6]=u?dn(e[5],o):t[6]);(l=t[7])&&(e[7]=l);i&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(w,_),e=w[0],t=w[1],n=w[2],s=w[3],p=w[4],!(g=w[9]=w[9]===r?v?0:e.length:yn(w[9]-A,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==l?function(e,t,n){var a=Ur(e);return function s(){for(var o=arguments.length,l=i(o),u=o,c=la(s);u--;)l[u]=arguments[u];var d=o<3&&l[0]!==c&&l[o-1]!==c?[]:dn(l,c);return(o-=d.length)<n?Yr(e,t,Qr,s.placeholder,r,l,d,r,r,n-o):Ct(this&&this!==mt&&this instanceof s?a:e,this,l)}}(e,t,g):t!=u&&33!=t||p.length?Qr.apply(r,w):function(e,t,n,r){var a=1&t,s=Ur(e);return function t(){for(var o=-1,l=arguments.length,u=-1,c=r.length,d=i(c+l),h=this&&this!==mt&&this instanceof t?s:e;++u<c;)d[u]=r[u];for(;l--;)d[u++]=arguments[++o];return Ct(h,a?n:this,d)}}(e,t,n,s);else var E=function(e,t,n){var i=1&t,r=Ur(e);return function t(){return(this&&this!==mt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return La((_?tr:ka)(E,w),e,t)}function Zr(e,t,n,i){return e===r||zs(e,Le[n])&&!Ne.call(i,n)?t:e}function ea(e,t,n,i,a,s){return eo(e)&&eo(t)&&(s.set(t,e),Hi(e,t,r,ea,s),s.delete(t)),e}function ta(e){return ro(e)?r:e}function na(e,t,n,i,a,s){var o=1&n,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,p=!0,f=2&n?new Xn:r;for(s.set(e,t),s.set(t,e);++h<l;){var m=e[h],g=t[h];if(i)var v=o?i(g,m,h,t,e,s):i(m,g,h,e,t,s);if(v!==r){if(v)continue;p=!1;break}if(f){if(!Ft(t,function(e,t){if(!tn(f,t)&&(m===e||a(m,e,n,i,s)))return f.push(t)})){p=!1;break}}else if(m!==g&&!a(m,g,n,i,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function ia(e){return Ra(Ca(e,r,ja),e+"")}function ra(e){return Ti(e,Ro,pa)}function aa(e){return Ti(e,Lo,fa)}var sa=Pn?function(e){return Pn.get(e)}:ul;function oa(e){for(var t=e.name+"",n=Rn[t],i=Ne.call(Rn,t)?n.length:0;i--;){var r=n[i],a=r.func;if(null==a||a==e)return r.name}return t}function la(e){return(Ne.call(Qn,"placeholder")?Qn:e).placeholder}function ua(){var e=Qn.iteratee||al;return e=e===al?Ni:e,arguments.length?e(arguments[0],arguments[1]):e}function ca(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function da(e){for(var t=Ro(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Ta(r)]}return t}function ha(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Di(n)?n:r}var pa=vt?function(e){return null==e?[]:(e=Ce(e),Rt(vt(e),function(t){return Xe.call(e,t)}))}:gl,fa=vt?function(e){for(var t=[];e;)Nt(t,pa(e)),e=We(e);return t}:gl,ma=xi;function ga(e,t,n){for(var i=-1,r=(t=br(t,e)).length,a=!1;++i<r;){var s=Oa(t[i]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++i!=r?a:!!(r=null==e?0:e.length)&&Zs(r)&&ya(s,r)&&(Gs(e)||Hs(e))}function va(e){return"function"!=typeof e.constructor||Sa(e)?{}:Vn(We(e))}function Aa(e){return Gs(e)||Hs(e)||!!($e&&e&&e[$e])}function ya(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function ba(e,t,n){if(!eo(n))return!1;var i=typeof t;return!!("number"==i?qs(n)&&ya(t,n.length):"string"==i&&t in n)&&zs(n[t],e)}function _a(e,t){if(Gs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!lo(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function wa(e){var t=oa(e),n=Qn[t];if("function"!=typeof n||!(t in jn.prototype))return!1;if(e===n)return!0;var i=sa(n);return!!i&&e===i[0]}(Tn&&ma(new Tn(new ArrayBuffer(1)))!=D||xn&&ma(new xn)!=T||Cn&&ma(Cn.resolve())!=I||In&&ma(new In)!=k||Mn&&ma(new Mn)!=L)&&(ma=function(e){var t=xi(e),n=t==C?e.constructor:r,i=n?Ua(n):"";if(i)switch(i){case Ln:return D;case Bn:return T;case Dn:return I;case Nn:return k;case On:return L}return t});var Ea=Be?$s:vl;function Sa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Le)}function Ta(e){return e==e&&!eo(e)}function xa(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Ce(n)))}}function Ca(e,t,n){return t=yn(t===r?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=yn(r.length-t,0),o=i(s);++a<s;)o[a]=r[t+a];a=-1;for(var l=i(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),Ct(e,this,l)}}function Ia(e,t){return t.length<2?e:Si(e,rr(t,0,-1))}function Ma(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ka=Ba(tr),Pa=pt||function(e,t){return mt.setTimeout(e,t)},Ra=Ba(nr);function La(e,t,n){var i=t+"";return Ra(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Mt(v,function(n){var i="_."+n[0];t&n[1]&&!Lt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(i),n)))}function Ba(e){var t=0,n=0;return function(){var i=_n(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Da(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var s=Xi(n,a),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var Na=function(e){var t=Bs(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,function(e,n,i,r){t.push(i?r.replace(pe,"$1"):n||e)}),t});function Oa(e){if("string"==typeof e||lo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ua(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fa(e){if(e instanceof jn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=kr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var za=$i(function(e,t){return Ws(e)?hi(e,Ai(t,1,Ws,!0)):[]}),Qa=$i(function(e,t){var n=Ka(t);return Ws(n)&&(n=r),Ws(e)?hi(e,Ai(t,1,Ws,!0),ua(n,2)):[]}),Va=$i(function(e,t){var n=Ka(t);return Ws(n)&&(n=r),Ws(e)?hi(e,Ai(t,1,Ws,!0),r,n):[]});function Ha(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:mo(n);return r<0&&(r=yn(i+r,0)),Vt(e,ua(t,3),r)}function Ga(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=mo(n),a=n<0?yn(i+a,0):bn(a,i-1)),Vt(e,ua(t,3),a,!0)}function ja(e){return(null==e?0:e.length)?Ai(e,1):[]}function qa(e){return e&&e.length?e[0]:r}var Wa=$i(function(e){var t=Dt(e,Ar);return t.length&&t[0]===e[0]?ki(t):[]}),Ya=$i(function(e){var t=Ka(e),n=Dt(e,Ar);return t===Ka(n)?t=r:n.pop(),n.length&&n[0]===e[0]?ki(n,ua(t,2)):[]}),Xa=$i(function(e){var t=Ka(e),n=Dt(e,Ar);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?ki(n,r,t):[]});function Ka(e){var t=null==e?0:e.length;return t?e[t-1]:r}var $a=$i(Ja);function Ja(e,t){return e&&e.length&&t&&t.length?Wi(e,t):e}var Za=ia(function(e,t){var n=null==e?0:e.length,i=oi(e,t);return Yi(e,Dt(t,function(e){return ya(e,n)?+e:e}).sort(Cr)),i});function es(e){return null==e?e:Sn.call(e)}var ts=$i(function(e){return dr(Ai(e,1,Ws,!0))}),ns=$i(function(e){var t=Ka(e);return Ws(t)&&(t=r),dr(Ai(e,1,Ws,!0),ua(t,2))}),is=$i(function(e){var t=Ka(e);return t="function"==typeof t?t:r,dr(Ai(e,1,Ws,!0),r,t)});function rs(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,function(e){if(Ws(e))return t=yn(e.length,t),!0}),$t(t,function(t){return Dt(e,Wt(t))})}function as(e,t){if(!e||!e.length)return[];var n=rs(e);return null==t?n:Dt(n,function(e){return Ct(t,r,e)})}var ss=$i(function(e,t){return Ws(e)?hi(e,t):[]}),os=$i(function(e){return gr(Rt(e,Ws))}),ls=$i(function(e){var t=Ka(e);return Ws(t)&&(t=r),gr(Rt(e,Ws),ua(t,2))}),us=$i(function(e){var t=Ka(e);return t="function"==typeof t?t:r,gr(Rt(e,Ws),r,t)}),cs=$i(rs);var ds=$i(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,as(e,n)});function hs(e){var t=Qn(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var fs=ia(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return oi(t,e)};return!(t>1||this.__actions__.length)&&i instanceof jn&&ya(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:ps,args:[a],thisArg:r}),new Gn(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(a)});var ms=Rr(function(e,t,n){Ne.call(e,n)?++e[n]:si(e,n,1)});var gs=Fr(Ha),vs=Fr(Ga);function As(e,t){return(Gs(e)?Mt:pi)(e,ua(t,3))}function ys(e,t){return(Gs(e)?kt:fi)(e,ua(t,3))}var bs=Rr(function(e,t,n){Ne.call(e,n)?e[n].push(t):si(e,n,[t])});var _s=$i(function(e,t,n){var r=-1,a="function"==typeof t,s=qs(e)?i(e.length):[];return pi(e,function(e){s[++r]=a?Ct(t,e,n):Pi(e,t,n)}),s}),ws=Rr(function(e,t,n){si(e,n,t)});function Es(e,t){return(Gs(e)?Dt:zi)(e,ua(t,3))}var Ss=Rr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Ts=$i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&ba(e,t[0],t[1])?t=[]:n>2&&ba(t[0],t[1],t[2])&&(t=[t[0]]),ji(e,Ai(t,1),[])}),xs=ct||function(){return mt.Date.now()};function Cs(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Jr(e,d,r,r,r,r,t)}function Is(e,t){var n;if("function"!=typeof t)throw new ke(a);return e=mo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ms=$i(function(e,t,n){var i=1;if(n.length){var r=dn(n,la(Ms));i|=u}return Jr(e,i,t,n,r)}),ks=$i(function(e,t,n){var i=3;if(n.length){var r=dn(n,la(ks));i|=u}return Jr(t,i,e,n,r)});function Ps(e,t,n){var i,s,o,l,u,c,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new ke(a);function m(t){var n=i,a=s;return i=s=r,d=t,l=e.apply(a,n)}function g(e){var n=e-c;return c===r||n>=t||n<0||p&&e-d>=o}function v(){var e=xs();if(g(e))return A(e);u=Pa(v,function(e){var n=t-(e-c);return p?bn(n,o-(e-d)):n}(e))}function A(e){return u=r,f&&i?m(e):(i=s=r,l)}function y(){var e=xs(),n=g(e);if(i=arguments,s=this,c=e,n){if(u===r)return function(e){return d=e,u=Pa(v,t),h?m(e):l}(c);if(p)return Er(u),u=Pa(v,t),m(c)}return u===r&&(u=Pa(v,t)),l}return t=vo(t)||0,eo(n)&&(h=!!n.leading,o=(p="maxWait"in n)?yn(vo(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){u!==r&&Er(u),d=0,i=c=s=u=r},y.flush=function(){return u===r?l:A(xs())},y}var Rs=$i(function(e,t){return di(e,1,t)}),Ls=$i(function(e,t,n){return di(e,vo(t)||0,n)});function Bs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(a);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var s=e.apply(this,i);return n.cache=a.set(r,s)||a,s};return n.cache=new(Bs.Cache||Yn),n}function Ds(e){if("function"!=typeof e)throw new ke(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bs.Cache=Yn;var Ns=_r(function(e,t){var n=(t=1==t.length&&Gs(t[0])?Dt(t[0],Zt(ua())):Dt(Ai(t,1),Zt(ua()))).length;return $i(function(i){for(var r=-1,a=bn(i.length,n);++r<a;)i[r]=t[r].call(this,i[r]);return Ct(e,this,i)})}),Os=$i(function(e,t){var n=dn(t,la(Os));return Jr(e,u,r,t,n)}),Us=$i(function(e,t){var n=dn(t,la(Us));return Jr(e,c,r,t,n)}),Fs=ia(function(e,t){return Jr(e,h,r,r,r,t)});function zs(e,t){return e===t||e!=e&&t!=t}var Qs=Wr(Ci),Vs=Wr(function(e,t){return e>=t}),Hs=Ri(function(){return arguments}())?Ri:function(e){return to(e)&&Ne.call(e,"callee")&&!Xe.call(e,"callee")},Gs=i.isArray,js=_t?Zt(_t):function(e){return to(e)&&xi(e)==B};function qs(e){return null!=e&&Zs(e.length)&&!$s(e)}function Ws(e){return to(e)&&qs(e)}var Ys=yt||vl,Xs=wt?Zt(wt):function(e){return to(e)&&xi(e)==_};function Ks(e){if(!to(e))return!1;var t=xi(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ro(e)}function $s(e){if(!eo(e))return!1;var t=xi(e);return t==E||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Js(e){return"number"==typeof e&&e==mo(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function eo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function to(e){return null!=e&&"object"==typeof e}var no=Et?Zt(Et):function(e){return to(e)&&ma(e)==T};function io(e){return"number"==typeof e||to(e)&&xi(e)==x}function ro(e){if(!to(e)||xi(e)!=C)return!1;var t=We(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==ze}var ao=St?Zt(St):function(e){return to(e)&&xi(e)==M};var so=Tt?Zt(Tt):function(e){return to(e)&&ma(e)==k};function oo(e){return"string"==typeof e||!Gs(e)&&to(e)&&xi(e)==P}function lo(e){return"symbol"==typeof e||to(e)&&xi(e)==R}var uo=xt?Zt(xt):function(e){return to(e)&&Zs(e.length)&&!!lt[xi(e)]};var co=Wr(Fi),ho=Wr(function(e,t){return e<=t});function po(e){if(!e)return[];if(qs(e))return oo(e)?mn(e):kr(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=ma(e);return(t==T?un:t==k?hn:Qo)(e)}function fo(e){return e?(e=vo(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function mo(e){var t=fo(e),n=t%1;return t==t?n?t-n:t:0}function go(e){return e?li(mo(e),0,g):0}function vo(e){if("number"==typeof e)return e;if(lo(e))return m;if(eo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ve.test(e);return n||ye.test(e)?ht(e.slice(2),n?2:8):ge.test(e)?m:+e}function Ao(e){return Pr(e,Lo(e))}function yo(e){return null==e?"":cr(e)}var bo=Lr(function(e,t){if(Sa(t)||qs(t))Pr(t,Ro(t),e);else for(var n in t)Ne.call(t,n)&&ni(e,n,t[n])}),_o=Lr(function(e,t){Pr(t,Lo(t),e)}),wo=Lr(function(e,t,n,i){Pr(t,Lo(t),e,i)}),Eo=Lr(function(e,t,n,i){Pr(t,Ro(t),e,i)}),So=ia(oi);var To=$i(function(e,t){e=Ce(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&ba(t[0],t[1],a)&&(i=1);++n<i;)for(var s=t[n],o=Lo(s),l=-1,u=o.length;++l<u;){var c=o[l],d=e[c];(d===r||zs(d,Le[c])&&!Ne.call(e,c))&&(e[c]=s[c])}return e}),xo=$i(function(e){return e.push(r,ea),Ct(Do,r,e)});function Co(e,t,n){var i=null==e?r:Si(e,t);return i===r?n:i}function Io(e,t){return null!=e&&ga(e,t,Mi)}var Mo=Vr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n},tl(rl)),ko=Vr(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]},ua),Po=$i(Pi);function Ro(e){return qs(e)?$n(e):Oi(e)}function Lo(e){return qs(e)?$n(e,!0):Ui(e)}var Bo=Lr(function(e,t,n){Hi(e,t,n)}),Do=Lr(function(e,t,n,i){Hi(e,t,n,i)}),No=ia(function(e,t){var n={};if(null==e)return n;var i=!1;t=Dt(t,function(t){return t=br(t,e),i||(i=t.length>1),t}),Pr(e,aa(e),n),i&&(n=ui(n,7,ta));for(var r=t.length;r--;)hr(n,t[r]);return n});var Oo=ia(function(e,t){return null==e?{}:function(e,t){return qi(e,t,function(t,n){return Io(e,n)})}(e,t)});function Uo(e,t){if(null==e)return{};var n=Dt(aa(e),function(e){return[e]});return t=ua(t),qi(e,n,function(e,n){return t(e,n[0])})}var Fo=$r(Ro),zo=$r(Lo);function Qo(e){return null==e?[]:en(e,Ro(e))}var Vo=Or(function(e,t,n){return t=t.toLowerCase(),e+(n?Ho(t):t)});function Ho(e){return $o(yo(e).toLowerCase())}function Go(e){return(e=yo(e))&&e.replace(_e,an).replace(tt,"")}var jo=Or(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qo=Or(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Wo=Nr("toLowerCase");var Yo=Or(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Xo=Or(function(e,t,n){return e+(n?" ":"")+$o(t)});var Ko=Or(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$o=Nr("toUpperCase");function Jo(e,t,n){return e=yo(e),(t=n?r:t)===r?function(e){return at.test(e)}(e)?function(e){return e.match(it)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Zo=$i(function(e,t){try{return Ct(e,r,t)}catch(e){return Ks(e)?e:new Se(e)}}),el=ia(function(e,t){return Mt(t,function(t){t=Oa(t),si(e,t,Ms(e[t],e))}),e});function tl(e){return function(){return e}}var nl=zr(),il=zr(!0);function rl(e){return e}function al(e){return Ni("function"==typeof e?e:ui(e,1))}var sl=$i(function(e,t){return function(n){return Pi(n,e,t)}}),ol=$i(function(e,t){return function(n){return Pi(e,n,t)}});function ll(e,t,n){var i=Ro(t),r=Ei(t,i);null!=n||eo(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=Ei(t,Ro(t)));var a=!(eo(n)&&"chain"in n&&!n.chain),s=$s(e);return Mt(r,function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=kr(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Nt([this.value()],arguments))})}),e}function ul(){}var cl=Gr(Dt),dl=Gr(Pt),hl=Gr(Ft);function pl(e){return _a(e)?Wt(Oa(e)):function(e){return function(t){return Si(t,e)}}(e)}var fl=qr(),ml=qr(!0);function gl(){return[]}function vl(){return!1}var Al=Hr(function(e,t){return e+t},0),yl=Xr("ceil"),bl=Hr(function(e,t){return e/t},1),_l=Xr("floor");var wl,El=Hr(function(e,t){return e*t},1),Sl=Xr("round"),Tl=Hr(function(e,t){return e-t},0);return Qn.after=function(e,t){if("function"!=typeof t)throw new ke(a);return e=mo(e),function(){if(--e<1)return t.apply(this,arguments)}},Qn.ary=Cs,Qn.assign=bo,Qn.assignIn=_o,Qn.assignInWith=wo,Qn.assignWith=Eo,Qn.at=So,Qn.before=Is,Qn.bind=Ms,Qn.bindAll=el,Qn.bindKey=ks,Qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gs(e)?e:[e]},Qn.chain=hs,Qn.chunk=function(e,t,n){t=(n?ba(e,t,n):t===r)?1:yn(mo(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,o=0,l=i(ft(a/t));s<a;)l[o++]=rr(e,s,s+=t);return l},Qn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var a=e[t];a&&(r[i++]=a)}return r},Qn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nt(Gs(n)?kr(n):[n],Ai(t,1))},Qn.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?Dt(e,function(e){if("function"!=typeof e[1])throw new ke(a);return[n(e[0]),e[1]]}):[],$i(function(n){for(var i=-1;++i<t;){var r=e[i];if(Ct(r[0],this,n))return Ct(r[1],this,n)}})},Qn.conforms=function(e){return function(e){var t=Ro(e);return function(n){return ci(n,e,t)}}(ui(e,1))},Qn.constant=tl,Qn.countBy=ms,Qn.create=function(e,t){var n=Vn(e);return null==t?n:ai(n,t)},Qn.curry=function e(t,n,i){var a=Jr(t,8,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},Qn.curryRight=function e(t,n,i){var a=Jr(t,l,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},Qn.debounce=Ps,Qn.defaults=To,Qn.defaultsDeep=xo,Qn.defer=Rs,Qn.delay=Ls,Qn.difference=za,Qn.differenceBy=Qa,Qn.differenceWith=Va,Qn.drop=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,(t=n||t===r?1:mo(t))<0?0:t,i):[]},Qn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,0,(t=i-(t=n||t===r?1:mo(t)))<0?0:t):[]},Qn.dropRightWhile=function(e,t){return e&&e.length?fr(e,ua(t,3),!0,!0):[]},Qn.dropWhile=function(e,t){return e&&e.length?fr(e,ua(t,3),!0):[]},Qn.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&ba(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=mo(n))<0&&(n=-n>a?0:a+n),(i=i===r||i>a?a:mo(i))<0&&(i+=a),i=n>i?0:go(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},Qn.filter=function(e,t){return(Gs(e)?Rt:vi)(e,ua(t,3))},Qn.flatMap=function(e,t){return Ai(Es(e,t),1)},Qn.flatMapDeep=function(e,t){return Ai(Es(e,t),p)},Qn.flatMapDepth=function(e,t,n){return n=n===r?1:mo(n),Ai(Es(e,t),n)},Qn.flatten=ja,Qn.flattenDeep=function(e){return(null==e?0:e.length)?Ai(e,p):[]},Qn.flattenDepth=function(e,t){return(null==e?0:e.length)?Ai(e,t=t===r?1:mo(t)):[]},Qn.flip=function(e){return Jr(e,512)},Qn.flow=nl,Qn.flowRight=il,Qn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},Qn.functions=function(e){return null==e?[]:Ei(e,Ro(e))},Qn.functionsIn=function(e){return null==e?[]:Ei(e,Lo(e))},Qn.groupBy=bs,Qn.initial=function(e){return(null==e?0:e.length)?rr(e,0,-1):[]},Qn.intersection=Wa,Qn.intersectionBy=Ya,Qn.intersectionWith=Xa,Qn.invert=Mo,Qn.invertBy=ko,Qn.invokeMap=_s,Qn.iteratee=al,Qn.keyBy=ws,Qn.keys=Ro,Qn.keysIn=Lo,Qn.map=Es,Qn.mapKeys=function(e,t){var n={};return t=ua(t,3),_i(e,function(e,i,r){si(n,t(e,i,r),e)}),n},Qn.mapValues=function(e,t){var n={};return t=ua(t,3),_i(e,function(e,i,r){si(n,i,t(e,i,r))}),n},Qn.matches=function(e){return Qi(ui(e,1))},Qn.matchesProperty=function(e,t){return Vi(e,ui(t,1))},Qn.memoize=Bs,Qn.merge=Bo,Qn.mergeWith=Do,Qn.method=sl,Qn.methodOf=ol,Qn.mixin=ll,Qn.negate=Ds,Qn.nthArg=function(e){return e=mo(e),$i(function(t){return Gi(t,e)})},Qn.omit=No,Qn.omitBy=function(e,t){return Uo(e,Ds(ua(t)))},Qn.once=function(e){return Is(2,e)},Qn.orderBy=function(e,t,n,i){return null==e?[]:(Gs(t)||(t=null==t?[]:[t]),Gs(n=i?r:n)||(n=null==n?[]:[n]),ji(e,t,n))},Qn.over=cl,Qn.overArgs=Ns,Qn.overEvery=dl,Qn.overSome=hl,Qn.partial=Os,Qn.partialRight=Us,Qn.partition=Ss,Qn.pick=Oo,Qn.pickBy=Uo,Qn.property=pl,Qn.propertyOf=function(e){return function(t){return null==e?r:Si(e,t)}},Qn.pull=$a,Qn.pullAll=Ja,Qn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wi(e,t,ua(n,2)):e},Qn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wi(e,t,r,n):e},Qn.pullAt=Za,Qn.range=fl,Qn.rangeRight=ml,Qn.rearg=Fs,Qn.reject=function(e,t){return(Gs(e)?Rt:vi)(e,Ds(ua(t,3)))},Qn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],a=e.length;for(t=ua(t,3);++i<a;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Yi(e,r),n},Qn.rest=function(e,t){if("function"!=typeof e)throw new ke(a);return $i(e,t=t===r?t:mo(t))},Qn.reverse=es,Qn.sampleSize=function(e,t,n){return t=(n?ba(e,t,n):t===r)?1:mo(t),(Gs(e)?Zn:Zi)(e,t)},Qn.set=function(e,t,n){return null==e?e:er(e,t,n)},Qn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:er(e,t,n,i)},Qn.shuffle=function(e){return(Gs(e)?ei:ir)(e)},Qn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ba(e,t,n)?(t=0,n=i):(t=null==t?0:mo(t),n=n===r?i:mo(n)),rr(e,t,n)):[]},Qn.sortBy=Ts,Qn.sortedUniq=function(e){return e&&e.length?lr(e):[]},Qn.sortedUniqBy=function(e,t){return e&&e.length?lr(e,ua(t,2)):[]},Qn.split=function(e,t,n){return n&&"number"!=typeof n&&ba(e,t,n)&&(t=n=r),(n=n===r?g:n>>>0)?(e=yo(e))&&("string"==typeof t||null!=t&&!ao(t))&&!(t=cr(t))&&ln(e)?wr(mn(e),0,n):e.split(t,n):[]},Qn.spread=function(e,t){if("function"!=typeof e)throw new ke(a);return t=null==t?0:yn(mo(t),0),$i(function(n){var i=n[t],r=wr(n,0,t);return i&&Nt(r,i),Ct(e,this,r)})},Qn.tail=function(e){var t=null==e?0:e.length;return t?rr(e,1,t):[]},Qn.take=function(e,t,n){return e&&e.length?rr(e,0,(t=n||t===r?1:mo(t))<0?0:t):[]},Qn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?rr(e,(t=i-(t=n||t===r?1:mo(t)))<0?0:t,i):[]},Qn.takeRightWhile=function(e,t){return e&&e.length?fr(e,ua(t,3),!1,!0):[]},Qn.takeWhile=function(e,t){return e&&e.length?fr(e,ua(t,3)):[]},Qn.tap=function(e,t){return t(e),e},Qn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new ke(a);return eo(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ps(e,t,{leading:i,maxWait:t,trailing:r})},Qn.thru=ps,Qn.toArray=po,Qn.toPairs=Fo,Qn.toPairsIn=zo,Qn.toPath=function(e){return Gs(e)?Dt(e,Oa):lo(e)?[e]:kr(Na(yo(e)))},Qn.toPlainObject=Ao,Qn.transform=function(e,t,n){var i=Gs(e),r=i||Ys(e)||uo(e);if(t=ua(t,4),null==n){var a=e&&e.constructor;n=r?i?new a:[]:eo(e)&&$s(a)?Vn(We(e)):{}}return(r?Mt:_i)(e,function(e,i,r){return t(n,e,i,r)}),n},Qn.unary=function(e){return Cs(e,1)},Qn.union=ts,Qn.unionBy=ns,Qn.unionWith=is,Qn.uniq=function(e){return e&&e.length?dr(e):[]},Qn.uniqBy=function(e,t){return e&&e.length?dr(e,ua(t,2)):[]},Qn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?dr(e,r,t):[]},Qn.unset=function(e,t){return null==e||hr(e,t)},Qn.unzip=rs,Qn.unzipWith=as,Qn.update=function(e,t,n){return null==e?e:pr(e,t,yr(n))},Qn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:pr(e,t,yr(n),i)},Qn.values=Qo,Qn.valuesIn=function(e){return null==e?[]:en(e,Lo(e))},Qn.without=ss,Qn.words=Jo,Qn.wrap=function(e,t){return Os(yr(t),e)},Qn.xor=os,Qn.xorBy=ls,Qn.xorWith=us,Qn.zip=cs,Qn.zipObject=function(e,t){return vr(e||[],t||[],ni)},Qn.zipObjectDeep=function(e,t){return vr(e||[],t||[],er)},Qn.zipWith=ds,Qn.entries=Fo,Qn.entriesIn=zo,Qn.extend=_o,Qn.extendWith=wo,ll(Qn,Qn),Qn.add=Al,Qn.attempt=Zo,Qn.camelCase=Vo,Qn.capitalize=Ho,Qn.ceil=yl,Qn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=vo(n))==n?n:0),t!==r&&(t=(t=vo(t))==t?t:0),li(vo(e),t,n)},Qn.clone=function(e){return ui(e,4)},Qn.cloneDeep=function(e){return ui(e,5)},Qn.cloneDeepWith=function(e,t){return ui(e,5,t="function"==typeof t?t:r)},Qn.cloneWith=function(e,t){return ui(e,4,t="function"==typeof t?t:r)},Qn.conformsTo=function(e,t){return null==t||ci(e,t,Ro(t))},Qn.deburr=Go,Qn.defaultTo=function(e,t){return null==e||e!=e?t:e},Qn.divide=bl,Qn.endsWith=function(e,t,n){e=yo(e),t=cr(t);var i=e.length,a=n=n===r?i:li(mo(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},Qn.eq=zs,Qn.escape=function(e){return(e=yo(e))&&$.test(e)?e.replace(X,sn):e},Qn.escapeRegExp=function(e){return(e=yo(e))&&ae.test(e)?e.replace(re,"\\$&"):e},Qn.every=function(e,t,n){var i=Gs(e)?Pt:mi;return n&&ba(e,t,n)&&(t=r),i(e,ua(t,3))},Qn.find=gs,Qn.findIndex=Ha,Qn.findKey=function(e,t){return Qt(e,ua(t,3),_i)},Qn.findLast=vs,Qn.findLastIndex=Ga,Qn.findLastKey=function(e,t){return Qt(e,ua(t,3),wi)},Qn.floor=_l,Qn.forEach=As,Qn.forEachRight=ys,Qn.forIn=function(e,t){return null==e?e:yi(e,ua(t,3),Lo)},Qn.forInRight=function(e,t){return null==e?e:bi(e,ua(t,3),Lo)},Qn.forOwn=function(e,t){return e&&_i(e,ua(t,3))},Qn.forOwnRight=function(e,t){return e&&wi(e,ua(t,3))},Qn.get=Co,Qn.gt=Qs,Qn.gte=Vs,Qn.has=function(e,t){return null!=e&&ga(e,t,Ii)},Qn.hasIn=Io,Qn.head=qa,Qn.identity=rl,Qn.includes=function(e,t,n,i){e=qs(e)?e:Qo(e),n=n&&!i?mo(n):0;var r=e.length;
vendor: 4,224 bytes, line 67
67return n<0&&(n=yn(r+n,0)),oo(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Ht(e,t,n)>-1},Qn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:mo(n);return r<0&&(r=yn(i+r,0)),Ht(e,t,r)},Qn.inRange=function(e,t,n){return t=fo(t),n===r?(n=t,t=0):n=fo(n),function(e,t,n){return e>=bn(t,n)&&e<yn(t,n)}(e=vo(e),t,n)},Qn.invoke=Po,Qn.isArguments=Hs,Qn.isArray=Gs,Qn.isArrayBuffer=js,Qn.isArrayLike=qs,Qn.isArrayLikeObject=Ws,Qn.isBoolean=function(e){return!0===e||!1===e||to(e)&&xi(e)==b},Qn.isBuffer=Ys,Qn.isDate=Xs,Qn.isElement=function(e){return to(e)&&1===e.nodeType&&!ro(e)},Qn.isEmpty=function(e){if(null==e)return!0;if(qs(e)&&(Gs(e)||"string"==typeof e||"function"==typeof e.splice||Ys(e)||uo(e)||Hs(e)))return!e.length;var t=ma(e);if(t==T||t==k)return!e.size;if(Sa(e))return!Oi(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Qn.isEqual=function(e,t){return Li(e,t)},Qn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Li(e,t,r,n):!!i},Qn.isError=Ks,Qn.isFinite=function(e){return"number"==typeof e&&bt(e)},Qn.isFunction=$s,Qn.isInteger=Js,Qn.isLength=Zs,Qn.isMap=no,Qn.isMatch=function(e,t){return e===t||Bi(e,t,da(t))},Qn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Bi(e,t,da(t),n)},Qn.isNaN=function(e){return io(e)&&e!=+e},Qn.isNative=function(e){if(Ea(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Di(e)},Qn.isNil=function(e){return null==e},Qn.isNull=function(e){return null===e},Qn.isNumber=io,Qn.isObject=eo,Qn.isObjectLike=to,Qn.isPlainObject=ro,Qn.isRegExp=ao,Qn.isSafeInteger=function(e){return Js(e)&&e>=-9007199254740991&&e<=f},Qn.isSet=so,Qn.isString=oo,Qn.isSymbol=lo,Qn.isTypedArray=uo,Qn.isUndefined=function(e){return e===r},Qn.isWeakMap=function(e){return to(e)&&ma(e)==L},Qn.isWeakSet=function(e){return to(e)&&"[object WeakSet]"==xi(e)},Qn.join=function(e,t){return null==e?"":zt.call(e,t)},Qn.kebabCase=jo,Qn.last=Ka,Qn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=mo(n))<0?yn(i+a,0):bn(a,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):Vt(e,jt,a,!0)},Qn.lowerCase=qo,Qn.lowerFirst=Wo,Qn.lt=co,Qn.lte=ho,Qn.max=function(e){return e&&e.length?gi(e,rl,Ci):r},Qn.maxBy=function(e,t){return e&&e.length?gi(e,ua(t,2),Ci):r},Qn.mean=function(e){return qt(e,rl)},Qn.meanBy=function(e,t){return qt(e,ua(t,2))},Qn.min=function(e){return e&&e.length?gi(e,rl,Fi):r},Qn.minBy=function(e,t){return e&&e.length?gi(e,ua(t,2),Fi):r},Qn.stubArray=gl,Qn.stubFalse=vl,Qn.stubObject=function(){return{}},Qn.stubString=function(){return""},Qn.stubTrue=function(){return!0},Qn.multiply=El,Qn.nth=function(e,t){return e&&e.length?Gi(e,mo(t)):r},Qn.noConflict=function(){return mt._===this&&(mt._=Qe),this},Qn.noop=ul,Qn.now=xs,Qn.pad=function(e,t,n){e=yo(e);var i=(t=mo(t))?fn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return jr(gt(r),n)+e+jr(ft(r),n)},Qn.padEnd=function(e,t,n){e=yo(e);var i=(t=mo(t))?fn(e):0;return t&&i<t?e+jr(t-i,n):e},Qn.padStart=function(e,t,n){e=yo(e);var i=(t=mo(t))?fn(e):0;return t&&i<t?jr(t-i,n)+e:e},Qn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(yo(e).replace(se,""),t||0)},Qn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ba(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=fo(e),t===r?(t=e,e=0):t=fo(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=En();return bn(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Xi(e,t)},Qn.reduce=function(e,t,n){var i=Gs(e)?Ot:Xt,r=arguments.length<3;return i(e,ua(t,4),n,r,pi)},Qn.reduceRight=function(e,t,n){var i=Gs(e)?Ut:Xt,r=arguments.length<3;return i(e,ua(t,4),n,r,fi)},Qn.repeat=function(e,t,n){return t=(n?ba(e,t,n):t===r)?1:mo(t),Ki(yo(e),t)},Qn.replace=function(){var e=arguments,t=yo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Qn.result=function(e,t,n){var i=-1,a=(t=br(t,e)).length;for(a||(a=1,e=r);++i<a;){var s=null==e?r:e[Oa(t[i])];s===r&&(i=a,s=n),e=$s(s)?s.call(e):s}return e},Qn.round=Sl,Qn.runInContext=e,Qn.sample=function(e){return(Gs(e)?Jn:Ji)(e)},Qn.size=function(e){if(null==e)return 0;if(qs(e))return oo(e)?fn(e):e.length;var t=ma(e);
vendor: 13,018 bytes, line 67
67return t==T||t==k?e.size:Oi(e).length},Qn.snakeCase=Yo,Qn.some=function(e,t,n){var i=Gs(e)?Ft:ar;return n&&ba(e,t,n)&&(t=r),i(e,ua(t,3))},Qn.sortedIndex=function(e,t){return sr(e,t)},Qn.sortedIndexBy=function(e,t,n){return or(e,t,ua(n,2))},Qn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=sr(e,t);if(i<n&&zs(e[i],t))return i}return-1},Qn.sortedLastIndex=function(e,t){return sr(e,t,!0)},Qn.sortedLastIndexBy=function(e,t,n){return or(e,t,ua(n,2),!0)},Qn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=sr(e,t,!0)-1;if(zs(e[n],t))return n}return-1},Qn.startCase=Xo,Qn.startsWith=function(e,t,n){return e=yo(e),n=null==n?0:li(mo(n),0,e.length),t=cr(t),e.slice(n,n+t.length)==t},Qn.subtract=Tl,Qn.sum=function(e){return e&&e.length?Kt(e,rl):0},Qn.sumBy=function(e,t){return e&&e.length?Kt(e,ua(t,2)):0},Qn.template=function(e,t,n){var i=Qn.templateSettings;n&&ba(e,t,n)&&(t=r),e=yo(e),t=wo({},t,i,Zr);var a,s,o=wo({},t.imports,i.imports,Zr),l=Ro(o),u=en(o,l),c=0,d=t.interpolate||we,h="__p += '",p=Ie((t.escape||we).source+"|"+d.source+"|"+(d===ee?fe:we).source+"|"+(t.evaluate||we).source+"|$","g"),f="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(p,function(t,n,i,r,o,l){return i||(i=r),h+=e.slice(c,l).replace(Ee,on),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),o&&(s=!0,h+="';\n"+o+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),h+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(he.test(m))throw new Se("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(j,""):h).replace(q,"$1").replace(W,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Zo(function(){return Te(l,f+"return "+h).apply(r,u)});if(g.source=h,Ks(g))throw g;return g},Qn.times=function(e,t){if((e=mo(e))<1||e>f)return[];var n=g,i=bn(e,g);t=ua(t),e-=g;for(var r=$t(i,t);++n<e;)t(n);return r},Qn.toFinite=fo,Qn.toInteger=mo,Qn.toLength=go,Qn.toLower=function(e){return yo(e).toLowerCase()},Qn.toNumber=vo,Qn.toSafeInteger=function(e){return e?li(mo(e),-9007199254740991,f):0===e?e:0},Qn.toString=yo,Qn.toUpper=function(e){return yo(e).toUpperCase()},Qn.trim=function(e,t,n){if((e=yo(e))&&(n||t===r))return Jt(e);if(!e||!(t=cr(t)))return e;var i=mn(e),a=mn(t);return wr(i,nn(i,a),rn(i,a)+1).join("")},Qn.trimEnd=function(e,t,n){if((e=yo(e))&&(n||t===r))return e.slice(0,gn(e)+1);if(!e||!(t=cr(t)))return e;var i=mn(e);return wr(i,0,rn(i,mn(t))+1).join("")},Qn.trimStart=function(e,t,n){if((e=yo(e))&&(n||t===r))return e.replace(se,"");if(!e||!(t=cr(t)))return e;var i=mn(e);return wr(i,nn(i,mn(t))).join("")},Qn.truncate=function(e,t){var n=30,i="...";if(eo(t)){var a="separator"in t?t.separator:a;n="length"in t?mo(t.length):n,i="omission"in t?cr(t.omission):i}var s=(e=yo(e)).length;if(ln(e)){var o=mn(e);s=o.length}if(n>=s)return e;var l=n-fn(i);if(l<1)return i;var u=o?wr(o,0,l).join(""):e.slice(0,l);if(a===r)return u+i;if(o&&(l+=u.length-l),ao(a)){if(e.slice(l).search(a)){var c,d=u;for(a.global||(a=Ie(a.source,yo(me.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var h=c.index;u=u.slice(0,h===r?l:h)}}else if(e.indexOf(cr(a),l)!=l){var p=u.lastIndexOf(a);p>-1&&(u=u.slice(0,p))}return u+i},Qn.unescape=function(e){return(e=yo(e))&&K.test(e)?e.replace(Y,vn):e},Qn.uniqueId=function(e){var t=++Oe;return yo(e)+t},Qn.upperCase=Ko,Qn.upperFirst=$o,Qn.each=As,Qn.eachRight=ys,Qn.first=qa,ll(Qn,(wl={},_i(Qn,function(e,t){Ne.call(Qn.prototype,t)||(wl[t]=e)}),wl),{chain:!1}),Qn.VERSION="4.17.23",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Qn[e].placeholder=Qn}),Mt(["drop","take"],function(e,t){jn.prototype[e]=function(n){n=n===r?1:yn(mo(n),0);var i=this.__filtered__&&!t?new jn(this):this.clone();return i.__filtered__?i.__takeCount__=bn(n,i.__takeCount__):i.__views__.push({size:bn(n,g),type:e+(i.__dir__<0?"Right":"")}),i},jn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Mt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;jn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),Mt(["head","last"],function(e,t){var n="take"+(t?"Right":"");jn.prototype[e]=function(){return this[n](1).value()[0]}}),Mt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");jn.prototype[e]=function(){return this.__filtered__?new jn(this):this[n](1)}}),jn.prototype.compact=function(){return this.filter(rl)},jn.prototype.find=function(e){return this.filter(e).head()},jn.prototype.findLast=function(e){return this.reverse().find(e)},jn.prototype.invokeMap=$i(function(e,t){return"function"==typeof e?new jn(this):this.map(function(n){return Pi(n,e,t)})}),jn.prototype.reject=function(e){return this.filter(Ds(ua(e)))},jn.prototype.slice=function(e,t){e=mo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new jn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=mo(t))<0?n.dropRight(-t):n.take(t-e)),n)},jn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jn.prototype.toArray=function(){return this.take(g)},_i(jn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Qn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);a&&(Qn.prototype[t]=function(){var t=this.__wrapped__,o=i?[1]:arguments,l=t instanceof jn,u=o[0],c=l||Gs(t),d=function(e){var t=a.apply(Qn,Nt([e],o));return i&&h?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,m=l&&!p;if(!s&&c){t=m?t:new jn(this);var g=e.apply(t,o);return g.__actions__.push({func:ps,args:[d],thisArg:r}),new Gn(g,h)}return f&&m?e.apply(this,o):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})}),Mt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Qn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(Gs(r)?r:[],e)}return this[n](function(n){return t.apply(Gs(n)?n:[],e)})}}),_i(jn.prototype,function(e,t){var n=Qn[t];if(n){var i=n.name+"";Ne.call(Rn,i)||(Rn[i]=[]),Rn[i].push({name:t,func:n})}}),Rn[Qr(r,2).name]=[{name:"wrapper",func:r}],jn.prototype.clone=function(){var e=new jn(this.__wrapped__);return e.__actions__=kr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=kr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=kr(this.__views__),e},jn.prototype.reverse=function(){if(this.__filtered__){var e=new jn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},jn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gs(e),i=t<0,r=n?e.length:0,a=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var a=n[i],s=a.size;switch(a.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=bn(t,e+s);break;case"takeRight":e=yn(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=a.start,o=a.end,l=o-s,u=i?o:s-1,c=this.__iteratees__,d=c.length,h=0,p=bn(l,this.__takeCount__);if(!n||!i&&r==l&&p==l)return mr(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,g=e[u+=t];++m<d;){var v=c[m],A=v.iteratee,y=v.type,b=A(g);if(2==y)g=b;else if(!b){if(1==y)continue e;break e}}f[h++]=g}return f},Qn.prototype.at=fs,Qn.prototype.chain=function(){return hs(this)},Qn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},Qn.prototype.next=function(){this.__values__===r&&(this.__values__=po(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Qn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var i=Fa(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},Qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof jn){var t=e;return this.__actions__.length&&(t=new jn(this)),(t=t.reverse()).__actions__.push({func:ps,args:[es],thisArg:r}),new Gn(t,this.__chain__)}return this.thru(es)},Qn.prototype.toJSON=Qn.prototype.valueOf=Qn.prototype.value=function(){return mr(this.__wrapped__,this.__actions__)},Qn.prototype.first=Qn.prototype.head,Je&&(Qn.prototype[Je]=function(){return this}),Qn}();mt._=An,(i=function(){return An}.call(t,n,t,e))===r||(e.exports=i)}.call(this)},4448:(e,t,n)=>{"use strict";var i=n(7294),r=n(3840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,o={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(o[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function m(e,t,n,i,r,a,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}function y(e,t,n,i){var r=g.hasOwnProperty(t)?g[t]:null;(null!==r?0!==r.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
67-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,A);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,A);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,A);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),C=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var B=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}var N,O=Object.assign;function U(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var F=!1;function z(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}else{try{throw Error()}catch(e){i=e}e()}}catch(t){if(t&&i&&"string"==typeof t.stack){for(var r=t.stack.split("\n"),a=i.stack.split("\n"),s=r.length-1,o=a.length-1;1<=s&&0<=o&&r[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(r[s]!==a[o]){if(1!==s||1!==o)do{if(s--,0>--o||r[s]!==a[o]){var l="\n"+r[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=o);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function Q(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case w:return"Portal";case T:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case k:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function j(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=j(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=j(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return O({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){$(e,t);var n=G(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return O({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));
vendor: 7,410 bytes, line 67
67if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ae(e,t){var n=G(t.value),i=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=me(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(pe).forEach(function(e){fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=O({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ae(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Ee=null,Se=null;function Te(e){if(e=yr(e)){if("function"!=typeof we)throw Error(a(280));var t=e.stateNode;t&&(t=_r(t),we(e.stateNode,e.type,t))}}function xe(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Ce(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ie(e,t){return e(t)}function Me(){}var ke=!1;function Pe(e,t,n){if(ke)return e(t,n);ke=!0;try{return Ie(e,t,n)}finally{ke=!1,(null!==Ee||null!==Se)&&(Me(),Ce())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var i=_r(n);if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Le=!1;if(c)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ce){Le=!1}function De(e,t,n,i,r,a,s,o,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ne=!1,Oe=null,Ue=!1,Fe=null,ze={onError:function(e){Ne=!0,Oe=e}};function Qe(e,t,n,i,r,a,s,o,l){Ne=!1,Oe=null,De.apply(ze,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(Ve(e)!==e)throw Error(a(188))}function je(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var s=r.alternate;if(null===s){if(null!==(i=r.return)){n=i;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Ge(r),e;if(s===i)return Ge(r),t;s=s.sibling}throw Error(a(188))}if(n.return!==i.return)n=r,i=s;else{for(var o=!1,l=r.child;l;){if(l===n){o=!0,n=r,i=s;break}if(l===i){o=!0,i=r,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,i=r;break}if(l===i){o=!0,i=s,n=r;break}l=l.sibling}if(!o)throw Error(a(189))}}if(n.alternate!==i)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var We=r.unstable_scheduleCallback,Ye=r.unstable_cancelCallback,Xe=r.unstable_shouldYield,Ke=r.unstable_requestPaint,$e=r.unstable_now,Je=r.unstable_getCurrentPriorityLevel,Ze=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,it=r.unstable_IdlePriority,rt=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/lt|0)|0},ot=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,r=e.suspendedLanes,a=e.pingedLanes,s=268435455&n;if(0!==s){var o=s&~r;0!==o?i=dt(o):0!==(a&=s)&&(i=dt(a))}else 0!==(s=n&~r)?i=dt(s):0!==a&&(i=dt(a));if(0===i)return 0;if(0!==t&&t!==i&&0===(t&r)&&((r=i&-i)>=(a=t&-t)||16===r&&4194240&a))return t;if(4&i&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;
vendor: 1,824 bytes, line 67
67)r=1<<(n=31-st(t)),i|=e[n],t&=~r;return i}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function At(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-st(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var yt=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,wt,Et,St,Tt,xt=!1,Ct=[],It=null,Mt=null,kt=null,Pt=new Map,Rt=new Map,Lt=[],Bt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Nt(e,t,n,i,r,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[r]},null!==t&&(null!==(t=yr(t))&&wt(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Ot(e){var t=Ar(e.target);if(null!==t){var n=Ve(t);
vendor: 5,368 bytes, line 67
67if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Tt(e.priority,function(){Et(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yr(n))&&wt(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);be=i,n.target.dispatchEvent(i),be=null,t.shift()}return!0}function Ft(e,t,n){Ut(e)&&n.delete(t)}function zt(){xt=!1,null!==It&&Ut(It)&&(It=null),null!==Mt&&Ut(Mt)&&(Mt=null),null!==kt&&Ut(kt)&&(kt=null),Pt.forEach(Ft),Rt.forEach(Ft)}function Qt(e,t){e.blockedOn===t&&(e.blockedOn=null,xt||(xt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,zt)))}function Vt(e){function t(t){return Qt(t,e)}if(0<Ct.length){Qt(Ct[0],e);for(var n=1;n<Ct.length;n++){var i=Ct[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==It&&Qt(It,e),null!==Mt&&Qt(Mt,e),null!==kt&&Qt(kt,e),Pt.forEach(t),Rt.forEach(t),n=0;n<Lt.length;n++)(i=Lt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Ot(n),null===n.blockedOn&&Lt.shift()}var Ht=b.ReactCurrentBatchConfig,Gt=!0;function jt(e,t,n,i){var r=yt,a=Ht.transition;Ht.transition=null;try{yt=1,Wt(e,t,n,i)}finally{yt=r,Ht.transition=a}}function qt(e,t,n,i){var r=yt,a=Ht.transition;Ht.transition=null;try{yt=4,Wt(e,t,n,i)}finally{yt=r,Ht.transition=a}}function Wt(e,t,n,i){if(Gt){var r=Xt(e,t,n,i);if(null===r)Gi(e,t,i,Yt,n),Dt(e,i);else if(function(e,t,n,i,r){switch(t){case"focusin":return It=Nt(It,e,t,n,i,r),!0;case"dragenter":return Mt=Nt(Mt,e,t,n,i,r),!0;case"mouseover":return kt=Nt(kt,e,t,n,i,r),!0;case"pointerover":var a=r.pointerId;return Pt.set(a,Nt(Pt.get(a)||null,e,t,n,i,r)),!0;case"gotpointercapture":return a=r.pointerId,Rt.set(a,Nt(Rt.get(a)||null,e,t,n,i,r)),!0}return!1}(r,e,t,n,i))i.stopPropagation();else if(Dt(e,i),4&t&&-1<Bt.indexOf(e)){for(;null!==r;){var a=yr(r);if(null!==a&&_t(a),null===(a=Xt(e,t,n,i))&&Gi(e,t,i,Yt,n),a===r)break;r=a}null!==r&&i.stopPropagation()}else Gi(e,t,i,null,n)}}var Yt=null;function Xt(e,t,n,i){if(Yt=null,null!==(e=Ar(e=_e(i))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var $t=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,i=n.length,r="value"in $t?$t.value:$t.textContent,a=r.length;for(e=0;e<i&&n[e]===r[e];e++);var s=i-e;for(t=1;t<=s&&n[i-t]===r[a-t];t++);return Zt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,i,r,a){for(var s in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(r):r[s]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,on,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),dn=O({},un,{view:0,detail:0}),hn=an(dn),pn=O({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,346 bytes, line 67
67Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,on=e.screenY-ln.screenY):on=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),fn=an(pn),mn=an(O({},pn,{dataTransfer:0})),gn=an(O({},dn,{relatedTarget:0})),vn=an(O({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),An=O({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=an(An),bn=an(O({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Tn(){return Sn}var xn=O({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(xn),In=an(O({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=an(O({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),kn=an(O({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=O({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=an(Pn),Ln=[9,13,27,32],Bn=c&&"CompositionEvent"in window,Dn=null;c&&"documentMode"in document&&(Dn=document.documentMode);var Nn=c&&"TextEvent"in window&&!Dn,On=c&&(!Bn||Dn&&8<Dn&&11>=Dn),Un=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function jn(e,t,n,i){xe(i),0<(t=qi(t,"onChange")).length&&(n=new cn("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var qn=null,Wn=null;function Yn(e){Ui(e,0)}function Xn(e){if(W(br(e)))return e}function Kn(e,t){if("change"===e)return t}var $n=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),Zn="function"==typeof ei.oninput}Jn=Zn}else Jn=!1;$n=Jn&&(!document.documentMode||9<document.documentMode)}function ti(){qn&&(qn.detachEvent("onpropertychange",ni),Wn=qn=null)}function ni(e){if("value"===e.propertyName&&Xn(Wn)){var t=[];jn(t,Wn,e,_e(e)),Pe(Yn,t)}}function ii(e,t,n){"focusin"===e?(ti(),Wn=n,(qn=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function ri(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Wn)}function ai(e,t){if("click"===e)return Xn(t)}function si(e,t){if("input"===e||"change"===e)return Xn(t)}var oi="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function li(e,t){if(oi(e,t))return!0;
vendor: 4,828 bytes, line 67
67if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!d.call(t,r)||!oi(e[r],t[r]))return!1}return!0}function ui(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ci(e,t){var n,i=ui(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ui(i)}}function di(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?di(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hi(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fi(e){var t=hi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&di(n.ownerDocument.documentElement,n)){if(null!==i&&pi(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,a=Math.min(i.start,r);i=void 0===i.end?a:Math.min(i.end,r),!e.extend&&a>i&&(r=i,i=a,a=r),r=ci(n,a);var s=ci(n,i);r&&s&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),a>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mi=c&&"documentMode"in document&&11>=document.documentMode,gi=null,vi=null,Ai=null,yi=!1;function bi(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yi||null==gi||gi!==Y(i)||("selectionStart"in(i=gi)&&pi(i)?i={start:i.selectionStart,end:i.selectionEnd}:i={anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},Ai&&li(Ai,i)||(Ai=i,0<(i=qi(vi,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=gi)))}function _i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wi={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionend:_i("Transition","TransitionEnd")},Ei={},Si={};function Ti(e){if(Ei[e])return Ei[e];if(!wi[e])return e;var t,n=wi[e];for(t in n)if(n.hasOwnProperty(t)&&t in Si)return Ei[e]=n[t];return e}c&&(Si=document.createElement("div").style,"AnimationEvent"in window||(delete wi.animationend.animation,delete wi.animationiteration.animation,delete wi.animationstart.animation),"TransitionEvent"in window||delete wi.transitionend.transition);var xi=Ti("animationend"),Ci=Ti("animationiteration"),Ii=Ti("animationstart"),Mi=Ti("transitionend"),ki=new Map,Pi="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ri(e,t){ki.set(e,t),l(t,[e])}for(var Li=0;Li<Pi.length;Li++){var Bi=Pi[Li];Ri(Bi.toLowerCase(),"on"+(Bi[0].toUpperCase()+Bi.slice(1)))}Ri(xi,"onAnimationEnd"),Ri(Ci,"onAnimationIteration"),Ri(Ii,"onAnimationStart"),Ri("dblclick","onDoubleClick"),Ri("focusin","onFocus"),Ri("focusout","onBlur"),Ri(Mi,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
67sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ni=new Set("cancel close invalid load scroll toggle".split(" ").concat(Di));function Oi(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,r,s,o,l,u){if(Qe.apply(this,arguments),Ne){if(!Ne)throw Error(a(198));var c=Oe;Ne=!1,Oe=null,Ue||(Ue=!0,Fe=c)}}(i,t,void 0,e),e.currentTarget=null}function Ui(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var s=i.length-1;0<=s;s--){var o=i[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==a&&r.isPropagationStopped())break e;Oi(r,o,u),a=l}else for(s=0;s<i.length;s++){if(l=(o=i[s]).instance,u=o.currentTarget,o=o.listener,l!==a&&r.isPropagationStopped())break e;Oi(r,o,u),a=l}}}if(Ue)throw e=Fe,Ue=!1,Fe=null,e}function Fi(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var i=e+"__bubble";n.has(i)||(Hi(t,e,2,!1),n.add(i))}function zi(e,t,n){var i=0;t&&(i|=4),Hi(n,e,i,t)}var Qi="_reactListening"+Math.random().toString(36).slice(2);function Vi(e){if(!e[Qi]){e[Qi]=!0,s.forEach(function(t){"selectionchange"!==t&&(Ni.has(t)||zi(t,!1,e),zi(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Qi]||(t[Qi]=!0,zi("selectionchange",!1,t))}}function Hi(e,t,n,i){switch(Kt(t)){case 1:var r=jt;break;case 4:r=qt;break;default:r=Wt}n=r.bind(null,t,n,e),r=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),i?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Gi(e,t,n,i,r){var a=i;if(!(1&t||2&t||null===i))e:for(;;){if(null===i)return;var s=i.tag;if(3===s||4===s){var o=i.stateNode.containerInfo;if(o===r||8===o.nodeType&&o.parentNode===r)break;if(4===s)for(s=i.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;s=s.return}for(;null!==o;){if(null===(s=Ar(o)))return;if(5===(l=s.tag)||6===l){i=a=s;continue e}o=o.parentNode}}i=i.return}Pe(function(){var i=a,r=_e(n),s=[];e:{var o=ki.get(e);if(void 0!==o){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Mn;break;case xi:case Ci:case Ii:l=vn;break;case Mi:l=kn;break;case"scroll":l=hn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=In}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==o?o+"Capture":null:o;c=[];for(var p,f=i;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&(null!=(m=Re(f,h))&&c.push(ji(f,m,p)))),d)break;f=f.return}0<c.length&&(o=new l(o,u,null,n,r),s.push({event:o,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!Ar(u)&&!u[fr])&&(l||o)&&(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=i,null!==(u=(u=n.relatedTarget||n.toElement)?Ar(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=i),l!==u)){if(c=fn,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=In,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?o:br(l),p=null==u?o:br(u),(o=new c(m,f+"leave",l,n,r)).target=d,o.relatedTarget=p,m=null,Ar(r)===i&&((c=new c(h,f+"enter",u,n,r)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,f=0,p=c=l;p;p=Wi(p))f++;for(p=0,m=h;m;m=Wi(m))p++;for(;0<f-p;)c=Wi(c),f--;for(;0<p-f;)h=Wi(h),p--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=Wi(c),h=Wi(h)}c=null}else c=null;null!==l&&Yi(s,o,l,c,!1),null!==u&&null!==d&&Yi(s,d,u,c,!0)}if("select"===(l=(o=i?br(i):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var g=Kn;
vendor: 9,961 bytes, line 67
67else if(Gn(o))if($n)g=si;else{g=ri;var v=ii}else(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=ai);switch(g&&(g=g(e,i))?jn(s,g,n,r):(v&&v(e,o,i),"focusout"===e&&(v=o._wrapperState)&&v.controlled&&"number"===o.type&&ee(o,"number",o.value)),v=i?br(i):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(gi=v,vi=i,Ai=null);break;case"focusout":Ai=vi=gi=null;break;case"mousedown":yi=!0;break;case"contextmenu":case"mouseup":case"dragend":yi=!1,bi(s,n,r);break;case"selectionchange":if(mi)break;case"keydown":case"keyup":bi(s,n,r)}var A;if(Bn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Vn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(On&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Vn&&(A=en()):(Jt="value"in($t=r)?$t.value:$t.textContent,Vn=!0)),0<(v=qi(i,y)).length&&(y=new bn(y,e,null,n,r),s.push({event:y,listeners:v}),A?y.data=A:null!==(A=Qn(n))&&(y.data=A))),(A=Nn?function(e,t){switch(e){case"compositionend":return Qn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Un);case"textInput":return(e=t.data)===Un&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Bn&&zn(e,t)?(e=en(),Zt=Jt=$t=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(i=qi(i,"onBeforeInput")).length&&(r=new bn("onBeforeInput","beforeinput",null,n,r),s.push({event:r,listeners:i}),r.data=A))}Ui(s,t)})}function ji(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qi(e,t){for(var n=t+"Capture",i=[];null!==e;){var r=e,a=r.stateNode;5===r.tag&&null!==a&&(r=a,null!=(a=Re(e,n))&&i.unshift(ji(e,a,r)),null!=(a=Re(e,t))&&i.push(ji(e,a,r))),e=e.return}return i}function Wi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yi(e,t,n,i,r){for(var a=t._reactName,s=[];null!==n&&n!==i;){var o=n,l=o.alternate,u=o.stateNode;if(null!==l&&l===i)break;5===o.tag&&null!==u&&(o=u,r?null!=(l=Re(n,a))&&s.unshift(ji(n,l,o)):r||null!=(l=Re(n,a))&&s.push(ji(n,l,o))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Xi=/\r\n?/g,Ki=/\u0000|\uFFFD/g;function $i(e){return("string"==typeof e?e:""+e).replace(Xi,"\n").replace(Ki,"")}function Ji(e,t,n){if(t=$i(t),$i(e)!==t&&n)throw Error(a(425))}function Zi(){}var er=null,tr=null;function nr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ir="function"==typeof setTimeout?setTimeout:void 0,rr="function"==typeof clearTimeout?clearTimeout:void 0,ar="function"==typeof Promise?Promise:void 0,sr="function"==typeof queueMicrotask?queueMicrotask:void 0!==ar?function(e){return ar.resolve(null).then(e).catch(or)}:ir;function or(e){setTimeout(function(){throw e})}function lr(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return e.removeChild(r),void Vt(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);Vt(t)}function ur(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function cr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,pr="__reactProps$"+dr,fr="__reactContainer$"+dr,mr="__reactEvents$"+dr,gr="__reactListeners$"+dr,vr="__reactHandles$"+dr;function Ar(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=cr(e);null!==e;){if(n=e[hr])return n;e=cr(e)}return t}n=(e=n).parentNode}return null}function yr(e){return!(e=e[hr]||e[fr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function br(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function _r(e){return e[pr]||null}var wr=[],Er=-1;function Sr(e){return{current:e}}function Tr(e){0>Er||(e.current=wr[Er],wr[Er]=null,Er--)}function xr(e,t){Er++,wr[Er]=e.current,e.current=t}var Cr={},Ir=Sr(Cr),Mr=Sr(!1),kr=Cr;function Pr(e,t){var n=e.type.contextTypes;if(!n)return Cr;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Rr(e){return null!=(e=e.childContextTypes)}function Lr(){Tr(Mr),Tr(Ir)}function Br(e,t,n){if(Ir.current!==Cr)throw Error(a(168));xr(Ir,t),xr(Mr,n)}function Dr(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(a(108,H(e)||"Unknown",r));return O({},n,i)}function Nr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,kr=Ir.current,xr(Ir,e),xr(Mr,Mr.current),!0}function Or(e,t,n){var i=e.stateNode;if(!i)throw Error(a(169));n?(e=Dr(e,t,kr),i.__reactInternalMemoizedMergedChildContext=e,Tr(Mr),Tr(Ir),xr(Ir,e)):Tr(Mr),xr(Mr,n)}var Ur=null,Fr=!1,zr=!1;function Qr(e){null===Ur?Ur=[e]:Ur.push(e)}function Vr(){if(!zr&&null!==Ur){zr=!0;var e=0,t=yt;try{var n=Ur;for(yt=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}Ur=null,Fr=!1}catch(t){throw null!==Ur&&(Ur=Ur.slice(e+1)),We(Ze,Vr),t}finally{yt=t,zr=!1}}return null}var Hr=[],Gr=0,jr=null,qr=0,Wr=[],Yr=0,Xr=null,Kr=1,$r="";function Jr(e,t){Hr[Gr++]=qr,Hr[Gr++]=jr,jr=e,qr=t}function Zr(e,t,n){Wr[Yr++]=Kr,Wr[Yr++]=$r,Wr[Yr++]=Xr,Xr=e;var i=Kr;e=$r;var r=32-st(i)-1;i&=~(1<<r),n+=1;var a=32-st(t)+r;if(30<a){var s=r-r%5;a=(i&(1<<s)-1).toString(32),i>>=s,r-=s,Kr=1<<32-st(t)+r|n<<r|i,$r=a+e}else Kr=1<<a|n<<r|i,$r=e}function ea(e){null!==e.return&&(Jr(e,1),Zr(e,1,0))}function ta(e){for(;e===jr;)jr=Hr[--Gr],Hr[Gr]=null,qr=Hr[--Gr],Hr[Gr]=null;for(;e===Xr;)Xr=Wr[--Yr],Wr[Yr]=null,$r=Wr[--Yr],Wr[Yr]=null,Kr=Wr[--Yr],Wr[Yr]=null}var na=null,ia=null,ra=!1,aa=null;function sa(e,t){var n=Ru(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ia=ur(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ia=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xr?{id:Kr,overflow:$r}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ru(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ia=null,!0);default:return!1}}function la(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(ra){var t=ia;if(t){var n=t;if(!oa(e,t)){if(la(e))throw Error(a(418));t=ur(n.nextSibling);var i=na;t&&oa(e,t)?sa(i,n):(e.flags=-4097&e.flags|2,ra=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ra=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!ra)return ca(e),ra=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nr(e.type,e.memoizedProps)),t&&(t=ia)){if(la(e))throw ha(),Error(a(418));for(;t;)sa(e,t),t=ur(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ia=ur(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ia=null}}else ia=na?ur(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=ia;e;)e=ur(e.nextSibling)}function pa(){ia=na=null,ra=!1}function fa(e){null===aa?aa=[e]:aa.push(e)}var ma=b.ReactCurrentBatchConfig;function ga(e,t){if(e&&e.defaultProps){for(var n in t=O({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var va=Sr(null),Aa=null,ya=null,ba=null;function _a(){ba=ya=Aa=null}function wa(e){var t=va.current;Tr(va),e._currentValue=t}function Ea(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Sa(e,t){Aa=e,ba=ya=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bo=!0),e.firstContext=null)}function Ta(e){var t=e._currentValue;if(ba!==e)if(e={context:e,memoizedValue:t,next:null},null===ya){if(null===Aa)throw Error(a(308));ya=e,Aa.dependencies={lanes:0,firstContext:e}}else ya=ya.next=e;return t}var xa=null;function Ca(e){null===xa?xa=[e]:xa.push(e)}function Ia(e,t,n,i){var r=t.interleaved;return null===r?(n.next=n,Ca(t)):(n.next=r.next,r.next=n),t.interleaved=n,Ma(e,i)}function Ma(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ka=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ra(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function La(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}
vendor: 5,593 bytes, line 67
67function Ba(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,2&Ml){var r=i.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Ma(e,n)}return null===(r=i.interleaved)?(t.next=t,Ca(i)):(t.next=r.next,r.next=t),i.interleaved=t,Ma(e,n)}function Da(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,At(e,n)}}function Na(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?r=a=s:a=a.next=s,n=n.next}while(null!==n);null===a?r=a=t:a=a.next=t}else r=a=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Oa(e,t,n,i){var r=e.updateQueue;ka=!1;var a=r.firstBaseUpdate,s=r.lastBaseUpdate,o=r.shared.pending;if(null!==o){r.shared.pending=null;var l=o,u=l.next;l.next=null,null===s?a=u:s.next=u,s=l;var c=e.alternate;null!==c&&((o=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===o?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=r.baseState;for(s=0,c=u=l=null,o=a;;){var h=o.lane,p=o.eventTime;if((i&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var f=e,m=o;switch(h=t,p=n,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=m.payload)?f.call(p,d,h):f))break e;d=O({},d,h);break e;case 2:ka=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(h=r.effects)?r.effects=[o]:h.push(o))}else p={eventTime:p,lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,s|=h;if(null===(o=o.next)){if(null===(o=r.shared.pending))break;o=(h=o).next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}if(null===c&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,null!==(t=r.shared.interleaved)){r=t;do{s|=r.lane,r=r.next}while(r!==t)}else null===a&&(r.shared.lanes=0);Ol|=s,e.lanes=s,e.memoizedState=d}}function Ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var Fa=(new i.Component).refs;function za(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:O({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Qa={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=tu(),r=nu(e),a=La(i,r);a.payload=t,null!=n&&(a.callback=n),null!==(t=Ba(e,a,r))&&(iu(t,e,r,i),Da(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=tu(),r=nu(e),a=La(i,r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Ba(e,a,r))&&(iu(t,e,r,i),Da(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),i=nu(e),r=La(n,i);r.tag=2,null!=t&&(r.callback=t),null!==(t=Ba(e,r,i))&&(iu(t,e,i,n),Da(t,e,i))}};function Va(e,t,n,i,r,a,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,a,s):!t.prototype||!t.prototype.isPureReactComponent||(!li(n,i)||!li(r,a))}function Ha(e,t,n){var i=!1,r=Cr,a=t.contextType;return"object"==typeof a&&null!==a?a=Ta(a):(r=Rr(t)?kr:Ir.current,a=(i=null!=(i=t.contextTypes))?Pr(e,r):Cr),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Qa,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ga(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Qa.enqueueReplaceState(t,t.state,null)}function ja(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Fa,Pa(e);var a=t.contextType;"object"==typeof a&&null!==a?r.context=Ta(a):(a=Rr(t)?kr:Ir.current,r.context=Pr(e,a)),r.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(za(e,t,a,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Qa.enqueueReplaceState(r,r.state,null),Oa(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.flags|=4194308)}function qa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var i=n.stateNode}if(!i)throw Error(a(147,e));var r=i,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=r.refs;t===Fa&&(t=r.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Wa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ya(e){return(0,e._init)(e._payload)}function Xa(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}
vendor: 23,965 bytes, line 67
67function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Bu(e,t)).index=0,e.sibling=null,e}function s(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=Uu(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,i){var a=n.type;return a===E?d(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&Ya(a)===t.type)?((i=r(t,n.props)).ref=qa(e,t,n),i.return=e,i):((i=Du(n.type,n.key,n.props,null,e.mode,i)).ref=qa(e,t,n),i.return=e,i)}function c(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,i,a){return null===t||7!==t.tag?((t=Nu(n,e.mode,i,a)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Uu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Du(t.type,t.key,t.props,null,e.mode,n)).ref=qa(e,null,t),n.return=e,n;case w:return(t=Fu(t,e.mode,n)).return=e,t;case R:return h(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Nu(t,e.mode,n,null)).return=e,t;Wa(e,t)}return null}function p(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==r?null:l(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===r?u(e,t,n,i):null;case w:return n.key===r?c(e,t,n,i):null;case R:return p(e,t,(r=n._init)(n._payload),i)}if(te(n)||D(n))return null!==r?null:d(e,t,n,i,null);Wa(e,n)}return null}function f(e,t,n,i,r){if("string"==typeof i&&""!==i||"number"==typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case _:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r);case w:return c(t,e=e.get(null===i.key?n:i.key)||null,i,r);case R:return f(e,t,n,(0,i._init)(i._payload),r)}if(te(i)||D(i))return d(t,e=e.get(n)||null,i,r,null);Wa(t,i)}return null}function m(r,a,o,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<o.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(r,d,o[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),a=s(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===o.length)return n(r,d),ra&&Jr(r,m),u;if(null===d){for(;m<o.length;m++)null!==(d=h(r,o[m],l))&&(a=s(d,a,m),null===c?u=d:c.sibling=d,c=d);return ra&&Jr(r,m),u}for(d=i(r,d);m<o.length;m++)null!==(g=f(d,r,m,o[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=s(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(r,e)}),ra&&Jr(r,m),u}function g(r,o,l,u){var c=D(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=o,g=o=0,v=null,A=l.next();null!==m&&!A.done;g++,A=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=p(r,m,A.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(r,m),o=s(y,o,g),null===d?c=y:d.sibling=y,d=y,m=v}if(A.done)return n(r,m),ra&&Jr(r,g),c;if(null===m){for(;!A.done;g++,A=l.next())null!==(A=h(r,A.value,u))&&(o=s(A,o,g),null===d?c=A:d.sibling=A,d=A);return ra&&Jr(r,g),c}for(m=i(r,m);!A.done;g++,A=l.next())null!==(A=f(m,r,g,A.value,u))&&(e&&null!==A.alternate&&m.delete(null===A.key?g:A.key),o=s(A,o,g),null===d?c=A:d.sibling=A,d=A);return e&&m.forEach(function(e){return t(r,e)}),ra&&Jr(r,g),c}return function e(i,a,s,l){if("object"==typeof s&&null!==s&&s.type===E&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case _:e:{for(var u=s.key,c=a;null!==c;){if(c.key===u){if((u=s.type)===E){if(7===c.tag){n(i,c.sibling),(a=r(c,s.props.children)).return=i,i=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===R&&Ya(u)===c.type){n(i,c.sibling),(a=r(c,s.props)).ref=qa(i,c,s),a.return=i,i=a;break e}n(i,c);break}t(i,c),c=c.sibling}s.type===E?((a=Nu(s.props.children,i.mode,l,s.key)).return=i,i=a):((l=Du(s.type,s.key,s.props,null,i.mode,l)).ref=qa(i,a,s),l.return=i,i=l)}return o(i);case w:e:{for(c=s.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){n(i,a.sibling),(a=r(a,s.children||[])).return=i,i=a;break e}n(i,a);break}t(i,a),a=a.sibling}(a=Fu(s,i.mode,l)).return=i,i=a}return o(i);case R:return e(i,a,(c=s._init)(s._payload),l)}if(te(s))return m(i,a,s,l);if(D(s))return g(i,a,s,l);Wa(i,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(n(i,a.sibling),(a=r(a,s)).return=i,i=a):(n(i,a),(a=Uu(s,i.mode,l)).return=i,i=a),o(i)):n(i,a)}}var Ka=Xa(!0),$a=Xa(!1),Ja={},Za=Sr(Ja),es=Sr(Ja),ts=Sr(Ja);function ns(e){if(e===Ja)throw Error(a(174));return e}function is(e,t){switch(xr(ts,t),xr(es,e),xr(Za,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Tr(Za),xr(Za,t)}function rs(){Tr(Za),Tr(es),Tr(ts)}function as(e){ns(ts.current);var t=ns(Za.current),n=le(t,e.type);t!==n&&(xr(es,e),xr(Za,n))}function ss(e){es.current===e&&(Tr(Za),Tr(es))}var os=Sr(0);function ls(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var us=[];function cs(){for(var e=0;e<us.length;e++)us[e]._workInProgressVersionPrimary=null;us.length=0}var ds=b.ReactCurrentDispatcher,hs=b.ReactCurrentBatchConfig,ps=0,fs=null,ms=null,gs=null,vs=!1,As=!1,ys=0,bs=0;function _s(){throw Error(a(321))}function ws(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!oi(e[n],t[n]))return!1;return!0}function Es(e,t,n,i,r,s){if(ps=s,fs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?so:oo,e=n(i,r),As){s=0;do{if(As=!1,ys=0,25<=s)throw Error(a(301));s+=1,gs=ms=null,t.updateQueue=null,ds.current=lo,e=n(i,r)}while(As)}if(ds.current=ao,t=null!==ms&&null!==ms.next,ps=0,gs=ms=fs=null,vs=!1,t)throw Error(a(300));return e}function Ss(){var e=0!==ys;return ys=0,e}function Ts(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gs?fs.memoizedState=gs=e:gs=gs.next=e,gs}function xs(){if(null===ms){var e=fs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===gs?fs.memoizedState:gs.next;if(null!==t)gs=t,ms=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===gs?fs.memoizedState=gs=e:gs=gs.next=e}return gs}function Cs(e,t){return"function"==typeof t?t(e):t}function Is(e){var t=xs(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=ms,r=i.baseQueue,s=n.pending;if(null!==s){if(null!==r){var o=r.next;r.next=s.next,s.next=o}i.baseQueue=r=s,n.pending=null}if(null!==r){s=r.next,i=i.baseState;var l=o=null,u=null,c=s;do{var d=c.lane;if((ps&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,o=i):u=u.next=h,fs.lanes|=d,Ol|=d}c=c.next}while(null!==c&&c!==s);null===u?o=i:u.next=l,oi(i,t.memoizedState)||(bo=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=u,n.lastRenderedState=i}if(null!==(e=n.interleaved)){r=e;do{s=r.lane,fs.lanes|=s,Ol|=s,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ms(e){var t=xs(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,s=t.memoizedState;if(null!==r){n.pending=null;var o=r=r.next;do{s=e(s,o.action),o=o.next}while(o!==r);oi(s,t.memoizedState)||(bo=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,i]}function ks(){}function Ps(e,t){var n=fs,i=xs(),r=t(),s=!oi(i.memoizedState,r);if(s&&(i.memoizedState=r,bo=!0),i=i.queue,Hs(Bs.bind(null,n,i,e),[e]),i.getSnapshot!==t||s||null!==gs&&1&gs.memoizedState.tag){if(n.flags|=2048,Us(9,Ls.bind(null,n,i,r,t),void 0,null),null===kl)throw Error(a(349));30&ps||Rs(n,t,r)}return r}function Rs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=fs.updateQueue)?(t={lastEffect:null,stores:null},fs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ls(e,t,n,i){t.value=n,t.getSnapshot=i,Ds(t)&&Ns(e)}function Bs(e,t,n){return n(function(){Ds(t)&&Ns(e)})}function Ds(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!oi(e,n)}catch(e){return!0}}function Ns(e){var t=Ma(e,1);null!==t&&iu(t,e,1,-1)}function Os(e){var t=Ts();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cs,lastRenderedState:e},t.queue=e,e=e.dispatch=to.bind(null,fs,e),[t.memoizedState,e]}function Us(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=fs.updateQueue)?(t={lastEffect:null,stores:null},fs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Fs(){return xs().memoizedState}function zs(e,t,n,i){var r=Ts();fs.flags|=e,r.memoizedState=Us(1|t,n,void 0,void 0===i?null:i)}function Qs(e,t,n,i){var r=xs();i=void 0===i?null:i;var a=void 0;if(null!==ms){var s=ms.memoizedState;if(a=s.destroy,null!==i&&ws(i,s.deps))return void(r.memoizedState=Us(t,n,a,i))}fs.flags|=e,r.memoizedState=Us(1|t,n,a,i)}function Vs(e,t){return zs(8390656,8,e,t)}function Hs(e,t){return Qs(2048,8,e,t)}function Gs(e,t){return Qs(4,2,e,t)}function js(e,t){return Qs(4,4,e,t)}function qs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ws(e,t,n){return n=null!=n?n.concat([e]):null,Qs(4,4,qs.bind(null,t,e),n)}function Ys(){}function Xs(e,t){var n=xs();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&ws(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Ks(e,t){var n=xs();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&ws(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function $s(e,t,n){return 21&ps?(oi(n,t)||(n=mt(),fs.lanes|=n,Ol|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bo=!0),e.memoizedState=n)}function Js(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var i=hs.transition;hs.transition={};try{e(!1),t()}finally{yt=n,hs.transition=i}}function Zs(){return xs().memoizedState}function eo(e,t,n){var i=nu(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},no(e))io(t,n);else if(null!==(n=Ia(e,t,n,i))){iu(n,e,i,tu()),ro(n,t,i)}}function to(e,t,n){var i=nu(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(no(e))io(t,r);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,o=a(s,n);if(r.hasEagerState=!0,r.eagerState=o,oi(o,s)){var l=t.interleaved;return null===l?(r.next=r,Ca(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(e){}null!==(n=Ia(e,t,r,i))&&(iu(n,e,i,r=tu()),ro(n,t,i))}}function no(e){var t=e.alternate;return e===fs||null!==t&&t===fs}function io(e,t){As=vs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ro(e,t,n){if(4194240&n){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,At(e,n)}}var ao={readContext:Ta,useCallback:_s,useContext:_s,useEffect:_s,useImperativeHandle:_s,useInsertionEffect:_s,useLayoutEffect:_s,useMemo:_s,useReducer:_s,useRef:_s,useState:_s,useDebugValue:_s,useDeferredValue:_s,useTransition:_s,useMutableSource:_s,useSyncExternalStore:_s,useId:_s,unstable_isNewReconciler:!1},so={readContext:Ta,useCallback:function(e,t){return Ts().memoizedState=[e,void 0===t?null:t],e},useContext:Ta,useEffect:Vs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zs(4194308,4,qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return zs(4,2,e,t)},useMemo:function(e,t){var n=Ts();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Ts();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=eo.bind(null,fs,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Ts().memoizedState=e},useState:Os,useDebugValue:Ys,useDeferredValue:function(e){return Ts().memoizedState=e},useTransition:function(){var e=Os(!1),t=e[0];return e=Js.bind(null,e[1]),Ts().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=fs,r=Ts();if(ra){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===kl)throw Error(a(349));30&ps||Rs(i,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,Vs(Bs.bind(null,i,s,e),[e]),i.flags|=2048,Us(9,Ls.bind(null,i,s,n,t),void 0,null),n},useId:function(){var e=Ts(),t=kl.identifierPrefix;if(ra){var n=$r;t=":"+t+"R"+(n=(Kr&~(1<<32-st(Kr)-1)).toString(32)+n),0<(n=ys++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=bs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},oo={readContext:Ta,useCallback:Xs,useContext:Ta,useEffect:Hs,useImperativeHandle:Ws,useInsertionEffect:Gs,useLayoutEffect:js,useMemo:Ks,useReducer:Is,useRef:Fs,useState:function(){return Is(Cs)},useDebugValue:Ys,useDeferredValue:function(e){return $s(xs(),ms.memoizedState,e)},useTransition:function(){return[Is(Cs)[0],xs().memoizedState]},useMutableSource:ks,useSyncExternalStore:Ps,useId:Zs,unstable_isNewReconciler:!1},lo={readContext:Ta,useCallback:Xs,useContext:Ta,useEffect:Hs,useImperativeHandle:Ws,useInsertionEffect:Gs,useLayoutEffect:js,useMemo:Ks,useReducer:Ms,useRef:Fs,useState:function(){return Ms(Cs)},useDebugValue:Ys,useDeferredValue:function(e){var t=xs();return null===ms?t.memoizedState=e:$s(t,ms.memoizedState,e)},useTransition:function(){return[Ms(Cs)[0],xs().memoizedState]},useMutableSource:ks,useSyncExternalStore:Ps,useId:Zs,unstable_isNewReconciler:!1};function uo(e,t){try{var n="",i=t;do{n+=Q(i),i=i.return}while(i);var r=n}catch(e){r="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:r,digest:null}}function co(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ho(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var po="function"==typeof WeakMap?WeakMap:Map;function fo(e,t,n){(n=La(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){jl||(jl=!0,ql=i),ho(0,t)},n}function mo(e,t,n){(n=La(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){ho(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ho(0,t),"function"!=typeof i&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function go(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new po;var r=new Set;i.set(t,r)}else void 0===(r=i.get(t))&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=xu.bind(null,e,t,n),t.then(e,e))}function vo(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Ao(e,t,n,i,r){return 1&e.mode?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=La(-1,1)).tag=2,Ba(n,t,1))),n.lanes|=1),e)}var yo=b.ReactCurrentOwner,bo=!1;function _o(e,t,n,i){t.child=null===e?$a(t,null,n,i):Ka(t,e.child,n,i)}function wo(e,t,n,i,r){n=n.render;var a=t.ref;return Sa(t,r),i=Es(e,t,n,i,a,r),n=Ss(),null===e||bo?(ra&&n&&ea(t),t.flags|=1,_o(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,jo(e,t,r))}function Eo(e,t,n,i,r){if(null===e){var a=n.type;return"function"!=typeof a||Lu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Du(n.type,null,i,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,So(e,t,a,i,r))}if(a=e.child,0===(e.lanes&r)){var s=a.memoizedProps;if((n=null!==(n=n.compare)?n:li)(s,i)&&e.ref===t.ref)return jo(e,t,r)}return t.flags|=1,(e=Bu(a,i)).ref=t.ref,e.return=t,t.child=e}function So(e,t,n,i,r){if(null!==e){var a=e.memoizedProps;if(li(a,i)&&e.ref===t.ref){if(bo=!1,t.pendingProps=i=a,0===(e.lanes&r))return t.lanes=e.lanes,jo(e,t,r);131072&e.flags&&(bo=!0)}}return Co(e,t,n,i,r)}function To(e,t,n){var i=t.pendingProps,r=i.children,a=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xr(Bl,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==a?a.baseLanes:n,xr(Bl,Ll),Ll|=i}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xr(Bl,Ll),Ll|=n;else null!==a?(i=a.baseLanes|n,t.memoizedState=null):i=n,xr(Bl,Ll),Ll|=i;return _o(e,t,r,n),t.child}function xo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Co(e,t,n,i,r){var a=Rr(n)?kr:Ir.current;return a=Pr(t,a),Sa(t,r),n=Es(e,t,n,i,a,r),i=Ss(),null===e||bo?(ra&&i&&ea(t),t.flags|=1,_o(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,jo(e,t,r))}function Io(e,t,n,i,r){if(Rr(n)){var a=!0;Nr(t)}else a=!1;if(Sa(t,r),null===t.stateNode)Go(e,t),Ha(t,n,i),ja(t,n,i,r),i=!0;else if(null===e){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ta(u):u=Pr(t,u=Rr(n)?kr:Ir.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o!==i||l!==u)&&Ga(t,s,i,u),ka=!1;var h=t.memoizedState;s.state=h,Oa(t,i,s,r),l=t.memoizedState,o!==i||h!==l||Mr.current||ka?("function"==typeof c&&(za(t,n,c,i),l=t.memoizedState),(o=ka||Va(t,n,o,i,h,l,u))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),s.props=i,s.state=l,s.context=u,i=o):("function"==typeof s.componentDidMount&&(t.flags|=4194308),i=!1)}else{s=t.stateNode,Ra(e,t),o=t.memoizedProps,u=t.type===t.elementType?o:ga(t.type,o),s.props=u,d=t.pendingProps,h=s.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ta(l):l=Pr(t,l=Rr(n)?kr:Ir.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o!==d||h!==l)&&Ga(t,s,i,l),ka=!1,h=t.memoizedState,s.state=h,Oa(t,i,s,r);var f=t.memoizedState;o!==d||h!==f||Mr.current||ka?("function"==typeof p&&(za(t,n,p,i),f=t.memoizedState),(u=ka||Va(t,n,u,i,h,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(i,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=f),s.props=i,s.state=f,s.context=l,i=u):("function"!=typeof s.componentDidUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),i=!1)}return Mo(e,t,n,i,a,r)}function Mo(e,t,n,i,r,a){xo(e,t);var s=!!(128&t.flags);if(!i&&!s)return r&&Or(t,n,!1),jo(e,t,a);i=t.stateNode,yo.current=t;var o=s&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&s?(t.child=Ka(t,e.child,null,a),t.child=Ka(t,null,o,a)):_o(e,t,o,a),t.memoizedState=i.state,r&&Or(t,n,!0),t.child}function ko(e){var t=e.stateNode;t.pendingContext?Br(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Br(0,t.context,!1),is(e,t.containerInfo)}function Po(e,t,n,i,r){return pa(),fa(r),t.flags|=256,_o(e,t,n,i),t.child}var Ro,Lo,Bo,Do,No={dehydrated:null,treeContext:null,retryLane:0};function Oo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uo(e,t,n){var i,r=t.pendingProps,s=os.current,o=!1,l=!!(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&s)),i?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),xr(os,1&s),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},1&r||null===o?o=Ou(l,r,0,null):(o.childLanes=0,o.pendingProps=l),e=Nu(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Oo(n),t.memoizedState=No,e):Fo(t,l));if(null!==(s=e.memoizedState)&&null!==(i=s.dehydrated))return function(e,t,n,i,r,s,o){if(n)return 256&t.flags?(t.flags&=-257,zo(e,t,o,i=co(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,r=t.mode,i=Ou({mode:"visible",children:i.children},r,0,null),(s=Nu(s,r,o,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,1&t.mode&&Ka(t,e.child,null,o),t.child.memoizedState=Oo(o),t.memoizedState=No,s);if(!(1&t.mode))return zo(e,t,o,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var l=i.dgst;return i=l,zo(e,t,o,i=co(s=Error(a(419)),i,void 0))}if(l=0!==(o&e.childLanes),bo||l){if(null!==(i=kl)){switch(o&-o){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(i.suspendedLanes|o))?0:r)&&r!==s.retryLane&&(s.retryLane=r,Ma(e,r),iu(i,e,r,-1))}return gu(),zo(e,t,o,i=co(Error(a(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Iu.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,ia=ur(r.nextSibling),na=t,ra=!0,aa=null,null!==e&&(Wr[Yr++]=Kr,Wr[Yr++]=$r,Wr[Yr++]=Xr,Kr=e.id,$r=e.overflow,Xr=t),t=Fo(t,i.children),t.flags|=4096,t)}(e,t,l,r,i,s,n);if(o){o=r.fallback,l=t.mode,i=(s=e.child).sibling;var u={mode:"hidden",children:r.children};return 1&l||t.child===s?(r=Bu(s,u)).subtreeFlags=14680064&s.subtreeFlags:((r=t.child).childLanes=0,r.pendingProps=u,t.deletions=null),null!==i?o=Bu(i,o):(o=Nu(o,l,n,null)).flags|=2,o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=null===(l=e.child.memoizedState)?Oo(n):{baseLanes:l.base
vendor: 11,399 bytes, line 67
67Lanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=No,r}return e=(o=e.child).sibling,r=Bu(o,{mode:"visible",children:r.children}),!(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Fo(e,t){return(t=Ou({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zo(e,t,n,i){return null!==i&&fa(i),Ka(t,e.child,null,n),(e=Fo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Qo(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),Ea(e.return,t,n)}function Vo(e,t,n,i,r){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r)}function Ho(e,t,n){var i=t.pendingProps,r=i.revealOrder,a=i.tail;if(_o(e,t,i.children,n),2&(i=os.current))i=1&i|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qo(e,n,t);else if(19===e.tag)Qo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(xr(os,i),1&t.mode)switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===ls(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Vo(t,!1,r,n,a);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===ls(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Vo(t,!0,n,null,a);break;case"together":Vo(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Go(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ol|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Bu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Bu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qo(e,t){if(!ra)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Wo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Yo(e,t,n){var i=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wo(t),null;case 1:case 17:return Rr(t.type)&&Lr(),Wo(t),null;case 3:return i=t.stateNode,rs(),Tr(Mr),Tr(Ir),cs(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(ou(aa),aa=null))),Lo(e,t),Wo(t),null;case 5:ss(t);var r=ns(ts.current);if(n=t.type,null!==e&&null!=t.stateNode)Bo(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(a(166));return Wo(t),null}if(e=ns(Za.current),da(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[hr]=t,i[pr]=s,e=!!(1&t.mode),n){case"dialog":Fi("cancel",i),Fi("close",i);break;case"iframe":case"object":case"embed":Fi("load",i);break;case"video":case"audio":for(r=0;r<Di.length;r++)Fi(Di[r],i);break;case"source":Fi("error",i);break;case"img":case"image":case"link":Fi("error",i),Fi("load",i);break;case"details":Fi("toggle",i);break;case"input":K(i,s),Fi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Fi("invalid",i);break;case"textarea":re(i,s),Fi("invalid",i)}for(var l in Ae(n,s),r=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Ji(i.textContent,u,e),r=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Ji(i.textContent,u,e),r=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fi("scroll",i)}switch(n){case"input":q(i),Z(i,s,!0);break;case"textarea":q(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Zi)}i=r,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),"select"===n&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[hr]=t,e[pr]=i,Ro(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,i),n){case"dialog":Fi("cancel",e),Fi("close",e),r=i;break;case"iframe":case"object":case"embed":Fi("load",e),r=i;break;case"video":case"audio":for(r=0;r<Di.length;r++)Fi(Di[r],e);r=i;break;case"source":Fi("error",e),r=i;break;case"img":case"image":case"link":Fi("error",e),Fi("load",e),r=i;break;case"details":Fi("toggle",e),r=i;break;case"input":K(e,i),r=X(e,i),Fi("invalid",e);break;case"option":default:r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=O({},i,{value:void 0}),Fi("invalid",e);break;case"textarea":re(e,i),r=ie(e,i),Fi("invalid",e)}for(s in Ae(n,r),u=r)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ge(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Fi("scroll",e):null!=c&&y(e,s,c,l))}switch(n){case"input":q(e),Z(e,i,!1);break;case"textarea":q(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+G(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?ne(e,!!i.multiple,s,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=Zi)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Wo(t),null;case 6:if(e&&null!=t.stateNode)Do(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(a(166));if(n=ns(ts.current),ns(Za.current),da(t)){if(i=t.stateNode,n=t.memoizedProps,i[hr]=t,(s=i.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Ji(i.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ji(i.nodeValue,n,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[hr]=t,t.stateNode=i}return Wo(t),null;case 13:if(Tr(os),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ra&&null!==ia&&1&t.mode&&!(128&t.flags))ha(),pa(),t.flags|=98560,s=!1;else if(s=da(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(a(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(a(317));s[hr]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Wo(t),s=!1}else null!==aa&&(ou(aa),aa=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&os.current?0===Dl&&(Dl=3):gu())),null!==t.updateQueue&&(t.flags|=4),Wo(t),null);case 4:return rs(),Lo(e,t),null===e&&Vi(t.stateNode.containerInfo),Wo(t),null;case 10:return wa(t.type._context),Wo(t),null;case 19:if(Tr(os),null===(s=t.memoizedState))return Wo(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)qo(s,!1);else{if(0!==Dl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ls(e))){for(t.flags|=128,qo(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xr(os,1&os.current|2),t.child}e=e.sibling}null!==s.tail&&$e()>Hl&&(t.flags|=128,i=!0,qo(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ls(l))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qo(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ra)return Wo(t),null}else 2*$e()-s.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,i=!0,qo(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=$e(),t.sibling=null,n=os.current,xr(os,i?1&n|2:1&n),t):(Wo(t),null);case 22:case 23:return hu(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ll)&&(Wo(t),6&t.subtreeFlags&&(t.flags|=8192)):Wo(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Xo(e,t){switch(ta(t),t.tag){case 1:return Rr(t.type)&&Lr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return rs(),Tr(Mr),Tr(Ir),cs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ss(t),null;case 13:if(Tr(os),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Tr(os),null;case 4:return rs(),null;case 10:return wa(t.type._context),null;case 22:case 23:return hu(),null;default:return null}}Ro=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Lo=function(){},Bo=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,ns(Za.current);var a,s=null;switch(n){case"input":r=X(e,r),i=X(e,i),s=[];break;case"select":r=O({},r,{value:void 0}),i=O({},i,{value:void 0}),s=[];break;case"textarea":r=ie(e,r),i=ie(e,i),s=[];break;default:"function"!=typeof r.onClick&&"function"==typeof i.onClick&&(e.onclick=Zi)}for(c in Ae(n,i),n=null,r)if(!i.hasOwnProperty(c)&&r.hasOwnProperty(c)&&null!=r[c])if("style"===c){var l=r[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||
vendor: 5,089 bytes, line 67
67(s=[]):(s=s||[]).push(c,null));for(c in i){var u=i[c];if(l=null!=r?r[c]:void 0,i.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fi("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Do=function(e,t,n,i){n!==i&&(t.flags|=4)};var Ko=!1,$o=!1,Jo="function"==typeof WeakSet?WeakSet:Set,Zo=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Tu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Tu(e,t,n)}}var nl=!1;function il(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,void 0!==a&&tl(t,n,a)}r=r.next}while(r!==i)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[pr],delete t[mr],delete t[gr],delete t[vr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zi));else if(4!==i&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,hl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(rt,n)}catch(e){}switch(n.tag){case 5:$o||el(n,t);case 6:var i=dl,r=hl;dl=null,pl(e,t,n),hl=r,null!==(dl=i)&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?lr(e.parentNode,n):1===e.nodeType&&lr(e,n),Vt(e)):lr(dl,n.stateNode));break;case 4:i=dl,r=hl,dl=n.stateNode.containerInfo,hl=!0,pl(e,t,n),dl=i,hl=r;break;case 0:case 11:case 14:case 15:if(!$o&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){r=i=i.next;do{var a=r,s=a.destroy;a=a.tag,void 0!==s&&(2&a||4&a)&&tl(n,t,s),r=r.next}while(r!==i)}pl(e,t,n);break;case 1:if(!$o&&(el(n,t),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(e){Tu(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?($o=(i=$o)||null!==n.memoizedState,pl(e,t,n),$o=i):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jo),t.forEach(function(t){var i=Mu.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))})}}function gl(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var s=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,hl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));fl(s,o,r),dl=null,hl=!1;var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(e){Tu(r,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),Al(e),4&i){try{il(3,e,e.return),rl(3,e)}catch(t){Tu(e,e.return,t)}try{il(5,e,e.return)}catch(t){Tu(e,e.return,t)}}break;case 1:gl(t,e),Al(e),512&i&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),Al(e),512&i&&null!==n&&el(n,n.return),32&e.flags){var r=e.stateNode;try{he(r,"")}catch(t){Tu(e,e.return,t)}}if(4&i&&null!=(r=e.stateNode)){var s=e.memoizedProps,o=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;
vendor: 5,156 bytes, line 67
67if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&$(r,s),ye(l,o);var c=ye(l,s);for(o=0;o<u.length;o+=2){var d=u[o],h=u[o+1];"style"===d?ge(r,h):"dangerouslySetInnerHTML"===d?de(r,h):"children"===d?he(r,h):y(r,d,h,c)}switch(l){case"input":J(r,s);break;case"textarea":ae(r,s);break;case"select":var p=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(r,!!s.multiple,f,!1):p!==!!s.multiple&&(null!=s.defaultValue?ne(r,!!s.multiple,s.defaultValue,!0):ne(r,!!s.multiple,s.multiple?[]:"",!1))}r[pr]=s}catch(t){Tu(e,e.return,t)}}break;case 6:if(gl(t,e),Al(e),4&i){if(null===e.stateNode)throw Error(a(162));r=e.stateNode,s=e.memoizedProps;try{r.nodeValue=s}catch(t){Tu(e,e.return,t)}}break;case 3:if(gl(t,e),Al(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Tu(e,e.return,t)}break;case 4:default:gl(t,e),Al(e);break;case 13:gl(t,e),Al(e),8192&(r=e.child).flags&&(s=null!==r.memoizedState,r.stateNode.isHidden=s,!s||null!==r.alternate&&null!==r.alternate.memoizedState||(Vl=$e())),4&i&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($o=(c=$o)||d,gl(t,e),$o=c):gl(t,e),Al(e),8192&i){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zo=e,d=e.child;null!==d;){for(h=Zo=d;null!==Zo;){switch(f=(p=Zo).child,p.tag){case 0:case 11:case 14:case 15:il(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){i=p,n=p.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Tu(i,n,e)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){wl(h);continue}}null!==f?(f.return=p,Zo=f):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{r=h.stateNode,c?"function"==typeof(s=r.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=h.stateNode,o=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",o))}catch(t){Tu(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Tu(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gl(t,e),Al(e),4&i&&ml(e);case 21:}}function Al(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var i=n;break e}n=n.return}throw Error(a(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(he(r,""),i.flags&=-33),cl(e,ll(e),r);break;case 3:case 4:var s=i.stateNode.containerInfo;ul(e,ll(e),s);break;default:throw Error(a(161))}}catch(t){Tu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Zo=e,bl(e,t,n)}function bl(e,t,n){for(var i=!!(1&e.mode);null!==Zo;){var r=Zo,a=r.child;if(22===r.tag&&i){var s=null!==r.memoizedState||Ko;if(!s){var o=r.alternate,l=null!==o&&null!==o.memoizedState||$o;o=Ko;var u=$o;if(Ko=s,($o=l)&&!u)for(Zo=r;null!==Zo;)l=(s=Zo).child,22===s.tag&&null!==s.memoizedState?El(r):null!==l?(l.return=s,Zo=l):El(r);for(;null!==a;)Zo=a,bl(a,t,n),a=a.sibling;Zo=r,Ko=o,$o=u}_l(e)}else 8772&r.subtreeFlags&&null!==a?(a.return=r,Zo=a):_l(e)}}function _l(e){for(;null!==Zo;){var t=Zo;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$o||rl(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!$o)if(null===n)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:ga(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Ua(t,s,i);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ua(t,o,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Vt(h)}}}break;default:throw Error(a(163))}$o||512&t.flags&&al(t)}catch(e){Tu(t,t.return,e)}}if(t===e){Zo=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zo=n;break}Zo=t.return}}function wl(e){for(;null!==Zo;){var t=Zo;if(t===e){Zo=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zo=n;break}Zo=t.return}}function El(e){for(;null!==Zo;){var t=Zo;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Tu(t,n,e)}break;case 1:var i=t.stateNode;if("function"==typeof i.componentDidMount){var r=t.return;try{i.componentDidMount()}catch(e){Tu(t,r,e)}}var a=t.return;try{al(t)}catch(e){Tu(t,a,e)}break;case 5:var s=t.return;try{al(t)}catch(e){Tu(t,s,e)}}}catch(e){Tu(t,t.return,e)}if(t===e){Zo=null;break}var o=t.sibling;if(null!==o){o.return=t.return,Zo=o;break}Zo=t.return}}
vendor: 30,107 bytes, line 67
67var Sl,Tl=Math.ceil,xl=b.ReactCurrentDispatcher,Cl=b.ReactCurrentOwner,Il=b.ReactCurrentBatchConfig,Ml=0,kl=null,Pl=null,Rl=0,Ll=0,Bl=Sr(0),Dl=0,Nl=null,Ol=0,Ul=0,Fl=0,zl=null,Ql=null,Vl=0,Hl=1/0,Gl=null,jl=!1,ql=null,Wl=null,Yl=!1,Xl=null,Kl=0,$l=0,Jl=null,Zl=-1,eu=0;function tu(){return 6&Ml?$e():-1!==Zl?Zl:Zl=$e()}function nu(e){return 1&e.mode?2&Ml&&0!==Rl?Rl&-Rl:null!==ma.transition?(0===eu&&(eu=mt()),eu):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function iu(e,t,n,i){if(50<$l)throw $l=0,Jl=null,Error(a(185));vt(e,n,i),2&Ml&&e===kl||(e===kl&&(!(2&Ml)&&(Ul|=n),4===Dl&&lu(e,Rl)),ru(e,i),1===n&&0===Ml&&!(1&t.mode)&&(Hl=$e()+500,Fr&&Vr()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-st(a),o=1<<s,l=r[s];-1===l?0!==(o&n)&&0===(o&i)||(r[s]=pt(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}(e,t);var i=ht(e,e===kl?Rl:0);if(0===i)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Fr=!0,Qr(e)}(uu.bind(null,e)):Qr(uu.bind(null,e)),sr(function(){!(6&Ml)&&Vr()}),n=null;else{switch(bt(i)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=ku(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Zl=-1,eu=0,6&Ml)throw Error(a(327));var n=e.callbackNode;if(Eu()&&e.callbackNode!==n)return null;var i=ht(e,e===kl?Rl:0);if(0===i)return null;if(30&i||0!==(i&e.expiredLanes)||t)t=vu(e,i);else{t=i;var r=Ml;Ml|=2;var s=mu();for(kl===e&&Rl===t||(Gl=null,Hl=$e()+500,pu(e,t));;)try{yu();break}catch(t){fu(e,t)}_a(),xl.current=s,Ml=r,null!==Pl?t=0:(kl=null,Rl=0,t=Dl)}if(0!==t){if(2===t&&(0!==(r=ft(e))&&(i=r,t=su(e,r))),1===t)throw n=Nl,pu(e,0),lu(e,i),ru(e,$e()),n;if(6===t)lu(e,i);else{if(r=e.current.alternate,!(30&i||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],a=r.getSnapshot;r=r.value;try{if(!oi(a(),r))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)||(t=vu(e,i),2===t&&(s=ft(e),0!==s&&(i=s,t=su(e,s))),1!==t)))throw n=Nl,pu(e,0),lu(e,i),ru(e,$e()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(a(345));case 2:case 5:wu(e,Ql,Gl);break;case 3:if(lu(e,i),(130023424&i)===i&&10<(t=Vl+500-$e())){if(0!==ht(e,0))break;if(((r=e.suspendedLanes)&i)!==i){tu(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ir(wu.bind(null,e,Ql,Gl),t);break}wu(e,Ql,Gl);break;case 4:if(lu(e,i),(4194240&i)===i)break;for(t=e.eventTimes,r=-1;0<i;){var o=31-st(i);s=1<<o,(o=t[o])>r&&(r=o),i&=~s}if(i=r,10<(i=(120>(i=$e()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Tl(i/1960))-i)){e.timeoutHandle=ir(wu.bind(null,e,Ql,Gl),i);break}wu(e,Ql,Gl);break;default:throw Error(a(329))}}}return ru(e,$e()),e.callbackNode===n?au.bind(null,e):null}function su(e,t){var n=zl;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Ql,Ql=n,null!==t&&ou(t)),e}function ou(e){null===Ql?Ql=e:Ql.push.apply(Ql,e)}function lu(e,t){for(t&=~Fl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),i=1<<n;e[n]=-1,t&=~i}}function uu(e){if(6&Ml)throw Error(a(327));Eu();var t=ht(e,0);if(!(1&t))return ru(e,$e()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var i=ft(e);0!==i&&(t=i,n=su(e,i))}if(1===n)throw n=Nl,pu(e,0),lu(e,t),ru(e,$e()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Ql,Gl),ru(e,$e()),null}function cu(e,t){var n=Ml;Ml|=1;try{return e(t)}finally{0===(Ml=n)&&(Hl=$e()+500,Fr&&Vr())}}function du(e){null!==Xl&&0===Xl.tag&&!(6&Ml)&&Eu();var t=Ml;Ml|=1;var n=Il.transition,i=yt;try{if(Il.transition=null,yt=1,e)return e()}finally{yt=i,Il.transition=n,!(6&(Ml=t))&&Vr()}}function hu(){Ll=Bl.current,Tr(Bl)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rr(n)),null!==Pl)for(n=Pl.return;null!==n;){var i=n;switch(ta(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&Lr();break;case 3:rs(),Tr(Mr),Tr(Ir),cs();break;case 5:ss(i);break;case 4:rs();break;case 13:case 19:Tr(os);break;case 10:wa(i.type._context);break;case 22:case 23:hu()}n=n.return}if(kl=e,Pl=e=Bu(e.current,null),Rl=Ll=t,Dl=0,Nl=null,Fl=Ul=Ol=0,Ql=zl=null,null!==xa){for(t=0;t<xa.length;t++)if(null!==(i=(n=xa[t]).interleaved)){n.interleaved=null;var r=i.next,a=n.pending;if(null!==a){var s=a.next;a.next=r,i.next=s}n.pending=i}xa=null}return e}function fu(e,t){for(;;){var n=Pl;try{if(_a(),ds.current=ao,vs){for(var i=fs.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}vs=!1}if(ps=0,gs=ms=fs=null,As=!1,ys=0,Cl.current=null,null===n||null===n.return){Dl=1,Nl=t,Pl=null;break}e:{var s=e,o=n.return,l=n,u=t;if(t=Rl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=vo(o);if(null!==f){f.flags&=-257,Ao(f,o,l,0,t),1&f.mode&&go(s,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){go(s,c,t),gu();break e}u=Error(a(426))}else if(ra&&1&l.mode){var v=vo(o);if(null!==v){!(65536&v.flags)&&(v.flags|=256),Ao(v,o,l,0,t),fa(uo(u,l));break e}}s=u=uo(u,l),4!==Dl&&(Dl=2),null===zl?zl=[s]:zl.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Na(s,fo(0,u,t));break e;case 1:l=u;var A=s.type,y=s.stateNode;if(!(128&s.flags||"function"!=typeof A.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Wl&&Wl.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t,Na(s,mo(s,l,t));break e}}s=s.return}while(null!==s)}_u(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function mu(){var e=xl.current;return xl.current=ao,null===e?ao:e}function gu(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===kl||!(268435455&Ol)&&!(268435455&Ul)||lu(kl,Rl)}function vu(e,t){var n=Ml;Ml|=2;var i=mu();for(kl===e&&Rl===t||(Gl=null,pu(e,t));;)try{Au();break}catch(t){fu(e,t)}if(_a(),Ml=n,xl.current=i,null!==Pl)throw Error(a(261));return kl=null,Rl=0,Dl}function Au(){for(;null!==Pl;)bu(Pl)}function yu(){for(;null!==Pl&&!Xe();)bu(Pl)}function bu(e){var t=Sl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?_u(e):Pl=t,Cl.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Xo(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return Dl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yo(n,t,Ll)))return void(Pl=n);if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Dl&&(Dl=5)}function wu(e,t,n){var i=yt,r=Il.transition;try{Il.transition=null,yt=1,function(e,t,n,i){do{Eu()}while(null!==Xl);if(6&Ml)throw Error(a(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-st(n),a=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~a}}(e,s),e===kl&&(Pl=kl=null,Rl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yl||(Yl=!0,ku(tt,function(){return Eu(),null})),s=!!(15990&n.flags),!!(15990&n.subtreeFlags)||s){s=Il.transition,Il.transition=null;var o=yt;yt=1;var l=Ml;Ml|=4,Cl.current=null,function(e,t){if(er=Gt,pi(e=hi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var o=0,l=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==r&&3!==h.nodeType||(l=o+r),h!==s||0!==i&&3!==h.nodeType||(u=o+i),3===h.nodeType&&(o+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===r&&(l=o),p===s&&++d===i&&(u=o),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:e,selectionRange:n},Gt=!1,Zo=t;null!==Zo;)if(e=(t=Zo).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zo=e;else for(;null!==Zo;){t=Zo;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,A=t.stateNode,y=A.getSnapshotBeforeUpdate(t.elementType===t.type?g:ga(t.type,g),v);A.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(a(163))}}catch(e){Tu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zo=e;break}Zo=t.return}m=nl,nl=!1}(e,n),vl(n,e),fi(tr),Gt=!!er,tr=er=null,e.current=n,yl(n,e,r),Ke(),Ml=l,yt=o,Il.transition=s}else e.current=n;if(Yl&&(Yl=!1,Xl=e,Kl=r),s=e.pendingLanes,0===s&&(Wl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(rt,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,$e()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(jl)throw jl=!1,e=ql,ql=null,e;!!(1&Kl)&&0!==e.tag&&Eu(),s=e.pendingLanes,1&s?e===Jl?$l++:($l=0,Jl=e):$l=0,Vr()}(e,t,n,i)}finally{Il.transition=r,yt=i}return null}function Eu(){if(null!==Xl){var e=bt(Kl),t=Il.transition,n=yt;try{if(Il.transition=null,yt=16>e?16:e,null===Xl)var i=!1;else{if(e=Xl,Xl=null,Kl=0,6&Ml)throw Error(a(331));var r=Ml;for(Ml|=4,Zo=e.current;null!==Zo;){var s=Zo,o=s.child;if(16&Zo.flags){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zo=c;null!==Zo;){var d=Zo;switch(d.tag){case 0:case 11:case 15:il(8,d,s)}var h=d.child;if(null!==h)h.return=d,Zo=h;else for(;null!==Zo;){var p=(d=Zo).sibling,f=d.return;if(sl(d),d===c){Zo=null;break}if(null!==p){p.return=f,Zo=p;break}Zo=f}}}var m=s.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zo=s}}if(2064&s.subtreeFlags&&null!==o)o.return=s,Zo=o;else e:for(;null!==Zo;){if(2048&(s=Zo).flags)switch(s.tag){case 0:case 11:case 15:il(9,s,s.return)}var A=s.sibling;if(null!==A){A.return=s.return,Zo=A;break e}Zo=s.return}}var y=e.current;for(Zo=y;null!==Zo;){var b=(o=Zo).child;if(2064&o.subtreeFlags&&null!==b)b.return=o,Zo=b;else e:for(o=y;null!==Zo;){if(2048&(l=Zo).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Tu(l,l.return,e)}if(l===o){Zo=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Zo=_;break e}Zo=l.return}}if(Ml=r,Vr(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(rt,e)}catch(e){}i=!0}return i}finally{yt=n,Il.transition=t}}return!1}function Su(e,t,n){e=Ba(e,t=fo(0,t=uo(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),ru(e,t))}function Tu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===Wl||!Wl.has(i))){t=Ba(t,e=mo(t,e=uo(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function xu(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,kl===e&&(Rl&n)===n&&(4===Dl||3===Dl&&(130023424&Rl)===Rl&&500>$e()-Vl?pu(e,0):Fl|=n),ru(e,t)}function Cu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=tu();null!==(e=Ma(e,t))&&(vt(e,t,n),ru(e,n))}function Iu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Mu(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(a(314))}null!==i&&i.delete(t),Cu(e,n)}function ku(e,t){return We(e,t)}function Pu(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ru(e,t,n,i){return new Pu(e,t,n,i)}function Lu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bu(e,t){var n=e.alternate;return null===n?((n=Ru(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Du(e,t,n,i,r,s){var o=2;if(i=e,"function"==typeof e)Lu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case E:return Nu(n.children,r,s,t);case S:o=8,r|=8;break;case T:return(e=Ru(12,n,t,2|r)).elementType=T,e.lanes=s,e;case M:return(e=Ru(13,n,t,r)).elementType=M,e.lanes=s,e;case k:return(e=Ru(19,n,t,r)).elementType=k,e.lanes=s,e;case L:return Ou(n,r,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:o=10;break e;case C:o=9;break e;case I:o=11;break e;case P:o=14;break e;case R:o=16,i=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ru(o,n,t,r)).elementType=e,t.type=i,t.lanes=s,t}function Nu(e,t,n,i){return(e=Ru(7,e,i,t)).lanes=n,e}function Ou(e,t,n,i){return(e=Ru(22,e,i,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Uu(e,t,n){return(e=Ru(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Ru(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zu(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Qu(e,t,n,i,r,a,s,o,l){return e=new zu(e,t,n,o,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ru(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pa(a),e}function Vu(e){if(!e)return Cr;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Rr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Rr(n))return Dr(e,n,t)}return t}function Hu(e,t,n,i,r,a,s,o,l){return(e=Qu(n,i,!0,e,0,a,0,o,l)).context=Vu(null),n=e.current,(a=La(i=tu(),r=nu(n))).callback=null!=t?t:null,Ba(n,a,r),e.current.lanes=r,vt(e,r,i),ru(e,i),e}function Gu(e,t,n,i){var r=t.current,a=tu(),s=nu(r);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=La(a,s)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=Ba(r,t,s))&&(iu(e,r,s,a),Da(e,r,s)),s}function ju(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Sl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mr.current)bo=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return bo=!1,function(e,t,n){switch(t.tag){case 3:ko(t),pa();break;case 5:as(t);break;case 1:Rr(t.type)&&Nr(t);break;case 4:is(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;xr(va,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(xr(os,1&os.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Uo(e,t,n):(xr(os,1&os.current),null!==(e=jo(e,t,n))?e.sibling:null);xr(os,1&os.current);break;case 19:if(i=0!==(n&t.childLanes),128&e.flags){if(i)return Ho(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),xr(os,os.current),i)break;return null;case 22:case 23:return t.lanes=0,To(e,t,n)}return jo(e,t,n)}(e,t,n);bo=!!(131072&e.flags)}else bo=!1,ra&&1048576&t.flags&&Zr(t,qr,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Go(e,t),e=t.pendingProps;var r=Pr(t,Ir.current);Sa(t,n),r=Es(null,t,i,e,r,n);var s=Ss();return t.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rr(i)?(s=!0,Nr(t)):s=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Pa(t),r.updater=Qa,t.stateNode=r,r._reactInternals=t,ja(t,i,e,n),t=Mo(null,t,i,!0,s,n)):(t.tag=0,ra&&s&&ea(t),_o(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Go(e,t),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=function(e){if("function"==typeof e)return Lu(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===P)return 14}return 2}(i),e=ga(i,e),r){case 0:t=Co(null,t,i,e,n);break e;case 1:t=Io(null,t,i,e,n);break e;case 11:t=wo(null,t,i,e,n);break e;case 14:t=Eo(null,t,i,ga(i.type,e),n);break e}throw Error(a(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,Co(e,t,i,r=t.elementType===i?r:ga(i,r),n);case 1:return i=t.type,r=t.pendingProps,Io(e,t,i,r=t.elementType===i?r:ga(i,r),n);case 3:e:{if(ko(t),null===e)throw Error(a(387));i=t.pendingProps,r=(s=t.memoizedState).element,Ra(e,t),Oa(t,i,null,n);var o=t.memoizedState;if(i=o.element,s.isDehydrated){if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Po(e,t,i,n,r=uo(Error(a(423)),t));break e}if(i!==r){t=Po(e,t,i,n,r=uo(Error(a(424)),t));break e}for(ia=ur(t.stateNode.containerInfo.firstChild),na=t,ra=!0,aa=null,n=$a(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),i===r){t=jo(e,t,n);break e}_o(e,t,i,n)}t=t.child}return t;case 5:return as(t),null===e&&ua(t),i=t.type,r=t.pendingProps,s=null!==e?e.memoizedProps:null,o=r.children,nr(i,r)?o=null:null!==s&&nr(i,s)&&(t.flags|=32),xo(e,t),_o(e,t,o,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Uo(e,t,n);case 4:return is(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Ka(t,null,i,n):_o(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,wo(e,t,i,r=t.elementType===i?r:ga(i,r),n);case 7:return _o(e,t,t.pendingProps,n),t.child;case 8:case 12:return _o(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,s=t.memoizedProps,o=r.value,xr(va,i._currentValue),i._currentValue=o,null!==s)if(oi(s.value,o)){if(s.children===r.children&&!Mr.current){t=jo(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){o=s.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===s.tag){(u=La(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Ea(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)o=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(o=s.return))throw Error(a(341));o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Ea(o,n,t),o=s.sibling}else o=s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===t){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}_o(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Sa(t,n),i=i(r=Ta(r)),t.flags|=1,_o(e,t,i,n),t.child;case 14:return r=ga(i=t.type,t.pendingProps),Eo(e,t,i,r=ga(i.type,r),n);case 15:return So(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:ga(i,r),Go(e,t),t.tag=1,Rr(i)?(e=!0,Nr(t)):e=!1,Sa(t,n),Ha(t,i,r),ja(t,i,r,n),Mo(null,t,i,!0,e,n);case 19:return Ho(e,t,n);case 22:return To(e,t,n)}throw Error(a(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Xu(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function $u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,i,r){var a=n._reactRootContainer;if(a){var s=a;if("function"==typeof r){var o=r;r=function(){var e=ju(s);o.call(e)}}Gu(t,s,e,r)}else s=function(e,t,n,i,r){if(r){if("function"==typeof i){var a=i;i=function(){var e=ju(s);a.call(e)}}var s=Hu(t,i,e,0,null,!1,0,"",Zu);return e._reactRootContainer=s,e[fr]=s.current,Vi(8===e.nodeType?e.parentNode:e),du(),s}for(;r=e.lastChild;)e.removeChild(r);if("function"==typeof i){var o=i;i=function(){var e=ju(l);o.call(e)}}var l=Qu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[fr]=l.current,Vi(8===e.nodeType?e.parentNode:e),du(function(){Gu(t,l,n,i)}),l}(n,t,e,r,i);return ju(s)}Ku.prototype.render=Xu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Gu(e,t,null,null)},Ku.prototype.unmount=Xu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Gu(null,e,null,null)}),t[fr]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Ot(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(At(t,1|n),ru(t,$e()),!(6&Ml)&&(Hl=$e()+500,Vr()))}break;case 13:du(function(){var t=Ma(e,1);if(null!==t){var n=tu();iu(t,e,1,n)}}),Wu(e,1)}},wt=function(e){if(13===e.tag){var t=Ma(e,134217728);if(null!==t)iu(t,e,134217728,tu());Wu(e,134217728)}},Et=function(e){if(13===e.tag){var t=nu(e),n=Ma(e,t);if(null!==n)iu(n,e,t,tu());Wu(e,t)}},St=function(){return yt},Tt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},we=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=_r(i);if(!r)throw Error(a(90));W(i),J(i,r)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=cu,Me=du;var tc={usingClientEntryPoint:!1,Events:[yr,br,_r,xe,Ce,cu]},nc={findFiberByHostInstance:Ar,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ic={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=je(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{rt=rc.inject(ic),at=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$u(t))throw Error(a(200));return function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!$u(e))throw Error(a(299));var n=!1,i="",r=Yu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Qu(e,1,!1,null,0,n,0,i,r),e[fr]=t.current,Vi(8===e.nodeType?e.parentNode:e),new Xu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=je(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(a(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!$u(e))throw Error(a(405));var i=null!=n&&n.hydratedSources||null,r=!1,s="",o=Yu;if(null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,r,0,s,o),e[fr]=t.current,Vi(e),i)for(e=0;e<i.length;e++)r=(r=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Ku(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(a(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(a(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[fr]=null})}),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Ju(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,n,!1,i)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var i=n(3935);t.createRoot=i.createRoot,t.hydrateRoot=i.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function A(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},A.prototype=v.prototype;var b=y.prototype=new A;b.constructor=y,m(b,v.prototype),b.isPureReactComponent=!0;var _=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,i){var r,a={},s=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(s=""+t.key),t)w.call(t,r)&&!S.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=i;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:n,type:e,key:s,ref:o,props:a,_owner:E.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function M(e,t,r,a,s){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case i:l=!0}}if(l)return s=s(l=e),e=""===a?"."+I(l,0):a,_(s)?(r="",null!=e&&(r=e.replace(C,"$&/")+"/"),M(s,t,r,"",function(e){return e})):null!=s&&(x(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(C,"$&/")+"/")+e)),t.push(s)),1;if(l=0,a=""===a?".":a+":",_(e))for(var u=0;u<e.length;u++){var c=a+I(o=e[u],u);l+=M(o,t,r,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(o=e.next()).done;)l+=M(o=o.value,t,r,c=a+I(o,u++),s);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}
67function k(e,t,n){if(null==e)return e;var i=[],r=0;return M(e,i,"","",function(e){return t.call(n,e,r++)}),i}function P(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},L={transition:null},B={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:L,ReactCurrentOwner:E};t.Children={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=s,t.PureComponent=y,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),a=e.key,s=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,o=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!S.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=i;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:n,type:e.type,key:a,ref:s,props:r,_owner:o}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(!(0<a(r,t)))break e;e[i]=t,e[n]=r,n=i}}function i(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,s=r>>>1;i<s;){var o=2*(i+1)-1,l=e[o],u=o+1,c=e[u];if(0>a(l,n))u<r&&0>a(c,l)?(e[i]=c,e[u]=n,i=u):(e[i]=l,e[o]=n,i=o);else{if(!(u<r&&0>a(c,n)))break e;e[i]=c,e[u]=n,i=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var u=[],c=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,A="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var t=i(c);null!==t;){if(null===t.callback)r(c);else{if(!(t.startTime<=e))break;r(c),t.sortIndex=t.expirationTime,n(u,t)}t=i(c)}}function _(e){if(g=!1,b(e),!m)if(null!==i(u))m=!0,L(w);else{var t=i(c);null!==t&&B(_,t.startTime-e)}}function w(e,n){m=!1,g&&(g=!1,A(x),x=-1),f=!0;var a=p;try{for(b(n),h=i(u);null!==h&&(!(h.expirationTime>n)||e&&!M());){var s=h.callback;if("function"==typeof s){h.callback=null,p=h.priorityLevel;var o=s(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof o?h.callback=o:h===i(u)&&r(u),b(n)}else r(u);h=i(u)}if(null!==h)var l=!0;else{var d=i(c);null!==d&&B(_,d.startTime-n),l=!1}return l}finally{h=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,T=null,x=-1,C=5,I=-1;function M(){return!(t.unstable_now()-I<C)}function k(){if(null!==T){var e=t.unstable_now();I=e;var n=!0;try{n=T(!0,e)}finally{n?E():(S=!1,T=null)}}else S=!1}if("function"==typeof y)E=function(){y(k)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=k,E=function(){R.postMessage(null)}}else E=function(){v(k,0)};function L(e){T=e,S||(S=!0,E())}function B(e,n){x=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,L(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return i(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,r,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:a,expirationTime:o=a+o,sortIndex:-1},a>s?(e.sortIndex=a,n(c,e),null===i(u)&&e===i(c)&&(g?(A(x),x=-1):g=!0,B(_,a-s))):(e.sortIndex=o,n(u,e),m||f||(m=!0,L(w))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},7545:function(e,t,n){e.exports=function(){"use strict";for(var e,t="7.18.1",i={},r=function(e,t){return i[e]=i[e]||[],t&&(i[e]=i[e].concat(t)),i[e]},a=function(e,t){r(e,t)},s=function(e,t){var n=r(e).indexOf(t);return!(n<=-1||(i[e]=i[e].slice(),i[e].splice(n,1),0))},o=function(e,t){r(e,[].concat(t).map(function(t){var n=function n(){return s(e,n),t.apply(void 0,arguments)};return n}))},l={prefixed:!0},u=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],c=u[0],d=0;d<u.length;d++)if(u[d][1]in document){e=u[d];break}if(e){for(var h=0;h<e.length;h++)l[c[h]]=e[h];l.prefixed=e[0]!==c[0]}var p=[],f=function(e,t){return function(n,i,r){var a=t.levels[i],s=new RegExp("^("+a+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),p){p.push([].concat(r));var o=p.length-1e3;p.splice(0,o>0?o:0)}if(window.console){var l=window.console[n];l||"debug"!==n||(l=window.console.info||window.console.log),l&&a&&s.test(n)&&l[Array.isArray(r)?"apply":"call"](window.console,r)}}};function m(e){var t,n="info",i=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];t("log",n,i)};return t=f(e,i),i.createLogger=function(t){return m(e+": "+t)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},i.level=function(e){if("string"==typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},i.history=function(){return p?[].concat(p):[]},i.history.filter=function(e){return(p||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},i.history.clear=function(){p&&(p.length=0)},i.history.disable=function(){null!==p&&(p.length=0,p=null)},i.history.enable=function(){null===p&&(p=[])},i.error=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("error",n,i)},i.warn=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("warn",n,i)},i.debug=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("debug",n,i)},i}var g=m("VIDEOJS"),v=g.createLogger,A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function y(e,t){return e(t={exports:{}},t.exports),t.exports}var b=y(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}
67e.exports=t}),_=Object.prototype.toString,w=function(e){return x(e)?Object.keys(e):[]};function E(e,t){w(e).forEach(function(n){return t(e[n],n)})}function S(e,t,n){return void 0===n&&(n=0),w(e).reduce(function(n,i){return t(n,e[i],i)},n)}function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?b.apply(void 0,[e].concat(n)):(n.forEach(function(t){t&&E(t,function(t,n){e[n]=t})}),e)}function x(e){return!!e&&"object"==typeof e}function C(e){return x(e)&&"[object Object]"===_.call(e)&&e.constructor===Object}function I(e,t){if(!e||!t)return"";if("function"==typeof window.getComputedStyle){var n;try{n=window.getComputedStyle(e)}catch(e){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var M,k=window.navigator&&window.navigator.userAgent||"",P=/AppleWebKit\/([\d.]+)/i.exec(k),R=P?parseFloat(P.pop()):null,L=/iPod/i.test(k),B=(M=k.match(/OS (\d+)_/i))&&M[1]?M[1]:null,D=/Android/i.test(k),N=function(){var e=k.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),O=D&&N<5&&R<537,U=/Firefox/i.test(k),F=/Edg/i.test(k),z=!F&&(/Chrome/i.test(k)||/CriOS/i.test(k)),Q=function(){var e=k.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),V=function(){var e=/MSIE\s(\d+)\.\d/.exec(k),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(k)&&/rv:11.0/.test(k)&&(t=11),t}(),H=/Safari/i.test(k)&&!z&&!D&&!F,G=/Windows/i.test(k),j=Boolean(ee()&&("ontouchstart"in window||window.navigator.maxTouchPoints||window.DocumentTouch&&window.document instanceof window.DocumentTouch)),q=/iPad/i.test(k)||H&&j&&!/iPhone/i.test(k),W=/iPhone/i.test(k)&&!q,Y=W||q||L,X=(H||Y)&&!z,K=Object.freeze({__proto__:null,IS_IPOD:L,IOS_VERSION:B,IS_ANDROID:D,ANDROID_VERSION:N,IS_NATIVE_ANDROID:O,IS_FIREFOX:U,IS_EDGE:F,IS_CHROME:z,CHROME_VERSION:Q,IE_VERSION:V,IS_SAFARI:H,IS_WINDOWS:G,TOUCH_ENABLED:j,IS_IPAD:q,IS_IPHONE:W,IS_IOS:Y,IS_ANY_SAFARI:X});function $(e){return"string"==typeof e&&Boolean(e.trim())}function J(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Z(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function ee(){return document===window.document}function te(e){return x(e)&&1===e.nodeType}function ne(){try{return window.parent!==window.self}catch(e){return!0}}function ie(e){return function(t,n){if(!$(t))return document[e](null);$(n)&&(n=document.querySelector(n));var i=te(n)?n:document;return i[e]&&i[e](t)}}function re(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=document.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(g.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?ae(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){r.setAttribute(e,n[e])}),i&&Se(r,i),r}function ae(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function se(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function oe(e,t){return J(t),e.classList?e.classList.contains(t):Z(t).test(e.className)}function le(e,t){return e.classList?e.classList.add(t):oe(e,t)||(e.className=(e.className+" "+t).trim()),e}function ue(e,t){return e?(e.classList?e.classList.remove(t):(J(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):(g.warn("removeClass was called with an element that doesn't exist"),null)}function ce(e,t,n){var i=oe(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!i),n!==i)return n?le(e,t):ue(e,t),e}function de(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)})}function he(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var a=i[r].name,s=i[r].value;"boolean"!=typeof e[a]&&-1===n.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function pe(e,t){return e.getAttribute(t)}function fe(e,t,n){e.setAttribute(t,n)}function me(e,t){e.removeAttribute(t)}function ge(){document.body.focus(),document.onselectstart=function(){return!1}}function ve(){document.onselectstart=function(){return!0}}function Ae(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(I(e,"height"))),n.width||(n.width=parseFloat(I(e,"width"))),n}}function ye(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;e.offsetParent&&e!==document[l.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function be(e,t){var n={x:0,y:0};if(Y)for(var i=e;i&&"html"!==i.nodeName.toLowerCase();){var r=I(i,"transform");
67if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);n.x+=s[12],n.y+=s[13]}i=i.parentNode}var o={},l=ye(t.target),u=ye(e),c=u.width,d=u.height,h=t.offsetY-(u.top-l.top),p=t.offsetX-(u.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,Y&&(p-=n.x,h-=n.y)),o.y=1-Math.max(0,Math.min(1,h/d)),o.x=Math.max(0,Math.min(1,p/c)),o}function _e(e){return x(e)&&3===e.nodeType}function we(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Ee(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),te(e)||_e(e)?e:"string"==typeof e&&/\S/.test(e)?document.createTextNode(e):void 0}).filter(function(e){return e})}function Se(e,t){return Ee(t).forEach(function(t){return e.appendChild(t)}),e}function Te(e,t){return Se(we(e),t)}function xe(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}var Ce,Ie=ie("querySelector"),Me=ie("querySelectorAll"),ke=Object.freeze({__proto__:null,isReal:ee,isEl:te,isInFrame:ne,createEl:re,textContent:ae,prependTo:se,hasClass:oe,addClass:le,removeClass:ue,toggleClass:ce,setAttributes:de,getAttributes:he,getAttribute:pe,setAttribute:fe,removeAttribute:me,blockTextSelection:ge,unblockTextSelection:ve,getBoundingClientRect:Ae,findPosition:ye,getPointerPosition:be,isTextNode:_e,emptyEl:we,normalizeContent:Ee,appendContent:Se,insertContent:Te,isSingleLeftClick:xe,$:Ie,$$:Me}),Pe=!1,Re=function(){if(!1!==Ce.options.autoSetup){var e=Array.prototype.slice.call(document.getElementsByTagName("video")),t=Array.prototype.slice.call(document.getElementsByTagName("audio")),n=Array.prototype.slice.call(document.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,a=i.length;r<a;r++){var s=i[r];if(!s||!s.getAttribute){Le(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&Ce(s)}else Pe||Le(1)}};function Le(e,t){ee()&&(t&&(Ce=t),window.setTimeout(Re,e))}function Be(){Pe=!0,window.removeEventListener("load",Be)}ee()&&("complete"===document.readyState?Be():window.addEventListener("load",Be));var De,Ne=function(e){var t=document.createElement("style");return t.className=e,t},Oe=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Ue=3;function Fe(){return Ue++}window.WeakMap||(De=function(){function e(){this.vdata="vdata"+Math.floor(window.performance&&window.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Fe();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];g("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var ze,Qe=window.WeakMap?new WeakMap:new De;function Ve(e,t){if(Qe.has(e)){var n=Qe.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Qe.delete(e)}}function He(e,t,n,i){n.forEach(function(n){e(t,n,i)})}function Ge(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||window.event;for(var r in e={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(e[r]=i[r]));if(e.target||(e.target=e.srcElement||document),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var a=document.documentElement,s=document.body;e.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var je=function(){if("boolean"!=typeof ze){ze=!1;try{var e=Object.defineProperty({},"passive",{get:function(){ze=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}return ze},qe=["touchstart","touchmove"];function We(e,t,n){if(Array.isArray(t))return He(We,e,t,n);Qe.has(e)||Qe.set(e,{});var i=Qe.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Fe()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=Ge(t);var r=i.handlers[t.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s<o&&!t.isImmediatePropagationStopped();s++)try{a[s].call(e,t,n)}catch(e){g.error(e)}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;je()&&qe.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function Ye(e,t,n){if(Qe.has(e)){var i=Qe.get(e);if(i.handlers){if(Array.isArray(t))return He(Ye,e,t,n);var r=function(e,t){i.handlers[t]=[],Ve(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var s=0;s<a.length;s++)a[s].guid===n.guid&&a.splice(s--,1);Ve(e,t)}else r(e,t)}else for(var o in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},o)&&r(e,o)}}}function Xe(e,t,n){var i=Qe.has(e)?Qe.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Ge(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)Xe.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){Qe.has(t.target)||Qe.set(t.target,{});var a=Qe.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function Ke(e,t,n){if(Array.isArray(t))return He(Ke,e,t,n);var i=function i(){Ye(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Fe(),We(e,t,i)}function $e(e,t,n){var i=function i(){Ye(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Fe(),We(e,t,i)}var Je,Ze=Object.freeze({__proto__:null,fixEvent:Ge,on:We,off:Ye,trigger:Xe,one:Ke,any:$e}),et=30,tt=function(e,t,n){t.guid||(t.guid=Fe());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},nt=function(e,t){var n=window.performance.now(),i=function(){var i=window.performance.now();i-n>=t&&(e.apply(void 0,arguments),n=i)};return i},it=function(e,t,n,i){var r;void 0===i&&(i=window);var a=function(){i.clearTimeout(r),r=null},s=function(){var a=this,s=arguments,o=function(){r=null,o=null,n||e.apply(a,s)};!r&&n&&e.apply(a,s),i.clearTimeout(r),r=i.setTimeout(o,t)};return s.cancel=a,s},rt=function(){};rt.prototype.allowedEvents_={},rt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},We(this,e,t),this.addEventListener=n},rt.prototype.addEventListener=rt.prototype.on,rt.prototype.off=function(e,t){Ye(this,e,t)},rt.prototype.removeEventListener=rt.prototype.off,rt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ke(this,e,t),this.addEventListener=n},rt.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},$e(this,e,t),this.addEventListener=n},rt.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Ge(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Xe(this,e)},rt.prototype.dispatchEvent=rt.prototype.trigger,rt.prototype.queueTrigger=function(e){var t=this;Je||(Je=new Map);var n=e.type||e,i=Je.get(this);i||(i=new Map,Je.set(this,i));var r=i.get(n);i.delete(n),window.clearTimeout(r);var a=window.setTimeout(function(){0===i.size&&(i=null,Je.delete(t)),t.trigger(e)},0);i.set(n,a)};var at=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},st=function(e){return e instanceof rt||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},ot=function(e,t){st(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},lt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ut=function(e,t,n){if(!e||!e.nodeName&&!st(e))throw new Error("Invalid target for "+at(t)+"#"+n+"; must be a DOM node or evented object.")},ct=function(e,t,n){if(!lt(e))throw new Error("Invalid event type for "+at(t)+"#"+n+"; must be a non-empty string or array.")},dt=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+at(t)+"#"+n+"; must be a function.")},ht=function(e,t,n){var i,r,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),ut(i,e,n),ct(r,e,n),dt(a,e,n),{isTargetingSelf:s,target:i,type:r,listener:a=tt(e,a)}},pt=function(e,t,n,i){ut(e,e,t),e.nodeName?Ze[t](e,n,i):e[t](n,i)}
67,ft={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ht(this,n,"on"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(pt(s,"on",o,l),!a){var u=function(){return e.off(s,o,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,pt(this,"on","dispose",u),pt(s,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ht(this,n,"one"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)pt(s,"one",o,l);else{var u=function t(){e.off(s,o,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};u.guid=l.guid,pt(s,"one",o,u)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ht(this,n,"any"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)pt(s,"any",o,l);else{var u=function t(){e.off(s,o,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};u.guid=l.guid,pt(s,"any",o,u)}},off:function(e,t,n){if(!e||lt(e))Ye(this.eventBusEl_,e,t);else{var i=e,r=t;ut(i,this,"off"),ct(r,this,"off"),dt(n,this,"off"),n=tt(this,n),this.off("dispose",n),i.nodeName?(Ye(i,r,n),Ye(i,"dispose",n)):st(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){ut(this.eventBusEl_,this,"trigger");var n=e&&"string"!=typeof e?e.type:e;if(!lt(n)){var i="Invalid event type for "+at(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||g).error(i)}return Xe(this.eventBusEl_,e,t)}};function mt(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=re("span",{className:"vjs-event-bus"});return T(e,ft),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&Qe.has(e)&&Qe.delete(e)}),window.setTimeout(function(){e.eventBusEl_=null},0)}),e}var gt={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),E(e,function(e,i){n.state[i]!==e&&((t=t||{})[i]={from:n.state[i],to:e}),n.state[i]=e}),t&&st(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function vt(e,t){return T(e,gt),e.state=T({},e.state,t),"function"==typeof e.handleStateChanged&&st(e)&&e.on("statechanged",e.handleStateChanged),e}var At=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},yt=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},bt=function(e,t){return yt(e)===yt(t)};function _t(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach(function(t){t&&E(t,function(t,n){C(t)?(C(e[n])||(e[n]={}),e[n]=_t(e[n],t)):e[n]=t})}),e}var wt=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),Et=window.Map?window.Map:wt,St=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),Tt=window.Set?window.Set:St,xt=y(function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var n,a=String(e);return(n=i[a.toLowerCase()])?n:(n=r[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=i[t.toLowerCase()])return a===n;if(a=r[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var s=t.names=t.title={};for(a in i)s[i[a]]=a;for(var o in r)i[o]=r[o]});xt.code,xt.codes,xt.aliases,xt.names,xt.title;var Ct=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=_t({},this.options_),t=this.options_=_t(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var i=e&&e.id&&e.id()||"no_player";this.id_=i+"_component_"+Fe()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(mt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),vt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Tt,this.setIntervalIds_=new Tt,this.rafIds_=new Tt,this.namedRafs_=new Et,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=_t(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return re(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],s=i&&i.split("-")[0],o=r&&r[s],l=n;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){var i=t[n-1],r=i;return void 0===i&&(r=e),r})),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var i=this,r=0;r<t.length;r++)if(!(i=i.getChild(t[r]))||!i.getChild)return;return i},t.addChild=function(t,n,i){var r,a;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof t){a=yt(t);var s=n.componentClass||a;n.name=a;var o=e.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(a=a||r.name&&yt(r.name()))&&(this.childNameIndex_[a]=r,this.childNameIndex_[At(a)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[i+1]&&(this.children_[i+1].el_?l=this.children_[i+1].el_:te(this.children_[i+1])&&(l=this.children_[i+1])),this.contentEl().insertBefore(r.el(),l)}return r},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[yt(e.name())]=null,this.childNameIndex_[At(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}},s=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var i,r;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||yt(t.name));return n&&!s.isTech(n)}
67).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return Ie(e,t||this.contentEl())},t.$$=function(e,t){return Me(e,t||this.contentEl())},t.hasClass=function(e){return oe(this.el_,e)},t.addClass=function(e){le(this.el_,e)},t.removeClass=function(e){ue(this.el_,e)},t.toggleClass=function(e,t){ce(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return pe(this.el_,e)},t.setAttribute=function(e,t){fe(this.el_,e,t)},t.removeAttribute=function(e){me(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+yt(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=I(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+yt(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(xt.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null,i=10,r=200;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=window.performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,a=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+a*a)>i&&(e=!1)}});var a=function(){e=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(i){n=null,!0===e&&window.performance.now()-t<r&&(i.preventDefault(),this.trigger("tap"))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=tt(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,i=this;return e=tt(this,e),this.clearTimersOnDispose_(),n=window.setTimeout(function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),window.clearTimeout(e)),e},t.setInterval=function(e,t){e=tt(this,e),this.clearTimersOnDispose_();var n=window.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),window.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=tt(this,e),t=window.requestAnimationFrame(function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=tt(this,t);var i=this.requestAnimationFrame(function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),window.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
67h(function(t){var n=t[0],i=t[1];e[n].forEach(function(t,n){return e[i](n)})}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i,r=e.getComponent("Tech"),a=r&&r.isTech(n),s=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!s)throw i=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+i+".");t=yt(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var l=o.players,u=Object.keys(l);if(l&&u.length>0&&u.map(function(e){return l[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[At(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Ct.prototype.supportsRaf_="function"==typeof window.requestAnimationFrame&&"function"==typeof window.cancelAnimationFrame,Ct.registerComponent("Component",Ct);var Mt=It;function kt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Pt=kt;function Rt(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function Lt(e,t,n,i){return Rt(e,i,n.length-1),n[i][t]}function Bt(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Lt.bind(null,"start",0,e),end:Lt.bind(null,"end",1,e)},window.Symbol&&window.Symbol.iterator&&(t[window.Symbol.iterator]=function(){return(e||[]).values()}),t}function Dt(e,t){return Array.isArray(e)?Bt(e):void 0===e||void 0===t?Bt():Bt([[e,t]])}function Nt(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Dt(0,0));for(var a=0;a<e.length;a++)n=e.start(a),(i=e.end(a))>t&&(i=t),r+=i-n;return r/t}function Ot(e){if(e instanceof Ot)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:x(e)&&("number"==typeof e.code&&(this.code=e.code),T(this,e)),this.message||(this.message=Ot.defaultMessages[this.code]||"")}Ot.prototype.code=0,Ot.prototype.message="",Ot.prototype.status=null,Ot.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ot.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Ut=0;Ut<Ot.errorTypes.length;Ut++)Ot[Ot.errorTypes[Ut]]=Ut,Ot.prototype[Ot.errorTypes[Ut]]=Ut;var Ft=zt;function zt(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}function Qt(e){return null!=e&&"function"==typeof e.then}function Vt(e){Qt(e)&&e.then(null,function(e){})}var Ht=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,i){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},Gt={textTracksToJson:function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=Ht(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(Ht))},jsonToTextTracks:function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},trackToJson_:Ht},jt="vjs-modal-dialog",qt=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=re("div",{className:jt
vendor: 8,371 bytes, line 67
67+"-content"},{role:"document"}),i.descEl_=re("p",{className:jt+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),ae(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return jt+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Te(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),we(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=document.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),xt.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(xt.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}document.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof window.HTMLAnchorElement||e instanceof window.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof window.HTMLInputElement||e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof window.HTMLIFrameElement||e instanceof window.HTMLObjectElement||e instanceof window.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(Ct);qt.prototype.options_={pauseOnOpen:!0,temporary:!0},Ct.registerComponent("ModalDialog",qt);var Wt=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(Mt(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}Pt(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},st(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(rt);for(var Yt in Wt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Wt.prototype.allowedEvents_)Wt.prototype["on"+Yt]=null;var Xt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},Kt=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].enabled){Xt(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}Pt(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Xt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Xt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Wt),$t=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},Jt=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].selected){$t(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(Mt(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}Pt(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&$t(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,$t(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(Wt),Zt=function(e){function t(){return e.apply(this,arguments)||this}Pt(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(Wt),en=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
67),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),tn=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),nn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},rn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},an={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},sn={disabled:"disabled",hidden:"hidden",showing:"showing"},on=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var i={id:t.id||"vjs_track_"+Fe(),kind:t.kind||"",language:t.language||""},r=t.label||"",a=function(e){Object.defineProperty(Mt(n),e,{get:function(){return i[e]},set:function(){}})};for(var s in i)a(s);return Object.defineProperty(Mt(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return Pt(t,e),t}(rt),ln=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=document.createElement("a");n.href=e;for(var i={},r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=window.location.protocol),i.host||(i.host=window.location.host),i},un=function(e){if(!e.match(/^https?:\/\//)){var t=document.createElement("a");t.href=e,e=t.href}return e},cn=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},dn=function(e,t){void 0===t&&(t=window.location);var n=ln(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},hn=Object.freeze({__proto__:null,parseUrl:ln,getAbsoluteURL:un,getFileExtension:cn,isCrossOrigin:dn}),pn="undefined"!=typeof window?window:void 0!==A?A:"undefined"!=typeof self?self:{},fn=gn,mn=Object.prototype.toString;function gn(e){if(!e)return!1;var t=mn.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}function vn(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce(function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e},"utf-8")}var An=function(e,t){return void 0===t&&(t=!1),function(n,i,r){if(n)e(n);else if(i.statusCode>=400&&i.statusCode<=599){var a=r;if(t)if(pn.TextDecoder){var s=vn(i.headers&&i.headers["content-type"]);try{a=new TextDecoder(s).decode(r)}catch(e){}}else a=String.fromCharCode.apply(null,new Uint8Array(r));e({cause:a})}else e(null,r)}};Tn.httpHandler=An;var yn=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t):t},bn=Tn,_n=Tn;function wn(e,t){for(var n=0;n<e.length;n++)t(e[n])}function En(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Sn(e,t,n){var i=e;return fn(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=b({},t,{uri:e}),i.callback=n,i}
67function Tn(e,t,n){return xn(t=Sn(e,t,n))}function xn(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){4===u.readyState&&setTimeout(s,0)}function r(){var e=void 0;if(e=u.response?u.response:u.responseText||Cn(u),g)try{e=JSON.parse(e)}catch(e){}return e}function a(e){return clearTimeout(c),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,v)}function s(){if(!l){var t;clearTimeout(c),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var i=v,a=null;return 0!==t?(i={body:r(),statusCode:t,method:h,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(i.headers=yn(u.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,i,i.body)}}var o,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new Tn.XDomainRequest:new Tn.XMLHttpRequest);var c,d=u.url=e.uri||e.url,h=u.method=e.method||"GET",p=e.body||e.data,f=u.headers=e.headers||{},m=!!e.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:u};if("json"in e&&!1!==e.json&&(g=!0,f.accept||f.Accept||(f.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),u.onreadystatechange=i,u.onload=s,u.onerror=a,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=a,u.open(h,d,!m,e.username,e.password),m||(u.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(c=setTimeout(function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",a(e)}},e.timeout)),u.setRequestHeader)for(o in f)f.hasOwnProperty(o)&&u.setRequestHeader(o,f[o]);else if(e.headers&&!En(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}function Cn(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}function In(){}Tn.XMLHttpRequest=pn.XMLHttpRequest||In,Tn.XDomainRequest="withCredentials"in new Tn.XMLHttpRequest?Tn.XMLHttpRequest:pn.XDomainRequest,wn(["get","put","post","patch","head","delete"],function(e){Tn["delete"===e?"del":e]=function(t,n,i){return(n=Sn(t,n,i)).method=e.toUpperCase(),xn(n)}}),bn.default=_n;var Mn=function(e,t){var n=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(window.console&&window.console.groupCollapsed&&window.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach(function(e){return g.error(e)}),window.console&&window.console.groupEnd&&window.console.groupEnd()),n.flush()},kn=function(e,t){var n={uri:e},i=dn(e);i&&(n.cors=i);var r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),bn(n,tt(this,function(e,n,i){if(e)return g.error(e,n);t.loaded_=!0,"function"!=typeof window.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return Mn(i,t);g.error("vttjs failed to load, stopping trying to process "+t.src)}):Mn(i,t)}))},Pn=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=_t(t,{kind:an[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=sn[i.mode]||"disabled",a=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=e.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var s=new tn(n.cues_),o=new tn(n.activeCues_),l=!1,u=tt(Mt(n),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1))}),c=function(){n.tech_.off("timeupdate",u)};return n.tech_.one("dispose",c),"disabled"!==r&&n.tech_.on("timeupdate",u),Object.defineProperties(Mt(n),{default:{get:function(){return a}
67,set:function(){}},mode:{get:function(){return r},set:function(e){sn[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||kn(this.src,this),this.tech_.off("timeupdate",u),"disabled"!==r&&this.tech_.on("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(l=!0);return this.activeCues_=t,o.setCues_(this.activeCues_),o},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&kn(n.src,Mt(n))):n.loaded_=!0,n}Pt(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(window.vttjs&&!(e instanceof window.vttjs.VTTCue)){for(var n in t=new window.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(on);Pn.prototype.allowedEvents_={cuechange:"cuechange"};var Rn=function(e){function t(t){var n;void 0===t&&(t={});var i=_t(t,{kind:rn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(Mt(n),"enabled",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return Pt(t,e),t}(on),Ln=function(e){function t(t){var n;void 0===t&&(t={});var i=_t(t,{kind:nn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(Mt(n),"selected",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return Pt(t,e),t}(on),Bn=0,Dn=1,Nn=2,On=3,Un=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new Pn(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(Mt(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=Bn,r.addEventListener("loadeddata",function(){i=Nn,n.trigger({type:"load",target:Mt(n)})}),n}return Pt(t,e),t}(rt);Un.prototype.allowedEvents_={load:"load"},Un.NONE=Bn,Un.LOADING=Dn,Un.LOADED=Nn,Un.ERROR=On;var Fn={audio:{ListClass:Kt,TrackClass:Rn,capitalName:"Audio"},video:{ListClass:Jt,TrackClass:Ln,capitalName:"Video"},text:{ListClass:Zt,TrackClass:Pn,capitalName:"Text"}};Object.keys(Fn).forEach(function(e){Fn[e].getterName=e+"Tracks",Fn[e].privateName=e+"Tracks_"});var zn={remoteText:{ListClass:Zt,TrackClass:Pn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:en,TrackClass:Un,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Qn=b({},Fn,zn);zn.names=Object.keys(zn),Fn.names=Object.keys(Fn),Qn.names=[].concat(zn.names).concat(Fn.names);var Vn,Hn={},Gn=void 0!==A?A:"undefined"!=typeof window?window:{};"undefined"!=typeof document?Vn=document:(Vn=Gn["__GLOBAL_DOCUMENT_CACHE@4"])||(Vn=Gn["__GLOBAL_DOCUMENT_CACHE@4"]=Hn);var jn=Vn,qn=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function Wn(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function Yn(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function Xn(){this.values=qn(null)}function Kn(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(n);2===s.length&&t(s[0],s[1])}}function $n(e,t,n){var i=e;function r(){var t=Yn(e);if(null===t)throw new Wn(Wn.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(e,t){var i=new Xn;Kn(e,function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];i.integer(e,s),i.percent(e,s)&&i.set("snapToLines",!1),i.alt(e,s,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(e){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(e){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(e){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=r(),s(),"--\x3e"!==e.substr(0,3))throw new Wn(Wn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),s(),t.endTime=r(),s(),a(e,t)}Wn.prototype=qn(Error.prototype),Wn.prototype.constructor=Wn,Wn.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Xn.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var Jn=jn.createElement&&jn.createElement("textarea"),Zn={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},ei={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},ti={v:"title",lang:"lang"},ni={rt:"ruby"};function ii(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var n=t.match(/^([^<]*)(<[^>
67]*>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return Jn.innerHTML=e,e=Jn.textContent,Jn.textContent="",e}function r(e,t){return!ni[t.localName]||ni[t.localName]===e.localName}function a(t,n){var i=Zn[t];if(!i)return null;var r=e.document.createElement(i),a=ti[t];return a&&n&&(r[a]=n.trim()),r}for(var s,o=e.document.createElement("div"),l=o,u=[];null!==(s=n());)if("<"!==s[0])l.appendChild(e.document.createTextNode(i(s)));else{if("/"===s[1]){u.length&&u[u.length-1]===s.substr(2).replace(">","")&&(u.pop(),l=l.parentNode);continue}var c,d=Yn(s.substr(1,s.length-2));if(d){c=e.document.createProcessingInstruction("timestamp",d),l.appendChild(c);continue}var h=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(!(c=a(h[1],h[3])))continue;if(!r(l,c))continue;if(h[2]){var p=h[2].split(".");p.forEach(function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(ei.hasOwnProperty(n)){var i=t?"background-color":"color",r=ei[n];c.style[i]=r}}),c.className=p.join(" ")}u.push(h[1]),l.appendChild(c),l=c}return o}var ri=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function ai(e){for(var t=0;t<ri.length;t++){var n=ri[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function si(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function r(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):n}return"ruby"===t.tagName?r(e):t.childNodes?(i(e,t),r(e)):void 0}for(i(t,e);n=r(t);)for(var a=0;a<n.length;a++)if(ai(n.charCodeAt(a)))return"rtl";return"ltr"}function oi(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}function li(){}function ui(e,t,n){li.call(this),this.cue=t,this.cueDiv=ii(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:si(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")}
vendor: 10,812 bytes, line 67
67)}}function ci(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function di(e,t,n,i){function r(e,t){for(var r,a=new ci(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i);)e.move(t[o]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(r=new ci(e),s=l),e=new ci(a)}return r||a}var a=new ci(t),s=t.cue,o=oi(s),l=[];if(s.snapToLines){var u;switch(s.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width"}var c=a.lineHeight,d=c*Math.round(o),h=n[u]+c,p=l[0];Math.abs(d)>h&&(d=d<0?-1:1,d*=Math.ceil(h/c)*c),o<0&&(d+=""===s.vertical?n.height:n.width,l=l.reverse()),a.move(p,d)}else{var f=a.lineHeight/n.height*100;switch(s.lineAlign){case"center":o-=f/2;break;case"end":o-=f}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}l=["+y","-x","+x","-y"],a=new ci(t)}var m=r(a,l);t.move(m.toCSSCompatValues(n))}function hi(){}li.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},li.prototype.formatStyle=function(e,t){return 0===e?0:e+t},ui.prototype=qn(li.prototype),ui.prototype.constructor=ui,ci.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},ci.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},ci.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},ci.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},ci.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},ci.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},ci.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},ci.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},hi.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},hi.convertCueToDOMTree=function(e,t){return e&&t?ii(e,t):null};var pi=.05,fi="sans-serif",mi="1.5%";hi.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=mi,n.appendChild(i),r(t)){var a=[],s=ci.getSimpleBoxPosition(i),o={font:Math.round(s.height*pi*100)/100+"px "+fi};!function(){for(var n,r,l=0;l<t.length;l++)r=t[l],n=new ui(e,r,o),i.appendChild(n.div),di(e,n,s,a),r.displayState=n.div,a.push(ci.getSimpleBoxPosition(n))}()}else for(var l=0;l<t.length;l++)i.appendChild(t[l].displayState)},hi.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},hi.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof Wn))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function i(e){var n=new Xn;if(Kn(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new Xn;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}function r(e){var n=new Xn;Kn(e,function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",Yn(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function a(e){e.match(/X-TIMESTAMP-MAP/)?Kn(e,function(e,t){"X-TIMESTAMP-MAP"===e&&r(t)},/=/):Kn(e,function(e,t){"Region"===e&&i(t)},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var s;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var o=(s=n()).match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new Wn(Wn.Errors.BadSignature);t.state="HEADER"}for(var l=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:s=n(),t.state){case"HEADER":/:/.test(s)?a(s):s||(t.state="ID");continue;case"NOTE":s||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){t.state="NOTE";break}if(!s)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===s.indexOf("--\x3e")){t.cue.id=s;continue}case"CUE":try{$n(s,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var u=-1!==s.indexOf("--\x3e");if(!s||u&&(l=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=s.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":s||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new Wn(Wn.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var gi=hi,vi="auto",Ai={"":1,lr:1,rl:1},yi={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function bi(e){return"string"==typeof e&&!!Ai[e.toLowerCase()]&&e.toLowerCase()}function _i(e){return"string"==typeof e&&!!yi[e.toLowerCase()]&&e.toLowerCase()}function wi(e,t,n){this.hasBeenReset=!1;var i="",r=!1,a=e,s=t,o=n,l=null,u="",c=!0,d="auto",h="start",p="auto",f="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(e){i=""+e}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(e){r=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");s=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(e){o=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(e){var t=bi(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&e!==vi)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){var t=_i(e);t?(h=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");p=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=_i(e);t?(f=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=_i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=t,this.hasBeenReset=!0}}}),this.displayState=void 0}wi.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Ei=wi,Si={"":!0,up:!0};function Ti(e){return"string"==typeof e&&!!Si[e.toLowerCase()]&&e.toLowerCase()}function xi(e){return"number"==typeof e&&e>=0&&e<=100}function Ci(){var e=100,t=3,n=0,i=100,r=0,a=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!xi(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(e){if(!xi(e))throw new Error("RegionAnchorX must be between 0 and 100.");i=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!xi(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return a}
67,set:function(e){if(!xi(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!xi(e))throw new Error("ViewportAnchorX must be between 0 and 100.");r=e}},scroll:{enumerable:!0,get:function(){return s},set:function(e){var t=Ti(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):s=t}}})}var Ii=Ci,Mi=y(function(e){var t=e.exports={WebVTT:gi,VTTCue:Ei,VTTRegion:Ii};pn.vttjs=t,pn.WebVTT=t.WebVTT;var n=t.VTTCue,i=t.VTTRegion,r=pn.VTTCue,a=pn.VTTRegion;t.shim=function(){pn.VTTCue=n,pn.VTTRegion=i},t.restore=function(){pn.VTTCue=r,pn.VTTRegion=a},pn.VTTCue||t.shim()});function ki(e,t,n,i,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var s=new Qn.text.TrackClass(r);return a.addTrack(s),s}Mi.WebVTT,Mi.VTTCue,Mi.VTTRegion;var Pi=function(e){function t(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(i=e.call(this,null,t,n)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),Qn.names.forEach(function(e){var n=Qn[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new Qn.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}Pt(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Dt(0,0)},n.bufferedPercent=function(){return Nt(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Fn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;
67(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}})},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Ot(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Dt(0,0):Dt()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Fn.names.forEach(function(t){var n=Fn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})},n.addWebVttScript_=function(){var e=this;if(!window.WebVTT)if(document.body.contains(this.el())){if(!this.options_["vtt.js"]&&C(Mi)&&Object.keys(Mi).length>0)return void this.trigger("vttjsloaded");var t=document.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),window.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",a)})},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return ki(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=_t(e,{tech:this});return new zn.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(g.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(i.track)}),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||window.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=yt(e),t.techs_[e]=n,t.techs_[At(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=yt(e),window&&window.videojs&&window.videojs[e]?(g.warn("The "+e+" tech w
67as added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window.videojs[e]):void 0)},t}(Ct);Qn.names.forEach(function(e){var t=Qn[e];Pi.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Pi.prototype.featuresVolumeControl=!0,Pi.prototype.featuresMuteControl=!0,Pi.prototype.featuresFullscreenResize=!1,Pi.prototype.featuresPlaybackRate=!1,Pi.prototype.featuresProgressEvents=!1,Pi.prototype.featuresSourceset=!1,Pi.prototype.featuresTimeupdateEvents=!1,Pi.prototype.featuresNativeTextTracks=!1,Pi.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(t,n))return i[r];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:g.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Ct.registerComponent("Tech",Pi),Pi.registerTech("Tech",Pi),Pi.defaultTechOrder_=[];var Ri={},Li={},Bi={};function Di(e,t){Ri[e]=Ri[e]||[],Ri[e].push(t)}function Ni(e,t,n){e.setTimeout(function(){return Yi(t,Ri[t.type],n,e)},1)}function Oi(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}function Ui(e,t,n){return e.reduceRight(Gi(n),t[n]())}function Fi(e,t,n,i){return t[n](e.reduce(Gi(n),i))}function zi(e,t,n,i){void 0===i&&(i=null);var r="call"+yt(n),a=e.reduce(Gi(r),i),s=a===Bi,o=s?null:t[n](a);return ji(e,n,o,s),o}var Qi={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Vi={setCurrentTime:1,setMuted:1,setVolume:1},Hi={play:1,pause:1};function Gi(e){return function(t,n){return t===Bi?Bi:n[e]?n[e](t):t}}function ji(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}function qi(e){Li[e.id()]=null}function Wi(e,t){var n=Li[e.id()],i=null;if(null==n)return i=t(e),Li[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],s=a[0],o=a[1];s===t&&(i=o)}return null===i&&(i=t(e),n.push([t,i])),i}function Yi(e,t,n,i,r,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a=!1);var s=t,o=s[0],l=s.slice(1);if("string"==typeof o)Yi(e,Ri[o],n,i,r,a);else if(o){var u=Wi(i,o);if(!u.setSource)return r.push(u),Yi(e,l,n,i,r,a);u.setSource(T({},e),function(t,s){if(t)return Yi(e,l,n,i,r,a);r.push(u),Yi(s,e.type===s.type?l:Ri[s.type],n,i,r,a)})}else l.length?Yi(e,l,n,i,r,a):a?n(e,r):Yi(e,Ri["*"],n,i,r,!0)}var Xi={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Ki=function(e){void 0===e&&(e="");var t=cn(e);return Xi[t.toLowerCase()]||""},$i=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var a=i[r];if(a.type&&a.src&&a.src===t)return a.type}return Ki(t)},Ji=function e(t){if(Array.isArray(t)){var n=[];
67t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):x(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[Zi({src:t})]:x(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[Zi(t)]:[];return t};function Zi(e){if(!e.type){var t=Ki(e.src);t&&(e.type=t)}return e}var er=function(e){function t(t,n,i){var r,a=_t({createEl:!1},n);if(r=e.call(this,t,a,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var s=0,o=n.playerOptions.techOrder;s<o.length;s++){var l=yt(o[s]),u=Pi.getTech(l);if(l||(u=Ct.getComponent(l)),u&&u.isSupported()){t.loadTech_(l);break}}return r}return Pt(t,e),t}(Ct);Ct.registerComponent("MediaLoader",er);var tr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}Pt(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=T({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&g.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=T({role:"button"},n),this.tabIndex_=t.tabIndex;var i=re(e,t,n);return i.appendChild(re("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=re("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,ae(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){xt.isEventKey(t,"Space")||xt.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Ct);Ct.registerComponent("ClickableComponent",tr);var nr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}Pt(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){return re("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(V||F)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Vt(this.player_.play()):this.player_.pause()}},t}(tr);Ct.registerComponent("PosterImage",nr);var ir="#222",rr="#ccc",ar={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
vendor: 4,717 bytes, line 67
67script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function sr(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function or(e,t,n){try{e.style[t]=n}catch(e){return}}var lr=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=function(e){return r.updateDisplay(e)};return t.on("loadstart",function(e){return r.toggleDisplay(e)}),t.on("texttrackchange",a),t.on("loadedmetadata",function(e){return r.preselectTrack(e)}),t.ready(tt(Mt(r),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",a),t.on("playerresize",a),window.addEventListener("orientationchange",a),t.on("dispose",function(){return window.removeEventListener("orientationchange",a)});for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}})),r}Pt(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,s=0;s<r.length;s++){var o=r[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in i?o.kind===a.kind?n=o:n||(n=o):a&&!a.enabled?(n=null,e=null,t=null):o.default&&("descriptions"!==o.kind||e?o.kind in i&&!t&&(t=o):e=o)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof window.WebVTT&&window.WebVTT.processCues(window,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var a=null,s=null,o=e.length;o--;){var l=e[o];"showing"===l.mode&&("descriptions"===l.kind?a=l:s=l)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;i--;){var r=n[i];if(r){var a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&or(a.firstChild,"color",sr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&or(a.firstChild,"backgroundColor",sr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?or(a,"backgroundColor",sr(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px "+ir+", 2px 2px 4px "+ir+", 2px 2px 5px "+ir:"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px "+ir+", 2px 2px "+ir+", 3px 3px "+ir:"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px "+rr+", 0 1px "+rr+", -1px -1px "+ir+", 0 -1px "+ir:"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px "+ir+", 0 0 4px "+ir+", 0 0 4px "+ir+", 0 0 4px "+ir)),t.fontPercent&&1!==t.fontPercent){var s=window.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=ar[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof window.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],r=0;r<i.activeCues.length;++r)t.push(i.activeCues[r]);window.WebVTT.processCues(window,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],o=0;o<s.activeCues.length;++o){var l=s.activeCues[o].displayState;le(l,"vjs-text-track-cue"),le(l,"vjs-text-track-cue-"+(s.language?s.language:a)),s.language&&fe(l,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(Ct);Ct.registerComponent("TextTrackDisplay",lr);var ur=function(e){function t(){return e.apply(this,arguments)||this}return Pt(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"
67Video Player"),i=re("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(Ct);Ct.registerComponent("LoadingSpinner",ur);var cr=function(e){function t(){return e.apply(this,arguments)||this}Pt(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var i=re("button",t=T({className:this.buildCSSClass()},t),n=T({type:"button"},n));return i.appendChild(re("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return g.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Ct.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){xt.isEventKey(t,"Space")||xt.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(tr);Ct.registerComponent("Button",cr);var dr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).mouseused_=!1,i.on("mousedown",function(e){return i.handleMouseDown(e)}),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Vt(t),void(!this.player_.tech(!0)||(V||F)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var a=function(){return r.focus()};Qt(t)?t.then(a,function(){}):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(cr);dr.prototype.controlText_="Play Video",Ct.registerComponent("BigPlayButton",dr);var hr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){xt.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(cr);Ct.registerComponent("CloseButton",hr);var pr=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",function(e){return i.handlePlay(e)}),i.on(t,"pause",function(e){return i.handlePause(e)}),n.replay&&i.on(t,"ended",function(e){return i.handleEnded(e)}),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Vt(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},t}(cr);pr.prototype.controlText_="Play",Ct.registerComponent("PlayToggle",pr);var fr=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),(r=r>0||s>0?r+":":"")+(i=((r||a>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},mr=fr;function gr(e){mr=e}function vr(){mr=fr}function Ar(e,t){return void 0===t&&(t=e),mr(e,t)}var yr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["timeupdate","ended"],function(e){return i.updateContent(e)}),i.updateTextNode_(),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=re("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(i),this.contentEl_=re("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=Ar(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,g.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=document.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},n.updateContent=function(e){},t}(Ct);yr.prototype.labelText_="Time",yr.prototype.controlText_="Time",Ct.registerComponent("TimeDisplay",yr);var br=function(e){function t(){return e.apply(this,arguments)||this}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(yr);br.prototype.labelText_="Current Time",br.prototype.controlText_="Current Time",Ct.registerComponent("CurrentTimeDisplay",br);var _r=function(e){function t(t,n){var i,r=function(e){return i.updateContent(e)};return(i=e.call(this,t,n)||this).on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(yr);_r.prototype.labelText_="Duration",_r.prototype.controlText_="Duration",Ct.registerComponent("DurationDisplay",_r);var wr=function(e){function t(){return e.apply(this,arguments)||this}return Pt(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(Ct);Ct.registerComponent("TimeDivider",wr);var Er=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"durationchange",function(e){return i.updateContent(e)}),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(re("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(yr);Er.prototype.labelText_="Remaining Time",Er.prototype.controlText_="Remaining Time",Ct.registerComponent("RemainingTimeDisplay",Er);var Sr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateShowing(),i.on(i.player(),"durationchange",function(e){return i.updateShowing(e)}),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=re("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(re("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(document.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Ct);Ct.registerComponent("LiveDisplay",Sr);var Tr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=re("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(cr);Tr.prototype.controlText_="Seek to live, currently playing live",Ct.registerComponent("SeekToLive",Tr);var xr=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},Cr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}Pt(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=T({tabIndex:0},n),i=T({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||z||e.preventDefault(),ge(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ve(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"})),t}},n.getProgress=function(){return Number(xr(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=be(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){xt.isEventKey(t,"Left")||xt.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):xt.isEventKey(t,"Right")||xt.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Ct);Ct.registerComponent("Slider",Cr);
67var Ir=function(e,t){return xr(e/t*100,0,100).toFixed(2)+"%"},Mr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).partEls_=[],i.on(t,"progress",function(e){return i.update(e)}),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=re("span",{className:"vjs-control-text"}),i=re("span",{textContent:this.localize("Loaded")}),r=document.createTextNode(": ");return this.percentageEl_=re("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,s=Ir(r,i);t.percent_!==s&&(t.el_.style.width=s,ae(t.percentageEl_,s),t.percent_=s);for(var o=0;o<n.length;o++){var l=n.start(o),u=n.end(o),c=a[o];c||(c=t.el_.appendChild(re()),a[o]=c),c.dataset.start===l&&c.dataset.end===u||(c.dataset.start=l,c.dataset.end=u,c.style.left=Ir(l,r),c.style.width=Ir(u-l,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length})},t}(Ct);Ct.registerComponent("LoadProgressBar",Mr);var kr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(Mt(i),i.update),et),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=ye(this.el_),r=Ae(this.player_.el()),a=e.width*t;if(r&&i){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),l=i.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){ae(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var a,s=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),l=o-t*o;a=(l<1?"":"-")+Ar(l,o)}else a=Ar(n,s);r.update(e,t,a),i&&i()})},t}(Ct);Ct.registerComponent("TimeTooltip",kr);var Pr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(Mt(i),i.update),et),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}},t}(Ct);Pr.prototype.options_={children:[]},Y||D||Pr.prototype.options_.children.push("timeTooltip"),Ct.registerComponent("PlayProgressBar",Pr);var Rr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(Mt(i),i.update),et),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,function(){n.el_.style.left=e.width*t+"px"})},t}(Ct);Rr.prototype.options_={children:["timeTooltip"]},Ct.registerComponent("MouseTimeDisplay",Rr);var Lr=5,Br=12,Dr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).setEventHandlers_(),i}Pt(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=tt(this,this.update),this.update=nt(this.update_,et),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.on(document,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===document.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,et))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==document.visibilityState){var i=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();
67t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===e&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Ar(e,r),Ar(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(Ae(n.el()),n.getProgress())}),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){xe(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),xe(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),s=r.liveCurrentTime();if((n=a+i*r.liveWindow())>=s&&(n=s),n<=a&&(n=a+.1),n===1/0)return}else(n=i*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Vt(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+Lr)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-Lr)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(xt.isEventKey(t,"Space")||xt.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(xt.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(xt.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(xt(t))){t.preventDefault(),t.stopPropagation();var i=10*(xt.codes[xt(t)]-xt.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else xt.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-Lr*Br)):xt.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+Lr*Br)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.off(document,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(Cr);Dr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Y||D||Dr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Ct.registerComponent("SeekBar",Dr);var Nr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseMove=nt(tt(Mt(i),i.handleMouseMove),et),i.throttledHandleMouseSeek=nt(tt(Mt(i),i.handleMouseSeek),et),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),a=ye(r),s=be(r,e).x;s=xr(s,0,1),i&&i.update(a,s),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_}
67,n.disable=function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Vt(this.player_.play())}},n.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Ct);Nr.prototype.options_={children:["seekBar"]},Ct.registerComponent("ProgressControl",Nr);var Or=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],function(e){return i.handlePictureInPictureChange(e)}),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(e){return i.handlePictureInPictureEnabledChange(e)}),i.disable(),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){document.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(cr);Or.prototype.controlText_="Picture-in-Picture",Ct.registerComponent("PictureInPictureToggle",Or);var Ur=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"fullscreenchange",function(e){return i.handleFullscreenChange(e)}),!1===document[t.fsApi_.fullscreenEnabled]&&i.disable(),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(cr);Ur.prototype.controlText_="Fullscreen",Ct.registerComponent("FullscreenToggle",Ur);var Fr=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},zr=function(e){function t(){return e.apply(this,arguments)||this}return Pt(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Ct);Ct.registerComponent("VolumeLevel",zr);var Qr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(Mt(i),i.update),et),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=Ae(this.el_),a=Ae(this.player_.el()),s=e.width*t;if(!a||!r)return;var o=e.left-a.left+s,l=e.width-s+(a.right-e.right),u=r.width/2;
67o<u?u+=u-o:l<u&&(u=l),u<0?u=0:u>r.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(i+"%")},n.write=function(e){ae(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,n,i.toFixed(0)),r&&r()})},t}(Ct);Ct.registerComponent("VolumeLevelTooltip",Qr);var Vr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(Mt(i),i.update),et),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"})},t}(Ct);Vr.prototype.options_={children:["volumeLevelTooltip"]},Ct.registerComponent("MouseVolumeLevelDisplay",Vr);var Hr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on("slideractive",function(e){return i.updateLastVolume_(e)}),i.on(t,"volumechange",function(e){return i.updateARIAAttributes(e)}),t.ready(function(){return i.updateARIAAttributes()}),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){xe(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=Ae(n),r=this.vertical(),a=be(n,e);a=r?a.y:a.x,a=xr(a,0,1),t.update(i,a,r)}xe(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(Cr);Hr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Y||D||Hr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Hr.prototype.playerEvent="volumechange",Ct.registerComponent("VolumeBar",Hr);var Gr=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||C(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,Fr(Mt(i),t),i.throttledHandleMouseMove=nt(tt(Mt(i),i.handleMouseMove),et),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",function(e){return i.handleMouseDown(e)}),i.on("touchstart",function(e){return i.handleMouseDown(e)}),i.on("mousemove",function(e){return i.handleMouseMove(e)}),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Ct);Gr.prototype.options_={children:["volumeBar"]}
67,Ct.registerComponent("VolumeControl",Gr);var jr=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},qr=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,jr(Mt(i),t),i.on(t,["loadstart","volumechange"],function(e){return i.update(e)}),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Y&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)ue(this.el_,"vjs-vol-"+n);le(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(cr);qr.prototype.controlText_="Mute",Ct.registerComponent("MuteToggle",qr);var Wr=function(e){function t(t,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||C(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],function(e){return i.volumePanelState_(e)}),i.on(i.muteToggle,"keyup",function(e){return i.handleKeyPress(e)}),i.on(i.volumeControl,"keyup",function(e){return i.handleVolumeControlKeyUp(e)}),i.on("keydown",function(e){return i.handleKeyPress(e)}),i.on("mouseover",function(e){return i.handleMouseOver(e)}),i.on("mouseout",function(e){return i.handleMouseOut(e)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}Pt(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){xt.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),We(document,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ye(document,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){xt.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Ct);Wr.prototype.options_={children:["muteToggle","volumeControl"]},Ct.registerComponent("VolumePanel",Wr);var Yr=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",function(e){return i.handleKeyDown(e)}),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}Pt(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Ct&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Ct&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=re(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),We(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||document.activeElement;if(!this.children().some(function(e){return e.el()===t})){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter(function(t){return t.el()===e.target})[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){xt.isEventKey(e,"Left")||xt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(xt.isEventKey(e,"Right")||xt.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Ct);Ct.registerComponent("Menu",Yr);var Xr=function(e){function t(t,n){var i;void 0===n&&(n={}),(i=e.call(this,t,n)||this).menuButton_=new cr(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=cr.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var a=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",a),i.on(i.menuButton_,"click",a),i.on(i.menuButton_,"keydown",function(e){return i.handleKeyDown(e)}),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),We(document,"keyup",i.handleMenuKeyUp_)}
vendor: 4,744 bytes, line 67
67),i.on("mouseleave",function(e){return i.handleMouseLeave(e)}),i.on("keydown",function(e){return i.handleSubmenuKeyDown(e)}),i}Pt(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Yr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=re("li",{className:"vjs-menu-title",textContent:yt(this.options_.title),tabIndex:-1}),n=new Ct(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+cr.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Ye(document,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){xt.isEventKey(e,"Esc")||xt.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),xt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(xt.isEventKey(e,"Up")||xt.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(xt.isEventKey(e,"Esc")||xt.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(xt.isEventKey(e,"Esc")||xt.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),xt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Y&&ne())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Ct);Ct.registerComponent("MenuButton",Xr);var Kr=function(e){function t(t,n){var i,r=n.tracks;if((i=e.call(this,t,n)||this).items.length<=1&&i.hide(),!r)return Mt(i);var a=tt(Mt(i),i.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),r.addEventListener("labelchange",a),i.player_.on("ready",a),i.player_.on("dispose",function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a),r.removeEventListener("labelchange",a)}),i}return Pt(t,e),t}(Xr);Ct.registerComponent("TrackButton",Kr);var $r=["Tab","Esc","Up","Down","Right","Left"],Jr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}Pt(t,e);var n=t.prototype;return n.createEl=function(t,n,i){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",T({className:"vjs-menu-item",tabIndex:-1},n),i);return r.replaceChild(re("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},n.handleKeyDown=function(t){$r.some(function(e){return xt.isEventKey(t,e)})||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","fal
67se"),this.controlText(""),this.isSelected_=!1))},t}(tr);Ct.registerComponent("MenuItem",Jr);var Zr=function(e){function t(t,n){var i,r=n.track,a=t.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode,(i=e.call(this,t,n)||this).track=r,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var s,o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(Mt(i),t)},l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply(Mt(i),t)};return t.on(["loadstart","texttrackchange"],o),a.addEventListener("change",o),a.addEventListener("selectedlanguagechange",l),i.on("dispose",function(){t.off(["loadstart","texttrackchange"],o),a.removeEventListener("change",o),a.removeEventListener("selectedlanguagechange",l)}),void 0===a.onchange&&i.on(["tap","click"],function(){if("object"!=typeof window.Event)try{s=new window.Event("change")}catch(e){}s||(s=document.createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(s)}),i.handleTracksChange(),i}Pt(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var a=i[r];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Jr);Ct.registerComponent("TextTrackMenuItem",Zr);var ea=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}Pt(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Zr);Ct.registerComponent("OffTextTrackMenuItem",ea);var ta=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return Pt(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Zr),this.label_&&(n=this.label_+" off"),e.push(new ea(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var a=i[r];if(this.kinds_.indexOf(a.kind)>-1){var s=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},t}(Kr);Ct.registerComponent("TextTrackButton",ta);var na=function(e){function t(t,n){var i,r=n.track,a=n.cue,s=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=s&&s<a.endTime,(i=e.call(this,t,n)||this).track=r,i.cue=a,r.addEventListener("cuechange",tt(Mt(i),i.update)),i}Pt(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Jr);Ct.registerComponent("ChaptersTrackMenuItem",na);var ia=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChapter
vendor: 5,091 bytes, line 67
67sTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(yt(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],a=new na(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(ta);ia.prototype.kind_="chapters",ia.prototype.controlText_="Chapters",Ct.registerComponent("ChaptersButton",ia);var ra=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=t.textTracks(),s=tt(Mt(r),r.handleTracksChange);return a.addEventListener("change",s),r.on("dispose",function(){a.removeEventListener("change",s)}),r}Pt(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ta);ra.prototype.kind_="descriptions",ra.prototype.controlText_="Descriptions",Ct.registerComponent("DescriptionsButton",ra);var aa=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ta);aa.prototype.kind_="subtitles",aa.prototype.controlText_="Subtitles",Ct.registerComponent("SubtitlesButton",aa);var sa=function(e){function t(t,n){var i;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return Pt(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Zr);Ct.registerComponent("CaptionSettingsMenuItem",sa);var oa=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new sa(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(ta);oa.prototype.kind_="captions",oa.prototype.controlText_="Captions",Ct.registerComponent("CaptionsButton",oa);var la=function(e){function t(){return e.apply(this,arguments)||this}return Pt(t,e),t.prototype.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(re("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(re("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}(Zr);Ct.registerComponent("SubsCapsMenuItem",la);var ua=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(yt(i.label_)),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new sa(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,la)},t}(ta);ua.prototype.kinds_=["captions","subtitles"],ua.prototype.controlText_="Subtitles",Ct.registerComponent("SubsCapsButton",ua);var ca=function(e){function t(t,n){var i,r=n.track,a=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=e.call(this,t,n)||this).track=r,
67i.addClass("vjs-"+r.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(Mt(i),t)};return a.addEventListener("change",s),i.on("dispose",function(){a.removeEventListener("change",s)}),i}Pt(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(re("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(re("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Jr);Ct.registerComponent("AudioTrackMenuItem",ca);var da=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new ca(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Kr);da.prototype.controlText_="Audio Track",Ct.registerComponent("AudioTrackButton",da);var ha=function(e){function t(t,n){var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=e.call(this,t,n)||this).label=r,i.rate=a,i.on(t,"ratechange",function(e){return i.update(e)}),i}Pt(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Jr);ha.prototype.contentElType="button",Ct.registerComponent("PlaybackRateMenuItem",ha);var pa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",function(e){return i.updateVisibility(e)}),i.on(t,"ratechange",function(e){return i.updateLabel(e)}),i.on(t,"playbackrateschange",function(e){return i.handlePlaybackRateschange(e)}),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=re("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new ha(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),i=(n.indexOf(t)+1)%n.length;this.player().playbackRate(n[i])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(Xr);pa.prototype.controlText_="Playback Rate",Ct.registerComponent("PlaybackRateMenuButton",pa);var fa=function(e){function t(){return e.apply(this,arguments)||this}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(Ct);Ct.registerComponent("Spacer",fa);var ma=function(e){function t(){return e.apply(this,arguments)||this}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(fa);Ct.registerComponent("CustomControlSpacer",ma);var ga=function(e){function t(){return e.apply(this,arguments)||this}return Pt(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Ct);ga.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in document&&ga.prototype.options_.children.splice(ga.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Ct.registerComponent("ControlBar",ga);var va=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"error",function(e){return i.open(e)}),i}Pt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(qt);va.prototype.options_=b({}
vendor: 4,132 bytes, line 67
67,qt.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Ct.registerComponent("ErrorDisplay",va);var Aa="vjs-text-track-settings",ya=["#000","Black"],ba=["#00F","Blue"],_a=["#0FF","Cyan"],wa=["#0F0","Green"],Ea=["#F0F","Magenta"],Sa=["#F00","Red"],Ta=["#FFF","White"],xa=["#FF0","Yellow"],Ca=["1","Opaque"],Ia=["0.5","Semi-Transparent"],Ma=["0","Transparent"],ka={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ya,Ta,Sa,wa,ba,xa,Ea,_a]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ca,Ia,Ma]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ta,ya,Sa,wa,ba,xa,Ea,_a]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Ca,Ia]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Ma,Ia,Ca]}};function Pa(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function Ra(e,t){return Pa(e.options[e.options.selectedIndex].value,t)}function La(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(Pa(e.options[i].value,n)===t){e.selectedIndex=i;break}}ka.windowColor.options=ka.backgroundColor.options;var Ba=function(e){function t(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=i.updateDisplay.bind(Mt(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=re("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),E(ka,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}Pt(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=ka[e],a=r.id.replace("%s",this.id_),s=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map(function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+t+'">',i.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">
67',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return re("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return re("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return re("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e=this;return S(ka,function(t,n,i){var r=Ra(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t},{})},n.setValues=function(e){var t=this;E(ka,function(n,i){La(t.$(n.selector),e[i],n.parser)})},n.setDefaults=function(){var e=this;E(ka,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},n.restoreSettings=function(){var e;try{e=JSON.parse(window.localStorage.getItem(Aa))}catch(e){g.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?window.localStorage.setItem(Aa,JSON.stringify(e)):window.localStorage.removeItem(Aa)}catch(e){g.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(qt);Ct.registerComponent("TextTrackSettings",Ba);var Da=function(e){function t(t,n){var i,r=n.ResizeObserver||window.ResizeObserver;null===n.ResizeObserver&&(r=!1);var a=_t({createEl:!r,reportTouchActivity:!1},n);return(i=e.call(this,t,a)||this).ResizeObserver=n.ResizeObserver||window.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=it(function(){i.resizeHandler()},100,!1,Mt(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(t.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){Ye(this,"resize",e),Ye(this,"unload",t),t=null};We(i.el_.contentWindow,"unload",t),We(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}Pt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(Ct);Ct.registerComponent("ResizeManager",Da);var Na={trackingThreshold:20,liveTolerance:15},Oa=function(e){function t(t,n){var i,r=_t(Na,n,{createEl:!1});return(i=e.call(this,t,r)||this).handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",function(e){return i.handleDurationchange(e)}
67),i.on(i.player_,"canplay",function(){return i.toggleTracking()}),V&&"hidden"in document&&"visibilityState"in document&&i.on(document,"visibilitychange",i.handleVisibilityChange_),i}Pt(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(document.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(window.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,et),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(document,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Ct);Ct.registerComponent("LiveTracker",Oa);var Ua,Fa=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var s=n[a].src;s&&-1===i.indexOf(s)&&i.push(s)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},za=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=document.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=document.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",window.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Qa=function(e,t){for(var n={},i=0;i<e.length&&!((n=Object.getOwnPropertyDescriptor(e[i],t))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},Va=function(e){return Qa([e.el(),window.HTMLMediaElement.prototype,window.Element.prototype,za],"innerHTML")}
67,Ha=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=Va(e),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=n.apply(t,r);return Fa(e),s}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))}),Object.defineProperty(t,"innerHTML",_t(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},Ga=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?un(window.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return window.Element.prototype.setAttribute.call(this,"src",e),e}}),ja=function(e){return Qa([e.el(),window.HTMLMediaElement.prototype,Ga],"src")},qa=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=ja(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",_t(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var a=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=r.call(t);return Fa(e)||(e.triggerSourceset(""),Ha(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Fa(e)||Ha(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Wa=function(e,t,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return i&&(a.set=r),Object.defineProperty(e,t,a)},Ya=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=t.source,a=!1;if(r&&(i.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var s=i.el_.childNodes,o=s.length,l=[];o--;){var u=s[o];"track"===u.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(u),i.remoteTextTracks().addTrack(u.track),i.textTracks().addTrack(u.track),a||i.el_.hasAttribute("crossorigin")||!dn(u.src)||(a=!0)):l.push(u))}for(var c=0;c<l.length;c++)i.el_.removeChild(l[c])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&g.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(j||W||O)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}Pt(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
67poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){qa(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var i=function n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)})},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Fn[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var a={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===e&&t[zn.remoteText.getterName]().trigger(i)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},s=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,a=0;a<i.length;a++)if(i[a]===r[t]){n=!0;break}n||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach(function(e){var n=a[e];i.addEventListener(e,n),t.on("dispose",function(t){return i.removeEventListener(e,n)})}),this.on("loadstart",s),this.on("dispose",function(e){return t.off("loadstart",s)})}},n.proxyNativeTracks_=function(){var e=this;Fn.names.forEach(function(t){e.proxyNativeTracksForType_(t)})},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=document.createElement("video");var i=_t({},this.options_.tag&&he(this.options_.tag));j&&!0===this.options_.nativeControlsForTouch||delete i.controls,de(e,T(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&fe(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],a=0;a<r.length;a++){var s=r[a],o=this.options_[s];void 0!==o&&(o?fe(e,s,s):me(e,s),e[s]=o)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&X?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){g(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&D&&z&&0===this.el_.currentTime){var t=function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=window.navigator&&window.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Vt(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=document.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),window.performance&&"function"==typeof window.performance.now?e.creationTime=window.performance.now():window.performance&&window.performance.timing&&"number"==typeof window.performance.timing.navigationStart&&(e.creationTime=window.Date.now()-window.performance.timing.navigationStart),e},t}(Pi);Wa(Ya,"TEST_VID",function(){if(ee()){var e=document.createElement("video"),t=document.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),Ya.isSupported=function(){try{Ya.TEST_VID.volume=.5}catch(e){return!1}
vendor: 14,500 bytes, line 67
67return!(!Ya.TEST_VID||!Ya.TEST_VID.canPlayType)},Ya.canPlayType=function(e){return Ya.TEST_VID.canPlayType(e)},Ya.canPlaySource=function(e,t){return Ya.canPlayType(e.type)},Ya.canControlVolume=function(){try{var e=Ya.TEST_VID.volume;Ya.TEST_VID.volume=e/2+.1;var t=e!==Ya.TEST_VID.volume;return t&&Y?(window.setTimeout(function(){Ya&&Ya.prototype&&(Ya.prototype.featuresVolumeControl=e!==Ya.TEST_VID.volume)}),!1):t}catch(e){return!1}},Ya.canMuteVolume=function(){try{var e=Ya.TEST_VID.muted;return Ya.TEST_VID.muted=!e,Ya.TEST_VID.muted?fe(Ya.TEST_VID,"muted","muted"):me(Ya.TEST_VID,"muted","muted"),e!==Ya.TEST_VID.muted}catch(e){return!1}},Ya.canControlPlaybackRate=function(){if(D&&z&&Q<58)return!1;try{var e=Ya.TEST_VID.playbackRate;return Ya.TEST_VID.playbackRate=e/2+.1,e!==Ya.TEST_VID.playbackRate}catch(e){return!1}},Ya.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(document.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(document.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(document.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(document.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Ya.supportsNativeTextTracks=function(){return X||Y&&z},Ya.supportsNativeVideoTracks=function(){return!(!Ya.TEST_VID||!Ya.TEST_VID.videoTracks)},Ya.supportsNativeAudioTracks=function(){return!(!Ya.TEST_VID||!Ya.TEST_VID.audioTracks)},Ya.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],n=e[1];Wa(Ya.prototype,t,function(){return Ya[n]()},!0)}),Ya.prototype.featuresVolumeControl=Ya.canControlVolume(),Ya.prototype.movingMediaElementInDOM=!Y,Ya.prototype.featuresFullscreenResize=!0,Ya.prototype.featuresProgressEvents=!0,Ya.prototype.featuresTimeupdateEvents=!0,Ya.patchCanPlayType=function(){N>=4&&!U&&!z&&(Ua=Ya.TEST_VID&&Ya.TEST_VID.constructor.prototype.canPlayType,Ya.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Ua.call(this,e)})},Ya.unpatchCanPlayType=function(){var e=Ya.TEST_VID.constructor.prototype.canPlayType;return Ua&&(Ya.TEST_VID.constructor.prototype.canPlayType=Ua),e},Ya.patchCanPlayType(),Ya.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Ya.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Ya.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Ya.prototype["set"+yt(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Ya.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){Ya.prototype["set"+yt(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Ya.prototype[e]=function(){return this.el_[e]()}}),Pi.withSourceHandlers(Ya),Ya.nativeSourceHandler={},Ya.nativeSourceHandler.canPlayType=function(e){try{return Ya.TEST_VID.canPlayType(e)}catch(e){return""}},Ya.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Ya.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=cn(e.src);return Ya.nativeSourceHandler.canPlayType("video/"+n)}return""},Ya.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Ya.nativeSourceHandler.dispose=function(){},Ya.registerSourceHandler(Ya.nativeSourceHandler),Pi.registerTech("Html5",Ya);var Xa=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ka={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},$a=["tiny","xsmall","small","medium","large","xlarge","huge"],Ja={};$a.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Ja[e]="vjs-layout-"+t});var Za={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},es=function(e){function n(i,r,a){var s;if(i.id=i.id||r.id||"vjs_video_"+Fe(),(r=T(n.getTagSettings(i),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof i.closest){var o=i.closest("[lang]");o&&o.getAttribute&&(r.language=o.getAttribute("lang"))}else for(var u=i;u&&1===u.nodeType;){if(he(u).hasOwnProperty("lang")){r.language=u.getAttribute("lang");break}u=u.parentNode}if((s=e.call(this,null,r,a)||this).boundDocumentFullscreenChange_=function(e){return s.documentFullscreenChange_(e)},s.boundFullWindowOnEscKey_=function(e){return s.fullWindowOnEscKey(e)},s.boundUpdateStyleEl_=function(e){return s.updateStyleEl_(e)},s.boundApplyInitTime_=function(e){return s.applyInitTime_(e)},s.boundUpdateCurrentBreakpoint_=function(e){return s.updateCurrentBreakpoint_(e)},s.boundHandleTechClick_=function(e){return s.handleTechClick_(e)},s.boundHandleTechDoubleClick_=function(e){return s.handleTechDoubleClick_(e)},s.boundHandleTechTouchStart_=function(e){return s.handleTechTouchStart_(e)},s.boundHandleTechTouchMove_=function(e){return s.handleTechTouchMove_(e)},s.boundHandleTechTouchEnd_=function(e){return s.handleTechTouchEnd_(e)},s.boundHandleTechTap_=function(e){return s.handleTechTap_(e)},s.isFullscreen_=!1,s.log=v(s.id_),s.fsApi_=l,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=i,s.tagAttributes=i&&he(i),s.language(s.options_.language),r.languages){var c={};Object.getOwnPropertyNames(r.languages).forEach(function(e){c[e.toLowerCase()]=r.languages[e]}),s.languages_=c}else s.languages_=n.prototype.options_.languages;s.resetCache_(),s.poster_=r.poster||"",s.controls_=!!r.controls,i.controls=!1,i.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],i.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach(function(e){if("function"!=typeof s[e])throw new Error('plugin "'+e+'" does not exist')}),s.scrubbing_=!1,s.el_=s.createEl(),mt(Mt(s),{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(We(document,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var d=_t(s.options_);r.plugins&&Object.keys(r.plugins).forEach(function(e){s[e](r.plugins[e])}),r.debug&&s.debug(!0),s.options_.playerOptions=d,s.middleware_=[],s.playbackRates(r.playbackRates),s.initChildren(),s.isAudio("audio"===i.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),j&&s.addClass("vjs-touch-enabled"),Y||s.addClass("vjs-workinghover"),n.players[s.id_]=Mt(s);var h=t.split(".")[0];return s.addClass("vjs-v"+h),s.userActive(!0),s.reportUserActivity(),s.one("play",function(e){return s.listenForUserActivity_(e)}),s.on("stageclick",function(e){return s.handleStageClick_(e)}),s.on("keydown",function(e){return s.handleKeyDown(e)}),s.on("languagechange",function(e){return s.handleLanguagechange(e)}),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s}Pt(n,e);var i=n.prototype;return i.dispose=function(){var t=this;this.trigger("dispose"),this.off("dispose"),Ye(document,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ye(document,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),n.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),qi(this),Qn.names.forEach(function(e){var n=Qn[e],i=t[n.getterName]();i&&i.off&&i.off()}),e.prototype.dispose.call(this)},i.createEl=function(){var t,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=n.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var a=he(n);if(r){for(t=this.el_=n,n=this.tag=document.createElement("video");t.children.length;)n.appendChild(t.firstChild);oe(t,"video-js")||le(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{n[e]=t[e]}catch(e){}})}if(n.setAttribute("tabindex","-1"),a.tabindex="-1",(V||z&&G)&&(n.setAttribute("role","application"),a.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(e){r&&"class"===e||t.setAttribute(e,a[e]),r&&n.setAttribute(e,a[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==window.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Ne("vjs-styles-dimensions");var s=Ie(".vjs-styles-defaults"),o=Ie("head");o.insertBefore(this.styleEl_,s?s.nextSibling:o.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=n.getElementsByTagName("a"),u=0;u<l.length;u++){var c=l.item(u);le(c,"vjs-hidden"),c.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),se(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t},i.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):g.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},i.width=function(e){return this.dimension("width",e)},i.height=function(e){return this.dimension("height",e)},i.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?g.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},i.fluid=function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,st(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),ot(this,function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()},i.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},i.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},i.updateStyleEl_=function(){if(!0!==window.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Oe(this.styleEl_,"\n      ."+n+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*r+"%;\n      }\n    ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,o=this.tech_&&this.tech_.el();o&&(a>=0&&(o.width=a),s>=0&&(o.height=s))}},i.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=yt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Pi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};
67Qn.names.forEach(function(e){var t=Qn[e];s[t.getterName]=n[t.privateName]}),T(s,this.options_[i]),T(s,this.options_[r]),T(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=Pi.getTech(e);if(!o)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(tt(this,this.handleTechReady_),!0),Gt.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Xa.forEach(function(e){n.on(n.tech_,e,function(t){return n["handleTech"+yt(e)+"_"](t)})}),Object.keys(Ka).forEach(function(e){n.on(n.tech_,e,function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Ka[e]+"_"].bind(n),event:t}):n["handleTech"+Ka[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return n.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return n.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return n.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return n.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return n.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return n.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return n.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return n.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return n.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return n.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return n.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return n.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return n.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return n.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return n.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return n.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return n.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||se(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},i.unloadTech_=function(){var e=this;Qn.names.forEach(function(t){var n=Qn[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=Gt.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},i.tech=function(e){return void 0===e&&g.warn("Using the tech directly can be dangerous. I hope you know 
67what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},i.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},i.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},i.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},i.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},i.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(Qt(i))return i.catch(function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():Qt(n=this.play())&&(n=n.catch(i)),Qt(n))return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){t.trigger({type:"autoplay-failure",autoplay:e})})}},i.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=$i(this,t)),this.cache_.source=_t({},e,{src:t,type:n});for(var i=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],a=this.$$("source"),s=[],o=0;o<a.length;o++){var l=he(a[o]);r.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},i.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},i.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},i.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},i.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},i.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime(),n=function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))};this.on("timeupdate",n)},i.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},i.handleTechFirstPlay_=function(){this.options_.starttime&&(g.warn("Passing the `starttime` option to the player will be deprecated 
67in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},i.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Vt(this.play()):this.pause()))},i.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},i.handleTechTap_=function(){this.userActive(!this.userActive())},i.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},i.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},i.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},i.handleStageClick_=function(){this.reportUserActivity()},i.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=document[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},i.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){n.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))},i.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},i.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},i.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},i.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},i.handleTechError_=function(){var e=this.tech_.error();this.error(e)},i.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},i.getCache=function(){return this.cache_},i.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},i.techCall_=function(e,t){this.ready(function(){if(e in Vi)return Fi(this.middleware_,this.tech_,e,t);if(e in Hi)return zi(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw g(e),e}},!0)},i.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Qi)return Ui(this.middleware_,this.tech_,e);if(e in Hi)return zi(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw g("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw g("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw g(t),t}}},i.play=function(){var e=this,t=this.options_.Promise||window.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},i.play_=function(e){var t=this;void 0===e&&(e=Vt),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!X&&!Y||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},i.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},i.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},i.pause=function(){this.techCall_("pause")},i.paused=function(){return!1!==this.techGet_("paused")},i.played=function(){return this.techGet_("played")||Dt(0,0)},i.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},i.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},i.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},i.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},i.remainingTime=function(){return this.duration()-this.currentTime()},i.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},i.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Dt(0,0)),e},i.bufferedPercent=function(){return Nt(this.buffered(),this.duration())},i.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},i.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},i.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},i.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},i.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},i.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},i.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},i.requestFullscreen=function(e){var t=this.options_.Promise||window.Promise;if(t){var n=this;return new t(function(t,i){function r(){n.off("fullscreenerror",s),n.off("fullscreenchange",a)}function a(){r(),t()}function s(e,t){r(),i(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",s);var o=n.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(t,i))})}return this.requestFullscreenHelper_()},i.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then(function(){return n.isFullscreen(!0)},function(){return n.isFullscreen(!1)}),i}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},i.exitFullscreen=function(){var e=this.options_.Promise||window.Promise;if(e){var t=this;return new e(function(e,n){function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){i(),e()}function a(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var s=t.exitFullscreenHelper_();s&&(s.then(i,i),s.then(e,n))})}return this.exitFullscreenHelper_()},i.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=document[this.fsApi_.exitFullscreen]();return t&&Vt(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},i.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,We(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow="hidden",le(document.body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(e){xt.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},i.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ye(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow=this.docOrigOverflow,ue(document.body,"vjs-full-window"),this.trigger("exitFullWindow")},i.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},i.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},i.requestPictureInPicture=function(){if("pictureInPictureEnabled"in document&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},i.exitPictureInPicture=function(){if("pictureInPictureEnabled"in document)return document.exitPictureInPicture()},i.handleKeyDown=function(e){var t,n,i=this.options_.userActions;i&&i.hotkeys&&(t=this.el_.ownerDocument.activeElement,n=t.tagName.toLowerCase(),t.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(n))||("function"==typeof i.hotkeys?i.hotkeys.call(this,e):this.handleHotkeys(e)))},i.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return xt.isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return xt.isEventKey(e,"m")}:r,s=t.playPauseKey,o=void 0===s?function(e){return xt.isEventKey(e,"k")||xt.isEventKey(e,"Space")}:s;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var l=Ct.getComponent("FullscreenToggle");!1!==document[this.fsApi_.fullscreenEnabled]&&l.prototype.handleClick.call(this,e)}else a.call(this,e)?(e.preventDefault(),e.stopPropagation(),Ct.getComponent("MuteToggle").prototype.handleClick.call(this,e)):o.call(this,e)&&(e.preventDefault(),e.stopPropagation(),Ct.getComponent("PlayToggle").prototype.handleClick.call(this,e))},i.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=Pi.getTech(r);if(a||(a=Ct.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else g.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},i.selectSource=function(e){var t=this,n=this.options_.techOrder.map(function(e){return[e,Pi.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(g.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(e,t,n){var i;return e.some(function(e){return t.some(function(t){if(i=n(e,t))return!0})}),i},r=function(e){return function(t,n){return e(n,t)}},a=function(e,n){var i=e[0];if(e[1].canPlaySource(n,t.options_[i.toLowerCase()]))return{source:n,tech:i}};return(this.options_.sourceOrder?i(e,n,r(a)):i(n,e,a))||!1},i.handleSrc_=function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=Ji(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Ni(this,i[0],function(e,r){if(n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e),n.src_(e))return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void n.triggerReady());Oi(r,n.tech_)}),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},a=function(){n.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",a)}}}else this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},i.src=function(e){return this.handleSrc_(e,!1)},i.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(bt(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready(function(){t.changingSrc_=!1}),!1))},i.load=function(){this.techCall_("load")},i.reset=function(){var e=this,t=this.options_.Promise||window.Promise;this.paused()||!t?this.doReset_():Vt(this.play().then(function(){return e.doReset_()}))},i.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),st(this)&&this.trigger("playerreset")},i.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},i.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},i.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},i.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},i.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},i.currentSource=function(){return this.cache_.source||{}},i.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},i.currentType=function(){return this.currentSource()&&this.currentSource().type||""},i.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},i.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},i.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},i.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},i.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},i.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},i.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
67sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},i.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},i.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(r("beforeerror").forEach(function(n){var i=n(t,e);x(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",function(){this.off(["click","touchstart"],n)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Ot(e),this.addClass("vjs-error"),g.error("(CODE:"+this.error_.code+" "+Ot.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),r("error").forEach(function(e){return e(t,t.error_)})},i.reportUserActivity=function(e){this.userActivity_=!0},i.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},i.listenForUserActivity_=function(){var e,t,n,i=tt(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())},a=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},s=function(t){i(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",s),this.on("mouseleave",s);var o,l=this.getChild("controlBar");!l||Y||D||(l.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",i),this.on("keyup",i),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},i.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},i.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},i.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},i.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},i.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},i.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},i.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},i.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},i.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},i.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),st(this)&&this.trigger("languagechange"))},i.languages=function(){return _t(n.prototype.options_.languages,this.languages_)},i.toJSON=function(){var e=_t(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];(i=_t(i)).player=void 0,e.tracks[n]=i}return e},i.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var i=new qt(this,t);return this.addChild(i),i.on("dispose",function(){n.removeChild(i)}),i.open(),i},i.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<$a.length;n++){var i=$a[n];
67if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(Ja[e]),this.addClass(Ja[i]),this.breakpoint_=i;break}}},i.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},i.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=T({},Za,e),this.updateCurrentBreakpoint_()),T(this.breakpoints_)},i.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},i.currentBreakpoint=function(){return this.breakpoint_},i.currentBreakpointClass=function(){return Ja[this.breakpoint_]||""},i.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=_t(e);var i=this.cache_.media,r=i.artwork,a=i.poster,s=i.src,o=i.textTracks;!r&&a&&(this.cache_.media.artwork=[{src:a,type:Ki(a)}]),s&&this.src(s),a&&this.poster(a),Array.isArray(o)&&o.forEach(function(e){return n.addRemoteTextTrack(e,!1)}),this.ready(t)}},i.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Ki(t.poster)}]),t}return _t(this.cache_.media)},n.getTagSettings=function(e){var t={sources:[],tracks:[]},n=he(e),i=n["data-setup"];if(oe(e,"vjs-fill")&&(n.fill=!0),oe(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=Ft(i||"{}"),a=r[0],s=r[1];a&&g.error(a),T(n,s)}if(T(t,n),e.hasChildNodes())for(var o=e.childNodes,l=0,u=o.length;l<u;l++){var c=o[l],d=c.nodeName.toLowerCase();"source"===d?t.sources.push(he(c)):"track"===d&&t.tracks.push(he(c))}return t},i.flexNotSupported_=function(){var e=document.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},i.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},i.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},n}(Ct);Qn.names.forEach(function(e){var t=Qn[e];es.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),es.prototype.crossorigin=es.prototype.crossOrigin,es.players={};var ts=window.navigator;es.prototype.options_={techOrder:Pi.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:ts&&(ts.languages&&ts.languages[0]||ts.userLanguage||ts.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){es.prototype[e]=function(){return this.techGet_(e)}}),Xa.forEach(function(e){es.prototype["handleTech"+yt(e)+"_"]=function(){return this.trigger(e)}}),Ct.registerComponent("Player",es);var ns=y(function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,i)}e.exports=t});function is(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}
67var rs=is,as=y(function(e){function t(n,i,r){return rs()?e.exports=t=Reflect.construct:e.exports=t=function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&ns(r,n.prototype),r},t.apply(null,arguments)}e.exports=t}),ss="plugin",os="activePlugins_",ls={},us=function(e){return ls.hasOwnProperty(e)},cs=function(e){return us(e)?ls[e]:void 0},ds=function(e,t){e[os]=e[os]||{},e[os][t]=!0},hs=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},ps=function(e,t){var n=function(){hs(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return ds(this,e),hs(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n},fs=function(e,t){return t.prototype.name=e,function(){hs(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=as(t,[this].concat(i));return this[e]=function(){return a},hs(this,a.getEventHash()),a}},ms=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),mt(this),delete this.trigger,vt(this,this.constructor.defaultState),ds(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),Xe(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[os][e]=!1,this.player=this.state=null,t[e]=fs(e,ls[e])},e.isBasic=function(t){var n="string"==typeof t?cs(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(us(t))g.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(es.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return ls[t]=n,t!==ss&&(e.isBasic(n)?es.prototype[t]=ps(t,n):es.prototype[t]=fs(t,n)),n},e.deregisterPlugin=function(e){if(e===ss)throw new Error("Cannot de-register base plugin.");us(e)&&(delete ls[e],delete es.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(ls)),e.forEach(function(e){var n=cs(e);n&&((t=t||{})[e]=n)}),t},e.getPluginVersion=function(e){var t=cs(e);return t&&t.VERSION||""},e}();function gs(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ns(e,t)}ms.getPlugin=cs,ms.BASE_PLUGIN_NAME=ss,ms.registerPlugin(ss,ms),es.prototype.usingPlugin=function(e){return!!this[os]&&!0===this[os][e]},es.prototype.hasPlugin=function(e){return!!us(e)};var vs=gs,As=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},i={};for(var r in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"==typeof t&&(n=t),vs(n,e),e&&(n.super_=e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},ys=function(e){return 0===e.indexOf("#")?e.slice(1):e};function bs(e,t,n){var i=bs.getPlayer(e);if(i)return t&&g.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var a="string"==typeof e?Ie("#"+ys(e)):e;if(!te(a))throw new TypeError("The element or ID supplied is not valid. (videojs)");a.ownerDocument.defaultView&&a.ownerDocument.body.contains(a)||g.warn("The element supplied is not included in the DOM"),t=t||{},r("beforesetup").forEach(function(e){var n=e(a,_t(t));x(n)&&!Array.isArray(n)?t=_t(t,n):g.error("please return an object in beforesetup hooks")});var s=Ct.getComponent("Player");return i=new s(a,t,n),r("setup").forEach(function(e){return e(i)}),i}if(bs.hooks_=i,bs.hooks=r,bs.hook=a,bs.hookOnce=o,bs.removeHook=s,!0!==window.VIDEOJS_NO_DYNAMIC_STYLE&&ee()){var _s=Ie(".vjs-styles-defaults");if(!_s){_s=Ne("vjs-styles-defaults");var ws=Ie("head");ws&&ws.insertBefore(_s,ws.firstChild),Oe(_s,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}Le(1,bs),bs.VERSION=t,bs.options=es.prototype.options_,bs.getPlayers=function(){return es.players},bs.getPlayer=function(e){var t,n=es.players;if("string"==typeof e){var i=ys(e),r=n[i];if(r)return r;t=Ie("#"+i)}else t=e;if(te(t)){var a=t,s=a.player,o=a.playerId;if(s||n[o])return s||n[o]}},bs.getAllPlayers=function(){return Object.keys(es.players).map(function(e){return es.players[e]}
vendor: 1,532 bytes, line 67
67).filter(Boolean)},bs.players=es.players,bs.getComponent=Ct.getComponent,bs.registerComponent=function(e,t){Pi.isTech(t)&&g.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Ct.registerComponent.call(Ct,e,t)},bs.getTech=Pi.getTech,bs.registerTech=Pi.registerTech,bs.use=Di,Object.defineProperty(bs,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(bs.middleware,"TERMINATOR",{value:Bi,writeable:!1,enumerable:!0}),bs.browser=K,bs.TOUCH_ENABLED=j,bs.extend=As,bs.mergeOptions=_t,bs.bind=tt,bs.registerPlugin=ms.registerPlugin,bs.deregisterPlugin=ms.deregisterPlugin,bs.plugin=function(e,t){return g.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),ms.registerPlugin(e,t)},bs.getPlugins=ms.getPlugins,bs.getPlugin=ms.getPlugin,bs.getPluginVersion=ms.getPluginVersion,bs.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),bs.options.languages=_t(bs.options.languages,((n={})[e]=t,n)),bs.options.languages[e]},bs.log=g,bs.createLogger=v,bs.createTimeRange=bs.createTimeRanges=Dt,bs.formatTime=Ar,bs.setFormatTime=gr,bs.resetFormatTime=vr,bs.parseUrl=ln,bs.isCrossOrigin=dn,bs.EventTarget=rt,bs.on=We,bs.one=Ke,bs.off=Ye,bs.trigger=Xe,bs.xhr=bn,bs.TextTrack=Pn,bs.AudioTrack=Rn,bs.VideoTrack=Ln,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){bs[e]=function(){return g.w
67arn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),ke[e].apply(null,arguments)}}),bs.computedStyle=I,bs.dom=ke,bs.url=hn,bs.defineLazyProperty=Wa,bs.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var Es=y(function(e,t){var n,i,r,a,s;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,i=/^([^\/?#]*)([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):t;var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=i.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var c=o.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=s.normalizePath(d)}else u.path=o.path,a.params||(u.params=o.params,a.query||(u.query=o.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(r,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s}),Ss="http://example.com",Ts=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=window.location&&window.location.href||"");var n="function"==typeof window.URL,i=/^\/\//.test(e),r=!window.location&&!/\/\//i.test(e);if(n?e=new window.URL(e,window.location||Ss):/\/\//i.test(e)||(e=Es.buildAbsoluteURL(window.location&&window.location.href||"",e)),n){var a=new URL(t,e);return r?a.href.slice(Ss.length):i?a.href.slice(a.protocol.length):a.href}return Es.buildAbsoluteURL(e,t)},xs=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),Cs=function(e){return window.atob?window.atob(e):Buffer.from(e,"base64").toString("binary")};function Is(e){for(var t=Cs(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}var Ms=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return Pt(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(xs),ks=String.fromCharCode(9),Ps=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},Rs=function(){return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')},Ls=function(e){for(var t,n=e.split(Rs()),i={},r=n.length;r--;)""!==n[r]&&((t=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},Bs=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}Pt(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(function(t,n){var i=n(e);return i===e?t:t.concat([i])}
67,[e]).forEach(function(e){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))i.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void i.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void i.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return n=b(Ps(t[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var a=Ls(t[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=Ps(a.BYTERANGE))}i.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=Ls(t[1]),n.attributes.RESOLUTION){var s=n.attributes.RESOLUTION.split("x"),o={};s[0]&&(o.width=parseInt(s[0],10)),s[1]&&(o.height=parseInt(s[1],10)),n.attributes.RESOLUTION=o}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=Ls(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))i.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=Ls(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=Ls(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"skip"}).attributes=Ls(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(ks)),void i.trigger("data",n);
67if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part"}).attributes=Ls(t[1]),["DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=Ps(n.attributes.BYTERANGE)),void i.trigger("data",n);if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"server-control"}).attributes=Ls(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),void i.trigger("data",n);if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part-inf"}).attributes=Ls(t[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),void i.trigger("data",n);if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"preload-hint"}).attributes=Ls(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}}),void i.trigger("data",n);if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"rendition-report"}).attributes=Ls(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),void i.trigger("data",n);i.trigger("data",{type:"tag",data:e.slice(4)})}}}else i.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0})},n.addTagMapper=function(e){var t=e.expression,n=e.map,i=function(e){return t.test(e)?n(e):e};this.tagMappers.push(i)},t}(xs),Ds=function(e){return e.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},Ns=function(e){var t={};return Object.keys(e).forEach(function(n){t[Ds(n)]=e[n]}),t},Os=function(e){var t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=n&&3*n,l=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=o,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+o+")."})),o&&t[a]<o&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+o+")"}),t[a]=o),i&&!t.hasOwnProperty(s)&&(t[s]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[s]+")."})),i&&t[s]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[s]+") to partTargetDuration * 2 ("+l+")."}),t[s]=l)}},Us=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new Ms,t.parseStream=new Bs,t.lineStream.pipe(t.parseStream);var n,i,r=Mt(t),a=[],s={},o=!1,l=function(){},u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",d=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var h=0,p=0;return t.on("end",function(){s.uri||!s.parts&&!s.preloadHints||(!s.map&&n&&(s.map=n),!s.key&&i&&(s.key=i),s.timeline||"number"!=typeof d||(s.timeline=d),t.manifest.preloadSegment=s)}),t.parseStream.on("data",function(e){var t,f;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(s.byterange=t,t.length=e.length,"offset"in e||(e.offset=h)),"offset"in e&&(s.byterange=t,t.offset=e.offset),h=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if(e.attributes.KEYFORMAT===c)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Is(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,d=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={}
67,e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes?(s.attributes||(s.attributes={}),b(s.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(f={default:/yes/i.test(e.attributes.DEFAULT)}).default?f.autoselect=!0:f.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(f.language=e.attributes.LANGUAGE),e.attributes.URI&&(f.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(f.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(f.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(f.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=f}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){d+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,Os.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data},skip:function(){this.manifest.skip=Ns(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;o=!0;var n=this.manifest.segments.length,i=Ns(e.attributes);s.parts=s.parts||[],s.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=p),p=i.byterange.offset+i.byterange.length);var r=s.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var t=this.manifest.serverControl=Ns(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Os.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=Ns(e.attributes),i=n.type&&"PART"===n.type;s.preloadHints=s.preloadHints||[],s.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?p:0,i&&(p=n.byterange.offset+n.byterange.length)));var r=s.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;a<s.preloadHints.length-1;a++){var o=s.preloadHints[a];o.type&&o.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+a})}},"rendition-report":function(){var t=Ns(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];o&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,i)},"part-inf":function(){this.manifest.partInf=Ns(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Os.c
67all(this,this.manifest)}}[e.tagType]||l).call(r)},uri:function(){s.uri=e.uri,a.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),i&&(s.key=i),s.timeline=d,n&&(s.map=n),p=0,s={}},comment:function(){},custom:function(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)}),t}Pt(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach(function(e){t.hasOwnProperty(e)||i.push(e)}),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(xs),Fs={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},zs=["video","audio","text"],Qs=["Video","Audio","Text"],Vs=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):e},Hs=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach(function(e){var t;e=e.trim(),zs.forEach(function(i){var r=Fs[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var a=e.substring(0,r[1].length),s=e.replace(a,"");n.push({type:a,details:s,mediaType:i})}}),t||n.push({type:e,details:"",mediaType:"unknown"})}),n},Gs=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return Hs(r.playlists[0].attributes.CODECS)}return null},js=function(e){return void 0===e&&(e=""),Fs.audio.test(e.trim().toLowerCase())},qs=function(e){return void 0===e&&(e=""),Fs.text.test(e.trim().toLowerCase())},Ws=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return Vs(e.trim())}),n="video";1===t.length&&js(t[0])?n="audio":1===t.length&&qs(t[0])&&(n="application");var i="mp4";return t.every(function(e){return Fs.mp4.test(e)})?i="mp4":t.every(function(e){return Fs.webm.test(e)})?i="webm":t.every(function(e){return Fs.ogg.test(e)})&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}},Ys=function(e){return void 0===e&&(e=""),window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported(Ws(e))||!1},Xs=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<Qs.length;t++){var n=Qs[t];if(Fs["muxer"+n].test(e))return!0}return!1})},Ks="mp4a.40.2",$s="avc1.4d400d",Js=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Zs=/^application\/dash\+xml/i,eo=function(e){return Js.test(e)?"hls":Zs.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},to=function(e,t,n){t.forEach(function(t){for(var i in e.mediaGroups[t])for(var r in e.mediaGroups[t][i]){var a=e.mediaGroups[t][i][r];n(a,t,i,r)}})};function no(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var io=no({HTML:"text/html",isHTML:function(e){return e===io.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),ro=no({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===ro.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),ao={freeze:no,MIME_TYPE:io,NAMESPACE:ro},so=ao.NAMESPACE;function oo(e){return""!==e}function lo(e){return e?e.split(/[\t\n\f\r ]+/).filter(oo):[]}function uo(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function co(e){if(!e)return[];var t=lo(e);return Object.keys(t.reduce(uo,{}))}function ho(e){return function(t){return e&&-1!==e.indexOf(t)}}function po(e,t){for(var n in e)t[n]=e[n]}function fo(e,t){var n=e.prototype;if(!(n instanceof t)){var i=function(){};i.prototype=t.prototype,po(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var mo={},go=mo.ELEMENT_NODE=1,vo=mo.ATTRIBUTE_NODE=2,Ao=mo.TEXT_NODE=3,yo=mo.CDATA_SECTION_NODE=4,bo=mo.ENTITY_REFERENCE_NODE=5,_o=mo.ENTITY_NODE=6,wo=mo.PROCESSING_INSTRUCTION_NODE=7,Eo=mo.COMMENT_NODE=8,So=mo.DOCUMENT_NODE=9,To=mo.DOCUMENT_TYPE_NODE=10,xo=mo.DOCUMENT_FRAGMENT_NODE=11,Co=mo.NOTATION_NODE=12,Io={},Mo={};Io.INDEX_SIZE_ERR=(Mo[1]="Index size error",1),Io.DOMSTRING_SIZE_ERR=(Mo[2]="DOMString size error",2);var ko=Io.HIERARCHY_REQUEST_ERR=(Mo[3]="Hierarchy request error",3);Io.WRONG_DOCUMENT_ERR=(Mo[4]="Wrong document",4),Io.INVALID_CHARACTER_ERR=(Mo[5]="Invalid character",5),Io.NO_DATA_ALLOWED_ER
vendor: 4,669 bytes, line 67
67R=(Mo[6]="No data allowed",6),Io.NO_MODIFICATION_ALLOWED_ERR=(Mo[7]="No modification allowed",7);var Po=Io.NOT_FOUND_ERR=(Mo[8]="Not found",8);Io.NOT_SUPPORTED_ERR=(Mo[9]="Not supported",9);var Ro=Io.INUSE_ATTRIBUTE_ERR=(Mo[10]="Attribute in use",10);function Lo(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,Mo[e]),this.message=Mo[e],Error.captureStackTrace&&Error.captureStackTrace(this,Lo);return n.code=e,t&&(this.message=this.message+": "+t),n}function Bo(){}function Do(e,t){this._node=e,this._refresh=t,No(this)}function No(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);vl(e,"length",n.length),po(n,e),e._inc=t}}function Oo(){}function Uo(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function Fo(e,t,n,i){if(i?t[Uo(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&Wo(r,e,i),qo(r,e,n))}}function zo(e,t,n){var i=Uo(t,n);if(!(i>=0))throw Lo(Po,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(Wo(a,e,n),n.ownerElement=null)}}function Qo(){}function Vo(){}function Ho(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function Go(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(Go(e,t))return!0}while(e=e.nextSibling)}function jo(){}function qo(e,t,n){e&&e._inc++,n.namespaceURI===so.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function Wo(e,t,n,i){e&&e._inc++,n.namespaceURI===so.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function Yo(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)i[a++]=r,r=r.nextSibling;i.length=a}}}function Xo(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,Yo(e.ownerDocument,e),t}function Ko(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===xo){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var s=n?n.previousSibling:e.lastChild;r.previousSibling=s,a.nextSibling=n,s?s.nextSibling=r:e.firstChild=r,null==n?e.lastChild=a:n.previousSibling=a;do{r.parentNode=e}while(r!==a&&(r=r.nextSibling));return Yo(e.ownerDocument||e,e),t.nodeType==xo&&(t.firstChild=t.lastChild=null),t}function $o(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t),i=e.lastChild}return i=e.lastChild,t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,Yo(e.ownerDocument,e,t),t}function Jo(){this._nsMap={}}function Zo(){}function el(){}function tl(){}function nl(){}function il(){}function rl(){}function al(){}function sl(){}function ol(){}function ll(){}function ul(){}function cl(){}function dl(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,a=i.namespaceURI;if(a&&null==r&&null==(r=i.lookupPrefix(a)))var s=[{namespace:a,prefix:null}];return fl(this,n,e,t,s),n.join("")}function hl(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===i&&r===so.XML||r===so.XMLNS)return!1;for(var a=n.length;a--;){var s=n[a];if(s.prefix===i)return s.namespace!==r}return!0}function pl(e,t,n){e.push(" ",t,'="',n.replace(/[<&"]/g,Ho),'"')}function fl(e,t,n,i,r){if(r||(r=[]),i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case go:var a=e.attributes,s=a.length,o=e.firstChild,l=e.tagName,u=l;if(!(n=so.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var c,d=0;d<a.length;d++)if("xmlns"===a.item(d).name){c=a.item(d).value;break}if(!c)for(var h=r.length-1;h>=0;h--)if(""===(p=r[h]).prefix&&p.namespace===e.namespaceURI){c=p.namespace;break}if(c!==e.namespaceURI)for(h=r.length-1;h>=0;h--){var p;if((p=r[h]).namespace===e.namespaceURI){p.prefix&&(u=p.prefix+":"+l);break}}}t.push("<",u);for(var f=0;f<s;f++)"xmlns"==(m=a.item(f)).prefix?r.push({prefix:m.localName,namespace:m.value}):"xmlns"==m.nodeName&&r.push({prefix:"",namespace:m.value});for(f=0;f<s;f++){var m,g,v;hl(m=a.item(f),n,r)&&(pl(t,(g=m.prefix||"")?"xmlns:"+g:"xmlns",v=m.namespaceURI),r.push({prefix:g,namespace:v})),fl(m,t,n,i,r)}if(l===u&&hl(e,n,r)&&(pl(t,(g=e.prefix||"")?"xmlns:"+g:"xmlns",v=e.namespaceURI),r.push({prefix:g,namespace:v})),o||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),n&&/^script$/i.test(l))for(;o;)o.data?t.push(o.data):fl(o,t,n,i,r.slice()),o=o.nextSibling;else for(;o;)fl(o,t,n,i,r.slice()),o=o.nextSibling;t.push("</",u,">")}else t.push("/>");return;case So:case xo:for(o=e.firstChild;o;)fl(o,t,n,i,r.slice()),o=o.nextSibling;return;case vo:return pl(t,e.name,e.value);case Ao:return t.push(e.data.replace(/[<&]/g,Ho).replace(/]]>/g,"]]&gt;"));
vendor: 6,799 bytes, line 67
67case yo:return t.push("<![CDATA[",e.data,"]]>");case Eo:return t.push("\x3c!--",e.data,"--\x3e");case To:var A=e.publicId,y=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),y&&"."!=y&&t.push(" ",y),t.push(">");else if(y&&"."!=y)t.push(" SYSTEM ",y,">");else{var b=e.internalSubset;b&&t.push(" [",b,"]"),t.push(">")}return;case wo:return t.push("<?",e.target," ",e.data,"?>");case bo:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ml(e,t,n){var i;switch(t.nodeType){case go:(i=t.cloneNode(!1)).ownerDocument=e;case xo:break;case vo:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var r=t.firstChild;r;)i.appendChild(ml(e,r,n)),r=r.nextSibling;return i}function gl(e,t,n){var i=new t.constructor;for(var r in t){var a=t[r];"object"!=typeof a&&a!=i[r]&&(i[r]=a)}switch(t.childNodes&&(i.childNodes=new Bo),i.ownerDocument=e,i.nodeType){case go:var s=t.attributes,o=i.attributes=new Oo,l=s.length;o._ownerElement=i;for(var u=0;u<l;u++)i.setAttributeNode(gl(e,s.item(u),!0));break;case vo:n=!0}if(n)for(var c=t.firstChild;c;)i.appendChild(gl(e,c,n)),c=c.nextSibling;return i}function vl(e,t,n){e[t]=n}Io.INVALID_STATE_ERR=(Mo[11]="Invalid state",11),Io.SYNTAX_ERR=(Mo[12]="Syntax error",12),Io.INVALID_MODIFICATION_ERR=(Mo[13]="Invalid modification",13),Io.NAMESPACE_ERR=(Mo[14]="Invalid namespace",14),Io.INVALID_ACCESS_ERR=(Mo[15]="Invalid access",15),Lo.prototype=Error.prototype,po(Io,Lo),Bo.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)fl(this[i],n,e,t);return n.join("")}},Do.prototype.item=function(e){return No(this),this[e]},fo(Do,Bo),Oo.prototype={length:0,item:Bo.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new Lo(Ro);var n=this.getNamedItem(e.nodeName);return Fo(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new Lo(Ro);return t=this.getNamedItemNS(e.namespaceURI,e.localName),Fo(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return zo(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return zo(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},Qo.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new jo;if(i.implementation=this,i.childNodes=new Bo,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new rl;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},Vo.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Ko(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return Xo(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return gl(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==Ao&&e.nodeType==Ao?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=t.nodeType==vo?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==vo?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},po(mo,Vo),po(mo,Vo.prototype),jo.prototype={nodeName:"#document",nodeType:So,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==xo){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&e.nodeType==go&&(this.documentElement=e),Ko(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Xo(this,e)},importNode:function(e,t){return ml(this,e,t)},getElementById:function(e){var t=null;return Go(this.documentElement,function(n){if(n.nodeType==go&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=co(e);return new Do(this,function(n){var i=[];return t.length>0&&Go(n.documentElement,function(r){if(r!==n&&r.nodeType===go){var a=r.getAttribute("class");if(a){var s=e===a;if(!s){var o=co(a);s=t.every(ho(o))}s&&i.push(r)}}}),i})},createElement:function(e){var t=new Jo;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Bo,(t.attributes=new Oo)._ownerElement=t,t},createDocumentFragment:function(){var e=new ll;return e.ownerDocument=this,e.childNodes=new Bo,e},createTextNode:function(e){var t=new tl;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new nl;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new il;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ul;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Zo;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ol;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Jo,i=t.split(":"),r=n.attributes=new Oo;return n.childNodes=new Bo,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new Zo,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},fo(jo,Vo),Jo.prototype={nodeType:go,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
67,appendChild:function(e){return e.nodeType===xo?this.insertBefore(e,null):$o(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new Do(this,function(t){var n=[];return Go(t,function(i){i===t||i.nodeType!=go||"*"!==e&&i.tagName!=e||n.push(i)}),n})},getElementsByTagNameNS:function(e,t){return new Do(this,function(n){var i=[];return Go(n,function(r){r===n||r.nodeType!==go||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)}),i})}},jo.prototype.getElementsByTagName=Jo.prototype.getElementsByTagName,jo.prototype.getElementsByTagNameNS=Jo.prototype.getElementsByTagNameNS,fo(Jo,Vo),Zo.prototype.nodeType=vo,fo(Zo,Vo),el.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(Mo[ko])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},fo(el,Vo),tl.prototype={nodeName:"#text",nodeType:Ao,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},fo(tl,el),nl.prototype={nodeName:"#comment",nodeType:Eo},fo(nl,el),il.prototype={nodeName:"#cdata-section",nodeType:yo},fo(il,el),rl.prototype.nodeType=To,fo(rl,Vo),al.prototype.nodeType=Co,fo(al,Vo),sl.prototype.nodeType=_o,fo(sl,Vo),ol.prototype.nodeType=bo,fo(ol,Vo),ll.prototype.nodeName="#document-fragment",ll.prototype.nodeType=xo,fo(ll,Vo),ul.prototype.nodeType=wo,fo(ul,Vo),cl.prototype.serializeToString=function(e,t,n){return dl.call(e,t,n)},Vo.prototype.toString=dl;try{if(Object.defineProperty){var Al=function e(t){switch(t.nodeType){case go:case xo:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};Object.defineProperty(Do.prototype,"length",{get:function(){return No(this),this.$$length}}),Object.defineProperty(Vo.prototype,"textContent",{get:function(){return Al(this)},set:function(e){switch(this.nodeType){case go:case xo:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),vl=function(e,t,n){e["$$"+t]=n}}}catch(e){}var yl={DocumentType:rl,DOMException:Lo,DOMImplementation:Qo,Element:Jo,Node:Vo,NodeList:Bo,XMLSerializer:cl},bl=y(function(e,t){var n=ao.freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",
vendor: 10,007 bytes, line 67
67nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES});bl.XML_ENTITIES,bl.HTML_ENTITIES,bl.entityMap;var _l=ao.NAMESPACE,wl=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,El=new RegExp("[\\-\\.0-9"+wl.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Sl=new RegExp("^"+wl.source+El.source+"*(?::"+wl.source+El.source+"*)?$"),Tl=0,xl=1,Cl=2,Il=3,Ml=4,kl=5,Pl=6,Rl=7;function Ll(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,Ll)}function Bl(){}function Dl(e,t,n,i,r){function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(r.error("entity not found:"+e),e)}function o(t){if(t>m){var n=e.substring(m,t).replace(/&#?\w+;/g,s);h&&l(m),i.characters(n,0,t-m),m=t}}function l(t,n){for(;t>=c&&(n=d.exec(e));)u=n.index,c=u+n[0].length,h.lineNumber++;h.columnNumber=t-u+1}for(var u=0,c=0,d=/.*(?:\r\n?|\n)|.*$/g,h=i.locator,p=[{currentNSMap:t}],f={},m=0;;){try{var g=e.indexOf("<",m);if(g<0){if(!e.substr(m).match(/^\s*$/)){var v=i.doc,A=v.createTextNode(e.substr(m));v.appendChild(A),i.currentElement=A}return}switch(g>m&&o(g),e.charAt(g+1)){case"/":var y=e.indexOf(">",g+3),b=e.substring(g+2,y).replace(/[ \t\n\r]+$/g,""),_=p.pop();y<0?(b=e.substring(g+2).replace(/[\s<].*/,""),r.error("end tag name: "+b+" is not complete:"+_.tagName),y=g+1+b.length):b.match(/\s</)&&(b=b.replace(/[\s<].*/,""),r.error("end tag name: "+b+" maybe not complete"),y=g+1+b.length);var w=_.localNSMap,E=_.tagName==b;if(E||_.tagName&&_.tagName.toLowerCase()==b.toLowerCase()){if(i.endElement(_.uri,_.localName,b),w)for(var S in w)i.endPrefixMapping(S);E||r.fatalError("end tag name: "+b+" is not match the current start tagName:"+_.tagName)}else p.push(_);y++;break;case"?":h&&l(g),y=Hl(e,g,i);break;case"!":h&&l(g),y=Vl(e,g,i,r);break;default:h&&l(g);var T=new Gl,x=p[p.length-1].currentNSMap,C=(y=Ol(e,g,T,x,s,r),T.length);if(!T.closed&&zl(e,y,T.tagName,f)&&(T.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),h&&C){for(var I=Nl(h,{}),M=0;M<C;M++){var k=T[M];l(k.offset),k.locator=Nl(h,{})}i.locator=I,Ul(T,i,x)&&p.push(T),i.locator=h}else Ul(T,i,x)&&p.push(T);_l.isHTML(T.uri)&&!T.closed?y=Fl(e,y,T.tagName,s,i):y++}}catch(e){if(e instanceof Ll)throw e;r.error("element parse error: "+e),y=-1}y>m?m=y:o(Math.max(g,m)+1)}}function Nl(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Ol(e,t,n,i,r,a){function s(e,t,i){n.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}for(var o,l=++t,u=Tl;;){var c=e.charAt(l);switch(c){case"=":if(u===xl)o=e.slice(t,l),u=Il;else{if(u!==Cl)throw new Error("attribute equal must after attrName");u=Il}break;case"'":case'"':if(u===Il||u===xl){if(u===xl&&(a.warning('attribute value must after "="'),o=e.slice(t,l)),t=l+1,!((l=e.indexOf(c,t))>0))throw new Error("attribute value no end '"+c+"' match");s(o,d=e.slice(t,l).replace(/&#?\w+;/g,r),t-1),u=kl}else{if(u!=Ml)throw new Error('attribute value must after "="');s(o,d=e.slice(t,l).replace(/&#?\w+;/g,r),t),a.warning('attribute "'+o+'" missed start quot('+c+")!!"),t=l+1,u=kl}break;case"/":switch(u){case Tl:n.setTagName(e.slice(t,l));case kl:case Pl:case Rl:u=Rl,n.closed=!0;case Ml:case xl:case Cl:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),u==Tl&&n.setTagName(e.slice(t,l)),l;case">":switch(u){case Tl:n.setTagName(e.slice(t,l));case kl:case Pl:case Rl:break;case Ml:case xl:"/"===(d=e.slice(t,l)).slice(-1)&&(n.closed=!0,d=d.slice(0,-1));case Cl:u===Cl&&(d=o),u==Ml?(a.warning('attribute "'+d+'" missed quot(")!'),s(o,d.replace(/&#?\w+;/g,r),t)):(_l.isHTML(i[""])&&d.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+d+'" missed value!! "'+d+'" instead!!'),s(d,d,t));break;case Il:throw new Error("attribute value missed!!")}return l;case"€":c=" ";default:if(c<=" ")switch(u){case Tl:n.setTagName(e.slice(t,l)),u=Pl;break;case xl:o=e.slice(t,l),u=Cl;break;case Ml:var d=e.slice(t,l).replace(/&#?\w+;/g,r);a.warning('attribute "'+d+'" missed quot(")!!'),s(o,d,t);case kl:u=Pl}else switch(u){case Cl:n.tagName,_l.isHTML(i[""])&&o.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),s(o,o,t),t=l,u=xl;break;case kl:a.warning('attribute space is required"'+o+'"!!');case Pl:u=xl,t=l;break;case Il:u=Ml,t=l;break;case Rl:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function Ul(e,t,n){for(var i=e.tagName,r=null,a=e.length;a--;){var s=e[a],o=s.qName,l=s.value;if((h=o.indexOf(":"))>0)var u=s.prefix=o.slice(0,h),c=o.slice(h+1),d="xmlns"===u&&c;else c=o,u=null,d="xmlns"===o&&"";s.localName=c,!1!==d&&(null==r&&(r={},Ql(n,n={})),n[d]=r[d]=l,s.uri=_l.XMLNS,t.startPrefixMapping(d,l))}for(a=e.length;a--;)(u=(s=e[a]).prefix)&&("xml"===u&&(s.uri=_l.XML),"xmlns"!==u&&(s.uri=n[u||""]));var h;(h=i.indexOf(":"))>0?(u=e.prefix=i.slice(0,h),c=e.localName=i.slice(h+1)):(u=null,c=e.localName=i);var p=e.uri=n[u||""];if(t.startElement(p,c,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=r,!0;if(t.endElement(p,c,i),r)for(u in r)t.endPrefixMapping(u)}function Fl(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(n)?(r.characters(s,0,s.length),a):(s=s.replace(/&#?\w+;/g,i),r.characters(s,0,s.length),a)}return t+1}function zl(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function Ql(e,t){for(var n in e)t[n]=e[n]}function Vl(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var a=jl(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var o=a[1][0],l=!1,u=!1;s>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],u=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(u=a[3][0]));var c=a[s-1];return n.startDTD(o,l,u),n.endDTD(),c.index+c[0].length}return-1}function Hl(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function Gl(){this.attributeNames={}}function jl(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}Ll.prototype=new Error,Ll.prototype.name=Ll.name,Bl.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),Ql(t,t={}),Dl(e,t,n,i,this.errorHandler),i.endDocument()}},Gl.prototype={setTagName:function(e){if(!Sl.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!Sl.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};var ql={XMLReader:Bl,ParseError:Ll},Wl=yl.DOMImplementation,Yl=ao.NAMESPACE,Xl=ql.ParseError,Kl=ql.XMLReader;function $l(e){this.options=e||{locator:{}}}function Jl(e,t,n){if(!e){if(t instanceof Zl)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+tu(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}function Zl(){this.cdata=!1}function eu(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function tu(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function nu(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>
67=t+n||t?new java.lang.String(e,t,n)+"":e}function iu(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}$l.prototype.parseFromString=function(e,t){var n=this.options,i=new Kl,r=n.domBuilder||new Zl,a=n.errorHandler,s=n.locator,o=n.xmlns||{},l=/\/x?html?$/.test(t),u=l?bl.HTML_ENTITIES:bl.XML_ENTITIES;return s&&r.setDocumentLocator(s),i.errorHandler=Jl(a,r,s),i.domBuilder=n.domBuilder||r,l&&(o[""]=Yl.HTML),o.xml=o.xml||Yl.XML,e&&"string"==typeof e?i.parse(e,o,u):i.errorHandler.error("invalid doc source"),r.doc},Zl.prototype={startDocument:function(){this.doc=(new Wl).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),s=i.length;iu(this,a),this.currentElement=a,this.locator&&eu(this.locator,a);for(var o=0;o<s;o++){e=i.getURI(o);var l=i.getValue(o),u=(n=i.getQName(o),r.createAttributeNS(e,n));this.locator&&eu(i.getLocator(o),u),u.value=u.nodeValue=l,a.setAttributeNode(u)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&eu(this.locator,n),iu(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=nu.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&eu(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=nu.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&eu(this.locator,i),iu(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&eu(this.locator,r),iu(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,tu(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,tu(this.locator))},fatalError:function(e){throw new Xl(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Zl.prototype[e]=function(){return null}});var ru=Zl,au=$l,su=yl.DOMImplementation,ou=yl.XMLSerializer,lu={__DOMHandler:ru,DOMParser:au,DOMImplementation:su,XMLSerializer:ou}.DOMParser,uu=function(e){return!!e&&"object"==typeof e},cu=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce(function(t,n){return"object"!=typeof n||Object.keys(n).forEach(function(i){Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=t[i].concat(n[i]):uu(t[i])&&uu(n[i])?t[i]=e(t[i],n[i]):t[i]=n[i]}),t},{})},du=function(e){return Object.keys(e).map(function(t){return e[t]})},hu=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n},pu=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},fu=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},mu=function(e,t){return e.reduce(function(e,n,i){return n[t]&&e.push(i),e},[])},gu=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},vu=function(e,t){return du(e.reduce(function(e,n){return n.forEach(function(n){e[t(n)]=n}),e},{}))},Au={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},yu=function(e){var t=e.baseUrl,n=void 0===t?"":t,i=e.source,r=void 0===i?"":i,a=e.range,s=void 0===a?"":a,o=e.indexRange,l=void 0===o?"":o,u={uri:r,resolvedUri:Ts(n||"",r)};if(s||l){var c,d=(s||l).split("-"),h=window.BigInt?window.BigInt(d[0]):parseInt(d[0],10),p=window.BigInt?window.BigInt(d[1]):parseInt(d[1],10);h<Number.MAX_SAFE_INTEGER&&"bigint"==typeof h&&(h=Number(h)),p<Number.MAX_SAFE_INTEGER&&"bigint"==typeof p&&(p=Number(p)),"bigint"==typeof(c="bigint"==typeof p||"bigint"==typeof h?window.BigInt(p)-window.BigInt(h)+window.BigInt(1):p-h+1)&&c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),u.byterange={length:c,offset:h}}return u},bu=function(e){var t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?window.BigInt(e.offset)+window.BigInt(e.length)-window.BigInt(1):e.offset+e.length-1,e.offset+"-"+t},_u=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},wu={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,a=e.periodDuration,s=_u(e.endNumber),o=t/i;return"number"==typeof s?{start:0,end:s}:"number"==typeof a?{start:0,end:a/o}:{start:0,end:r/o}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,s=e.duration,o=e.periodStart,l=void 0===o?0:o,u=e.minimumUpdatePeriod,c=void 0===u?0:u,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,p=_u(e.endNumber),f=(t+n)/1e3,m=i+l,g=f+c-m,v=Math.ceil(g*a/s),A=Math.floor((f-m-h)*a
67/s),y=Math.floor((f-m)*a/s);return{start:Math.max(0,A),end:"number"==typeof p?p:Math.min(v,y)}}},Eu=function(e){return function(t){var n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodStart,s=e.startNumber;return{number:(void 0===s?1:s)+t,duration:n/r,timeline:a,time:t*n}}},Su=function(e){var t=e.type,n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodDuration,s=e.sourceDuration,o=wu[t](e),l=o.start,u=o.end,c=hu(l,u).map(Eu(e));if("static"===t){var d=c.length-1,h="number"==typeof a?a:s;c[d].duration=h-n/r*d}return c},Tu=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,a=e.indexRange,s=void 0===a?"":a,o=e.periodStart,l=e.presentationTime,u=e.number,c=void 0===u?0:u,d=e.duration;if(!t)throw new Error(Au.NO_BASE_URL);var h=yu({baseUrl:t,source:i.sourceURL,range:i.range}),p=yu({baseUrl:t,source:t,indexRange:s});if(p.map=h,d){var f=Su(e);f.length&&(p.duration=f[0].duration,p.timeline=f[0].timeline)}else r&&(p.duration=r,p.timeline=o);return p.presentationTime=l||o,p.number=c,[p]},xu=function(e,t,n){var i,r=e.sidx.map?e.sidx.map:null,a=e.sidx.duration,s=e.timeline||0,o=e.sidx.byterange,l=o.offset+o.length,u=t.timescale,c=t.references.filter(function(e){return 1!==e.referenceType}),d=[],h=e.endList?"static":"dynamic",p=e.sidx.timeline,f=p,m=e.mediaSequence||0;i="bigint"==typeof t.firstOffset?window.BigInt(l)+t.firstOffset:l+t.firstOffset;for(var g=0;g<c.length;g++){var v=t.references[g],A=v.referencedSize,y=v.subsegmentDuration,b=void 0;b="bigint"==typeof i?i+window.BigInt(A)-window.BigInt(1):i+A-1;var _=Tu({baseUrl:n,timescale:u,timeline:s,periodStart:p,presentationTime:f,number:m,duration:y,sourceDuration:a,indexRange:i+"-"+b,type:h})[0];r&&(_.map=r),d.push(_),i+="bigint"==typeof i?window.BigInt(A):A,f+=y/u,m++}return e.segments=d,e},Cu=["AUDIO","SUBTITLES"],Iu=1/60,Mu=function(e){return vu(e,function(e){return e.timeline}).sort(function(e,t){return e.timeline>t.timeline?1:-1})},ku=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},Pu=function(e){var t=[];return to(e,Cu,function(e,n,i,r){t=t.concat(e.playlists||[])}),t},Ru=function(e){var t=e.playlist,n=e.mediaSequence;t.mediaSequence=n,t.segments.forEach(function(e,n){e.number=t.mediaSequence+n})},Lu=function(e){var t=e.oldPlaylists,n=e.newPlaylists,i=e.timelineStarts;n.forEach(function(e){e.discontinuitySequence=gu(i,function(t){return t.timeline===e.timeline});var n=ku(t,e.attributes.NAME);if(n&&!e.sidx){var r=e.segments[0],a=gu(n.segments,function(e){return Math.abs(e.presentationTime-r.presentationTime)<Iu});if(-1===a)return Ru({playlist:e,mediaSequence:n.mediaSequence+n.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!n.segments.length&&e.timeline>n.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--);n.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),Ru({playlist:e,mediaSequence:n.segments[a].number})}})},Bu=function(e){var t=e.oldManifest,n=e.newManifest,i=t.playlists.concat(Pu(t)),r=n.playlists.concat(Pu(n));return n.timelineStarts=Mu([t.timelineStarts,n.timelineStarts]),Lu({oldPlaylists:i,newPlaylists:r,timelineStarts:n.timelineStarts}),n},Du=function(e){return e&&e.uri+"-"+bu(e.byterange)},Nu=function(e){return du(e.reduce(function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]);return e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{})).map(function(e){return e.discontinuityStarts=mu(e.segments||[],"discontinuity"),e})},Ou=function(e,t){var n=Du(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&xu(e,i,e.sidx.resolvedUri),e},Uu=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=Ou(e[n],t);return e},Fu=function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,s=e.mediaSequence,o=e.discontinuitySequence,l=e.discontinuityStarts,u={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs}
67,n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:o,discontinuityStarts:l,timelineStarts:i.timelineStarts,mediaSequence:s,segments:r};return i.contentProtection&&(u.contentProtection=i.contentProtection),a&&(u.sidx=a),t&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u},zu=function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,s=e.discontinuitySequence;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var o=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(o.CODECS=n.codecs),{attributes:o,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:s,mediaSequence:r,segments:i}},Qu=function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce(function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",s=r.attributes.lang||"",o=r.attributes.label||"main";if(s&&!r.attributes.label){var l=a?" ("+a+")":"";o=""+r.attributes.lang+l}e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=Ou(Fu(r,n),t);return e[o].playlists.push(u),void 0===i&&"main"===a&&((i=r).default=!0),e},{});return i||(r[Object.keys(r)[0]].default=!0),r},Vu=function(e,t){return void 0===t&&(t={}),e.reduce(function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(Ou(zu(n),t)),e},{})},Hu=function(e){return e.reduce(function(e,t){return t?(t.forEach(function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])}),e):e},{})},Gu=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,s={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:a,timelineStarts:n.timelineStarts,segments:i};return n.contentProtection&&(s.contentProtection=n.contentProtection),r&&(s.sidx=r),s},ju=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},qu=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},Wu=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},Yu=function(e,t){e.forEach(function(e){e.mediaSequence=0,e.discontinuitySequence=gu(t,function(t){return t.timeline===e.timeline}),e.segments&&e.segments.forEach(function(e,t){e.number=t})})},Xu=function(e){return e?Object.keys(e).reduce(function(t,n){var i=e[n];return t.concat(i.playlists)},[]):[]},Ku=function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.sidxMapping,a=void 0===r?{}:r,s=e.previousManifest;if(!n.length)return{};var o=n[0].attributes,l=o.sourceDuration,u=o.type,c=o.suggestedPresentationDelay,d=o.minimumUpdatePeriod,h=Nu(n.filter(ju)).map(Gu),p=Nu(n.filter(qu)),f=Nu(n.filter(Wu)),m=n.map(function(e){return e.attributes.captionServices}).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:l,playlists:Uu(h,a)};d>=0&&(g.minimumUpdatePeriod=1e3*d),i&&(g.locations=i),"dynamic"===u&&(g.suggestedPresentationDelay=c);var v=0===g.playlists.length,A=p.length?Qu(p,a,v):null,y=f.length?Vu(f,a):null,b=h.concat(Xu(A),Xu(y)),_=b.map(function(e){return e.timelineStarts});return g.timelineStarts=Mu(_),Yu(b,g.timelineStarts),A&&(g.mediaGroups.AUDIO.audio=A),y&&(g.mediaGroups.SUBTITLES.subs=y),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=Hu(m)),s?Bu({oldManifest:s,newManifest:g}):g},$u=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,s=e.timescale,o=void 0===s?1:s,l=e.periodStart,u=void 0===l?0:l,c=e.minimumUpdatePeriod,d=(i+r)/1e3+(void 0===c?0:c)-(a+u);return Math.ceil((d*o-t)/n)},Ju=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,a=e.media,s=void 0===a?"":a,o=e.sourceDuration,l=e.timescale,u=void 0===l?1:l,c=e.startNumber,d=void 0===c?1:c,h=e.periodStart,p=[],f=-1,m=0;m<t.length;m++){var g=t[m],v=g.d,A=g.r||0,y=g.t||0;f<0&&(f=y),y&&y>f&&(f=y);var b=void 0;if(A<0){var _=m+1;b=_===t.length?"dynamic"===n&&r>0&&s.indexOf("$Number$")>0?$u(e,f,v):(o*u-f)/v:(t[_].t-f)/v}else b=A+1;for(var w=d+p.length+b,E=d+p.length;E<w;)p.push({number:E,duration:v/u,time:f,timeline:h}),f+=v,E++}return p},Zu=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ec=function(e){return function(t,n,i,r){if("$$"===t)return"$";if(void 0===e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}},tc=function(e,t){return e.replace(Zu,ec(t))},nc=function(e,t){return e.duration||t?e.duration?Su(e):Ju(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]},ic=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,r=void 0===i?{sourceURL:"",range:""}:i,a=yu({baseUrl:e.baseUrl,source:tc(r.sourceURL,n),range:r.range});return nc(e,t).map(function(t){n.Number=t.number,n.Time=t.time;var i=tc(e.media||"",n),r=e.timescale||1,s=e.presentationTimeOffset||0,o=e.periodStart+(t.time-s)/r;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:Ts(e.baseUrl||"",i),map:a,number:t.number,presentationTime:o}})},rc=function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=yu({baseUrl:n,source:r.sourceURL,range:r.range}),s=yu({baseUrl:n,source:t.media,range:t.mediaRange});return s.map=a,s},ac=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(Au.SEGMENT_TIME_UNSPECIFIED);var s,o=r.map(function(t){return rc(e,t)});return n&&(s=Su(e)),t&&(s=Ju(e,t)),s.map(function(t,n){if(o[n]){var i=o[n],r=e.timescale||1,s=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-s)/r,i}}).filter(function(e){return e})},sc=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=ic,t=cu(i,r.template)):r.base?(n=Tu,t=cu(i,r.base)):r.list&&(n=ac,t=cu(i,r.list));var a={attributes:i};if(!n)return a;var s=n(t,r.segmentTimeline);if(t.duration){var o=t,l=o.duration,u=o.timescale,c=void 0===u?1:u;t.duration=l/c}else s.length?t.duration=s.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return a.attributes=t,a.segments=s,r.base&&t.indexRange&&(a.sidx=s[0],a.segments=[]),a},oc=function(e){return e.map(sc)},lc=function(e,t){return fu(e.childNodes).filter(function(e){return e.tagName===t})},uc=function(e){return e.textContent.trim()},cc=function(e){var t=31536e3,n=2592e3,i=86400,r=3600,a=60,s=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!s)return 0;var o=s.slice(1),l=o[0],u=o[1],c=o[2],d=o[3],h=o[4],p=o[5];return parseFloat(l||0)*t+parseFloat(u||0)*n+parseFloat(c||0)*i+parseFloat(d||0)*r+parseFloat(h||0)*a+parseFloat(p||0)},dc=function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)},hc={mediaPresentationDuration:function(e){return cc(e)},availabilityStartTime:function(e){return dc(e)/1e3},minimumUpdatePeriod:function(e){return cc(e)},suggestedPresentationDelay:function(e){return cc(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return cc(e)},start:function(e){return cc(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?cc(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},pc=function(e){return e&&e.attributes?fu(e.attributes).reduce(function(e,t){var n=hc[t.name]||hc.DEFAULT;return e[t.name]=n(t.value),e},{}):{}},fc={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},mc=function(e,t){return t.length?pu(e.map(function(e){return t.map(function(t){return Ts(e,uc(t))})})):e},gc=function(e){var t=lc(e,"SegmentTemplate")[0],n=lc(e,"SegmentList")[0],i=n&&lc(n,"SegmentURL").map(function(e){return cu({tag:"SegmentURL"},pc(e))}
67),r=lc(e,"SegmentBase")[0],a=n||t,s=a&&lc(a,"SegmentTimeline")[0],o=n||r||t,l=o&&lc(o,"Initialization")[0],u=t&&pc(t);u&&l?u.initialization=l&&pc(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var c={template:u,segmentTimeline:s&&lc(s,"S").map(function(e){return pc(e)}),list:n&&cu(pc(n),{segmentUrls:i,initialization:pc(l)}),base:r&&cu(pc(r),{initialization:pc(l)})};return Object.keys(c).forEach(function(e){c[e]||delete c[e]}),c},vc=function(e,t,n){return function(i){var r=lc(i,"BaseURL"),a=mc(t,r),s=cu(e,pc(i)),o=gc(i);return a.map(function(e){return{segmentInfo:cu(n,o),attributes:cu(s,{baseUrl:e})}})}},Ac=function(e){return e.reduce(function(e,t){var n=pc(t),i=fc[n.schemeIdUri];if(i){e[i]={attributes:n};var r=lc(t,"cenc:pssh")[0];if(r){var a=uc(r),s=a&&Is(a);e[i].pssh=s}}return e},{})},yc=function(e){return"urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}}):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[0],r=n[1],a=void 0===r?"":r;t.channel=i,t.language=e,a.split(",").forEach(function(e){var n=e.split(":"),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0},bc=function(e,t,n){return function(i){var r=pc(i),a=mc(t,lc(i,"BaseURL")),s=lc(i,"Role")[0],o={role:pc(s)},l=cu(e,r,o),u=lc(i,"Accessibility")[0],c=yc(pc(u));c&&(l=cu(l,{captionServices:c}));var d=lc(i,"Label")[0];if(d&&d.childNodes.length){var h=d.childNodes[0].nodeValue.trim();l=cu(l,{label:h})}var p=Ac(lc(i,"ContentProtection"));Object.keys(p).length&&(l=cu(l,{contentProtection:p}));var f=gc(i),m=lc(i,"Representation"),g=cu(n,f);return pu(m.map(vc(l,a,g)))}},_c=function(e,t){return function(n,i){var r=mc(t,lc(n.node,"BaseURL")),a=cu(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);var s=lc(n.node,"AdaptationSet"),o=gc(n.node);return pu(s.map(bc(a,r,o)))}},wc=function(e){var t=e.attributes,n=e.priorPeriodAttributes,i=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==i?null:0},Ec=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,a=n.NOW,s=void 0===a?Date.now():a,o=n.clientOffset,l=void 0===o?0:o,u=lc(e,"Period");
67if(!u.length)throw new Error(Au.INVALID_NUMBER_OF_PERIOD);var c=lc(e,"Location"),d=pc(e),h=mc([r],lc(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=s,d.clientOffset=l,c.length&&(d.locations=c.map(uc));var p=[];return u.forEach(function(e,t){var n=pc(e),i=p[t-1];n.start=wc({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),p.push({node:e,attributes:n})}),{locations:d.locations,representationInfo:pu(p.map(_c(d,h)))}},Sc=function(e){if(""===e)throw new Error(Au.DASH_EMPTY_MANIFEST);var t,n,i=new lu;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(Au.DASH_INVALID_XML);return n},Tc=function(e){var t=lc(e,"UTCTiming")[0];if(!t)return null;var n=pc(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error(Au.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},xc=function(e,t){void 0===t&&(t={});var n=Ec(Sc(e),t),i=oc(n.representationInfo);return Ku({dashPlaylists:i,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})},Cc=function(e){return Tc(Sc(e))},Ic=Math.pow(2,32),Mc=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:n.getUint32(0)*Ic+n.getUint32(4)},kc=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===n.version?(n.earliestPresentationTime=t.getUint32(i),n.firstOffset=t.getUint32(i+4),i+=8):(n.earliestPresentationTime=Mc(e.subarray(i)),n.firstOffset=Mc(e.subarray(i+8)),i+=16),i+=2;var r=t.getUint16(i);for(i+=2;r>0;i+=12,r--)n.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return n},Pc=function(e){return e.toString(2).length},Rc=function(e){return Math.ceil(Pc(e)/8)},Lc=function(e){return ArrayBuffer.isView(e)},Bc=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||Lc(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},Dc=window.BigInt||Number,Nc=[Dc("0x1"),Dc("0x100"),Dc("0x10000"),Dc("0x1000000"),Dc("0x100000000"),Dc("0x10000000000"),Dc("0x1000000000000"),Dc("0x100000000000000"),Dc("0x10000000000000000")],Oc=function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,a=n.le,s=void 0!==a&&a;e=Bc(e);var o=s?"reduce":"reduceRight",l=(e[o]?e[o]:Array.prototype[o]).call(e,function(t,n,i){var r=s?i:Math.abs(i+1-e.length);return t+Dc(n)*Nc[r]},Dc(0));if(r){var u=Nc[e.length]/Dc(2)-Dc(1);(l=Dc(l))>u&&(l-=u,l-=u,l-=Dc(2))}return Number(l)},Uc=function(e,t){var n=(void 0===t?{}:t).le,i=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=Dc(e);for(var r=Rc(e),a=new Uint8Array(new ArrayBuffer(r)),s=0;s<r;s++){var o=i?s:Math.abs(s+1-a.length);a[o]=Number(e/Nc[s]&Dc(255)),e<0&&(a[o]=Math.abs(~a[o]),a[o]-=0===s?1:2)}return a},Fc=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},zc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return Bc(t[0]);var i=t.reduce(function(e,t,n){return e+(t.byteLength||t.length)}
vendor: 4,081 bytes, line 67
67,0),r=new Uint8Array(i),a=0;return t.forEach(function(e){e=Bc(e),r.set(e,a),a+=e.byteLength}),r},Qc=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,a=void 0===r?0:r,s=i.mask,o=void 0===s?[]:s;e=Bc(e);var l=(t=Bc(t)).every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,function(t,n){return t===(o[n]?o[n]&e[a+n]:e[a+n])})},Vc=Bc([73,68,51]),Hc=function(e,t){void 0===t&&(t=0);var n=(e=Bc(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?i+20:i+10},Gc=function e(t,n){return void 0===n&&(n=0),(t=Bc(t)).length-n<10||!Qc(t,Vc,{offset:n})?n:e(t,n+=Hc(t,n))},jc=function(e){return"string"==typeof e?Fc(e):e},qc=function(e){return Array.isArray(e)?e.map(function(e){return jc(e)}):[jc(e)]},Wc=function e(t,n,i){void 0===i&&(i=!1),n=qc(n),t=Bc(t);var r=[];if(!n.length)return r;for(var a=0;a<t.length;){var s=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0,o=t.subarray(a+4,a+8);if(0===s)break;var l=a+s;if(l>t.length){if(i)break;l=t.length}var u=t.subarray(a+8,l);Qc(o,n[0])&&(1===n.length?r.push(u):r.push.apply(r,e(u,n.slice(1),i))),a=l}return r},Yc={EBML:Bc([26,69,223,163]),DocType:Bc([66,130]),Segment:Bc([24,83,128,103]),SegmentInfo:Bc([21,73,169,102]),Tracks:Bc([22,84,174,107]),Track:Bc([174]),TrackNumber:Bc([215]),DefaultDuration:Bc([35,227,131]),TrackEntry:Bc([174]),TrackType:Bc([131]),FlagDefault:Bc([136]),CodecID:Bc([134]),CodecPrivate:Bc([99,162]),VideoTrack:Bc([224]),AudioTrack:Bc([225]),Cluster:Bc([31,67,182,117]),Timestamp:Bc([231]),TimestampScale:Bc([42,215,177]),BlockGroup:Bc([160]),BlockDuration:Bc([155]),Block:Bc([161]),SimpleBlock:Bc([163])},Xc=[128,64,32,16,8,4,2,1],Kc=function(e){for(var t=1,n=0;n<Xc.length&&!(e&Xc[n]);n++)t++;return t},$c=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=Kc(e[t]),a=e.subarray(t,t+r);return n&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=Xc[r-1]),{length:r,value:Oc(a,{signed:i}),bytes:a}},Jc=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?Uc(t):t},Zc=function(e){return Array.isArray(e)?e.map(function(e){return Jc(e)}):[Jc(e)]},ed=function e(t,n,i){if(i>=n.length)return n.length;var r=$c(n,i,!1);if(Qc(t.bytes,r.bytes))return i;var a=$c(n,i+r.length);return e(t,n,i+a.length+a.value+r.length)},td=function e(t,n){n=Zc(n),t=Bc(t);var i=[];if(!n.length)return i;for(var r=0;r<t.length;){var a=$c(t,r,!1),s=$c(t,r+a.length),o=r+a.length+s.length;127===s.value&&(s.value=ed(a,t,o),s.value!==t.length&&(s.value-=o));var l=o+s.value>t.length?t.length:o+s.value,u=t.subarray(o,l);Qc(n[0],a.bytes)&&(1===n.length?i.push(u):i=i.concat(e(u,n.slice(1)))),r+=a.length+s.length+u.length}return i},nd=Bc([0,0,0,1]),id=Bc([0,0,1]),rd=Bc([0,0,3]),ad=function(e){for(var t=[],n=1;n<e.length-2;)Qc(e.subarray(n,n+3),rd)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,r=new Uint8Array(i),a=0;for(n=0;n<i;a++,n++)a===t[0]&&(a++,t.shift()),r[n]=e[a];return r},sd=function(e,t,n,i){void 0===i&&(i=1/0),e=Bc(e),n=[].concat(n);for(var r,a=0,s=0;a<e.length&&(s<i||r);){var o=void 0;if(Qc(e.subarray(a),nd)?o=4:Qc(e.subarray(a),id)&&(o=3),o){if(s++,r)return ad(e.subarray(r,a));var l=void 0;"h264"===t?l=31&e[a+o]:"h265"===t&&(l=e[a+o]>>1&63),-1!==n.indexOf(l)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)},od=function(e,t,n){return sd(e,"h264",t,n)},ld=function(e,t,n){return sd(e,"h265",t,n)},ud={webm:Bc([119,101,98,109]),matroska:Bc([109,97,116,114,111,115,107,97]),flac:Bc([102,76,97,67]),ogg:Bc([79,103,103,83]),ac3:Bc([11,119]),riff:Bc([82,73,70,70]),avi:Bc([65,86,73]),wav:Bc([87,65,86,69]),"3gp":Bc([102,116,121,112,51,103]),mp4:Bc([102,116,121,112]),fmp4:Bc([115,116,121,112]),mov:Bc([102,116,121,112,113,116]),moov:Bc([109,111,111,118]),moof:Bc([109,111,111,102])},cd={aac:function(e){var t=Gc(e);return Qc(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Gc(e);return Qc(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=td(e,[Yc.EBML,Yc.DocType])[0];return Qc(t,ud.webm)},mkv:function(e){var t=td(e,[Yc.EBML,Yc.DocType])[0];return Qc(t,ud.matroska)}
67,mp4:function(e){return!cd["3gp"](e)&&!cd.mov(e)&&(!(!Qc(e,ud.mp4,{offset:4})&&!Qc(e,ud.fmp4,{offset:4}))||!(!Qc(e,ud.moof,{offset:4})&&!Qc(e,ud.moov,{offset:4}))||void 0)},mov:function(e){return Qc(e,ud.mov,{offset:4})},"3gp":function(e){return Qc(e,ud["3gp"],{offset:4})},ac3:function(e){var t=Gc(e);return Qc(e,ud.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Gc(e);return Qc(e,ud.flac,{offset:t})},ogg:function(e){return Qc(e,ud.ogg)},avi:function(e){return Qc(e,ud.riff)&&Qc(e,ud.avi,{offset:8})},wav:function(e){return Qc(e,ud.riff)&&Qc(e,ud.wav,{offset:8})},h264:function(e){return od(e,7,3).length},h265:function(e){return ld(e,[32,33],3).length}},dd=Object.keys(cd).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);dd.forEach(function(e){var t=cd[e];cd[e]=function(e){return t(Bc(e))}});var hd,pd,fd,md,gd,vd,Ad,yd=cd,bd=function(e){e=Bc(e);for(var t=0;t<dd.length;t++){var n=dd[t];if(yd[n](e))return n}return""},_d=function(e){return Wc(e,["moof"]).length>0},wd=9e4;gd=function(e,t){return hd(md(e,t))},vd=function(e,t){return pd(fd(e),t)},Ad=function(e,t,n){return fd(n?e:e-t)};var Ed={ONE_SECOND_IN_TS:wd,secondsToVideoTs:hd=function(e){return e*wd},secondsToAudioTs:pd=function(e,t){return e*t},videoTsToSeconds:fd=function(e){return e/wd},audioTsToSeconds:md=function(e,t){return e/t},audioTsToVideoTs:gd,videoTsToAudioTs:vd,metadataTsToSeconds:Ad}.ONE_SECOND_IN_TS,Sd=Ts,Td=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},xd=function(e){return bs.log.debug?bs.log.debug.bind(bs,"VHS:",e+" >"):function(){}},Cd=1/30,Id=3*Cd,Md=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return bs.createTimeRanges(i)},kd=function(e,t){return Md(e,function(e,n){return e-Id<=t&&n+Id>=t})},Pd=function(e,t){return Md(e,function(e){return e-Cd>=t})},Rd=function(e){if(e.length<2)return bs.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return bs.createTimeRanges(t)},Ld=function(e,t){var n=null,i=null,r=0,a=[],s=[];if(!(e&&e.length&&t&&t.length))return bs.createTimeRange();for(var o=e.length;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),o=0;o<a.length;o++)"start"===a[o].type?2===++r&&(n=a[o].time):"end"===a[o].type&&1===--r&&(i=a[o].time),null!==n&&null!==i&&(s.push([n,i]),n=null,i=null);return bs.createTimeRanges(s)},Bd=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},Dd=function(e,t,n){return void 0===n&&(n=1),((e.length?e.end(e.length-1):0)-t)/n},Nd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},Od=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1},Ud=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},Fd=function(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),a=e.end(i);t>a||(n+=t>r&&t<=a?a-t:a-r)}return n},zd=bs.createTimeRange,Qd=function(e,t){if(!t.preload)return t.duration;var n=0;return(t.parts||[]).forEach(function(e){n+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(n+=e.partTargetDuration)}),n},Vd=function(e){return(e.segments||[]).reduce(function(e,t,n){return t.parts?t.parts.forEach(function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})}):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e},[])},Hd=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Gd=function(e){var t=e.preloadSegment;if(t){var n=t.parts,i=(t.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0);return i+=n&&n.length?n.length:0}},jd=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=Hd(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},qd=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=e.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=Qd(e,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},Wd=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(n=e.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=Qd(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}},Yd=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=qd(e,t);if(i.precise)return i.result;var r=Wd(e,t);return r.precise?r.result:i.result+n},Xd=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return window.Infinity}return Yd(e,t,n)},Kd=function(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,a=0;if(i>r){var s=[r,i];i=s[0],r=s[1]}if(i<0){for(var o=i;o<Math.min(0,r);o++)a+=t;i=0}for(var l=i;l<r;l++)a+=n[l].duration;return a},$d=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return Xd(e);if(null===t)return null;t=t||0;var r=Yd(e,e.mediaSequence+e.segments.length,t);return n&&(r-=i="number"==typeof i?i:jd(null,e)),Math.max(0,r)},Jd=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Zd=function(e){return e.excludeUntil&&e.excludeUntil===1/0},eh=function(e){var t=Jd(e);return!e.disabled&&!t},th=function(e,t){return t.attributes&&t.attributes[e]},nh=function(e,t,n,i){return void 0===i&&(i=0),th("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*i)/t:NaN},ih=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!eh(e)&&(e.attributes.BANDWIDTH||0)<n}).length},rh=function(e,t){return!(!e&&!t||!e&&t||e&&!t||e!==t&&(!e.id||!t.id||e.id!==t.id)&&(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)&&(!e.uri||!t.uri||e.uri!==t.uri))},ah=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var a in n[r])if(i=t(n[r][a]))break;if(i)break}return!!i},sh=function(e){if(!e||!e.playlists||!e.playlists.length)return ah(e,function(e){return e.playlists&&e.playlists.length||e.uri});for(var t=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;return i&&i.split(",").every(function(e){return js(e)})||ah(e,function(e){return rh(n,e)})?"continue":{v:!1}},n=0;n<e.playlists.length;n++){var i=t(n);if("continue"!==i&&"object"==typeof i)return i.v}return!0},oh={liveEdgeDelay:jd,duration:Xd,seekable:function(e,t,n){var i=t||0,r=$d(e,t,!0,n);return null===r?zd():zd(i,r)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,s=e.experimentalExactManifestTimings,o=n-a,l=Vd(t),u=0,c=0;c<l.length;c++){var d=l[c];if(i===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){u=c;break}}if(o<0){if(u>0)for(var h=u-1;h>=0;h--){var p=l[h];
67if(o+=p.duration,s){if(o<0)continue}else if(o+Cd<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-Kd({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n}}if(u<0){for(var f=u;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n};u=0}for(var m=u;m<l.length;m++){var g=l[m];if(o-=g.duration,s){if(o>0)continue}else if(o-Cd>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+Kd({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:n}},isEnabled:eh,isDisabled:function(e){return e.disabled},isBlacklisted:Jd,isIncompatible:Zd,playlistEnd:$d,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:th,estimateSegmentRequestTime:nh,isLowestEnabledRendition:ih,isAudioOnly:sh,playlistMatch:rh,segmentDurationWithParts:Qd},lh=bs.log,uh=function(e,t){return e+"-"+t},ch=function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,s=e.customTagMappers,o=void 0===s?[]:s,l=e.experimentalLLHLS,u=new Us;t&&u.on("warn",t),n&&u.on("info",n),a.forEach(function(e){return u.addParser(e)}),o.forEach(function(e){return u.addTagMapper(e)}),u.push(i),u.end();var c=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){c.hasOwnProperty(e)&&delete c[e]}),c.segments&&c.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!c.targetDuration){var d=10;c.segments&&c.segments.length&&(d=c.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t("manifest has no targetDuration defaulting to "+d),c.targetDuration=d}var h=Hd(c);if(h.length&&!c.partTargetDuration){var p=h.reduce(function(e,t){return Math.max(e,t.duration)},0);t&&(t("manifest has no partTargetDuration defaulting to "+p),lh.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),c.partTargetDuration=p}return c},dh=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i]){var a=e.mediaGroups[n][i][r];t(a,n,i,r)}})},hh=function(e){var t=e.playlist,n=e.uri,i=e.id;t.id=i,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},ph=function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];hh({playlist:n,id:uh(t,n.uri)}),n.resolvedUri=Sd(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||lh.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},fh=function(e){dh(e,function(t){t.uri&&(t.resolvedUri=Sd(e.uri,t.uri))})},mh=function(e,t){var n=uh(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:window.location.href,resolvedUri:window.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i},gh=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)if(!e.playlists[n].uri){var i="placeholder-uri-"+n;e.playlists[n].uri=i}var r=sh(e);dh(e,function(t,n,i,a){var s="placeholder-uri-"+n+"-"+i+"-"+a;if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===n&&!t.uri)for(var o=0;o<e.playlists.length;o++){var l=e.playlists[o];if(l.attributes&&l.attributes.AUDIO&&l.attributes.AUDIO===i)return}t.playlists=[b({},t)]}
67t.playlists.forEach(function(t,n){var i=uh(n,s);t.uri?t.resolvedUri=t.resolvedUri||Sd(e.uri,t.uri):(t.uri=0===n?s:i,t.resolvedUri=t.uri),t.id=t.id||i,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),ph(e),fh(e)},vh=bs.mergeOptions,Ah=bs.EventTarget,yh=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var i=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(i){var a=i.parts||[],s=Gd(t)-1;s>-1&&s!==a.length-1&&(n._HLS_part=s),(s>-1||a.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var o=new window.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){n.hasOwnProperty(e)&&o.searchParams.set(e,n[e])}),e=o.toString()}return e},bh=function(e,t){if(!e)return t;var n=vh(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=vh(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},_h=function(e,t,n){var i=e.slice(),r=t.slice();n=n||0;for(var a,s=[],o=0;o<r.length;o++){var l=i[o+n],u=r[o];l?(a=l.map||a,s.push(bh(l,u))):(a&&!u.map&&(u.map=a),s.push(u))}return s},wh=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Sd(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Sd(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Sd(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Sd(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=Sd(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=Sd(t,e.uri))})},Eh=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},Sh=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},Th=function(e,t,n){void 0===n&&(n=Sh);var i=vh(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=Eh(t);var a=vh(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var s=0;s<t.skip.skippedSegments;s++)t.segments.unshift({skipped:!0})}a.segments=_h(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach(function(e){wh(e,a.resolvedUri)});for(var o=0;o<i.playlists.length;o++)i.playlists[o].id===t.id&&(i.playlists[o]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,dh(e,function(e,n,i,r){if(e.playlists)for(var a=0;a<e.playlists.length;a++)t.id===e.playlists[a].id&&(e.playlists[a]=t)}),i},xh=function(e,t){var n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],a=r&&r.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},Ch=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=xd("PlaylistLoader");var a=i,s=a.withCredentials,o=void 0!==s&&s,l=a.handleManifestRedirects,u=void 0!==l&&l;r.src=t,r.vhs_=n,r.withCredentials=o,r.handleManifestRedirects=u;var c=n.options_;return r.customTagParsers=c&&c.customTagParsers||[],r.customTagMappers=c&&c.customTagMappers||[],r.experimentalLLHLS=c&&c.experimentalLLHLS||!1,bs.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(Mt(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}Pt(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=Sd(this.master.uri,t.uri);this.experimentalLLHLS&&(n=yh(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})})}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url,i=e.manifestString;return ch({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for "+n+": "+i)},manifestString:i,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistOb
67ject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:i,manifestString:t});a.lastRequest=Date.now(),hh({playlist:a,uri:i,id:r});var s=Th(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,s?(this.master=s,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(xh(this.media(),!!s)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),window.clearTimeout(this.mediaUpdateTimeout),window.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(window.clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=window.setTimeout(this.media.bind(this,e,!1),i)}else{var r=this.state,a=!this.media_||e.id!==this.media_.id,s=this.master.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(a&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(xh(e,!0)),a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Td(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,r);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}},n.pause=function(){this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=window.setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=window.setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))},n.start=function(){var e=this;
67if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=window.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){e.setupInitialPlaylist(e.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Td(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}})},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,gh(this.master,this.srcUri()),e.playlists.forEach(function(e){e.segments=Eh(e),e.segments.forEach(function(t){wh(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||window.location.href;this.master=mh(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(Ah),Ih=bs.xhr,Mh=bs.mergeOptions,kh=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},Ph=function(){var e=function e(t,n){t=Mh({timeout:45e3},t);var i=e.beforeRequest||bs.Vhs.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(t);r&&(t=r)}var a=(!0===bs.Vhs.xhr.original?Ih:bs.Vhs.xhr)(t,function(e,t){return kh(a,e,t,n)}),s=a.abort;return a.abort=function(){return a.aborted=!0,s.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a};return e.original=!0,e},Rh=function(e){return"bytes="+e.offset+"-"+("bigint"==typeof e.offset||"bigint"==typeof e.length?window.BigInt(e.offset)+window.BigInt(e.length)-window.BigInt(1):e.offset+e.length-1)},Lh=function(e){var t={};return e.byterange&&(t.Range=Rh(e.byterange)),t},Bh=function(e,t){return e.start(t)+"-"+e.end(t)},Dh=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Nh=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Oh=function(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n];ArrayBuffer.isView(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i}),t},Uh=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Fh=function(e){return e.resolvedUri},zh=function(e){for(var t=Array.prototype.slice.call(e),n=16,i="",r=0;r<t.length/n;r++)i+=t.slice(r*n,r*n+n).map(Dh).join("")+" "+t.slice(r*n,r*n+n).map(Nh).join("")+"\n";return i},Qh=function(e){var t=e.bytes;return zh(t)},Vh=function(e){var t,n="";for(t=0;t<e.length;t++)n+=Bh(e,t)+" ";return n},Hh=Object.freeze({__proto__:null,createTransferableMessage:Oh,initSegmentId:Uh,segmentKeyId:Fh,hexDump:zh,tagDump:Qh,textRanges:Vh}),Gh=.25,jh=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*i)},qh=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},Wh=function(e,t){var n;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var i=t.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<t.segments.length-1&&(i=t.segments[r],!(n<t.segments[r+1].dateTimeObject));r++);var a=t.segments[t.segments.length-1],s=a.dateTimeObject,o=a.videoTimingInfo?qh(a.videoTimingInfo):a.duration+a.duration*Gh;return n>new Date(s.getTime()+1e3*o)?null:(n>s&&(i=a),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:oh.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},Yh=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length&&!(e<=(i=(n=t.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+a.duration*Gh)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},Xh=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(e){}var r=n.getTime();return(i.getTime()-r)/1e3},Kh=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0},$h=function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");
67if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=Yh(i,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var s={mediaSeconds:i},o=jh(i,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)},Jh=function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,a=void 0===r?2:r,s=t.seekTo,o=t.pauseAfterSeek,l=void 0===o||o,u=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!i||!s)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!u.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!Kh(i))return c({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=Wh(n,i);if(!d)return c({message:n+" was not found in the stream"});var h=d.segment,p=Xh(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?c({message:n+" is not buffered yet. Try again"}):(s(d.estimatedStart+p),void u.one("seeked",function(){e({programTime:n,playlist:i,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:u,callback:c})}));var f=h.start+p,m=function(){return c(null,u.currentTime())};u.one("seeked",m),l&&u.pause(),s(f)},Zh=function(e,t){if(4===e.readyState)return t()},ep=function(e,t,n){var i,r=[],a=!1,s=function(e,t,i,r){return t.abort(),a=!0,n(e,t,i,r)},o=function(e,t){if(!a){if(e)return s(e,t,"",r);var n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=zc(r,Fc(n,!0)),i=i||Gc(r),r.length<10||i&&r.length<i+2)return Zh(t,function(){return s(e,t,"",r)});var o=bd(r);return"ts"===o&&r.length<188||!o&&r.length<376?Zh(t,function(){return s(e,t,"",r)}):s(null,t,o,r)}},l={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function(t){return t.total,t.loaded,kh(e,null,{statusCode:e.status},o)})}},u=t(l,function(e,t){return kh(u,e,t,o)});return u},tp=bs.EventTarget,np=bs.mergeOptions,ip=function(e,t){if(!Sh(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var a=i.byterange,s=r.byterange;if(a&&!s||!a&&s)return!1;if(a.offset!==s.offset||a.length!==s.length)return!1}}return!0},rp=function(e){var t=e.masterXml,n=e.srcUrl,i=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,s=xc(t,{manifestUri:n,clientOffset:i,sidxMapping:r,previousManifest:a});return gh(s,n),s},ap=function(e,t,n){for(var i=!0,r=np(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var s=t.playlists[a];if(s.sidx){var o=Du(s.sidx);n&&n[o]&&n[o].sidx&&xu(s,n[o].sidx,s.sidx.resolvedUri)}var l=Th(r,s,ip);l&&(r=l,i=!1)}return dh(t,function(e,t,n,a){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id,o=Th(r,e.playlists[0],ip);o&&((r=o).mediaGroups[t][n][a].playlists[0]=r.playlists[s],i=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r},sp=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},op=function(e,t){var n={};for(var i in e){var r=e[i].sidx;if(r){var a=Du(r);if(!t[a])break;var s=t[a].sidxInfo;sp(s,r)&&(n[a]=t[a])}}return n},lp=function(e,t){var n=op(e.playlists,t);return dh(e,function(e,i,r,a){if(e.playlists&&e.playlists.length){var s=e.playlists;n=np(n,op(s,t))}}),n},up=function(e){function t(t,n,i,r){var a;void 0===i&&(i={}),(a=e.call(this)||this).masterPlaylistLoader_=r||Mt(a),r||(a.isMaster_=!0);var s=i,o=s.withCredentials,l=void 0!==o&&o,u=s.handleManifestRedirects,c=void 0!==u&&u;if(a.vhs_=n,a.withCredentials=l,a.handleManifestRedirects=c,!t)throw new Error("A non-empty playlist URL or object is required");return a.on("minimumUpdatePeriod",function(){a.refreshXml_()}),a.on("mediaupdatetimeout",function(){a.refreshMedia_(a.media().id)}),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=xd("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}Pt(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var i=this,r=e.sidx&&Du(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var a=Td(this.handleManifestRedirects,e.sidx.resolvedUri),s=function(a,s){if(!i.requestErrored_(a,s,t)){var o,l=i.masterPlaylistLoader_.sidxMapping_;try{o=kc(Bc(s.response).subarray(8))}catch(e){return void i.requestErrored_(e,s,t)}return l[r]={sidxInfo:e.sidx,sidx:o},xu(e,o,e.sidx.resolvedUri),n(!0)}};this.request=ep(a,this.vhs_.xhr,function(t,n,r,o){if(t)return s(t,n);if(!r||"mp4"!==r)return s({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+a,response:"",playlist:e,internal:!0,blackl
67istDuration:1/0,code:2},n);var l=e.sidx.byterange,u=l.offset,c=l.length;if(o.length>=c+u)return s(t,{response:o.subarray(u,u+c),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:Lh({byterange:e.sidx.byterange})},s)})}else this.mediaRequest_=window.setTimeout(function(){return n(!1)},0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},window.clearTimeout(this.minimumUpdatePeriodTimeout_),window.clearTimeout(this.mediaRequest_),window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,function(i){t.haveMetadata({startingState:n,playlist:e})}))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(window.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=window.setTimeout(function(){return t.load()},i)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_(function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=window.setTimeout(function(){return e.haveMaster_()},0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Td(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_(function(){return e(i,r)})):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)})},n.syncClientServerClock_=function(e){var t=this,n=Cc(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Sd(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var a;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}}))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=rp({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=ap(e,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||e;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return n&&n!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(window.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;
670===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=window.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},n.refreshXml_=function(){var e=this;this.requestMaster_(function(t,n){n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=lp(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];i?this.media_=n[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=window.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},xh(t.media(),Boolean(i))))}(),this.trigger("loadedplaylist")},t}(tp),cp={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},dp=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},hp=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},pp=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},fp=function(e){return function(){var t=pp(e),n=hp(new Worker(t));n.objURL=t;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},mp=function(e){return"var browserWorkerPolyFill = "+hp.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},gp=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},vp=mp(gp(function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,i,r,a,s,o,l,u,c,d,h,p,f,m,g,v,A,y,b,_,w,E,S,T,x,C,I,M,k,P,R,L,B,D,N,O,U,F,z,Q,V=e,H=Math.pow(2,32),G={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:n.getUint32(0)*H+n.getUint32(4)},MAX_UINT32:H},j=G.MAX_UINT32;!function(){var e;if(E={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in E)E.hasOwnProperty(e)&&(E[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);S=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),x=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),T=new Uint8Array([0,0,0,1]),C=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),I=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),M={video:C,audio:I},R=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),B=L,D=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=L,k=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,n,i=[],r=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)r+=i[t].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,r=8;t<i.length;t++)n.set(i[t],r),r+=i[t].byteLength;return n},i=function(){return t(E.dinf,t(E.dref,R))},r=function(e){return t(E.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},g=function(e){return t(E.hdlr,M[e])},m=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(E.mdhd,n)},f=function(e){return t(E.mdia,m(e),g(e.type),o(e))},s=function(e){return t(E.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},o=function(e){return t(E.minf,"video"===e.type?t(E.vmhd,k):t(E.smhd,P),i(),A(e))},l=function(e,n){for(var i=[],r=n.length;r--;)i[r]=b(n[r]);return t.apply(null,[E.moof,s(e)].concat(i))},u=function(e){for(var n=e.length,i=[];n--;)i[n]=h(e[n]);
vendor: 13,164 bytes, line 67
67return t.apply(null,[E.moov,d(4294967295)].concat(i).concat(c(e)))},c=function(e){for(var n=e.length,i=[];n--;)i[n]=_(e[n]);return t.apply(null,[E.mvex].concat(i))},d=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(E.mvhd,n)},v=function(e){var n,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(E.sdtp,a)},A=function(e){return t(E.stbl,y(e),t(E.stts,N),t(E.stsc,B),t(E.stsz,D),t(E.stco,L))},y=function(e){return t(E.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?O(e):U(e))},O=function(e){var n,i,r=e.sps||[],a=e.pps||[],s=[],o=[];for(n=0;n<r.length;n++)s.push((65280&r[n].byteLength)>>>8),s.push(255&r[n].byteLength),s=s.concat(Array.prototype.slice.call(r[n]));for(n=0;n<a.length;n++)o.push((65280&a[n].byteLength)>>>8),o.push(255&a[n].byteLength),o=o.concat(Array.prototype.slice.call(a[n]));if(i=[E.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(E.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),t(E.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];i.push(t(E.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return t.apply(null,i)},U=function(e){return t(E.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},p=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(E.tkhd,n)},b=function(e){var n,i,r,a,s,o,l;return n=t(E.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),o=Math.floor(e.baseMediaDecodeTime/j),l=Math.floor(e.baseMediaDecodeTime%j),i=t(E.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),s=92,"audio"===e.type?(r=w(e,s),t(E.traf,n,i,r)):(a=v(e),r=w(e,a.length+s),t(E.traf,n,i,r,a))},h=function(e){return e.duration=e.duration||4294967295,t(E.trak,p(e),f(e))},_=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(E.trex,n)},Q=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},z=function(e,n){var i,r,a,s,o,l;for(n+=20+16*(s=e.samples||[]).length,a=Q(s,n),(r=new Uint8Array(a.length+16*s.length)).set(a),i=a.length,l=0;l<s.length;l++)o=s[l],r[i++]=(4278190080&o.duration)>>>24,r[i++]=(16711680&o.duration)>>>16,r[i++]=(65280&o.duration)>>>8,r[i++]=255&o.duration,r[i++]=(4278190080&o.size)>>>24,r[i++]=(16711680&o.size)>>>16,r[i++]=(65280&o.size)>>>8,r[i++]=255&o.size,r[i++]=o.flags.isLeading<<2|o.flags.dependsOn,r[i++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,r[i++]=61440&o.flags.degradationPriority,r[i++]=15&o.flags.degradationPriority,r[i++]=(4278190080&o.compositionTimeOffset)>>>24,r[i++]=(16711680&o.compositionTimeOffset)>>>16,r[i++]=(65280&o.compositionTimeOffset)>>>8,r[i++]=255&o.compositionTimeOffset;return t(E.trun,r)},F=function(e,n){var i,r,a,s,o,l;for(n+=20+8*(s=e.samples||[]).length,a=Q(s,n),(i=new Uint8Array(a.length+8*s.length)).set(a),r=a.length,l=0;l<s.length;l++)o=s[l],i[r++]=(4278190080&o.duration)>>>24,i[r++]=(16711680&o.duration)>>>16,i[r++]=(65280&o.duration)>>>8,i[r++]=255&o.duration,i[r++]=(4278190080&o.size)>>>24,i[r++]=(16711680&o.size)>>>16,i[r++]=(65280&o.size)>>>8,i[r++]=255&o.size;return t(E.trun,i)},w=function(e,t){return"audio"===e.type?F(e,t):z(e,t)};var q,W,Y,X,K,$,J,Z,ee={ftyp:a=function(){return t(E.ftyp,S,T,S,x)},mdat:function(e){return t(E.mdat,e)},moof:l,moov:u,initSegment:function(e){var t,n=a(),i=u(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t}},te=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},ne=function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},ie=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},re=function(e,t){var n=ie();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ae=function(e,t){var n,i,r,a,s,o=t||0,l=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)s=a[i],o+=(r=re(s,o)).size,l.push(r);return l},se=function(e){var t,n,i,r,a,s,o=0,l=e.byteLength,u=e.nalCount,c=new Uint8Array(l+4*u),d=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)s=a[i],d.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c},oe=function(e){var t,n,i=0,r=e.byteLength,a=e.length,s=new Uint8Array(r+4*a),o=new DataView(s.buffer);for(t=0;t<e.length;t++)n=e[t],o.setUint32(i,n.data.byteLength),i+=4,s.set(n.data,i),i+=n.data.byteLength;return s},le={groupNalsIntoFrames:te,groupFramesIntoGops:ne,extendFirstKeyFrame:function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:ae,concatenateNalData:se,generateSampleTableForFrame:function(e,t){var n,i=[];return n=re(e,t||0),i.push(n),i},concatenateNalDataForFrame:oe},ue=[33,16,5,32,164,27],ce=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],de=function(e){for(var t=[];e--;)t.push(0);return t},he=function(e){return Object.keys(e).reduce(function(t,n){return t[n]=new Uint8Array(e[n].reduce(function(e,t){return e.concat(t)},[])),t},{})},pe=function(){if(!q){var e={96e3:[ue,[227,64],de(154),[56]],88200:[ue,[231],de(170),[56]],64e3:[ue,[248,192],de(240),[56]],48e3:[ue,[255,192],de(268),[55,148,128],de(54),[112]],44100:[ue,[255,192],de(268),[55,163,128],de(84),[112]],32e3:[ue,[255,192],de(268),[55,234],de(226),[112]],24e3:[ue,[255,192],de(268),[55,255,128],de(268),[111,112],de(126),[224]],16e3:[ue,[255,192],de(268),[55,255,128],de(268),[111,255],de(269),[223,108],de(195),[1,192]],12e3:[ce,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,253,128],de(259),[56]],11025:[ce,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,255,192],de(268),[55,175,128],de(108),[112]],8e3:[ce,de(268),[3,121,16],de(47),[7]]};q=he(e)}return q},fe=9e4;$=function(e,t){return W(K(e,t))},J=function(e,t){return Y(X(e),t)},Z=function(e,t,n){return X(n?e:e-t)};var me={ONE_SECOND_IN_TS:fe,secondsToVideoTs:W=function(e){return e*fe},secondsToAudioTs:Y=function(e,t){return e*t},videoTsToSeconds:X=function(e){return e/fe},audioTsToSeconds:K=function(e,t){return e/t},audioTsToVideoTs:$,videoTsToAudioTs:J,metadataTsToSeconds:Z},ge=function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n},ve=function(e,t,n,i){var r,a,s,o,l=0,u=0,c=0,d=0;if(t.length&&(r=me.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(me.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),d=(c=Math.floor(u/l))*l),!(c<1||d>me.ONE_SECOND_IN_TS/2))){for((a=pe()[e.samplerate])||(a=t[0].data),s=0;s<c;s++)o=t[0],t.splice(0,0,{data:a,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(me.videoTsToAudioTs(d,e.samplerate)),d}},Ae=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},ye=function(e){var t,n,i=0,r=new Uint8Array(ge(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r},be={prefixWithSilence:ve,trimAdtsFramesByEarliestDts:function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},generateSampleTable:Ae,concatenateFrameData:ye},_e=me.ONE_SECOND_IN_TS,we={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var n,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/_e,n=Math.floor(n)),n},collectDtsInfo:function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},Ee=4,Se=128,Te=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;t<e.byteLength&&e[t]!==Se;){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!n.payload&&i===Ee){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n},xe=function(e,t){var n,i,r,a,s=[];if(!(64&t[0]))return s;for(i=31&t[0],n=0;n<i;n++)a={type:3&t[2+(r=3*n)],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],s.push(a));return s},Ce=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n},Ie={parseSei:Te,parseUserData:function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:xe,discardEmulationPreventionBytes:Ce,USER_DATA_REGISTERED_ITU_T_T35:Ee},Me=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Qe(0,0),new Qe(0,1),new Qe(1,0),new Qe(1,1)],this.parse708captions_&&(this.cc708Stream_=new De({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Me.prototype=new V,Me.prototype.push=function(e){var t,n,i;
vendor: 6,877 bytes, line 67
67if("sei_rbsp"===e.nalUnitType&&(t=Ie.parseSei(e.escapedRBSP)).payload&&t.payloadType===Ie.USER_DATA_REGISTERED_ITU_T_T35&&(n=Ie.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Ie.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Me.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},Me.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Me.prototype.flush=function(){return this.flushStream("flush")},Me.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Me.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Me.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Me.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Me.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Me.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Me.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var ke={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Pe=function(e){var t=ke[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},Re=function(e){return 32<=e&&e<=127||160<=e&&e<=255},Le=function(e){this.windowNum=e,this.reset()};Le.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Le.prototype.getText=function(){return this.rows.join("\n")},Le.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Le.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Le.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Le.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Le.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Be=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new Le(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};Be.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new Le(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},Be.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Be.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var De=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach(function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)}),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};De.prototype=new V,De.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},De.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},De.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)i=31&(a=t[r++]),7==(n=a>>5)&&i>0&&(n=a=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},De.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r<t+n&&r<a.length;r++)i=a[r],Re(i)?r=this.handleText(r,s):24===i?r=this.multiByteCharacter(r,s):16===i?r=this.extendedCommands(r,s):128<=i&&i<=135?r=this.setCurrentWindow(r,s):152<=i&&i<=159?r=this.defineWindow(r,s):136===i?r=this.clearWindows(r,s):140===i?r=this.deleteWindows(r,s):137===i?r=this.displayWindows(r,s):138===i?r=this.hideWindows(r,s):139===i?r=this.toggleWindows(r,s):151===i?r=this.setWindowAttributes(r,s):144===i?r=this.setPenAttributes(r,s):145===i?r=this.setPenColor(r,s):146===i?r=this.setPenLocation(r,s):143===i?s=this.reset(r,s):8===i?s.currentWindow.backspace():12===i?s.currentWindow.clearText():13===i?s.currentWindow.pendingNewLine=!0:14===i?s.currentWindow.clearText():141===i&&r++},De.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return Re(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},De.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},De.prototype.initService=function(e,t){var n,i,r=this;return(n="SERVICE"+e)in this.serviceEncodings&&(i=this.serviceEncodings[n]),this.services[e]=new Be(e,i,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},De.prototype.handleText=function(e,t,n){var i,r,a=n&&n.isExtended,s=n&&n.isMultiByte,o=this.current708Packet.data,l=a?4096:0,u=o[e],c=o[e+1],d=t.currentWindow;
vendor: 10,061 bytes, line 67
67return t.textDecoder_&&!a?(s?(r=[u,c],e++):r=[u],i=t.textDecoder_.decode(new Uint8Array(r))):i=Pe(l|u),d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(i),e},De.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return Re(i)&&Re(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},De.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},De.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return i=n[++e],a.visible=(32&i)>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},De.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},De.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},De.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},De.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=1);return e},De.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=0);return e},De.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible^=1);return e},De.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].clearText();return e},De.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].reset();return e},De.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},De.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},De.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},De.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var Ne={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Oe=function(e){return null===e?"":(e=Ne[e]||e,String.fromCharCode(e))},Ue=14,Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ze=function(){for(var e=[],t=Ue+1;t--;)e.push("");return e},Qe=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=ze();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ze();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=ze()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))a=Oe((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=Oe((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~r||this.addFormatting(e.pts,["i"]),1&~r||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var s=Fe.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16&~t||(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&(14&~r||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(i)&&(0===r&&(r=null),a=Oe(i),a+=Oe(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};Qe.prototype=new V,Qe.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Qe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ze(),this.nonDisplayed_=ze(),this.lastControlCode_=null,this.column_=0,this.row_=Ue,this.rollUpRows_=2,this.formatting_=[]},Qe.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Qe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Qe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Qe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Qe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Qe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Qe.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Qe.prototype.isNormalChar=function(e){return e>=32&&e<=127},Qe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=Ue,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=ze(),this.displayed_=ze()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Qe.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},Qe.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Qe.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},Qe.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},Qe.prototype.shiftRowsUp_=function(){var e;
67for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<Ue+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Qe.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var Ve={CaptionStream:Me,Cea608Stream:Qe,Cea708Stream:De},He={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ge=8589934592,je=4294967296,qe="shared",We=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>je;)e+=n*Ge;return e},Ye=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||qe,this.push=function(e){this.type_!==qe&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=We(e.dts,i),e.pts=We(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Ye.prototype=new V;var Xe,Ke={TimestampRolloverStream:Ye,handleRollover:We},$e=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Je=function(e,t,n){return decodeURIComponent($e(e,t,n))},Ze=function(e,t,n){return unescape($e(e,t,n))},et=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},tt={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Je(e.data,1,t),e.value=Je(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Je(e.data,1,t),e.url=Je(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=Ze(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Xe=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(Xe.prototype.init.call(this),this.dispatchType=He.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,s,o,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=et(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<i;)t.data.set(r[0].data.subarray(0,i-l),l),l+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=et(t.data.subarray(10,14)),i-=et(t.data.subarray(16,20)));do{if((s=et(t.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((o={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+s+10)}).key=o.id,tt[o.id]&&(tt[o.id](o),"com.apple.streaming.transportStreamTimestamp"===o.owner)){var u=o.data,c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;c*=4,c+=3&u[7],o.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),n+=10,n+=s}while(n<i);this.trigger("data",t)}}},Xe.prototype=new V;var nt,it,rt,at=Xe,st=Ke.TimestampRolloverStream,ot=188,lt=71;(nt=function(){var e=new Uint8Array(ot),t=0;nt.prototype.init.call(this),this.push=function(n){var i,r=0,a=ot;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;a<i.byteLength;)i[r]!==lt||i[a]!==lt?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=ot,a+=ot);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===ot&&e[0]===lt&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new V,it=function(){var e,t,n,i;it.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<n;){var a=e[r],s=(31&e[r+1])<<8|e[r+2];a===He.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=s:a===He.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=s:a===He.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][s]=a),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
vendor: 9,148 bytes, line 67
67else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=He.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=He.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},it.prototype=new V,it.STREAM_TYPES={h264:27,adts:15},rt=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},s=function(e,t){var n,i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=!!(4&e[6]),192&(n=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},o=function(e,n,i){var r,a=new Uint8Array(e.size),o={type:n},l=0,u=0,c=!1;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,l=0;l<e.data.length;l++)r=e.data[l],a.set(r.data,u),u+=r.data.byteLength;s(a,o),c="video"===n||o.packetLength<=e.size,(i||c)&&(e.size=0,e.data.length=0),c&&t.trigger("data",o)}};rt.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case He.H264_STREAM_TYPE:e=i,t="video";break;case He.ADTS_STREAM_TYPE:e=r,t="audio";break;case He.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(s),e.size+=s.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=s.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[s.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(r,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}},rt.prototype=new V;var ut={PAT_PID:0,MP2T_PACKET_LENGTH:ot,TransportPacketStream:nt,TransportParseStream:it,ElementaryStream:rt,TimestampRolloverStream:st,CaptionStream:Ve.CaptionStream,Cea608Stream:Ve.Cea608Stream,Cea708Stream:Ve.Cea708Stream,MetadataStream:at};for(var ct in He)He.hasOwnProperty(ct)&&(ut[ct]=He[ct]);var dt,ht=ut,pt=me.ONE_SECOND_IN_TS,ft=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];dt=function(e){var t,n=0;dt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,s,o,l,u=0;if(e||(n=0),"audio"===i.type){var c;for(t&&t.length?(s=t,(t=new Uint8Array(s.byteLength+i.data.byteLength)).set(s),t.set(i.data,s.byteLength)):t=i.data;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof c&&(this.skipWarn_(c,u),c=null),a=2*(1&~t[u+1]),r=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,l=(o=1024*(1+(3&t[u+6])))*pt/ft[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:o,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:ft[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+r)}),n++,u+=r}else"number"!=typeof c&&(c=u),u++;"number"==typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},dt.prototype=new V;var mt,gt=dt;mt=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");a.set(e.subarray(r,r+s)),n=new DataView(a.buffer).getUint32(0),i=8*s,t-=s},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return(i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(n&2147483648>>>e)return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var vt,At,yt,bt=mt;At=function(){var e,t,n=0;At.prototype.init.call(this),this.push=function(i){var r;t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<a);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},At.prototype=new V,yt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},vt=function(){var e,t,n,i,r,a,s,o=new At;vt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,o.push(e))},o.on("data",function(s){var o={trackId:t,pts:n,dts:i,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)}),o.on("done",function(){e.trigger("done")}),o.on("partialdone",function(){e.trigger("partialdone")}),o.on("reset",function(){e.trigger("reset")}),o.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},s=function(e,t){var n,i=8,r=8;for(n=0;n<e;n++)0!==r&&(r=(i+t.readExpGolomb()+256)%256),i=0===r?i:r},r=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n},a=function(e){var t,n,i,r,a,o,l,u,c,d,h,p,f=0,m=0,g=0,v=0,A=[1,1];if(n=(t=new bt(e)).readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),yt[n]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,p=0;p<h;p++)t.readBoolean()&&s(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:A=[1,1];break;case 2:A=[12,11];break;case 3:A=[10,11];break;case 4:A=[16,11];break;case 5:A=[40,33];break;case 6:A=[24,11];break;case 7:A=[20,11];break;case 8:A=[32,11];break;case 9:A=[80,33];break;case 10:A=[18,11];break;case 11:A=[15,11];break;case 12:A=[64,33];break;case 13:A=[160,99];break;case 14:A=[4,3];break;case 15:A=[3,2];break;case 16:A=[2,1];break;case 255:A=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}A&&(A[0],A[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(u+1)-2*f-2*m,height:(2-d)*(c+1)*16-2*g-2*v,sarRatio:A}}},vt.prototype=new V;
67var _t,wt={H264Stream:vt,NalByteStream:At},Et=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],St=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},Tt=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:e(t,n+=St(t,n))},xt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Ct=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},It=function(e,t,n){return unescape(Ct(e,t,n))},Mt=function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return Et[(60&e[t+2])>>>2];t++}return null},kt=function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=xt(e.subarray(10,14)));do{if((n=xt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){if("com.apple.streaming.transportStreamTimestamp"===It(i,0,r)){var a=i.subarray(r+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null},Pt={isLikelyAacData:function(e){var t=Tt(e,0);return e.length>
vendor: 19,787 bytes, line 67
67=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:St,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:Mt,parseAacTimestamp:kt};(_t=function(){var e=new Uint8Array,t=0;_t.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,s,o=0,l=0;for(e.length?(s=e.length,(e=new Uint8Array(n.byteLength+s)).set(e.subarray(0,s)),e.set(n,s)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255&~e[l]||240&~e[l+1])l++;else{if(e.length-l<7)break;if(l+(o=Pt.parseAdtsSize(e,l))>e.length)break;a={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",a),l+=o}else{if(e.length-l<10)break;if(l+(o=Pt.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new V;var Rt,Lt,Bt,Dt,Nt=_t,Ot=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ut=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ft=wt.H264Stream,zt=Pt.isLikelyAacData,Qt=me.ONE_SECOND_IN_TS,Vt=function(e,t){t.stream=e,this.trigger("log",t)},Ht=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Vt.bind(e,r))}},Gt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},jt=function(e,t,n,i,r,a){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:a,baseMediaDecodeTime:e}};Lt=function(e,t){var n,i=[],r=0,a=0,s=1/0;n=(t=t||{}).firstSequenceNumber||0,Lt.prototype.init.call(this),this.push=function(t){we.collectDtsInfo(e,t),e&&Ot.forEach(function(n){e[n]=t[n]}),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var o,l,u,c,d,h,p;0!==i.length?(o=be.trimAdtsFramesByEarliestDts(i,e,r),e.baseMediaDecodeTime=we.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=be.prefixWithSilence(e,o,a,s),e.samples=be.generateSampleTable(o),u=ee.mdat(be.concatenateFrameData(o)),i=[],l=ee.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),we.clearDtsInfo(e),d=Math.ceil(1024*Qt/e.samplerate),o.length&&(h=o.length*d,this.trigger("segmentTimingInfo",jt(me.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,p||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+h})),this.trigger("data",{track:e,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){we.clearDtsInfo(e),i=[],this.trigger("reset")}},Lt.prototype=new V,Rt=function(e,t){var n,i,r,a=[],s=[];n=(t=t||{}).firstSequenceNumber||0,Rt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){we.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],Ut.forEach(function(t){e[t]=i[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var i,r,o,l,u,c,d,h,p=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=le.groupNalsIntoFrames(a),(o=le.groupFramesIntoGops(i))[0][0].keyFrame||((r=this.getGopForFusion_(a[0],e))?(p=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=le.extendFirstKeyFrame(o)),s.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");we.clearDtsInfo(e),o=f}we.collectDtsInfo(e,o),e.samples=le.generateSampleTable(o),u=ee.mdat(le.concatenateNalData(o)),e.baseMediaDecodeTime=we.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),d=o[0],h=o[o.length-1],this.trigger("segmentTimingInfo",jt(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=ee.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,s.length=0,this.trigger("reset")},this.resetStream_=function(){we.clearDtsInfo(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,s,o=45e3,l=1e4,u=1/0;for(s=0;s<this.gopCache_.length;s++)r=(a=this.gopCache_[s]).gop,e.pps&&Gt(e.pps[0],a.pps[0])&&e.sps&&Gt(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration)>=-l&&n<=o&&(!i||u>n)&&(i=a,u=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,o,l,u;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=n=0;t<s.length&&n<e.length&&(i=s[t],r=e[n],i.pts!==r.pts);)r.pts>i.pts?t++:(n++,a-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===n?e:n===e.length?null:((u=e.slice(n)).byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,o,l;for(t=s.length-1,n=e.length-1,a=null,o=!1;t>=0&&n>=0;){if(i=s[t],r=e[n],i.pts===r.pts){o=!0;break}i.pts>r.pts?t--:(t===s.length-1&&(a=n),n--)}if(!o&&null===a)return null;if(0===(l=o?n:a))return e;var u=e.slice(l),c=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}},Rt.prototype=new V,Dt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Dt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},Dt.prototype=new V,Dt.prototype.flush=function(e){var t,n,i,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Ut.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,Ot.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,i=ee.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(i.byteLength),s.initSegment.set(i),s.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=me.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=me.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=me.metadataTsToSeconds(n.pts,o,this.keepOriginalTimestamps),s.metadata.push(n);for(s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),r=0;r<s.captions.length;r++)t=s.captions[r],this.trigger("caption",t);for(r=0;r<s.metadata.length;r++)n=s.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Dt.prototype.setRemux=function(e){this.remuxTracks=e},Bt=function(e){var t,n,i=this,r=!0;Bt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new ht.MetadataStream,r.aacStream=new Nt,r.audioTimestampRolloverStream=new ht.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ht.TimestampRolloverStream("timed-metadata"),r.adtsStream=new gt,r.coalesceStream=new Dt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",function(e){r.aacStream.setTimestamp(e.timeStamp)}),r.aacStream.on("data",function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Lt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Ht(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ht.MetadataStream,r.packetStream=new ht.TransportPacketStream,r.parseStream=new ht.TransportParseStream,r.elementaryStream=new ht.ElementaryStream,r.timestampRolloverStream=new ht.TimestampRolloverStream,r.adtsStream=new gt,r.h264Stream=new Ft,r.captionStream=new ht.CaptionStream(e),r.coalesceStream=new Dt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?n||"audio"!==a.tracks[s].type||((n=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Rt(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Lt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Ht(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,we.clearDtsInfo(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,we.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=zt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Bt.prototype=new V;var qt,Wt,Yt,Xt,Kt,$t,Jt={Transmuxer:Bt,VideoSegmentStream:Rt,AudioSegmentStream:Lt,AUDIO_PROPERTIES:Ot,VIDEO_PROPERTIES:Ut,generateSegmentTimingInfo:jt},Zt={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}},en=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},tn=Zt.toUnsigned,nn=function e(t,n){var i,r,a,s,o,l=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=tn(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=en(t.subarray(i+4,i+8)),s=r>1?i+r:t.byteLength,a===n[0]&&(1===n.length?l.push(t.subarray(i+8,s)):(o=e(t.subarray(i+8,s),n.slice(1))).length&&(l=l.concat(o))),i=s;return l},rn=nn,an=Zt.toUnsigned,sn=G.getUint64,on=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=sn(e.subarray(4)):t.baseMediaDecodeTime=an(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},ln=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},un=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],o=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&c&&(t={flags:ln(e.subarray(d,d+4))},d+=4,s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=ln(e.subarray(d,d+4)),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},cn=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],a=2&i.flags[2],s=8&i.flags[2],o=16&i.flags[2],l=32&i.flags[2],u=65536&i.flags[0],c=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),s&&(i.defaultSampleDuration=n.getUint32(t),t+=4),o&&(i.defaultSampleSize=n.getUint32(t),t+=4),l&&(i.defaultSampleFlags=n.getUint32(t)),u&&(i.durationIsEmpty=!0),!r&&c&&(i.baseDataOffsetIsMoof=!0),i},dn=cn,hn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},pn="undefined"!=typeof window?window:void 0!==hn?hn:"undefined"!=typeof self?self:{},fn=Ie.discardEmulationPreventionBytes,mn=Ve.CaptionStream,gn=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null},vn=function(e,t,n){var i,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=o.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var u=e.subarray(r+1,r+1+a),c=gn(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:fn(u),trackId:n},c)i.pts=c.pts,i.dts=c.dts,s=c;else{if(!s){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=s.pts,i.dts=s.dts}l.seiNals.push(i)}return l},An=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,s=n.trackId,o=[];return e.forEach(function(e){var t=un(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+pn.BigInt(e.compositionTimeOffset),i+=pn.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)}),o=o.concat(t)}),o},yn=function(e,t){var n=rn(e,["moof","traf"]),i=rn(e,["mdat"]),r={},a=[];return i.forEach(function(e,t){var i=n[t];a.push({mdat:e,traf:i})}),a.forEach(function(e){var n,i,a=e.mdat,s=e.traf,o=rn(s,["tfhd"]),l=dn(o[0]),u=l.trackId,c=rn(s,["tfdt"]),d=c.length>0?on(c[0]).baseMediaDecodeTime:0,h=rn(s,["trun"]);t===u&&h.length>0&&(n=An(h,d,l),i=vn(a,n,u),r[u]||(r[u]={seiNals:[],logs:[]}),r[u].seiNals=r[u].seiNals.concat(i.seiNals),r[u].logs=r[u].logs.concat(i.logs))}),r},bn=function(e,t,n){if(null===t)return null;var i=yn(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}},_n=function(){var e,t,n,i,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new mn,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStream
vendor: 6,334 bytes, line 67
67s[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||n===e[0]&&i===t[n])},this.parse=function(e,a,s){var o;if(!this.isInitialized())return null;if(!a||!s)return null;if(this.isNewInit(a,s))n=a[0],i=s[n];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,s)}return(o=bn(e,n,i))&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},wn=_n,En=Zt.toUnsigned,Sn=Zt.toHexString,Tn=G.getUint64;qt=function(e){var t={};return rn(e,["moov","trak"]).reduce(function(e,t){var n,i,r,a,s;return(n=rn(t,["tkhd"])[0])?(i=n[0],a=En(n[r=0===i?12:20]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),(s=rn(t,["mdia","mdhd"])[0])?(r=0===(i=s[0])?12:20,e[a]=En(s[r]<<24|s[r+1]<<16|s[r+2]<<8|s[r+3]),e):null):null},t)},Wt=function(e,t){var n=rn(t,["moof","traf"]).reduce(function(t,n){var i,r,a=rn(n,["tfhd"])[0],s=En(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),o=e[s]||9e4,l=rn(n,["tfdt"])[0],u=new DataView(l.buffer,l.byteOffset,l.byteLength);return"bigint"==typeof(i=1===l[0]?Tn(l.subarray(4,12)):u.getUint32(4))?r=i/pn.BigInt(o):"number"!=typeof i||isNaN(i)||(r=i/o),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<t&&(t=r),t},1/0);return"bigint"==typeof n||isFinite(n)?n:0},Yt=function(e,t){var n,i=rn(t,["moof","traf"]),r=0,a=0;if(i&&i.length){var s=rn(i[0],["tfhd"])[0],o=rn(i[0],["trun"])[0],l=rn(i[0],["tfdt"])[0];if(s&&(n=dn(s).trackId),l&&(r=on(l).baseMediaDecodeTime),o){var u=un(o);u.samples&&u.samples.length&&(a=u.samples[0].compositionTimeOffset||0)}}var c=e[n]||9e4;"bigint"==typeof r&&(a=pn.BigInt(a),c=pn.BigInt(c));var d=(r+a)/c;return"bigint"==typeof d&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),d},Xt=function(e){var t=rn(e,["moov","trak"]),n=[];return t.forEach(function(e){var t=rn(e,["mdia","hdlr"]),i=rn(e,["tkhd"]);t.forEach(function(e,t){var r,a,s=en(e.subarray(8,12)),o=i[t];"vide"===s&&(a=0===(r=new DataView(o.buffer,o.byteOffset,o.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),n.push(a))})}),n},$t=function(e){var t=0===e[0]?12:20;return En(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Kt=function(e){var t=rn(e,["moov","trak"]),n=[];return t.forEach(function(e){var t,i,r={},a=rn(e,["tkhd"])[0];a&&(i=(t=new DataView(a.buffer,a.byteOffset,a.byteLength)).getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var s=rn(e,["mdia","hdlr"])[0];if(s){var o=en(s.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=rn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=en(u.subarray(4,8));var c,d=rn(u,[r.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(r.codec)?(c=d.subarray(78),"avcC"===en(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=Sn(c[9]),r.codec+=Sn(c[10]),r.codec+=Sn(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=d.subarray(28),"esds"===en(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+Sn(c[19]),r.codec+="."+Sn(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=rn(e,["mdia","mdhd"])[0];h&&(r.timescale=$t(h)),n.push(r)}),n};var xn={findBox:rn,parseType:en,timescale:qt,startTime:Wt,compositionStartTime:Yt,videoTrackIds:Xt,tracks:Kt,getTimescaleFromMediaHeader:$t},Cn=function(e){var t=31&e[1];return t<<=8,t|=e[2]},In=function(e){return!!(64&e[1])},Mn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},kn=function(e){var t={},n=In(e),i=4+Mn(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r;r=3+((15&e[i+1])<<8|e[i+2])-4;for(var a=12+((15&e[i+10])<<8|e[i+11]);a<r;){var s=i+a;t[(31&e[s+1])<<8|e[s+2]]=e[s],a+=5+((15&e[s+3])<<8|e[s+4])}return t}},Pn=function(e){if(!In(e))return null;var t=4+Mn(e);if(t>=e.byteLength)return null;var n,i=null;return 192&(n=e[t+7])&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i},Rn=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Ln={parseType:function(e,t){var n=Cn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=In(e),n=4+Mn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:kn,parsePayloadUnitStartIndicator:In,parsePesType:function(e,t){switch(t[Cn(e)]){case He.H264_STREAM_TYPE:return"video";case He.ADTS_STREAM_TYPE:return"audio";case He.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:Pn,videoPacketContainsKeyFrame:function(e){for(var t=4+Mn(e),n=e.subarray(t),i=0,r=0,a=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===Rn(31&n[r+3])&&(a=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Rn(31&n[r+3])&&(a=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Rn(31&n[r+3])&&(a=!0),a}},Bn=Ke.handleRollover,Dn={};Dn.ts=Ln,Dn.aac=Pt;var Nn=me.ONE_SECOND_IN_TS,On=188,Un=71,Fn=function(e,t){for(var n,i=0,r=On;r<e.byteLength;)if(e[i]!==Un||e[r]!==Un)i++,r++;else{switch(n=e.subarray(i,r),Dn.ts.parseType(n,t.pid)){case"pat":t.pid=Dn.ts.parsePat(n);break;case"pmt":var a=Dn.ts.parsePmt(n);t.table=t.table||{}
67,Object.keys(a).forEach(function(e){t.table[e]=a[e]})}i+=On,r+=On}},zn=function(e,t,n){for(var i,r,a,s,o=0,l=On,u=!1;l<=e.byteLength;)if(e[o]!==Un||e[l]!==Un&&l!==e.byteLength)o++,l++;else{if(i=e.subarray(o,l),"pes"===Dn.ts.parseType(i,t.pid)&&(r=Dn.ts.parsePesType(i,t.table),a=Dn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=Dn.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),u=!0)),u)break;o+=On,l+=On}for(o=(l=e.byteLength)-On,u=!1;o>=0;)if(e[o]!==Un||e[l]!==Un&&l!==e.byteLength)o--,l--;else{if(i=e.subarray(o,l),"pes"===Dn.ts.parseType(i,t.pid)&&(r=Dn.ts.parsePesType(i,t.table),a=Dn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=Dn.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),u=!0)),u)break;o-=On,l-=On}},Qn=function(e,t,n){for(var i,r,a,s,o,l,u,c=0,d=On,h=!1,p={data:[],size:0};d<e.byteLength;)if(e[c]!==Un||e[d]!==Un)c++,d++;else{if(i=e.subarray(c,d),"pes"===Dn.ts.parseType(i,t.pid)&&(r=Dn.ts.parsePesType(i,t.table),a=Dn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(a&&!h&&(s=Dn.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),h=!0),!n.firstKeyFrame))){if(a&&0!==p.size){for(o=new Uint8Array(p.size),l=0;p.data.length;)u=p.data.shift(),o.set(u,l),l+=u.byteLength;if(Dn.ts.videoPacketContainsKeyFrame(o)){var f=Dn.ts.parsePesTime(o);f?(n.firstKeyFrame=f,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(i),p.size+=i.byteLength}if(h&&n.firstKeyFrame)break;c+=On,d+=On}for(c=(d=e.byteLength)-On,h=!1;c>=0;)if(e[c]!==Un||e[d]!==Un)c--,d--;else{if(i=e.subarray(c,d),"pes"===Dn.ts.parseType(i,t.pid)&&(r=Dn.ts.parsePesType(i,t.table),a=Dn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&a&&(s=Dn.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),h=!0)),h)break;c-=On,d-=On}},Vn=function(e,t){if(e.audio&&e.audio.length){var n=t;(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=Bn(e.dts,n),e.pts=Bn(e.pts,n),e.dtsTime=e.dts/Nn,e.ptsTime=e.pts/Nn})}if(e.video&&e.video.length){var i=t;if((void 0===i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach(function(e){e.dts=Bn(e.dts,i),e.pts=Bn(e.pts,i),e.dtsTime=e.dts/Nn,e.ptsTime=e.pts/Nn}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=Bn(r.dts,i),r.pts=Bn(r.pts,i),r.dtsTime=r.dts/Nn,r.ptsTime=r.pts/Nn}}},Hn=function(e){for(var t,n=!1,i=0,r=null,a=null,s=0,o=0;e.length-o>=3;){switch(Dn.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){n=!0;break}if((s=Dn.aac.parseId3TagSize(e,o))>e.length){n=!0;break}null===a&&(t=e.subarray(o,o+s),a=Dn.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){n=!0;break}if((s=Dn.aac.parseAdtsSize(e,o))>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+s),r=Dn.aac.parseSampleRate(t)),i++,o+=s;break;default:o++}if(n)return null}if(null===r||null===a)return null;var l=Nn/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*l,pts:a+1024*i*l}]}},Gn=function(e){var t={pid:null,table:null},n={};for(var i in Fn(e,t),t.table)if(t.table.hasOwnProperty(i))switch(t.table[i]){case He.H264_STREAM_TYPE:n.video=[],Qn(e,t,n),0===n.video.length&&delete n.video;break;case He.ADTS_STREAM_TYPE:n.audio=[],zn(e,t,n),0===n.audio.length&&delete n.audio}return n},jn={inspect:function(e,t){var n;return(n=Dn.aac.isLikelyAacData(e)?Hn(e):Gn(e))&&(n.audio||n.video)?(Vn(n,t),n):null},parseAudioPes_:zn},qn=function(e,t){t.on("data",function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){var n={start:{decode:me.videoTsToSeconds(t.start.dts),presentation:me.videoTsToSeconds(t.start.pts)},end:{decode:me.videoTsToSeconds(t.end.dts),presentation:me.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:me.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=me.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),t.on("audioSegmentTimingInfo",function(t){var n={start:{decode:me.videoTsToSeconds(t.start.dts),presentation:me.videoTsToSeconds(t.start.pts)},end:{decode:me.videoTsToSeconds(t.end.dts),presentation:me.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:me.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=me.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:me.videoTsToSeconds(t.start),end:me.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:me.videoTsToSeconds(t.start),end:me.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})},Wn=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Jt.Transmuxer(this.options),qn(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new wn,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,n=e.data,i=xn.startTime(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=xn.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,i="number"!=typeof n||isNaN(n)?void 0:n*me.ONE_SECOND_IN_TS,r=jn.inspect(t,i),a=null;r&&((a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(me.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(me.secondsToVideoTs(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();
67self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Wn(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new Wn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})),Ap=fp(vp),yp=function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,s=i.captions,o=i.captionStreams,l=i.metadata,u=i.videoFrameDtsTime,c=i.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:l});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==u&&(h.videoFrameDtsTime=u),void 0!==c&&(h.videoFramePtsTime=c),n(h)},bp=function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)},_p=function(e,t){t.gopInfo=e.data.gopInfo},wp=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,c=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,v=e.isEndOfTimeline,A={buffer:[]},y=v,b=function(n){t.currentTransmux===e&&("data"===n.data.action&&yp(n,A,s),"trackinfo"===n.data.action&&o(n.data.trackInfo),"gopInfo"===n.data.action&&_p(n,A),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&u(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&p(n.data.caption),"endedtimeline"===n.data.action&&(y=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(y||(t.onmessage=null,bp({transmuxedData:A,callback:f}),Ep(t))))};if(t.onmessage=b,i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var _=n instanceof ArrayBuffer?n:n.buffer,w=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:_,byteOffset:w,byteLength:n.byteLength},[_])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Ep=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():wp(e.currentTransmux))},Sp=function(e,t){e.postMessage({action:t}),Ep(e)},Tp=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void Sp(t,e);t.transmuxQueue.push(Sp.bind(null,t,e))},xp=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void wp(e);e.transmuxer.transmuxQueue.push(e)},Cp={reset:function(e){Tp("reset",e)},endTimeline:function(e){Tp("endTimeline",e)},transmux:xp,createTransmuxer:function(e){var t=new Ap;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t}},Ip=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=b({},e,{endAction:null,transmuxer:null,callback:null}),a=function r(a){a.data.action===n&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),i(a.data))};if(t.addEventListener("message",a),e.data){var s=e.data instanceof ArrayBuffer;r.byteOffset=s?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var o=[s?e.data:e.data.buffer];t.postMessage(r,o)}else t.postMessage(r)},Mp={FAILURE:2,TIMEOUT:-101,ABORTED:-102},kp=function(e){e.forEach(function(e){e.abort()})},Pp=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},Rp=function(e){var t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n},Lp=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Mp.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Mp.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Mp.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Mp.FAILURE,xhr:t}:null},Bp=function(e,t,n){return function(i,r){var a=r.response,s=Lp(i,r);if(s)return n(s,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Mp.FAILURE,xhr:r},e);for(var o=new DataView(a),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),u=0;u<t.length;u++)t[u].bytes=l;return n(null,e)}},Dp=function(e,t){var n=bd(e.map.bytes);if("mp4"!==n){var i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,
67code:Mp.FAILURE})}Ip({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return e.map.bytes=r,i.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))}),t(null)}})},Np=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=Lp(e,i);if(r)return n(r,t);var a=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,Dp(t,function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)})}},Op=function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=Lp(e,r);if(a)return n(a,t);var s="arraybuffer"!==i&&r.responseText?dp(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=Pp(r),t.key?t.encryptedBytes=new Uint8Array(s):t.bytes=new Uint8Array(s),n(null,t)}},Up=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=t.map&&t.map.tracks||{},m=Boolean(f.audio&&f.video),g=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),A=r.bind(null,t,"video","start"),y=r.bind(null,t,"video","end"),b=function(){return xp({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(m&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){g&&void 0!==e.start&&(g(e.start),g=null),v&&void 0!==e.end&&v(e.end)},onVideoTimingInfo:function(e){A&&void 0!==e.start&&(A(e.start),A=null),y&&void 0!==e.end&&y(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,n){o(t,e,n)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:u,onEndedTimeline:function(){c()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})};Ip({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var r=e.result;r&&(i(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),i=null,r.hasAudio&&!m&&g(r.audioStart),r.hasVideo&&A(r.videoStart),g=null,A=null),b()}})},Fp=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=new Uint8Array(n);if(_d(f)){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),i(t,g);var v=function(e){d(t,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};Ip({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=f=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),m.video&&i.byteLength&&t.transmuxer?Ip({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=f=e.data,e.logs.forEach(function(e){p(bs.mergeOptions(e,{stream:"mp4CaptionParser"}))}),v(e.captions)}}):v()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=bd(f)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});Up({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,t,{})},zp=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,s=e.decryptionWorker,o=function e(n){if(n.data.source===i){s.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}};s.addEventListener("message",o),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),s.postMessage(Oh({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},Qp=function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;zp({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t}
67,function(e){n.bytes=e,Fp({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})})},Vp=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,kp(t),h(e,g);if((f+=1)===t.length){var v=function(){if(g.encryptedBytes)return Qp({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p});Fp({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return zp({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},function(e){g.map.bytes=e,Dp(g,function(e){if(e)return kp(t),h(e,g);v()})});v()}}}},Hp=function(e){var t=e.loadendState,n=e.abortFn;return function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}},Gp=function(e){var t=e.segment,n=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn,function(e){if(!e.target.aborted)return t.stats=bs.mergeOptions(t.stats,Rp(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},jp=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,s=e.progressFn,o=e.trackInfoFn,l=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,c=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,p=e.isEndOfTimeline,f=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,A=[],y=Vp({activeXhrs:A,decryptionWorker:i,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var b=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&b.push(r.map.key);var _=t(bs.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),Bp(r,b,y));A.push(_)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var w=t(bs.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),Bp(r,[r.map.key],y));A.push(w)}var E=t(bs.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Lh(r.map)}),Np({segment:r,finishProcessingFn:y}));A.push(E)}var S=bs.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Lh(r)}),T=t(S,Op({segment:r,finishProcessingFn:y,responseType:S.responseType}));T.addEventListener("progress",Gp({segment:r,progressFn:s,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m})),A.push(T);var x={};return A.forEach(function(e){e.addEventListener("loadend",Hp({loadendState:x,abortFn:a}))}),function(){return kp(A)}},qp=xd("CodecUtils"),Wp=function(e){var t=e.attributes||{};if(t.CODECS)return Hs(t.CODECS)},Yp=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},Xp=function(e,t){if(!Yp(e,t))return!0;var n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1},Kp=function(e){var t={};return e.forEach(function(e){var n=e.mediaType,i=e.type,r=e.details;t[n]=t[n]||[],t[n].push(Vs(""+i+r))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return qp("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]}),t},$p=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Jp=function(e,t){var n=t.attributes||{},i=Kp(Wp(t)||[]);if(Yp(e,t)&&!i.audio&&!Xp(e,t)){var r=Kp(Gs(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Zp=xd("PlaylistSelector"),ef=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},tf=function(e,t){if(!e)return"";var n=window.getComputedStyle(e);return n?n[t]:""},nf=function(e,t){var n=e.slice();e.sort(function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r})},rf=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||window.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),n-(i=i||window.Number.MAX_VALUE)},af=function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||window.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),n===(i=i||window.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},sf=function(e,t,n,i,r,a){if(e){var s={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},o=e.playlists;oh.isAudioOnly(e)&&(o=a.getAudioTrackPlaylists_(),s.audioOnly=!0);var l=o.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||window.Number.MAX_VALUE,width:t,height:n,playlist:e}});nf(l,function(e,t){return e.bandwidth-t.bandwidth});var u=(l=l.filter(function(e){return!oh.isIncompatible(e.playlist)})).filter(function(e){return oh.isEnabled(e.playlist)});u.length||(u=l.filter(function(e){return!oh.isDisabled(e.playlist)}));var c=u.filter(function(e){return e.bandwidth*cp.BANDWIDTH_VARIANCE<t}),d=c[c.length-1],h=c.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(!1===r){var p=h||u[0]||l[0];if(p&&p.playlist){var f="sortedPlaylistReps";return h&&(f="bandwidthBestRep"),u[0]&&(f="enabledPlaylistReps"),Zp("choosing "+ef(p)+" using "+f+" with options",s),p.playlist}return Zp("could not choose a playlist with options",s),null}var m=c.filter(function(e){return e.width&&e.height});nf(m,function(e,t){return e.width-t.width});var g=m.filter(function(e){return e.width===n&&e.height===i});d=g[g.length-1];var v,A,y,b,_=g.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(_||(A=(v=m.filter(function(e){return e.width>n||e.height>i})).filter(function(e){return e.width===v[0].width&&e.height===v[0].height}),d=A[A.length-1],y=A.filter(function(e){return e.bandwidth===d.bandwidth})[0]),a.experimentalLeastPixelDiffSelector){var w=m.map(function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e});nf(w,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),b=w[0]}var E=b||y||_||h||u[0]||l[0];if(E&&E.playlist){var S="sortedPlaylistReps";return b?S="leastPixelDiffRep":y?S="resolutionPlusOneRep":_?S="resolutionBestRep":h?S="bandwidthBestRep":u[0]&&(S="enabledPlaylistReps"),Zp("choosing "+ef(E)+" using "+S+" with options",s),E.playlist}return Zp("could not choose a playlist with options",s),null}},of=function(){var e=this.useDevicePixelRatio&&window.devicePixelRatio||1;return sf(this.playlists.master,this.systemBandwidth,parseInt(tf(this.tech_.el(),"width"),10)*e,parseInt(tf(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},lf=function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&window.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),sf(this.playlists.master,t,parseInt(tf(this.tech_.el(),"width"),10)*i,parseInt(tf(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},uf=function(e){var t=e.master,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,l=e.syncController,u=t.playlists.filter(function(e){return!oh.isIncompatible(e)}
67),c=u.filter(oh.isEnabled);c.length||(c=u.filter(function(e){return!oh.isDisabled(e)}));var d=c.filter(oh.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=l.getSyncPoint(e,r,o,n)?1:2;return{playlist:e,rebufferingImpact:oh.estimateSegmentRequestTime(a,i,e)*t-s}}),h=d.filter(function(e){return e.rebufferingImpact<=0});return nf(h,function(e,t){return rf(t.playlist,e.playlist)}),h.length?h[0]:(nf(d,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),d[0]||null)},cf=function(){var e=this,t=this.playlists.master.playlists.filter(oh.isEnabled);return nf(t,function(e,t){return rf(e,t)}),t.filter(function(t){return!!Jp(e.playlists.master,t).video})[0]||null},df=function(e){var t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(function(e){t.set(e,n),n+=e.byteLength})),t},hf=function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var a=n,s=n,o=!1,l=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];l&&(a=l.label,s=l.language,o=l.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:o,label:a,language:s},!1).track}}},pf=function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var r=window.WebKitDataCue||window.VTTCue;n.forEach(function(e){var n=e.stream;t[n].addCue(new r(e.startTime+i,e.endTime+i,e.text))})}},ff=function(e){Object.defineProperties(e.frame,{id:{get:function(){return bs.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return bs.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return bs.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},mf=function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var a=window.WebKitDataCue||window.VTTCue,s=t.metadataTrack_;if(s&&(n.forEach(function(e){var t=e.cueTime+i;!("number"!=typeof t||window.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach(function(e){var n=new a(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,ff(n),s.addCue(n)})}),s.cues&&s.cues.length)){for(var o=s.cues,l=[],u=0;u<o.length;u++)o[u]&&l.push(o[u]);var c=l.reduce(function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),d=Object.keys(c).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var n=c[e],i=Number(d[t+1])||r;n.forEach(function(e){e.endTime=i})})}}},gf=function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}
67,vf=function(e,t,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=e&&r.endTime<=t&&n.removeCue(r)},Af=function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var i=[],r=0,a=0;a<t.length;a++)t[n].startTime===t[a].startTime&&t[n].endTime===t[a].endTime&&t[n].text===t[a].text&&++r>1&&i.push(t[a]);i.length&&i.forEach(function(t){return e.removeCue(t)})}},yf=function(e,t,n){if(null==t||!e.length)return[];var i,r=Math.ceil((t-n+3)*Ed);for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)},bf=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var i=t[0].pts,r=0;r<e.length&&!(e[r].pts>=i);r++);return e.slice(0,r).concat(t)},_f=function(e,t,n,i){for(var r=Math.ceil((t-i)*Ed),a=Math.ceil((n-i)*Ed),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var l=o+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),s.splice(l,o-l+1),s},wf=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(a!==i[r])return!1;if(e[a]!==t[a])return!1}return!0},Ef=22,Sf=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a<t.length;a++){var s=t[a];if(e===s.timeline&&(i.push(a),(r+=s.duration)>n))return a}return 0===i.length?0:i[i.length-1]},Tf=1,xf=500,Cf=function(e){return"number"==typeof e&&isFinite(e)},If=1/60,Mf=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null},kf=function(e,t,n){var i=t-cp.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));var r=t-n;return Math.min(r,i)},Pf=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=void 0===l?[]:l,c=e.mediaIndex,d=e.partIndex,h=e.timeline,p=u.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(f+=" with independent "+e.independent);var m="number"==typeof d,g=e.segment.uri?"segment":"pre-segment",v=m?Gd({preloadSegment:i})-1:0;return g+" ["+(s+c)+"/"+(s+p)+"]"+(m?" part ["+d+"/"+v+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+f+"] playlist ["+o+"]"},Rf=function(e){return e+"TimingInfo"},Lf=function(e){var t=e.segmentTimeline,n=e.currentTimeline,i=e.startOfSegment,r=e.buffered;return e.overrideCheck||t!==n?t<n?i:r.length?r.end(r.length-1):i:null},Bf=function(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(n===i)return!1;if("audio"===r){var s=t.lastTimelineChange({type:"main"});return!s||s.to!==i}if("main"===r&&a){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==i}return!1},Df=function(e){var t=0;return["video","audio"].forEach(function(n){var i=e[n+"TimingInfo"];if(i){var r,a=i.start,s=i.end;"bigint"==typeof a||"bigint"==typeof s?r=window.BigInt(s)-window.BigInt(a):"number"==typeof a&&"number"==typeof s&&(r=s-a),void 0!==r&&r>t&&(t=r)}}),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},Nf=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+Cd},Of=function(e,t){if("hls"!==t)return null;var n=Df({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;var i=e.playlist.targetDuration,r=Nf({segmentDuration:n,maxDuration:2*i}),a=Nf({segmentDuration:n,maxDuration:i}),s="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+n+" when the reported duration is "+e.duration+" and the target duration is "+i+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";
67return r||a?{severity:r?"warn":"info",message:s}:null},Uf=function(e){function t(t,n){var i;if(i=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=bs.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=xd("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(Mt(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i}Pt(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return Cp.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,window.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e
67:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Cp.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return bs.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,i=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Uh(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Fh(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var s=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!s.parts||!s.parts.length||!s.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Cp.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){0===--r&&n()};for(var s in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=_f(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)vf(e,t,this.inbandTextTracks_[s]);vf(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),xf)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Ud(e)||0,n=Fd(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=Sf(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var o=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[l+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=l+1):s.mediaIndex=this.mediaIndex+1}else{var u=oh.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=u.segmentIndex,d=u.startTime,h=u.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),s.mediaIndex=c,s.startOfSegment=d,s.partIndex=h}var p=a[s.mediaIndex],f=p&&"number"==typeof s.partIndex&&p.parts&&p.parts[s.partIndex];if(!p||"number"==typeof s.partIndex&&!f)return null;if("number"!=typeof s.partIndex&&p.parts&&(s.partIndex=0,f=p.parts[0]),!n&&f&&!f.independent)if(0===s.partIndex){var m=a[s.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(s.mediaIndex-=1,s.partIndex=m.parts.length-1,s.independent="previous segment")}else p.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part");var v=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&v&&!this.seeking_()?null:this.generateSegmentInfo_(s)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=n.segments[i],c="number"==typeof s&&u.parts[s],d={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:c?s:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==o?o:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});
67var p=Ud(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=yf(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return Lf(e)},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=oh.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=Dd(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var s=uf({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a-s.rebufferingImpact,l=.5;a<=Cd&&(l=1),!s.playlist||s.playlist.uri===this.playlist_.uri||o<l||(this.bandwidth=s.playlist.attributes.BANDWIDTH*cp.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+Pf(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},wf(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=Rf(t);r[a]=r[a]||{},r[a][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(function(e){r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)}),Object.keys(r).forEach(function(e){var t=r[e],a=t.startTime,s=t.endTime,o=t.captions,l=n.inbandTextTracks_;n.logger_("adding cues from "+a+" -> "+s+" for "+e),hf(l,n.vhs_.tech_,e),vf(a,s,l[e]),pf({captionArray:o,inbandTextTracks:l,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();gf(this.inbandTextTracks_,n,this.vhs_.tech_),mf({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&Bf({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed;return!(i&&!e.videoTimingInfo||n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||Bf({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.ke
67y,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Rf(t.type)].start;else{var i,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==n.mediaIndex||s.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var a=Uh(i);if(this.activeInitSegmentId_===a)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=a}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Nd(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Nd(o).join(", "));var l=s.length?s.start(0):0,u=s.length?s.end(s.length-1):0,c=o.length?o.start(0):0,d=o.length?o.end(o.length-1):0;if(u-l<=Tf&&d-c<=Tf)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+Nd(s).join(", ")+", video buffer: "+Nd(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:a}));var h=this.currentTime_()-Tf;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h),this.remove(0,h,function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in "+Tf+"s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=window.setTimeout(function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()},1e3*Tf)},!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(t.code!==Ef?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(e){var t=e.segmentInfo,n=e.type,i=e.initSegment,r=e.data,a=e.bytes;if(!a){var s=[r],o=r.byteLength;i&&(s.unshift(i),o+=i.byteLength),a=df({bytes:o,segments:s})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:a}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=e+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push(function(){var n=b({},e,{forceTimestampOffset:!0});b(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)})},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));
67var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,s=i||r&&a;this.logger_("Requesting "+Pf(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=jp({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:s,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,a=n.stream;t.logger_(Pf(e)+" logged from transmuxer stream "+a+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t=kf(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=a}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<If?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+If):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Mp.ABORTED)return;return this.pause(),e.code===Mp.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=bf(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,l=e.audioTimingInfo;if(void 0!==t)return t;if(!s)return l.start;var u=n.segments[i-1];return 0!==i&&u&&void 0!==u.start&&u.end===r+a?o.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&i,s=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||
67(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=Mf(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=e.timingInfo.start,e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=Of(e,this.sourceType_);if(t&&("warn"===t.severity?bs.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+Pf(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+Pf(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Pf(e))},n.recordThroughput_=function(e){if(e.duration<If)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+If);else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(Cf(n)&&Cf(i)){vf(n,i,this.segmentMetadataTrack_);var r=window.WebKitDataCue||window.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},s=new r(n,i,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}},t}(bs.EventTarget);function Ff(){}var zf,Qf=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},Vf=["video","audio"],Hf=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},Gf=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null},jf=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!Hf(t,n)){if(r.type!==t){if(null===(i=Gf(t,n.queue)))return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[t]=r,r.action(t,n),r.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n))}},qf=function(e,t){var n=t[e+"Buffer"],i=Qf(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},Wf=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},Yf={appendBuffer:function(e,t,n){return function(i,r){var a=r[i+"Buffer"];if(Wf(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" b
67ytes to "+i+"Buffer");try{a.appendBuffer(e)}catch(e){r.logger_("Error with code "+e.code+" "+(e.code===Ef?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(e)}}}},remove:function(e,t){return function(n,i){var r=i[n+"Buffer"];if(Wf(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(r){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},timestampOffset:function(e){return function(t,n){var i=n[t+"Buffer"];Wf(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},callback:function(e){return function(t,n){e()}},endOfStream:function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(e){bs.log.warn("Failed to call media source endOfStream",e)}}}},duration:function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(e){bs.log.warn("Failed to set media source duration",e)}}},abort:function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(Wf(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(t){bs.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},addSourceBuffer:function(e,t){return function(n){var i=Qf(e),r=Ws(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=n.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),a.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=a}},removeSourceBuffer:function(e){return function(t){var n=t[e+"Buffer"];if(qf(e,t),Wf(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(t){bs.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},changeType:function(e){return function(t,n){var i=n[t+"Buffer"],r=Ws(e);Wf(n.mediaSource,i)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),i.changeType(r),n.codecs[t]=e)}}},Xf=function(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn,a=e.name;n.queue.push({type:t,action:i,doneFn:r,name:a}),jf(t,n)},Kf=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}jf(e,t)}},$f=function(e){function t(t){var n;return(n=e.call(this)||this).mediaSource=t,n.sourceopenListener_=function(){return jf("mediaSource",Mt(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=xd("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Kf("video",Mt(n)),n.onAudioUpdateEnd_=Kf("audio",Mt(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}Pt(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
67,n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){Xf({type:"mediaSource",sourceUpdater:this,action:Yf.addSourceBuffer(e,t),name:"addSourceBuffer"})},n.abort=function(e){Xf({type:e,sourceUpdater:this,action:Yf.abort(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Xf({type:"mediaSource",sourceUpdater:this,action:Yf.removeSourceBuffer(e),name:"removeSourceBuffer"}):bs.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!bs.browser.IE_VERSION&&!bs.browser.IS_FIREFOX&&window.MediaSource&&window.MediaSource.prototype&&"function"==typeof window.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return window.SourceBuffer&&window.SourceBuffer.prototype&&"function"==typeof window.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?Xf({type:e,sourceUpdater:this,action:Yf.changeType(t),name:"changeType"}):bs.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)})},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");var s=t;if(Xf({type:r,sourceUpdater:this,action:Yf.appendBuffer(a,i||{mediaIndex:-1},s),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var o=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+o.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,o.forEach(function(e){n.appendBuffer.apply(n,e)})}},n.audioBuffered=function(){return Wf(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:bs.createTimeRange()},n.videoBuffered=function(){return Wf(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:bs.createTimeRange()},n.buffered=function(){var e=Wf(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Wf(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():Ld(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=Ff),Xf({type:"mediaSource",sourceUpdater:this,action:Yf.duration(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=Ff),"string"!=typeof e&&(e=void 0),Xf({type:"mediaSource",sourceUpdater:this,action:Yf.endOfStream(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=Ff),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Xf({type:"audio",sourceUpdater:this,action:Yf.remove(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=Ff),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Xf({type:"video",sourceUpdater:this,action:Yf.remove(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!Hf("audio",this)&&!Hf("video",this))},n.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Xf({type:"audio",sourceUpdater:this,action:Yf.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Xf({type:"video",sourceUpdater:this,action:Yf.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&Xf({type:"audio",sourceUpdater:this,action:Yf.callback(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&Xf({type:"video",sourceUpdater:this,action:Yf.callback(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),Vf.forEach(function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"](function(){return qf(t,e)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(bs.EventTarget),Jf=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Zf=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),em=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=t.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}Pt(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return bs.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return bs.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Uh(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=Zf.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(Zf,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){vf(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var n=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Mp.TIMEOUT&&this.handleTimeout_(),e.code===Mp.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof window.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s,o=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",s),i.stopForError({message:"Error loading vtt.js"})};return s=function(){i.subtitlesTrack_.tech_.off("vttjserror",o),i.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),void this.subtitlesTrack_.tech_.one("vttjserror",o)}a.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEac
67h(function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new window.VTTCue(e.startTime,e.endTime,e.text):e)}),Af(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"==typeof window.TextDecoder?t=new window.TextDecoder("utf8"):(t=window.WebVTT.StringDecoder(),n=!0);var i=new window.WebVTT.Parser(window,window.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){bs.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=Jf(r)),i.parse(r)}var a=e.bytes;n&&(a=Jf(a)),i.parse(a),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/Ed-r.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=a,e.endTime+=a}),!n.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(s,o-i.duration)}}}else i.empty=!0},t}(Uf),tm=function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},nm=function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i,r=n,a=0;a<e.segments.length;a++){var s=e.segments[a];if(i||(i=tm(t,r+s.duration/2)),i){if("cueIn"in s){i.endTime=r,i.adEndTime=r,r+=s.duration,i=null;continue}if(r<i.endTime){r+=s.duration;continue}i.endTime+=s.duration}else if("cueOut"in s&&((i=new window.VTTCue(r,r+s.duration,s.cueOut)).adStartTime=r,i.adEndTime=r+parseFloat(s.cueOut),t.addCue(i)),"cueOutCont"in s){var o=s.cueOutCont.split("/").map(parseFloat),l=o[0],u=o[1];(i=new window.VTTCue(r,r+s.duration,"")).adStartTime=r-l,i.adEndTime=i.adStartTime+u,t.addCue(i)}r+=s.duration}},im=86400,rm=[{name:"VOD",run:function(e,t,n,i,r){return n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,s=null,o=Vd(t);r=r||0;for(var l=0;l<o.length;l++){var u=o[t.endList||0===r?l:o.length-(l+1)],c=u.segment,d=e.timelineToDatetimeMappings[c.timeline];if(d&&c.dateTimeObject){var h=c.dateTimeObject.getTime()/1e3+d;if(c.parts&&"number"==typeof u.partIndex)for(var p=0;p<u.partIndex;p++)h+=c.parts[p].duration;var f=Math.abs(r-h);if(null!==s&&(0===f||s<f))break;s=f,a={time:h,segmentIndex:u.segmentIndex,partIndex:u.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,i,r){var a=null,s=null;r=r||0;for(var o=Vd(t),l=0;l<o.length;l++){var u=o[t.endList||0===r?l:o.length-(l+1)],c=u.segment,d=u.part&&u.part.start||c&&c.start;if(c.timeline===i&&void 0!==d){var h=Math.abs(r-d);if(null!==s&&s<h)break;(!a||null===s||s>=h)&&(s=h,a={time:d,segmentIndex:u.segmentIndex,partIndex:u.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o<t.discontinuityStarts.length;o++){var l=t.discontinuityStarts[o],u=t.discontinuitySequence+o+1,c=e.discontinuities[u];if(c){var d=Math.abs(r-c.time);if(null!==s&&s<d)break;(!a||null===s||s>=d)&&(s=d,a={time:c.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],am=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=xd("SyncController"),n}Pt(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+Kd({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a<rm.length;a++){var s=rm[a],o=s.run(this,e,t,n,i);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var s=Math.abs(e[a].syncPoint[t.key]-t.value);s<i&&(i=s,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>im)bs.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start}
67,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),i=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;i=t.start+o.mapping,r=t.end+o.mapping}return s&&(s.start=i,s.end=r),(!a.start||i<a.start)&&(a.start=i),a.end=r,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,s=r-e.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>o){var l=void 0;l=s<0?n.start-Kd({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+Kd({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:o}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(bs.EventTarget),sm=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}Pt(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(bs.EventTarget),om=mp(gp(function(){function e(e,n,i){return e(i={path:n,exports:{},require:function(e,n){return t(e,null==n?i.path:n)}},i.exports),i.exports}function t(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n=e(function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0}),i=e(function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),r=e(function(e){function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),a=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);
67else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function s(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var o=function(){var e,t,n,i,r,a,s,o,l=[[[],[],[],[],[]],[[],[],[],[],[]]],u=l[0],c=l[1],d=u[4],h=c[4],p=[],f=[];for(e=0;e<256;e++)f[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!d[t];t^=i||1,n=f[n]||1)for(a=(a=n^n<<1^n<<2^n<<3^n<<4)>>8^255&a^99,d[t]=a,h[a]=t,o=16843009*p[r=p[i=p[t]]]^65537*r^257*i^16843008*t,s=257*p[a]^16843008*a,e=0;e<4;e++)u[e][t]=s=s<<24^s>>>8,c[e][a]=o=o<<24^o>>>8;for(e=0;e<5;e++)u[e]=u[e].slice(0),c[e]=c[e].slice(0);return l},l=null,u=function(){function e(e){var t,n,i;l||(l=o()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],s=e.length,u=1;if(4!==s&&6!==s&&8!==s)throw new Error("Invalid aes key size");var c=e.slice(0),d=[];for(this._key=[c,d],t=s;t<4*s+28;t++)i=c[t-1],(t%s===0||8===s&&t%s===4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%s===0&&(i=i<<8^i>>>24^u<<24,u=u<<1^283*(u>>7))),c[t]=c[t-s]^i;for(n=0;t;n++,t--)i=c[3&n?t:t-4],d[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,a){var s,o,l,u,c=this._key[1],d=e^c[0],h=i^c[1],p=n^c[2],f=t^c[3],m=c.length/4-2,g=4,v=this._tables[1],A=v[0],y=v[1],b=v[2],_=v[3],w=v[4];for(u=0;u<m;u++)s=A[d>>>24]^y[h>>16&255]^b[p>>8&255]^_[255&f]^c[g],o=A[h>>>24]^y[p>>16&255]^b[f>>8&255]^_[255&d]^c[g+1],l=A[p>>>24]^y[f>>16&255]^b[d>>8&255]^_[255&h]^c[g+2],f=A[f>>>24]^y[d>>16&255]^b[h>>8&255]^_[255&p]^c[g+3],g+=4,d=s,h=o,p=l;for(u=0;u<4;u++)r[(3&-u)+a]=w[d>>>24]<<24^w[h>>16&255]<<16^w[p>>8&255]<<8^w[255&f]^c[g++],s=d,d=h,h=p,p=f,f=s},e}(),c=function(e){function t(){var t;return(t=e.call(this,a)||this).jobs=[],t.delay=1,t.timeout_=null,t}r(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(a),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(e,t,n){var i,r,a,s,o,l,c,h,p,f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new u(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),v=new Int32Array(g.buffer);for(i=n[0],r=n[1],a=n[2],s=n[3],p=0;p<f.length;p+=4)o=d(f[p]),l=d(f[p+1]),c=d(f[p+2]),h=d(f[p+3]),m.decrypt(o,l,c,h,v,p),v[p]=d(v[p]^i),v[p+1]=d(v[p+1]^r),v[p+2]=d(v[p+2]^a),v[p+3]=d(v[p+3]^s),i=o,r=l,a=c,s=h;return g},p=function(){function e(t,n,i,r){var a=e.STEP,o=new Int32Array(t.buffer),l=new Uint8Array(t.byteLength),u=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+a),n,i,l)),u=a;u<o.length;u+=a)i=new Uint32Array([d(o[u-4]),d(o[u-3]),d(o[u-2]),d(o[u-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+a),n,i,l));this.asyncStream_.push(function(){r(null,s(l))})}return e.prototype.decryptChunk_=function(e,t,n,i){return function(){var r=h(e,t,n);i.set(r,e.byteOffset)}},n(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}(),f=function(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n];ArrayBuffer.isView(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i}),t};self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new p(n,i,r,function(e,n){self.postMessage(f({source:t.source,decrypted:n}),[n.buffer])})}})),lm=fp(om),um=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},cm=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},dm=function(e,t){t.activePlaylistLoader=e,e.load()},hm=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],s=a.activeTrack(),o=a.getActiveGroup(),l=a.activePlaylistLoader,u=a.lastGroup_;o&&u&&o.id===u.id||(a.lastGroup_=o,a.lastTrack_=s,cm(i,a),o&&!o.isMasterPlaylist&&(o.playlistLoader?(i.resyncLoader(),dm(o.playlistLoader,a)):l&&r.resetEverything()))}},pm=function(e,t){return function(){var n=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,n.abort(),n.pause()}},fm=function(e,t){return function(){var n=t.masterPlaylistLoader,i=t.segmentLoaders,r=i[e],a=i.main,s=t.mediaTypes[e],o=s.activeTrack(),l=s.getActiveGroup(),u=s.activePlaylistLoader,c=s.lastTrack_;if((!c||!o||c.id!==o.id)&&(s.lastGroup_=l,s.lastTrack_=o,cm(r,s),l)){if(l.isMasterPlaylist){if(!o||!c||o.id===c.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return s.logger_("track change. Switching master audio from "+c.id+" to "+o.id),n.pause(),a.resetEverything(),void d.fastQualityChange_(h)}
67if("AUDIO"===e){if(!l.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}u!==l.playlistLoader?(r.track&&r.track(o),r.resetEverything(),dm(l.playlistLoader,s)):dm(l.playlistLoader,s)}}},mm={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;cm(n,i);var a=i.activeTrack(),s=i.activeGroup(),o=(s.filter(function(e){return e.default})[0]||s[0]).id,l=i.tracks[o];if(a!==l){for(var u in bs.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[u].enabled=i.tracks[u]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];bs.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),cm(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},gm={AUDIO:function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),i.paused()||a.load()}),t.on("error",mm[e](e,n))}},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],s=n.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),i.paused()||a.load()}),t.on("error",mm[e](e,n))}},vm={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.master.mediaGroups,o=t.mediaTypes[e],l=o.groups,u=o.tracks,c=o.logger_,d=t.masterPlaylistLoader,h=sh(d.master);for(var p in s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{default:{default:!0}}},h&&(s[e].main.default.playlists=d.master.playlists)),s[e])for(var f in l[p]||(l[p]=[]),s[e][p]){var m=s[e][p][f],g=void 0;if(h?(c("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&m.playlists?new Ch(m.playlists[0],n,a):m.resolvedUri?new Ch(m.resolvedUri,n,a):m.playlists&&"dash"===i?new up(m.playlists[0],n,a,d):null,m=bs.mergeOptions({id:f,playlistLoader:g},m),gm[e](e,m.playlistLoader,t),l[p].push(m),void 0===u[f]){var v=new bs.AudioTrack({id:f,kind:um(m),enabled:!1,language:m.language,default:m.default,label:f});u[f]=v}}r.on("error",mm[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,c=l.tracks,d=t.masterPlaylistLoader;for(var h in o[e])for(var p in u[h]||(u[h]=[]),o[e][h])if(!o[e][h][p].forced){var f=o[e][h][p],m=void 0;if("hls"===r)m=new Ch(f.resolvedUri,i,s);else if("dash"===r){if(!f.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;m=new up(f.playlists[0],i,s,d)}else"vhs-json"===r&&(m=new Ch(f.playlists?f.playlists[0]:f.resolvedUri,i,s));if(f=bs.mergeOptions({id:p,playlistLoader:m},f),gm[e](e,f.playlistLoader,t),u[h].push(f),void 0===c[p]){var g=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;c[p]=g}}a.on("error",mm[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in i[e])for(var l in a[o]||(a[o]=[]),i[e][o]){var u=i[e][o][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(c[d.instreamId]&&(d=bs.mergeOptions(d,c[d.instreamId])),void 0===d.default&&delete d.default,a[o].push(bs.mergeOptions({id:l},u)),void 0===s[l]){var h=n.addRemoteTextTrack({id:d.instreamId,
67kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;s[l]=h}}}}},Am=function e(t,n){for(var i=0;i<t.length;i++){if(rh(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},ym=function(e,t){return function(n){var i=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,a=i.media();if(!a)return null;var s=null;a.attributes[e]&&(s=r[a.attributes[e]]);var o=Object.keys(r);if(!s)if("AUDIO"===e&&o.length>1&&sh(t.master))for(var l=0;l<o.length;l++){var u=r[o[l]];if(Am(u,a)){s=u;break}}else r.main?s=r.main:1===o.length&&(s=r[o[0]]);return void 0===n?s:null!==n&&s&&s.filter(function(e){return e.id===n.id})[0]||null}},bm={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},_m=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}},wm=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){vm[t](t,e)});var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.vhs,a=e.segmentLoaders,s=a.AUDIO,o=a.main;["AUDIO","SUBTITLES"].forEach(function(n){t[n].activeGroup=ym(n,e),t[n].activeTrack=bm[n](n,e),t[n].onGroupChanged=hm(n,e),t[n].onGroupChanging=pm(n,e),t[n].onTrackChanged=fm(n,e),t[n].getActiveGroup=_m(n,e)});var l=t.AUDIO.activeGroup();if(l){var u=(l.filter(function(e){return e.default})[0]||l[0]).id;t.AUDIO.tracks[u].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),s.setAudio(!0)):o.setAudio(!0)}n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})}),n.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanging()})});var c=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var d in i.audioTracks().addEventListener("change",c),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",function(){i.audioTracks().removeEventListener("change",c),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[d])},Em=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ff,activeTrack:Ff,getActiveGroup:Ff,onGroupChanged:Ff,onTrackChanged:Ff,lastTrack_:null,logger_:xd("MediaGroups["+t+"]")}}),e},Sm=120,Tm=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],xm=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Cm=function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,s=e.bufferHighWaterLine,o=e.duration,l=e.experimentalBufferBasedABR,u=e.log;if(!r)return bs.log.warn("We received no playlist to switch to. Please check your stream."),!1;var c="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return u(c+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var d=Boolean(kd(n,i).length);if(!t.endList)return d||"number"!=typeof t.partTargetDuration?(u(c+" as current playlist is live"),!0):(u("not "+c+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=Fd(n,i),p=l?cp.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:cp.MAX_BUFFER_LOW_WATER_LINE;if(o<p)return u(c+" as duration < max low water line ("+o+" < "+p+")"),!0;var f=r.attributes.BANDWIDTH,m=t.attributes.BANDWIDTH;if(f<m&&(!l||h<s)){var g=c+" as next bandwidth < current bandwidth ("+f+" < "+m+")";return l&&(g+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+s+")"),u(g),!0}if((!l||f>m)&&h>=a){var v=c+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(v+=" and next bandwidth > current bandwidth ("+f+" > "+m+")"),u(v),!0}return u("not "+c+" as no switching criteria met"),!1},Im=function(e){function t(t){var n;n=e.call(this)||this;
67var i=t.src,r=t.handleManifestRedirects,a=t.withCredentials,s=t.tech,o=t.bandwidth,l=t.externVhs,u=t.useCueTags,c=t.blacklistDuration,d=t.enableLowInitialPlaylist,h=t.sourceType,p=t.cacheEncryptionKeys,f=t.experimentalBufferBasedABR,m=t.experimentalLeastPixelDiffSelector,g=t.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var v=t.maxPlaylistRetries;null==v&&(v=1/0),zf=l,n.experimentalBufferBasedABR=Boolean(f),n.experimentalLeastPixelDiffSelector=Boolean(m),n.withCredentials=a,n.tech_=s,n.vhs_=s.vhs,n.sourceType_=h,n.useCueTags_=u,n.blacklistDuration=c,n.maxPlaylistRetries=v,n.enableLowInitialPlaylist=d,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:a,handleManifestRedirects:r,maxPlaylistRetries:v,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=Em(),n.mediaSource=new window.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(Mt(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(Mt(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(Mt(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=bs.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new am(t),n.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new lm,n.sourceUpdater_=new $f(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new sm;var A={vhs:n.vhs_,parse708captions:t.parse708captions,captionServices:g,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:o,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:p,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new up(i,n.vhs_,n.requestOptions_):new Ch(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Uf(bs.mergeOptions(A,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new Uf(bs.mergeOptions(A,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new em(bs.mergeOptions(A,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",function(){return n.startABRTimer_()}),n.tech_.on("pause",function(){return n.stopABRTimer_()}),n.tech_.on("play",function(){return n.startABRTimer_()})),Tm.forEach(function(e){n[e+"_"]=xm.bind(Mt(n),e)}),n.logger_=xd("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var y="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(y,function(){var e=Date.now();n.tech_.one("loadeddata",function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends})}),n}Pt(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},n.switchMedia_=function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=window.setInterval(function(){return e.checkABR_()},250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(window.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||r.length&&i[r[0]];for(var s in a)if(a[s].default){n={label:s};break}}if(!n)return t;var o=[];for(var l in i)if(i[l][n.label]){var u=i[l][n.label];if(u.playlists&&u.playlists.length)o.push.apply(o,u.playlists);else if(u.uri)o.push(u);else if(e.playlists.length)for(var c=0;c<e.playlists.length;c++){var d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===l&&o.push(d)}}return o.length?o:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;ih(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),wm({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;if(e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial"),"vhs-json"!==e.sourceType_||!e.initialMedia_.segments)return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)}
67),this.masterPlaylistLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;ih(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var t=e.masterPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var s in n.AUDIO[a])n.AUDIO[a][s].uri||(i=!1);i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),zf.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),a=this.tech_.buffered();return Cm({buffered:a,currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},Sm))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){bs.browser.IE_VERSION||bs.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(bs.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")}
67,n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var n=zf.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=Id;var a=r.end(r.length-1);return a-i<=Id&&n-a<=Id},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(eh),s=1===a.length&&a[0]===n;if(1===r.length&&t!==1/0)return bs.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(s);if(s){var o=!1;r.forEach(function(e){if(e!==n){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(o=!0,delete e.excludeUntil)}}),o&&(bs.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var u=e.internal?this.logger_:bs.log.warn,c=e.message?" "+e.message:"";u((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+c+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=l.targetDuration/2*1e3||5e3,h="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=d;return this.switchMedia_(l,"exclude",s||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)}),i.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})},n.setCurrentTime=function(e){var t=kd(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:zf.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=zf.Playlist.seekable(t,n,zf.Playlist.liveEdgeDelay(i,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=zf.Playlist.seekable(t,n,zf.Playlist.liveEdgeDelay(i,t))).length)return}var a,s;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),s=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=bs.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===s||(this.logger_("seekable updated ["+Bd(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),i=zf.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var n=e.mediaTypes_[t].groups;
67for(var i in n)n[i].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var n=Jp(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=n.video||t.main.videoCodec||$s),t.main.isMuxed&&(i.video+=","+(n.audio||t.main.audioCodec||Ks)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(i.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||Ks,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),i.audio||i.video){var a,s=function(e,t){return e?Ys(t):Xs(t)},o={};if(["video","audio"].forEach(function(e){if(i.hasOwnProperty(e)&&!s(t[e].isFmp4,i[e])){var n=t[e].isFmp4?"browser":"muxer";o[n]=o[n]||[],o[n].push(i[e]),"audio"===e&&(a=n)}}),r&&a&&this.media().attributes.AUDIO){var l=this.media().attributes.AUDIO;
67this.master().playlists.forEach(function(t){(t.attributes&&t.attributes.AUDIO)===l&&t!==e.media()&&(t.excludeUntil=1/0)}),this.logger_("excluding audio group "+l+" as "+a+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(o).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach(function(t){var n=(Hs(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Hs(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&u.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+i[t]+'"')}),u.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var c=Object.keys(o).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+o[t].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:c,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach(function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=Jp(e.master,r),s=[];!a.audio||Xs(a.audio)||Ys(a.audio)||s.push("audio codec "+a.audio),!a.video||Xs(a.video)||Ys(a.video)||s.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&s.push("text codec "+a.text),s.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+s.join(", ")))}})},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=Kp(Hs(e)),a=$p(r),s=r.video&&Hs(r.video)[0]||null,o=r.audio&&Hs(r.audio)[0]||null;
67Object.keys(i).forEach(function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var l=[],u=Jp(t.masterPlaylistLoader_.master,r),c=$p(u);if(u.audio||u.video){if(c!==a&&l.push('codec count "'+c+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=u.video&&Hs(u.video)[0]||null,h=u.audio&&Hs(u.audio)[0]||null;d&&s&&d.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+d.type+'" !== "'+s.type+'"'),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}})},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),nm(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=cp.GOAL_BUFFER_LENGTH,n=cp.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,cp.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=cp.BUFFER_LOW_WATER_LINE,n=cp.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,cp.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,cp.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return cp.BUFFER_HIGH_WATER_LINE},t}(bs.EventTarget),Mm=function(e,t,n){return function(i){var r=e.master.playlists[t],a=Zd(r),s=eh(r);return void 0===i?s:(i?delete r.disabled:r.disabled=!0,i===s||a||(n(),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)}},km=function(e,t,n){var i=e.masterPlaylistController_,r=i[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(i);if(t.attributes){var a=t.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=Jp(i.master(),t),this.playlist=t,this.id=n,this.enabled=Mm(e.playlists,t.id,r)},Pm=function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),n=sh(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(function(e){return!Zd(e)}).map(function(t,n){return new km(e,t,t.id)}):[]}},Rm=["seeking","seeked","pause","playing","error"],Lm=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=xd("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},i=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},a=function(){return t.cancelTimer_()},s=this.masterPlaylistController_,o=["main","subtitle","audio"],l={};o.forEach(function(e){l[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},s[e+"SegmentLoader_"].on("appendsdone",l[e].updateend),s[e+"SegmentLoader_"].on("playlistupdate",l[e].reset),t.tech_.on(["seeked","seeking"],l[e].reset)});var u=function(e){["main","audio"].forEach(function(n){s[n+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=function(){return u("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(Rm,a),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",r),t.tech_.off(Rm,a),t.tech_.off("canplay",i),t.tech_.off("play",n),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),o.forEach(function(e){s[e+"SegmentLoader_"].off("appendsdone",l[e].updateend),s[e+"SegmentLoader_"].off("playlistupdate",l[e].reset),t.tech_.off(["seeked","seeking"],l[e].reset)}),t.checkCurrentTimeTimeout_&&window.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&window.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=window.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=Od(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Nd(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Id>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,n)){var i=t.start(0);e=i+(i===t.end(0)?0:Id)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Bd(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,a=this.tech_.buffered(),s=r.audio
67Buffer?r.audioBuffered():null,o=r.videoBuffer?r.videoBuffered():null,l=this.media(),u=l.partTargetDuration?l.partTargetDuration:2*(l.targetDuration-Cd),c=[s,o],d=0;d<c.length;d++)if(c[d]&&Fd(c[d],n)<u)return!1;var h=Pd(a,n);return 0!==h.length&&(e=h.start(0)+Id,this.logger_("Buffered region starts ("+h.start(0)+")  just beyond seek point ("+n+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=kd(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var a=Pd(r,t);if(a.length>0){var s=a.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+a.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+Id;return!n.endList&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,i=e.currentTime;if(t){var r;if(t.length&&n.length){var a=kd(t,i-3),s=kd(t,i),o=kd(n,i);o.length&&!s.length&&a.length&&(r={start:a.end(0),end:o.end(0)})}else Pd(t,i).length||(r=this.gapFromVideoUnderflow_(t,i));return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=Pd(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+Cd),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=Rd(e),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(t-r<4&&t-r>2)return{start:r,end:a}}return null},e}(),Bm={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Dm=function e(t,n){var i=0,r=0,a=bs.mergeOptions(Bm,n);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var s=function(){r&&t.currentTime(r)},o=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-i<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"==typeof a.getSource?(i=Date.now(),a.getSource.call(t,o)):void bs.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function e(){t.off("loadedmetadata",s),t.off("error",l),t.off("dispose",e)},c=function(n){u(),e(t,n)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=c},Nm=function(e){Dm(this,e)},Om="2.13.1",Um="6.0.1",Fm="0.21.0",zm="4.7.0",Qm="3.1.2",Vm={PlaylistLoader:Ch,Playlist:oh,utils:Hh,STANDARD_PLAYLIST_SELECTOR:of,INITIAL_PLAYLIST_SELECTOR:cf,lastBandwidthSelector:of,movingAverageBandwidthSelector:lf,comparePlaylistBandwidth:rf,comparePlaylistResolution:af,xhr:Ph()};
67Object.keys(cp).forEach(function(e){Object.defineProperty(Vm,e,{get:function(){return bs.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),cp[e]},set:function(t){bs.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?bs.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):cp[e]=t}})});var Hm="videojs-vhs",Gm=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})},jm=function(e,t){t.representations().forEach(function(t){e.addQualityLevel(t)}),Gm(e,t.playlists)};Vm.canPlaySource=function(){return bs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var qm=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=Kp(Hs(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=Ws(i.video),a=Ws(i.audio),s={};for(var o in e)s[o]={},a&&(s[o].audioContentType=a),r&&(s[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(s[o].pssh=t.contentProtection[o].pssh),"string"==typeof e[o]&&(s[o].url=e[o]);return bs.mergeOptions(e,s)},Wm=function(e,t){return e.reduce(function(e,n){if(!n.contentProtection)return e;var i=t.reduce(function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e},{});return Object.keys(i).length&&e.push(i),e},[])},Ym=function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=i?r.concat([i]):r,s=Wm(a,Object.keys(n)),o=[],l=[];return s.forEach(function(e){l.push(new Promise(function(e,n){t.tech_.one("keysessioncreated",e)})),o.push(new Promise(function(n,i){t.eme.initializeMediaKeys({keySystems:e},function(e){e?i(e):n()})}))}),Promise.race([Promise.all(o),Promise.race(l)])},Xm=function(e){var t=e.player,n=e.sourceKeySystems,i=e.media,r=e.audioMedia,a=qm(n,i,r);return!(!a||(t.currentSource().keySystems=a,a&&!t.eme&&(bs.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1)))},Km=function(){if(!window.localStorage)return null;var e=window.localStorage.getItem(Hm);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},$m=function(e){if(!window.localStorage)return!1;var t=Km();t=t?bs.mergeOptions(t,e):e;try{window.localStorage.setItem(Hm,JSON.stringify(t))}catch(e){return!1}return t},Jm=function(e){return 0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e};Vm.supportsNativeHls=function(){if(!document||!document.createElement)return!1;var e=document.createElement("video");return!!bs.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),Vm.supportsNativeDash=!!(document&&document.createElement&&bs.getTech("Html5").isSupported())&&/maybe|probably/i.test(document.createElement("video").canPlayType("application/dash+xml")),Vm.supportsTypeNatively=function(e){return"hls"===e?Vm.supportsNativeHls:"dash"===e&&Vm.supportsNativeDash},Vm.isSupported=function(){return bs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Zm=function(e){function t(t,n,i){var r;if(r=e.call(this,n,bs.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&bs.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=xd("VhsHandler"),n.options_&&n.options_.playerId){var a=bs(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return bs.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),Mt(r)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return bs.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),Mt(r)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return bs.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),Mt(r)},configurable:!0}),r.player_=a}if(r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(document,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()}),r.on(r.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),r.on(r.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}Pt(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=Km();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=cp.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===cp.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){this.setOptions_(),this.options_.src=Jm(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Vm,this.options_.sourceType=eo(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&bs.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Im(this.options_);var i=bs.mergeOptions({liveRangeSafeTimeDelta:Id},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Lm(i),this.masterPlaylistController_.on("error",function(){var e=bs.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});var r=this.options_.experimentalBufferBasedABR?Vm.movingAverageBandwidthSelector(.55):Vm.
67STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Vm.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&t){var i=1e3*t.downlink*1e3;e=i>=n&&e>=n?Math.max(e,i):i}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){bs.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Nd(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Nd(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&$m({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){Pm(n)}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=window.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Ym({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media ke
67ys for EME",code:3})})},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=Xm({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",function(t){"output-restricted"===t.status&&e.masterPlaylistController_.blacklistCurrentPlaylist({playlist:e.masterPlaylistController_.media(),message:"DRM keystatus changed to "+t.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:1/0})}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==bs.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=bs.players[this.tech_.options_.playerId];
67t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){jm(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){Gm(e.qualityLevels_,e.playlists)}))},t.version=function(){return{"@videojs/http-streaming":Om,"mux.js":Um,"mpd-parser":Fm,"m3u8-parser":zm,"aes-decrypter":Qm}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return $f.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&window.URL.revokeObjectURL&&(window.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return $h({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),Jh({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(bs.getComponent("Component")),eg={name:"videojs-http-streaming",VERSION:Om,canHandleSource:function(e,t){void 0===t&&(t={});var n=bs.mergeOptions(bs.options,t);return eg.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=bs.mergeOptions(bs.options,n);return t.vhs=new Zm(e,t,i),bs.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return bs.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Ph(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=bs.mergeOptions(bs.options,t),i=n.vhs,r=(i=void 0===i?{}:i).overrideNative,a=void 0===r?!bs.browser.IS_ANY_SAFARI:r,s=n.hls,o=(s=void 0===s?{}:s).overrideNative,l=void 0!==o&&o,u=eo(e);return u&&(!Vm.supportsTypeNatively(u)||l||a)?"maybe":""}};return Ys("avc1.4d400d,mp4a.40.2")&&bs.getTech("Html5").registerSourceHandler(eg,0),bs.VhsHandler=Zm,Object.defineProperty(bs,"HlsHandler",{get:function(){return bs.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Zm},configurable:!0}),bs.VhsSourceHandler=eg,Object.defineProperty(bs,"HlsSourceHandler",{get:function(){return bs.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),eg},configurable:!0}),bs.Vhs=Vm,Object.defineProperty(bs,"Hls",{get:function(){return bs.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Vm},configurable:!0}),bs.use||(bs.registerComponent("Hls",Vm),bs.registerComponent("Vhs",Vm)),bs.options.vhs=bs.options.vhs||{},bs.options.hls=bs.options.hls||{},bs.getPlugin&&bs.getPlugin("reloadSourceOnError")||(bs.registerPlugin||bs.plugin)("reloadSourceOnError",Nm),bs}()},2313:(e,t,n)=>{var i={"./ar.json":4886,"./ba.json":4506,"./bg.json":2316,"./ca.json":2342,"./cs.json":5710,"./cy.json":4019,"./da.json":3424,"./de.json":88,"./el.json":4670,"./en.json":877,"./es.json":2038,"./fa.json":5570,"./fi.json":8585,"./fr.json":2773,"./gd.json":1858,"./gl.json":5193,"./he.json":5097,"./hi.json":2264,"./hr.json":5522,"./hu.json":8609,"./it.json":8222,"./ja.json":1492,"./ko.json":1298,"./lv.json":7456,"./nb.json":570,"./nl.json":5168,"./nn.json":6997,"./oc.json":7315,"./pl.json":8040,"./pt_br.json":5166,"./pt_pt.json":3129,"./ro.json":9056,"./ru.json":3178,"./sk.json":6225,"./sl.json":8565,"./sr.json":9275,"./sv.json":7046,"./te.json":4653,"./th.json":5708,"./tr.json":3832,"./uk.json":2161,"./vi.json":3155,"./zh_cn.json":3302,"./zh_hans.json":5313,"./zh_hant.json":4683,"./zh_tw.json":2619};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id=2313},3072:e=>{const t=function(e={}){let t=[];return e.module&&t.push(e.module),e.position&&t.push(e.position),e.label&&t.push(e.label),t.join("|")},n=(e={})=>{let t=[];return e.moduleName&&t.push(e.moduleName),e.regionName&&t.push(e.regionName),e.label&&t.push(e.label),e.pageName&&t.push(e.pageName),t.join("|")},i=e=>e||"",r={pageView:{event:"pageView",data:function(e){if(e)return window.articlePublishDate&&(e.content.articleDaysLive=function(e){let t=Date.now()-e;return Math.ceil(t/864e5)}(window.articlePublishDate)),e}},siteClick:{event:"siteClick",data:function(e){let n={action:{}};return n.action.linkLocation=t(e),e.articlePosition&&(n.action.articlePosition=e.articlePosition),e.viewMoreClick&&(n.action.viewMoreClick=e.viewM
67oreClick),n}},subPageView:{event:"subPageView",data:function(e){return{content:{subPageName:i(e.subPageName)}}}},cta:{event:"ctaClick",data:function(e){return{action:{ctaName:t(e)}}}},campaign:{event:"intCamp",data:function(e){return{action:{intCampName:i(e.label)}}}},search:{event:"search",data:function(e){let t={action:{search:{term:e.term,type:e.type,userSearchType:e.userSearchType}}};return e.resultsCount>=0&&(t.action.search.resultsCount=e.resultsCount),t}},searchResult:{event:"searchResult",data:function(e){return{action:{search:{termSelected:e.termSelected,type:e.type,category:e.category}}}}},buy:{event:"buy",data:function(e){let t={action:{destinationLink:i(e.label)},cart:{purchase:!0,item:[]}},n={},r=e.cart;return Array.isArray(r)?(t.action.skuList=r.reduce((e,t,n)=>`${e}${n>0?"|":""}${t.sku},${t.quantity}`,""),t.action.productList=Object.entries(r.reduce((e,t)=>(e[t.productNameAnalytics]=(e[t.productNameAnalytics]||0)+t.quantity,e),{})).map(([e,t])=>`${e},${t}`).join("|"),t.cart.item=r.map(e=>({productInfo:{quantity:e.quantity,sku:e.sku,category:e.productFamily||e.productKey||"",color:e.urlVariant||e.variant||e.color||"",price:e.offerPriceNumeric||e.numericPrice||e.offerPrice||e.originalPrice||"",features:Object.keys(e?.productFeatures??{}).join(",")}}))):(n.quantity=1,n.sku=r.sku,n.category=r.category,n.color=r.color,n.price=r.price,n.features=Object.keys(r?.productFeatures??{}).join(","),t.cart.item.push({productInfo:n})),t}},colorSelector:{event:"colorSelector",data:function(e){return{cart:{item:e.item}}}},regStart:{event:"regStart",data:function(e){return{cart:{item:e.item}}}},regComplete:{event:"regComplete",data:function(e){return{cart:{item:e.item}}}},supportExit:{event:"supportExit",data:function(e){return{action:{destinationLink:i(e.label)}}}},supportClick:{event:"supportClick",data:function(e){return{action:{supportInteraction:i(e.label)}}}},appleExit:{event:"appleExit",data:function(e){return{action:{destinationLink:i(e.label)}}}},socialShare:{event:"socialShare",data:function(e){return{action:{socialPlatform:i(e.socialPlatform),socialContent:i(e.socialContent)}}}},socialFollow:{event:"socialFollow",data:function(e){return{action:{socialPlatform:i(e.label)}}}},videoPlay:{event:"videoPlay",data:function(e){return{action:{videoName:i(e.videoName),videoLength:e.videoLength}}}},videoPlay25:{event:"videoPlay25",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoPlay50:{event:"videoPlay50",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoPlay75:{event:"videoPlay75",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoComplete:{event:"videoComplete",data:function(e){return{action:{videoName:i(e.videoName),videoTime:e.duration}}}},videoStop:{event:"videoStop",data:function(e){return{action:{videoName:i(e.videoName),videoTime:e.currentTime,maxPlayedTime:e.maxPlayedTime}}}},videoSegment:{event:"videoSegment",data:function(e){return{action:{videoName:i(e.videoName),videoSegComplete:e.videoSegComplete}}}},videoCaptionOff:{event:"videoCaptionOff",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoCaptionOn:{event:"videoCaptionOn",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoTranscriptDownload:{event:"videoTranscriptDownload",data:function(e){return{action:{videoName:i(e.videoName)}}}},newsletterSignUp:{event:"newsletterSignUp",data:function(e){return{content:{subPageName:i(e.subPageName)}}}},emailOptIn:{event:"emailOptIn",data:function(e){return{}}},carouselClick:{event:"carouselClick",data:function(e){return{action:{carouselName:i(e.carouselName)}}}},pageScroll:{event:"pageScroll",data:function(e){return{content:{moduleName:i(e.moduleName),regionName:i(e.regionName),scrollElements:n(e)}}}},allClick:{event:"allClick",data:function(e){return{content:{moduleName:i(e.moduleName),regionName:i(e.regionName),linkLabel:i(e.label),clickElements:n(e)}}}},otherInteraction:{event:"OtherInteractions",data:function(e){return{action:{interactionType:i(e.interactionName),interactionItem:`${i(e.moduleName)}|${i(e.regionName)}|${i(e.itemName)}`}}}},compareProducts:{event:"compareProducts",data:function(e){return{content:{modelList:i(e.modelList)}}}},localeSwitcher:{event:"localeSwitcher",data:function(e){return{content:{modalType:e.modalType,switchLocale:e.switchLocale}}}},QRRedirect:{event:"QRRedirect",data:function(e){return{content:{quickStartGuide:e?.url||""}}}},addToCart:{event:"addToCart",data:function(e){let t={action:{addToCartSource:e.source||"",addToCartCount:e?.items?.length??1},content:{moduleName:e.module||"",regionName:e.region||""}};if(Array.isArray(e?.items))t.action.cartItem=e.items.map(e=>`${e.productName||""}|${e.category||""}|${e.sku||""}|${e.color||""}${e.features?"|"+e.features:""}`);else{const{productName:n,category:i,sku:r,color:a,features:s}=e;t.action.cartItem=[`${n}|${i}|${r}|${a}${item.features?"|"+item.features:""}`]}return t}},removeFromCart:{event:"removeFromCart",data:function(e){const{productName:t,category:n,sku:i,color:r,features:a}=e;return{action:{cartItem:`${t}|${n}|${i}|${r}${a?"|"+a:""}`}}}},updateCartQuantity:{event:"updateCartQuantity",data:function(e){const{productName:t,category:n,sku:i,color:r,features:a,fromQuantity:s,toQuantity:o}=e;return{action:{cartItem:`${t}|${n}|${i}|${r}${a?"|"+a:""}`,cartQuantityChange:`${s}:${o}`}}}},undoRemoveFromCart:{event:"undoRemoveFromCart",data:function(e){const{productName:t,category:n,sku:i,color:r,features:a}=e;return{action:{cartItem:`${t}|${n}|${i}|${r}${a?"|"+a:""}`}}}},maxQuantityLimit:{event:"maxQuantityLimit",data:function(e){const{productName:t,category:n,sku:i,color:r,productSubFamily:a,checkoutLimitType:s,maxQuantityLimit:o,features:l}=e;return{action:{cartItem:`${t}|${n}|${i}|${r}${l?"|"+l:""}`,productSubFamily:a,checkoutLimitType:s,checkoutMaxLimit:o}}}},addOnColorSelectError:{event:"addOnColorSelectError",data:function(e){return{action:{addOnItem:e.addOnItem}}}}};e.exports=r},9061:(e,t,n)=>{const i=n(3072),{stripHtmlTags:r}=n(2050);function a(e){return"string"==typeof e?r(e):Array.isArray(e)?e.map(a):e&&"object"==typeof e?Object.keys(e).reduce((t,n)=>(t[n]=a(e[n]),t),{}):e}window.adobeDataLayer=window.adobeDataLayer||[],e.exports=new function(){this.initialize=()=>{},this.track=e=>{if(!e||"object"!=typeof e||!e.type)return void console.log(e+" is not a valid request object");let t=e.type;if(!i[t])return;let n=e.data||e,r=a(i[t].data(n)||{}),s=i[t].event,o={data:r,event:s};console.log(`Analytics event fired: ${s}`),console.log(JSON.stringify(o,null,2)),adobeDataLayer.push(o)},this.destroy=()=>{}}},8577:function(e,t,n){n(3452),n(9669);e.exports=(e=null)=>{const t=document.getElementById("product-header"),n=document.getElementById("product-sticky-bar");if(!t&&!n)return!1;const i=()=>{window.addEventListener("product-sku-selected",r),window.addEventListener("pageshow",k)},r=e=>{let n;t&&(n=s(t)),T(e),c(e),d(e),h(e),p(e),f(e),v(e),m(e),g(e),y(e),b(e),t&&o(t,n)},a=e=>
67r({detail:e}),s=e=>({elemHeight:e.getBoundingClientRect().height,initialScrollTop:document.documentElement.scrollTop}),o=(e,t)=>{let n=e.getBoundingClientRect().height-t.elemHeight;window.customScrollTopAction=!0,document.documentElement.scrollTop=n>0?t.initialScrollTop+Math.abs(n):t.initialScrollTop-Math.abs(n)},l=(e,t)=>(t=t||document,[].slice.call(t.querySelectorAll(e))),u=(e,t)=>{l(e).forEach(e=>{e.innerHTML=t})},c=e=>{l(".cta__swatch").forEach(t=>{t.classList.remove("hide"),t.style.backgroundColor=e.detail.background,t.style.backgroundImage=`url(${e.detail.colorSwatchImage})`})},d=e=>{if(u(".product-price-orig",e.detail.originalPrice),u(".product-price-sale",e.detail.offerPrice),e.detail.originalPrice||e.detail.offerPrice){document.querySelectorAll(".productHeader .display-price").forEach(e=>{e.classList.remove("hide")})}if((e=>null!=e.detail.onSale&&e.detail.onSale)(e)){document.querySelectorAll(".product-price-sale").forEach(e=>{e.classList.remove("hide")});document.querySelectorAll(".product-price-sale-text").forEach(e=>{e.classList.remove("hide")});document.querySelectorAll(".product-price-orig").forEach(e=>{e.classList.add("product-price-strike")})}else{document.querySelectorAll(".product-price-sale").forEach(e=>{e.classList.add("hide")});document.querySelectorAll(".product-price-sale-text").forEach(e=>{e.classList.add("hide")});document.querySelectorAll(".product-price-orig").forEach(e=>{e.classList.remove("product-price-strike")})}},h=e=>{if(e.detail.eyebrowText){document.querySelectorAll(".product-price-title").forEach(t=>{t.innerHTML=e.detail.eyebrowText,t.classList.remove("hide")})}else{document.querySelectorAll(".product-price-title").forEach(e=>{e.innerHTML="",e.classList.add("hide")})}},p=e=>{l("a.product-btn").forEach(t=>{e.detail.buttonDetails.availabilityStatus?["buyable","preOrder"].includes(e.detail.buttonDetails.availabilityStatus)?"cart"===t.dataset.colorSelectBehavior?t.href=e.detail.addToCartPath:t.href=e.detail.aosUrl:"notify"===e.detail.buttonDetails.availabilityStatus?t.href=e.detail.buttonDetails.notifymePage:"external"===e.detail.buttonDetails.availabilityStatus?t.href=e.detail.aosUrl:t.removeAttribute("href"):t.removeAttribute("href")})},f=e=>{l("a.product-btn").forEach(t=>{"true"===e.detail.buttonDetails.openLinkInNewTab?t.target="_blank":t.target="_self","true"===e.detail.buttonDetails.openLinkInNewTab||"external"===e.detail.buttonDetails.availabilityStatus?t.rel="noopener noreferrer":t.removeAttribute("rel")})},m=e=>{l("a.product-btn .beats-btn-inner").forEach(t=>{e.detail.buttonDetails.configuredButtonLabel&&(t.innerHTML=e.detail.buttonDetails.configuredButtonLabel,t.setAttribute("data-selected-cta",e.detail.buttonDetails.configuredButtonLabel)),A(t,e)})},g=e=>{l("a.product-btn").forEach(t=>{t.classList.remove("hide"),t.classList.remove("js-modal-button"),e.detail.buttonDetails.availabilityStatus&&(["eyebrowOnly","announced","unavailable","outOfStock","soldOut"].includes(e.detail.buttonDetails.availabilityStatus)&&t.classList.add("hide"),"notify"===e.detail.buttonDetails.availabilityStatus&&t.classList.add("js-modal-button")),$vent.trigger("refreshModalButton")})},v=e=>{$("#product-details").attr("data-selected-sku",e.detail.sku).attr("data-selected-productname",e.detail.displayName).attr("data-selected-productfamily",e.detail.productFamily).attr("data-selected-subfamily",e.detail.subFamily).attr("data-selected-color",e.detail.variant).attr("data-selected-price",e.detail.numericPrice)},A=(e,t)=>{var n=e.closest(".product-btn"),i=e.getAttribute("data-selected-cta")+" - "+t.detail.displayName;n.setAttribute("aria-label",i)},y=e=>{l("a.product-btn").forEach(t=>{t.setAttribute("data-selected-sku",e.detail.sku),t.setAttribute("data-selected-productname",e.detail.displayName),t.setAttribute("data-selected-productfamily",e.detail.productFamily),t.setAttribute("data-selected-subfamily",e.detail.subFamily),t.setAttribute("data-selected-color",e.detail.variant),t.setAttribute("data-selected-price",e.detail.numericPrice)})},b=e=>{l("a.product-btn").forEach(t=>{e.detail.buttonDetails.analyticsLinkType?t.setAttribute("data-analytics-link-type",e.detail.buttonDetails.analyticsLinkType):t.removeAttribute("data-analytics-link-type"),e.detail.buttonDetails.analyticsLinkName?t.setAttribute("data-analytics-label",e.detail.buttonDetails.analyticsLinkName):t.removeAttribute("data-analytics-label")})},_=".fa-apple",w=document.querySelectorAll(".product-btn");let E,S=!1;const T=e=>
67{w.forEach(t=>{S||x(t),$(t).unbind("click"),$(t).unbind("openModal");const n=e.detail.buttonDetails;!(n.buttonState||"true"===n.openLinkInNewTab||"external"===n.availabilityStatus)?t.addEventListener("click",C):t.removeEventListener("click",C),e.detail.variant&&(t.setAttribute("data-product",e.detail.variant),B(t))}),S=!0},x=e=>{e.setAttribute("tabindex",0),e.addEventListener("click",C),D(e,"data-selected-cta",!0)},C=e=>{e.preventDefault();const t=e.target.closest("a"),n=t.href;w.forEach(e=>{I(e)}),M(t);t.getAttribute("data-token-url");let i=t.getAttribute("data-cart-url"),r=t.getAttribute("data-selected-sku"),a=t.getAttribute("data-selected-locale");i?((e,t,n,i)=>{let r=document.createElement("form");r.classList.add("hidden"),r.setAttribute("action",i),r.setAttribute("method","POST"),r.innerHTML=`\n            <input type="hidden" name="sku" value="${e}" />\n            <input type="hidden" name="cid" value="${partNumbersList[e].cid}" />\n            <input type="hidden" name="locale" value="${t}" />\n            <button type="submit"></button>\n        `,document.body.appendChild(r),setTimeout(()=>{r.submit()},300)})(r,a,0,i):setTimeout(()=>{location.href=n},500),E&&clearTimeout(E),E=setTimeout(()=>{k()},5e3)},I=e=>{e.classList.add("disabled"),e.setAttribute("tabindex",-1),e.blur(),e.removeEventListener("click",C),e.addEventListener("click",L)},M=e=>{e.classList.add("cta-disabled-clicked"),e.removeAttribute("aria-label"),D(e,"data-adding-cta")},k=e=>{document.querySelector(".cta-disabled-clicked")&&w.forEach(e=>{P(e),R(e)})},P=e=>{e.classList.remove("disabled"),e.setAttribute("tabindex",0),e.addEventListener("click",C),e.removeEventListener("click",L)},R=e=>{e.classList.remove("cta-disabled-clicked"),D(e,"data-selected-cta",!0),B(e)},L=e=>{e.preventDefault(),this.blur()},B=e=>{e.hasAttribute("data-aria-label-prefix")&&e.hasAttribute("data-product")&&e.setAttribute("aria-label",e.getAttribute("data-aria-label-prefix")+e.getAttribute("data-product"))},D=(e,t,n)=>{const i=e.querySelector(".beats-btn-inner");i&&i.hasAttribute(t)&&(i.innerHTML=i.getAttribute(t),null!=e.querySelector(_)&&(n?e.querySelector(_).classList.remove("hide"):e.querySelector(_).classList.add("hide")))};w.forEach(e=>{if(void 0===window.partNumbersList)return;const t=document.querySelector("#product-details").getAttribute("data-selected-sku");if(!(window.partNumbersList[t]&&1===Object.keys(window.partNumbersList).length))return;const n=window.partNumbersList[t].buttonDetails;!(n.buttonState||"true"===n.openLinkInNewTab||["external","notify"].includes(n.availabilityStatus))&&e.addEventListener("click",C)}),i(),e&&a(e)}},6295:(e,t,n)=>{const i=n(722),{getNodeArrayFromQuerySelector:r,lazyLoadingSourceChange:a,setParamsToUrl:s}=n(4730);e.exports=function(e=null){const t=document.getElementById("product-selector-component");if(t){const n=function(){const e=window.partNumbersList,t=r("[data-product-selector-swatch]"),n=t.length;let a,o=-1;const l=function(e){o=e,t[o].focus()},u=function(n,r=!0){if(o=n>0?n:0,a=e[t[o].getAttribute("data-sku")],c(a),window.productPathname){let e=window.productPathname,t=new URL(window.location),n=a.sku.slice(0,5);t.searchParams.delete("sku"),url=`${window.location.origin}${e}/${n}${a.urlVariant?`/${a.urlVariant}`:""}${"true"==stripHtmlExtension?"":".html"}${t.search}`,window.history.replaceState("","",url)}else s("sku",a.sku.slice(0,5),!0);if(r){i("product-sku-selected",a);let e={index:n,id:a.sku,sku:[a.sku,a],hasSkuInUrl:!0},t=new CustomEvent("update-meta-tags",{detail:e});window.dispatchEvent(t);let r=new CustomEvent("select-swatch",{detail:e});window.dispatchEvent(r)}m("colorSelector",{item:[{productInfo:{sku:a.sku,category:a.productFamily,color:a?.urlVariant||a.variant}}]})},c=function(e){d(e),h(e),r("[data-product-selector-swatch]").forEach(function(t){p(t,e)}),r("[data-product-selector-image]").forEach(function(t){f(t,e)})};return{selectIndex:u,selectPrevIndex:function(){u(o-1<0?n-1:o-1)},selectNextIndex:function(){u((o+1)%n)},focusPrevIndex:function(){l(o-1<0?n-1:o-1)},focusNextIndex:function(){l((o+1)%n)},get currentSelection(){return a},get currentIndex(){return o}}}(),o=new Hammer(t,{inputClass:Hammer.TouchInput,touchAction:"pinch"});o.on("swipeleft",n.selectNextIndex),o.on("swiperight",n.selectPrevIndex);const l=function(e){"39"==e.keyCode?(n.focusNextIndex(),n.selectIndex(n.currentIndex)):"37"==e.keyCode?(n.focusPrevIndex(),n.selectIndex(n.currentIndex)):"13"==e.keyCode&&n.selectIndex(n.currentIndex)},u=function(e){return function(){n.selectIndex(e)}};r("[data-product-selector-swatch]").forEach(function(e,t){e.addEventListener("click",u(t)),e.addEventListener("keydown",l)});const c=function(e,t){r(e).forEach(function(e){e.innerHTML=t})},d=function(e){c("[data-product-selector-collection]",e.collection?e.collection:"")},h=function(e){const t=e.variant,n=t?t.replace(/-/g,"&#8209;"):"";c("[data-product-selector-variant]",n)},p=function(e,t){t.sku===e.getAttribute("data-sku")?(e.classList.add("selected"),e.setAttribute("aria-checked",!0),e.setAttribute("tabindex",0)):(e.classList.remove("selected"),e.setAttribute("aria-checked",!1),e.setAttribute("tabindex",-1))},f=function(e,t){if(t.sku===e.getAttribute("data-sku")){let t=e.querySelector("[data-lazy-loading-picture]");t&&a(t),e.classList.add("selected")}else e.classList.remove("selected")},m=function(e,t){i("analytics-track",{eventType:e,data:t})};if(e&&e.sku)if(window.productPathname){let e=Object.entries(window.partNumbersList),t=new URL(window.location).searchParams.get("sku"),i=window.location.pathname.replace(window.productPathname,"").split("/").filter(e=>""!=e),r=i[0]||"",a=i[1]||"";a=a.replace(".html",""),a=a||"---";let s="---"!==a?e.find(e=>e[1].urlVariant==a):r?e.find(e=>e[1].sku.slice(0,5)==r):t?e.find(e=>e[1].sku.slice(0,5)==t):null;if(s){let e=document.querySelector(`.product-selector-swatch-circle[data-sku="${s[0]}"]`).getAttribute("data-sku-index");n.selectIndex(+e,!1)}}else{let t=document.querySelector(`.product-selector-swatch-circle[data-sku="${e.sku}"]`).getAttribute("data-sku-index");n.selectIndex(+t,!1)}}window.addEventListener("load",function(){const e=r("[data-lazy-loading-picture]");e.length>
670&&e.forEach(e=>{a(e)})})}},9881:e=>{e.exports=function(){const e=document.getElementById("product-sticky-bar");let t,n=!1;const i=function(){(window.pageYOffset||document.scrollTop)-(document.clientTop||0)>215?(clearTimeout(t),n=!1,window.requestAnimationFrame(function(){e.classList.remove("aria-no-tab"),window.requestAnimationFrame(function(){document.body.classList.add("with-old-buy-bar"),e.classList.remove("hidden")})})):(e.classList.add("hidden"),document.body.classList.remove("with-old-buy-bar"),n||(n=!0,t=setTimeout(function(){n=!1,e.classList.add("aria-no-tab")},800)))};if(e){if(e.querySelector(".product-sticky-bar__text").innerText.trim().length<=0)return;document.addEventListener("scroll",i),document.addEventListener("DOMContentLoaded",i)}}},8661:(e,t,n)=>{n(4730);const i=n(4430);e.exports=function(){const e=function(e){let n,i,a,s;n=e||document,i=n.querySelectorAll("section.bbd-img-text-component, section.bbd-img-text-component [data-bbd-anim-target]"),i.forEach(e=>{r(e),s=e.querySelectorAll("img[data-link]:not(.img-clickable)"),s.forEach(e=>{let t=e.getAttribute("data-link");t&&(e.classList.add("img-clickable"),e.addEventListener("click",()=>{window.location=t}))}),a=e.querySelector(".asset-3d"),a&&a.addEventListener("load",()=>{t(a,e)})}),document.querySelectorAll(".sticky-text").length>0&&i.length>0&&document.querySelectorAll("body, html").forEach(e=>{e.setAttribute("overflow-unset","")})},t=function(e,t){i.userInteraction(e),e.shadowRoot.querySelector("#default-ar-button")&&i.arInteraction(e.shadowRoot.querySelector("#default-ar-button"),t);try{var n=new CSSStyleSheet;n.replaceSync(":focus-visible {\n                outline: 3px solid var(--outline);\n                outline-offset: -3px;\n            }"),e.shadowRoot.adoptedStyleSheets.push(n)}catch(e){console.log("Support CSSStyleSheet error",e)}if(e.dataset.color&&e.model){const[t]=e.model.materials;t.pbrMetallicRoughness.setBaseColorFactor(e.dataset.color)}};let n=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.target&&e.intersectionRatio>.1){let t=e.target.querySelector('img[loading="lazy"]');t&&!t.classList.contains("loaded")&&!t.classList.contains("error")?t.addEventListener("img-loaded",()=>{e.target.classList.add("animate")}):e.target.classList.add("animate")}e.target&&e.intersectionRatio<.1&&e.target.classList.remove("animate")})},{rootMargin:"0px 0px 0px 0px",threshold:[.1]});const r=function(e){n.observe(e)};document.addEventListener("at-content-rendering-succeeded",t=>{let n=Array.from(document.querySelectorAll(".root"));n.length>0&&n.map(t=>{Array.from(t.querySelectorAll("section.bbd-img-text-component, section.bbd-img-text-component [data-bbd-anim-target]")).map(t=>{e(t.parentElement)})})}),e(),window.initImgTxt=function(t){e(t)}}},1074:e=>{e.exports=function(){let e;const t=function(t){let i=t||document;e=i.querySelectorAll("section.bbd-universal-hero-component"),e.forEach(e=>{r(e),$(e).hasClass("hero-edit-mode")||n(e)})},n=function(e){var t=window.matchMedia("(max-width: 1068px)"),n=window.matchMedia("(orientation: portrait)");const i=function(){t.matches?setTimeout(function(){if(window.innerWidth<1024){var t,n=window.innerHeight;t=$(".promotionBar").length?n-($(".promotionBar").outerHeight(!0)+50):n-50,$(e).css("min-height",t)}},0):$(e).css("min-height","")};i(),t.addListener(i),n.addListener(i)};let i=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.target&&e.intersectionRatio>.1){let t=e.target.querySelector('img[loading="lazy"]');t&&!t.classList.contains("loaded")&&!t.classList.contains("error")?t.addEventListener("img-loaded",()=>{e.target.classList.add("animate")}):e.target.classList.add("animate")}e.target&&e.intersectionRatio<.1&&e.target.classList.remove("animate")})},{rootMargin:"0px 0px 0px 0px",threshold:[.1]});const r=function(e){i.observe(e)};t(),window.initUniversalHero=function(e){t(e)}}},4730:e=>{const t={hasAttributeCheck:(e,t)=>{if(t)return e.hasAttribute(t)},getAttributeValue:(e,t)=>{if(e&&t)return e.getAttribute(t)},copyChildNode:(e,t)=>{if(e&&t){e.childNodes.forEach(function(e){let n=e.cloneNode(!0);t.appendChild(n)})}return t},getNodeArrayFromQuerySelector:(e,t)=>
67(t=t||document,[].slice.call(t.querySelectorAll(e))),maxZIndexPlus1000:(e=0)=>{let t=Array.from(document.querySelectorAll("body *")).map(e=>parseFloat(window.getComputedStyle(e).zIndex)).filter(e=>!isNaN(e)).sort(function(e,t){return e>t?1:e<t?-1:0}).pop();return parseInt(t)+1e3+e},removeListeners:e=>{e.length>0&&(e.forEach(e=>{e.elem.removeEventListener(e.event,e.funcHandler)}),e.length=0)},assignEventStatus:(e,t,n)=>{if(e instanceof Element){let i=e;Array.isArray(t)&&t.forEach(function(e){i.classList.add(e)}),Array.isArray(n)&&n.forEach(function(e){i.classList.remove(e)})}},getArticleDateText:function(e,t){return function(e,t){var n;try{n=e.toLocaleString(t,{month:"long"})}catch(t){n=e.toLocaleString("en-US",{month:"long"})}return n}(e,t=t.replace("_","-"))+" "+e.getDate()+", "+e.getFullYear()},lazyLoadingSourceChange:e=>{e&&"PICTURE"===e.tagName&&Array.prototype.slice.call(e.children).forEach(function(e){!e.hasAttribute("srcset")&&e.hasAttribute("data-lazy-srcset")&&e.setAttribute("srcset",e.getAttribute("data-lazy-srcset")),!e.hasAttribute("src")&&e.hasAttribute("data-lazy-src")&&e.setAttribute("src",e.getAttribute("data-lazy-src"))})},getParamFromUrl:e=>{e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},setParamsToUrl:(e,t,n=!1)=>
67{if(!e)return;let i=new URLSearchParams(window.location.search);i.set(e,t);const r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+i.toString();history.pushState&&!n?window.history.pushState({path:r},"",r):history.replaceState&&n&&window.history.replaceState({path:r},"",r)},stringToBoolean:(e,t=null)=>e?"true"==e:t,scrollLock:(e,t)=>{window.scrollLockArray?window.scrollLockArray:window.scrollLockArray=[],e?window.scrollLockArray.push(t):window.scrollLockArray=[...window.scrollLockArray].filter(e=>e!=t),window.scrollLockArray.length?$("html").addClass("noscroll"):$("html").removeClass("noscroll")},rgbToHex:e=>"#"+t._componentToHex(e[0])+t._componentToHex(e[1])+t._componentToHex(e[2]),_componentToHex:e=>{var t=null==e?"0":e.toString(16);return 1==t.length?"0"+t:t},hexToRGB:e=>{var t=e.match(/[^#]{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]},isColorInRange:(e,t)=>{for(var n=0;n<3;n++)if(e[n]-40>t[n]||e[n]+40<t[n])return!1;return!0},getDeviceFeatures:()=>({p3Gamut:window.matchMedia("(color-gamut: p3)").matches,srgbGamut:window.matchMedia("(color-gamut: srgb)").matches,REC2020Gamut:window.matchMedia("(color-gamut: rec2020)").matches,SDR:window.matchMedia("(dynamic-range: standard)").matches,HDR:window.matchMedia("(dynamic-range: high)").matches,pixelDepth:window.screen.pixelDepth,colorDepth:window.screen.colorDepth,colorModuleSupport:CSS.supports("background-color","color(display-p3 1 1 1)")}),isValidColorHex:e=>e.match(/^#([A-Fa-f0-9]{6})$/),isUAT:()=>0==window.location.host.indexOf("beatsbydre-uat"),removeHTMLTags:e=>null===e||""===e?"":(e=e.toString()).replace(/(<([^>]+)>)/gi,""),adobeTargetExists:()=>{let e=Date.now();return new Promise(function t(n,i){window.adobe&&window.adobe.target&&window.adobe.target.event?n():Date.now()-e>=1e4?i(new Error("timeout")):setTimeout(t.bind(this,n,i),100)})},getFilterValueDisplayName:(e,t=!1)=>{const n=t?window.productCarouselJson?.addOns?.length?window.productCarouselJson.addOns:[]:window.productCarouselJson?.productFilters?[{productFilters:window.productCarouselJson.productFilters}]:[];return(Array.isArray(e)?e:[e]).map(e=>{for(const t of n){const n=t.productFilters||{};for(const t of Object.keys(n)){const i=n[t].values?.find(t=>t.id===e);if(i)return i.displayName}}}).filter(Boolean)},getFilterGroupNameByFilterId:(e,t=!1)=>{const n=t?window.productCarouselJson?.addOns?.length?window.productCarouselJson.addOns:[]:window.productCarouselJson?.productFilters?[{productFilters:window.productCarouselJson.productFilters}]:[];return(Array.isArray(e)?e:[e]).map(e=>{for(const t of n){const n=t.productFilters??{};for(const t of Object.values(n)){const n=t.values?.find(t=>t.id===e);if(n)return n.analyticsLabel}}}).filter(Boolean).join(":")}};e.exports=t},3569:e=>{e.exports={debounce:function(e,t=300){let n;return(...i)=>{clearTimeout(n),n=setTimeout(()=>e(...i),t)}}}},722:e=>{e.exports=function(e,t){const n=new CustomEvent(e,{detail:t});if(window.dispatchEvent)window.dispatchEvent(n);else{if(!window.fireEvent)throw"this browser does not support custom events";window.fireEvent(n)}}},5024:(e,t,n)=>{const{debounce:i}=n(3569);function r(e,t={}){const{root:n=document,debounceDelay:r=150}=t;if(!e)return{update:()=>{},destroy:()=>{}};const a=`[${e}]`,s=()=>{const t=n.querySelectorAll(a),i={};return t.forEach(t=>{const n=t.getAttribute(e);null!==n&&""!==n&&(i[n]||(i[n]=[]),i[n].push(t))}),i},o=e=>{e.forEach(e=>{e.style.height="",e.style.minHeight=""})},l=()=>{const e=s();Object.keys(e).forEach(t=>{o(e[t])}),Object.keys(e).forEach(t=>{(e=>{if(!e.length)return;let t=0;e.forEach(e=>{const n=e.offsetHeight;n>t&&(t=n)}),e.forEach(e=>{e.style.height=`${t}px`})})(e[t])})},u=i(l,r),c=i(l,r);l(),window.addEventListener("resize",u),document.addEventListener("at-content-rendering-succeeded",c);return{update:l,destroy:()=>{(()=>{const e=s();Object.keys(e).forEach(t=>{o(e[t])}),window.removeEventListener("resize",u)})(),document.removeEventListener("at-content-rendering-succeeded",c)}}}e.exports=r,e.exports.equalHeight=r;function a(){r("data-equal-height")}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",a,{once:!0}):a())},2050:(e,t,n)=>{"use strict";function i(e,t=""){return window.localized?.[e]||t}function r(e,t=""){return window.miniCartConfig?.[e]||t}function a(){return window.locale||"en_US"}function s(e){return"string"!=typeof e?e:e.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&apos;/g,"'").trim()}function o(e,t,n=!1){if("string"!=typeof e)return e||"";if(!t||"object"!=typeof t)return e;let i=e.replace(/\$?\{(\w+)\}/g,(e,n)=>void 0!==t[n]?String(t[n]):e);return n&&(i=s(i)),i}n.r(t),n.d(t,{getLocalized:()=>i,getLocalizedValueFromMiniCartConfig:()=>r,getLocale:()=>a,interpolateTemplate:()=>o,stripHtmlTags:()=>s,default:()=>l});const l={getLocalized:i,getLocalizedValueFromMiniCartConfig:r,getLocale:a,interpolateTemplate:o,stripHtmlTags:s}},2942:e=>{e.exports={getSelectedIndexFromURL:function(){let e=new URL(window.location).searchParams.get("sku"),t=Object.entries(window.partNumbersList);if(window.productPathname){let n=window.location.pathname.replace(window.productPathname,"").split("/").filter(e=>""!=e),i=n[0]||"",r=n[1]||"";r=r.replace(".html",""),r=r||"---";let a=t.findIndex(e=>e[1].sku.slice(0,5)==i),s=t.findIndex(e=>1==e[1].defaultSku),o=t.findIndex(t=>t[0].slice(0,5)==e);return a>=0?a:o>=0?o:s>=0?s:0}if(!e){let e=t.findIndex(e=>1==e[1].defaultSku);return e>0?e:0}let n=t.findIndex(t=>t[0].slice(0,5)==e);return n>0?n:0}}},3738:e=>{const t=(e,t)=>{let n=!1;return t?.some(t=>{t?.items?.some(t=>{t?.id!=e&&t?.name!=e||(n=!0)})}),n},n=e=>{let t=e?.reduce((e,t)=>
67e.concat(t?.items?.map(e=>e?.id)),[]);return t},i=(e,t)=>{let n,i;return t?.forEach(t=>{t?.items?.some(r=>{r?.name!==e&&r?.id!==e||(n=t,i=t.id)})}),{productGroup:n,productGroupId:i}},r=(e,t)=>{let n=[];return t?.forEach(t=>{t?.id!=e&&(n=t)}),n},a=(e,t,n)=>{let i=t?.items?.filter(function(t){return"name"==n?e.length>1?t?.name!==e?.[0]&&t?.name!==e?.[1]:t?.name!==e?.[0]:e.length>1?t?.id!==e?.[0]&&t?.id!==e?.[1]:t?.id!==e?.[0]});return i};e.exports={getProductsList:function(){let e,s,o,l=new URL(window.location).searchParams.get("modelList"),u="id";if(window.compareData&&(e=window.compareData?.data?.productGroups,s=window.compareData?.data?.defaultProducts),o=s,l){let n=l.split(","),s=[];switch(n?.map(n=>{t(n,e)&&s.push(n)}),s?.length){case 1:u="name";let t=i(s?.[0],e),n=r(t.productGroupId,e),l=a(s,t.productGroup,u);l.length>=2?(s[1]=l[0]?.name,s[2]=l[1]?.name):1==l.length?(s[1]=l[0]?.name,s[2]=n?.items[0]?.name):0==l.length&&(s[1]=n?.items[0]?.name,s[2]=n?.items[1]?.name),o=s;break;case 2:u="name";let c=i(s[0],e),d=r(c.productGroupId,e),h=a(s,c.productGroup,u);h.length>=1?s[2]=h[0]?.name:0==h.length&&(s[2]=d?.items[0]?.name),o=s;break;case 3:o=s,u="name"}}if(o.length<=2){let t,l,c;switch(u="id",s.length){case 0:o=n(e);break;case 1:t=i(s[0],e),l=r(t.productGroupId,e),c=a(s,t.productGroup,u),c.length>=2?(s[1]=c[0]?.id,s[2]=c[1]?.id):1==c.length&&(s[1]=c[0]?.id,s[2]=l?.items[0]?.id),o=s;break;case 2:t=i(s[0],e),l=r(t.productGroupId,e),c=a(s,t.productGroup,u),c.length>=1?s[2]=c[0]?.id:c.length<1&&(s[2]=l.items[0]?.id),o=s;break;case 3:o=s}}return{products:o,key:u}}}}
67,9235:e=>{e.exports=(()=>{let e=0,t=!1;const n=()=>{t||(e=document.scrollingElement.scrollTop)},i=e=>{document.scrollingElement.scrollTop=e};return document.addEventListener("scroll",n),{getScrollTop:function(){return e},disableScrollTrack:()=>{t=!0},enableScrollTrack:()=>{t=!1},setScrollTop:i,setPreservedScrollTop:()=>{i(e)}}})()},7754:e=>{function t(e,t='\n    a[href],\n    area[href],\n    input:not([disabled]):not([tabindex="-1"]),\n    button:not([disabled]):not([tabindex="-1"]),\n    select:not([disabled]):not([tabindex="-1"]),\n    textarea:not([disabled]):not([tabindex="-1"]),\n    iframe,\n    object,\n    embed,\n    *[tabindex]:not([tabindex="-1"]),\n    *[contenteditable=true]\n'){const n=e.querySelectorAll(t);return n?Array.prototype.filter.call(n,e=>function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)):n}e.exports={cycleTabs:function(e,n){if("Tab"===e.key){const i=t(n);let r=!1;e.shiftKey?(function(e,t){return t.length>0&&(e.target||e.srcElement)===t[0]}(e,i)||function(e,t){return(e.target||e.srcElement)===t}(e,n))&&(r=function(e){return e.length>0&&(e[e.length-1].focus(),!0)}(i)):function(e,t){return t.length>0&&(e.target||e.srcElement)===t[t.length-1]}(e,i)&&(r=function(e){return e.length>0&&(e[0].focus(),!0)}(i)),r&&(e.preventDefault(),e.stopPropagation())}},focusNextFocusableElement:function(e=document.body){const n=document.activeElement,i=t(e),r=i.findIndex(e=>e===n),a=r>=0?i[r+1]:i[0];a&&a.focus()},focusPrevFocusableElement:function(e=document.body){const n=document.activeElement,i=t(e),r=i.findIndex(e=>e===n),a=r>0?i[r-1]:i[0];a&&a.focus()}}},3452:e=>{e.exports=function(e,t){let n,i,r=0;void 0!==document.hidden?(n="hidden",i="visibilitychange"):void 0!==document.msHidden?(n="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",i="webkitvisibilitychange");const a=function(n){document.hasFocus()?t(n):e(n)};void 0!==document.addEventListener&&void 0!==n&&(document.removeEventListener(i,a),document.addEventListener(i,a,!1)),window.addEventListener("blur",a),window.addEventListener("focus",a),window.addEventListener("resize",e=>{r++,3===r&&(a(e),r=0)})}},6289:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CanvasTexture:()=>Vo,FileLoader:()=>gl,Loader:()=>pl,ModelViewerElement:()=>Ew,NearestFilter:()=>O});const i=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,e)}};function r(e){return(t,n)=>void 0!==n?((e,t,n)=>{t.constructor.createProperty(n,e)})(e,t,n):i(e,t)}var a;null===(a=window.HTMLSlotElement)||void 0===a||a.prototype.assignedElements;const s="163",o=0,l=1,u=2,c=100,d=101,h=102,p=200,f=201,m=202,g=203,v=204,A=205,y=206,b=207,_=208,w=209,E=210,S=211,T=212,x=213,C=214,I="attached",M=300,k=301,P=302,R=303,L=306,B=1e3,D=1001,N=1002,O=1003,U=1004,F=1005,z=1006,Q=1007,V=1008,H=1009,G=1013,j=1014,q=1015,W=1016,Y=1020,X=1023,K=1026,$=1027,J=1028,Z=1030,ee=33776,te=33777,ne=33778,ie=33779,re=35840,ae=35842,se=36196,oe=37492,le=37496,ue=37808,ce=37812,de=36492,he=2201,pe=2202,fe=2300,me=2301,ge=2302,ve=2400,Ae=2401,ye=2402,be=2500,_e="",we="srgb",Ee="srgb-linear",Se="display-p3",Te="display-p3-linear",xe="linear",Ce="srgb",Ie="rec709",Me="p3",ke=7680,Pe=512,Re=513,Le=514,Be=515,De=516,Ne=517,Oe=518,Ue=519,Fe=35044,ze="300 es",Qe=2e3,Ve=2001;class He{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,i=n.length;t<i;t++)n[t].call(this,e);e.target=null}}}const Ge=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","5
675","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let je=1234567;const qe=Math.PI/180,We=180/Math.PI;function Ye(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(Ge[255&e]+Ge[e>>8&255]+Ge[e>>16&255]+Ge[e>>24&255]+"-"+Ge[255&t]+Ge[t>>8&255]+"-"+Ge[t>>16&15|64]+Ge[t>>24&255]+"-"+Ge[63&n|128]+Ge[n>>8&255]+"-"+Ge[n>>16&255]+Ge[n>>24&255]+Ge[255&i]+Ge[i>>8&255]+Ge[i>>16&255]+Ge[i>>24&255]).toLowerCase()}function Xe(e,t,n){return Math.max(t,Math.min(n,e))}function Ke(e,t){return(e%t+t)%t}function $e(e,t,n){return(1-n)*e+n*t}function Je(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Ze(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const et={DEG2RAD:qe,RAD2DEG:We,generateUUID:Ye,clamp:Xe,euclideanModulo:Ke,mapLinear:function(e,t,n,i,r){return i+(e-t)*(r-i)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:$e,damp:function(e,t,n,i){return $e(e,t,1-Math.exp(-n*i))},pingpong:function(e,t=1){return t-Math.abs(Ke(e,2*t)-t)},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(e){void 0!==e&&(je=e);let t=je+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*qe},radToDeg:function(e){return e*We},isPowerOfTwo:function(e){return!(e&e-1)&&0!==e},ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},setQuaternionFromProperEuler:function(e,t,n,i,r){const a=Math.cos,s=Math.sin,o=a(n/2),l=s(n/2),u=a((t+i)/2),c=s((t+i)/2),d=a((t-i)/2),h=s((t-i)/2),p=a((i-t)/2),f=s((i-t)/2);switch(r){case"XYX":e.set(o*c,l*d,l*h,o*u);break;case"YZY":e.set(l*h,o*c,l*d,o*u);break;case"ZXZ":e.set(l*d,l*h,o*c,o*u);break;case"XZX":e.set(o*c,l*f,l*p,o*u);break;case"YXY":e.set(l*p,o*c,l*f,o*u);break;case"ZYZ":e.set(l*f,l*p,o*c,o*u);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}},normalize:Ze,denormalize:Je};class tt{constructor(e=0,t=0){tt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}
vendor: 41,590 bytes, line 67
67sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Xe(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,a=this.y-e.y;return this.x=r*n-a*i+e.x,this.y=r*i+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class nt{constructor(e,t,n,i,r,a,s,o,l){nt.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,i,r,a,s,o,l)}set(e,t,n,i,r,a,s,o,l){const u=this.elements;return u[0]=e,u[1]=i,u[2]=s,u[3]=t,u[4]=r,u[5]=o,u[6]=n,u[7]=a,u[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,a=n[0],s=n[3],o=n[6],l=n[1],u=n[4],c=n[7],d=n[2],h=n[5],p=n[8],f=i[0],m=i[3],g=i[6],v=i[1],A=i[4],y=i[7],b=i[2],_=i[5],w=i[8];return r[0]=a*f+s*v+o*b,r[3]=a*m+s*A+o*_,r[6]=a*g+s*y+o*w,r[1]=l*f+u*v+c*b,r[4]=l*m+u*A+c*_,r[7]=l*g+u*y+c*w,r[2]=d*f+h*v+p*b,r[5]=d*m+h*A+p*_,r[8]=d*g+h*y+p*w,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8];return t*a*u-t*s*l-n*r*u+n*s*o+i*r*l-i*a*o}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],c=u*a-s*l,d=s*o-u*r,h=l*r-a*o,p=t*c+n*d+i*h;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return e[0]=c*f,e[1]=(i*l-u*n)*f,e[2]=(s*n-i*a)*f,e[3]=d*f,e[4]=(u*t-i*o)*f,e[5]=(i*r-s*t)*f,e[6]=h*f,e[7]=(n*o-l*t)*f,e[8]=(a*t-n*r)*f,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,r,a,s){const o=Math.cos(r),l=Math.sin(r);return this.set(n*o,n*l,-n*(o*a+l*s)+a+e,-i*l,i*o,-i*(-l*a+o*s)+s+t,0,0,1),this}scale(e,t){return this.premultiply(it.makeScale(e,t)),this}rotate(e){return this.premultiply(it.makeRotation(-e)),this}translate(e,t){return this.premultiply(it.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const it=new nt;function rt(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function at(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function st(){const e=at("canvas");return e.style.display="block",e}const ot={};function lt(e){e in ot||(ot[e]=!0,console.warn(e))}const ut=(new nt).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),ct=(new nt).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),dt={[Ee]:{transfer:xe,primaries:Ie,toReference:e=>e,fromReference:e=>e},[we]:{transfer:Ce,primaries:Ie,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[Te]:{transfer:xe,primaries:Me,toReference:e=>e.applyMatrix3(ct),fromReference:e=>e.applyMatrix3(ut)},[Se]:{transfer:Ce,primaries:Me,toReference:e=>e.convertSRGBToLinear().applyMatrix3(ct),fromReference:e=>e.applyMatrix3(ut).convertLinearToSRGB()}},ht=new Set([Ee,Te]),pt={enabled:!0,_workingColorSpace:Ee,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!ht.has(e))throw new Error(`Unsupported working color space, "${e}".`);this._workingColorSpace=e},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const i=dt[t].toReference;return(0,dt[n].fromReference)(i(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return dt[e].primaries},getTransfer:function(e){return e===_e?xe:dt[e].transfer}};function ft(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function mt(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let gt;class vt{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===gt&&(gt=at("canvas")),gt.width=e.width,gt.height=e.height;const n=gt.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=gt}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const t=at("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const i=n.getImageData(0,0,e.width,e.height),r=i.data;for(let e=0;e<r.length;e++)r[e]=255*ft(r[e]/255);return n.putImageData(i,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*ft(t[e]/255)):t[e]=ft(t[e]);return{data:t,width:e.width,height:e.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let At=0;class yt{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:At++}),this.uuid=Ye(),this.data=e,this.dataReady=!0,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},i=this.data;if(null!==i){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push(bt(i[t].image)):e.push(bt(i[t]))}else e=bt(i);n.url=e}return t||(e.images[this.uuid]=n),n}}function bt(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?vt.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let _t=0;class wt extends He{constructor(e=wt.DEFAULT_IMAGE,t=wt.DEFAULT_MAPPING,n=1001,i=1001,r=1006,a=1008,s=1023,o=1009,l=wt.DEFAULT_ANISOTROPY,u=""){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:_t++}),this.uuid=Ye(),this.name="",this.source=new yt(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=r,this.minFilter=a,this.anisotropy=l,this.format=s,this.internalFormat=null,this.type=o,this.offset=new tt(0,0),this.repeat=new tt(1,1),this.center=new tt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new nt,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==M)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case B:e.x=e.x-Math.floor(e.x);break;case D:e.x=e.x<0?0:1;break;case N:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case B:e.y=e.y-Math.floor(e.y);break;case D:e.y=e.y<0?0:1;break;case N:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){!0===e&&this.pmremVersion++}}wt.DEFAULT_IMAGE=null,wt.DEFAULT_MAPPING=M,wt.DEFAULT_ANISOTROPY=1;class Et{constructor(e=0,t=0,n=0,i=1){Et.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*i+a[12]*r,this.y=a[1]*t+a[5]*n+a[9]*i+a[13]*r,this.z=a[2]*t+a[6]*n+a[10]*i+a[14]*r,this.w=a[3]*t+a[7]*n+a[11]*i+a[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,r;const a=.01,s=.1,o=e.elements,l=o[0],u=o[4],c=o[8],d=o[1],h=o[5],p=o[9],f=o[2],m=o[6],g=o[10];if(Math.abs(u-d)<a&&Math.abs(c-f)<a&&Math.abs(p-m)<a){if(Math.abs(u+d)<s&&Math.abs(c+f)<s&&Math.abs(p+m)<s&&Math.abs(l+h+g-3)<s)return this.set(1,0,0,0),this;t=Math.PI;const e=(l+1)/2,o=(h+1)/2,v=(g+1)/2,A=(u+d)/4,y=(c+f)/4,b=(p+m)/4;return e>o&&e>v?e<a?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(e),i=A/n,r=y/n):o>v?o<a?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(o),n=A/i,r=b/i):v<a?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=y/r,i=b/r),this.set(n,i,r,t),this}let v=Math.sqrt((m-p)*(m-p)+(c-f)*(c-f)+(d-u)*(d-u));return Math.abs(v)<.001&&(v=1),this.x=(m-p)/v,this.y=(c-f)/v,this.z=(d-u)/v,this.w=Math.acos((l+h+g-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class St extends He{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new Et(0,0,e,t),this.scissorTest=!1,this.viewport=new Et(0,0,e,t);const i={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:z,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0,count:1},n);const r=new wt(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);r.flipY=!1,r.generateMipmaps=n.generateMipmaps,r.internalFormat=n.internalFormat,this.textures=[];const a=n.count;for(let e=0;e<a;e++)this.textures[e]=r.clone(),this.textures[e].isRenderTargetTexture=!0;this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.depthTexture=n.depthTexture,this.samples=n.samples}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}setSize(e,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let i=0,r=this.textures.length;i<r;i++)this.textures[i].image.width=e,this.textures[i].image.height=t,this.textures[i].image.depth=n;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t<n;t++)this.textures[t]=e.textures[t].clone(),this.textures[t].isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new yt(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Tt extends St{constructor(e=1,t=1,n={}){super(e,t,n),this.isWebGLRenderTarget=!0}}class xt extends wt{constructor(e=null,t=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=O,this.minFilter=O,this.wrapR=D,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Ct extends wt{constructor(e=null,t=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=O,this.minFilter=O,this.wrapR=D,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class It{constructor(e=0,t=0,n=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=i}static slerpFlat(e,t,n,i,r,a,s){let o=n[i+0],l=n[i+1],u=n[i+2],c=n[i+3];const d=r[a+0],h=r[a+1],p=r[a+2],f=r[a+3];if(0===s)return e[t+0]=o,e[t+1]=l,e[t+2]=u,void(e[t+3]=c);if(1===s)return e[t+0]=d,e[t+1]=h,e[t+2]=p,void(e[t+3]=f);if(c!==f||o!==d||l!==h||u!==p){let e=1-s;const t=o*d+l*h+u*p+c*f,n=t>=0?1:-1,i=1-t*t;if(i>Number.EPSILON){const r=Math.sqrt(i),a=Math.atan2(r,t*n);e=Math.sin(e*a)/r,s=Math.sin(s*a)/r}const r=s*n;if(o=o*e+d*r,l=l*e+h*r,u=u*e+p*r,c=c*e+f*r,e===1-s){const e=1/Math.sqrt(o*o+l*l+u*u+c*c);o*=e,l*=e,u*=e,c*=e}}e[t]=o,e[t+1]=l,e[t+2]=u,e[t+3]=c}static multiplyQuaternionsFlat(e,t,n,i,r,a){const s=n[i],o=n[i+1],l=n[i+2],u=n[i+3],c=r[a],d=r[a+1],h=r[a+2],p=r[a+3];return e[t]=s*p+u*c+o*h-l*d,e[t+1]=o*p+u*d+l*c-s*h,e[t+2]=l*p+u*h+s*d-o*c,e[t+3]=u*p-s*c-o*d-l*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,i=e._y,r=e._z,a=e._order,s=Math.cos,o=Math.sin,l=s(n/2),u=s(i/2),c=s(r/2),d=o(n/2),h=o(i/2),p=o(r/2);switch(a){case"XYZ":this._x=d*u*c+l*h*p,this._y=l*h*c-d*u*p,this._z=l*u*p+d*h*c,this._w=l*u*c-d*h*p;break;case"YXZ":this._x=d*u*c+l*h*p,this._y=l*h*c-d*u*p,this._z=l*u*p-d*h*c,this._w=l*u*c+d*h*p;break;case"ZXY":this._x=d*u*c-l*h*p,this._y=l*h*c+d*u*p,this._z=l*u*p+d*h*c,this._w=l*u*c-d*h*p;break;case"ZYX":this._x=d*u*c-l*h*p,this._y=l*h*c+d*u*p,this._z=l*u*p-d*h*c,this._w=l*u*c+d*h*p;break;case"YZX":this._x=d*u*c+l*h*p,this._y=l*h*c+d*u*p,this._z=l*u*p-d*h*c,this._w=l*u*c-d*h*p;break;case"XZY":this._x=d*u*c-l*h*p,this._y=l*h*c-d*u*p,this._z=l*u*p+d*h*c,this._w=l*u*c+d*h*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],i=t[4],r=t[8],a=t[1],s=t[5],o=t[9],l=t[2],u=t[6],c=t[10],d=n+s+c;if(d>0){const e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(u-o)*e,this._y=(r-l)*e,this._z=(a-i)*e}else if(n>s&&n>c){const e=2*Math.sqrt(1+n-s-c);this._w=(u-o)/e,this._x=.25*e,this._y=(i+a)/e,this._z=(r+l)/e}else if(s>c){const e=2*Math.sqrt(1+s-n-c);this._w=(r-l)/e,this._x=(i+a)/e,this._y=.25*e,this._z=(o+u)/e}else{const e=2*Math.sqrt(1+c-n-s);this._w=(a-i)/e,this._x=(r+l)/e,this._y=(o+u)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Xe(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,i=e._y,r=e._z,a=e._w,s=t._x,o=t._y,l=t._z,u=t._w;return this._x=n*u+a*s+i*l-r*o,this._y=i*u+a*o+r*s-n*l,this._z=r*u+a*l+n*o-i*s,this._w=a*u-n*s-i*o-r*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,i=this._y,r=this._z,a=this._w;let s=a*e._w+n*e._x+i*e._y+r*e._z;if(s<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,s=-s):this.copy(e),s>=1)return this._w=a,this._x=n,this._y=i,this._z=r,this;const o=1-s*s;if(o<=Number.EPSILON){const e=1-t;return this._w=e*a+t*this._w,this._x=e*n+t*this._x,this._y=e*i+t*this._y,this._z=e*r+t*this._z,this.normalize(),this}const l=Math.sqrt(o),u=Math.atan2(l,s),c=Math.sin((1-t)*u)/l,d=Math.sin(t*u)/l;return this._w=a*c+this._w*d,this._x=n*c+this._x*d,this._y=i*c+this._y*d,this._z=r*c+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),r=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),r*Math.sin(t),r*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Mt{constructor(e=0,t=0,n=0){Mt.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(Pt.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(Pt.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=e.elements,a=1/(r[3]*t+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*i+r[12])*a,this.y=(r[1]*t+r[5]*n+r[9]*i+r[13])*a,this.z=(r[2]*t+r[6]*n+r[10]*i+r[14])*a,this}applyQuaternion(e){const t=this.x,n=this.y,i=this.z,r=e.x,a=e.y,s=e.z,o=e.w,l=2*(a*i-s*n),u=2*(s*t-r*i),c=2*(r*n-a*t);return this.x=t+o*l+a*c-s*u,this.y=n+o*u+s*l-r*c,this.z=i+o*c+r*u-a*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,i=e.y,r=e.z,a=t.x,s=t.y,o=t.z;return this.x=i*o-r*s,this.y=r*a-n*o,this.z=n*s-i*a,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return kt.copy(this).projectOnVector(e),this.sub(kt)}reflect(e){return this.sub(kt.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Xe(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=2*Math.random()-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const kt=new Mt,Pt=new It;class Rt{constructor(e=new Mt(1/0,1/0,1/0),t=new Mt(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(Bt.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(Bt.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=Bt.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const n=e.geometry;if(void 0!==n){const i=n.getAttribute("position");if(!0===t&&void 0!==i&&!0!==e.isInstancedMesh)for(let t=0,n=i.count;t<n;t++)!0===e.isMesh?e.getVertexPosition(t,Bt):Bt.fromBufferAttribute(i,t),Bt.applyMatrix4(e.matrixWorld),this.expandByPoint(Bt);else void 0!==e.boundingBox?(null===e.boundingBox&&e.computeBoundingBox(),Dt.copy(e.boundingBox)):(null===n.boundingBox&&n.computeBoundingBox(),Dt.copy(n.boundingBox)),Dt.applyMatrix4(e.matrixWorld),this.union(Dt)}const i=e.children;for(let e=0,n=i.length;e<n;e++)this.expandByObject(i[e],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Bt),Bt.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Vt),Ht.subVectors(this.max,Vt),Nt.subVectors(e.a,Vt),Ot.subVectors(e.b,Vt),Ut.subVectors(e.c,Vt),Ft.subVectors(Ot,Nt),zt.subVectors(Ut,Ot),Qt.subVectors(Nt,Ut);let t=[0,-Ft.z,Ft.y,0,-zt.z,zt.y,0,-Qt.z,Qt.y,Ft.z,0,-Ft.x,zt.z,0,-zt.x,Qt.z,0,-Qt.x,-Ft.y,Ft.x,0,-zt.y,zt.x,0,-Qt.y,Qt.x,0];return!!qt(t,Nt,Ot,Ut,Ht)&&(t=[1,0,0,0,1,0,0,0,1],!!qt(t,Nt,Ot,Ut,Ht)&&(Gt.crossVectors(Ft,zt),t=[Gt.x,Gt.y,Gt.z],qt(t,Nt,Ot,Ut,Ht)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Bt).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(Bt).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Lt[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Lt[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Lt[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Lt[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Lt[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Lt[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Lt[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Lt[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Lt)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Lt=[new Mt,new Mt,new Mt,new Mt,new Mt,new Mt,new Mt,new Mt],Bt=new Mt,Dt=new Rt,Nt=new Mt,Ot=new Mt,Ut=new Mt,Ft=new Mt,zt=new Mt,Qt=new Mt,Vt=new Mt,Ht=new Mt,Gt=new Mt,jt=new Mt;function qt(e,t,n,i,r){for(let a=0,s=e.length-3;a<=s;a+=3){jt.fromArray(e,a);const s=r.x*Math.abs(jt.x)+r.y*Math.abs(jt.y)+r.z*Math.abs(jt.z),o=t.dot(jt),l=n.dot(jt),u=i.dot(jt);if(Math.max(-Math.max(o,l,u),Math.min(o,l,u))>s)return!1}return!0}const Wt=new Rt,Yt=new Mt,Xt=new Mt;class Kt{constructor(e=new Mt,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):Wt.setFromPoints(e).getCenter(n);let i=0;for(let t=0,r=e.length;t<r;t++)i=Math.max(i,n.distanceToSquared(e[t]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Yt.subVectors(e,this.center);const t=Yt.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Yt,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(Xt.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Yt.copy(e.center).add(Xt)),this.expandByPoint(Yt.copy(e.center).sub(Xt))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const $t=new Mt,Jt=new Mt,Zt=new Mt,en=new Mt,tn=new Mt,nn=new Mt,rn=new Mt;class an{constructor(e=new Mt,t=new Mt(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,$t)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=$t.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):($t.copy(this.origin).addScaledVector(this.direction,t),$t.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){Jt.copy(e).add(t).multiplyScalar(.5),Zt.copy(t).sub(e).normalize(),en.copy(this.origin).sub(Jt);const r=.5*e.distanceTo(t),a=-this.direction.dot(Zt),s=en.dot(this.direction),o=-en.dot(Zt),l=en.lengthSq(),u=Math.abs(1-a*a);let c,d,h,p;if(u>0)if(c=a*o-s,d=a*s-o,p=r*u,c>=0)if(d>=-p)if(d<=p){const e=1/u;c*=e,d*=e,h=c*(c+a*d+2*s)+d*(a*c+d+2*o)+l}
vendor: 4,176 bytes, line 67
67else d=r,c=Math.max(0,-(a*d+s)),h=-c*c+d*(d+2*o)+l;else d=-r,c=Math.max(0,-(a*d+s)),h=-c*c+d*(d+2*o)+l;else d<=-p?(c=Math.max(0,-(-a*r+s)),d=c>0?-r:Math.min(Math.max(-r,-o),r),h=-c*c+d*(d+2*o)+l):d<=p?(c=0,d=Math.min(Math.max(-r,-o),r),h=d*(d+2*o)+l):(c=Math.max(0,-(a*r+s)),d=c>0?r:Math.min(Math.max(-r,-o),r),h=-c*c+d*(d+2*o)+l);else d=a>0?-r:r,c=Math.max(0,-(a*d+s)),h=-c*c+d*(d+2*o)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,c),i&&i.copy(Jt).addScaledVector(Zt,d),h}intersectSphere(e,t){$t.subVectors(e.center,this.origin);const n=$t.dot(this.direction),i=$t.dot($t)-n*n,r=e.radius*e.radius;if(i>r)return null;const a=Math.sqrt(r-i),s=n-a,o=n+a;return o<0?null:s<0?this.at(o,t):this.at(s,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;return e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,i,r,a,s,o;const l=1/this.direction.x,u=1/this.direction.y,c=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,i=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,i=(e.min.x-d.x)*l),u>=0?(r=(e.min.y-d.y)*u,a=(e.max.y-d.y)*u):(r=(e.max.y-d.y)*u,a=(e.min.y-d.y)*u),n>a||r>i?null:((r>n||isNaN(n))&&(n=r),(a<i||isNaN(i))&&(i=a),c>=0?(s=(e.min.z-d.z)*c,o=(e.max.z-d.z)*c):(s=(e.max.z-d.z)*c,o=(e.min.z-d.z)*c),n>o||s>i?null:((s>n||n!=n)&&(n=s),(o<i||i!=i)&&(i=o),i<0?null:this.at(n>=0?n:i,t)))}intersectsBox(e){return null!==this.intersectBox(e,$t)}intersectTriangle(e,t,n,i,r){tn.subVectors(t,e),nn.subVectors(n,e),rn.crossVectors(tn,nn);let a,s=this.direction.dot(rn);if(s>0){if(i)return null;a=1}else{if(!(s<0))return null;a=-1,s=-s}en.subVectors(this.origin,e);const o=a*this.direction.dot(nn.crossVectors(en,nn));if(o<0)return null;const l=a*this.direction.dot(tn.cross(en));if(l<0)return null;if(o+l>s)return null;const u=-a*en.dot(rn);return u<0?null:this.at(u/s,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class sn{constructor(e,t,n,i,r,a,s,o,l,u,c,d,h,p,f,m){sn.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,i,r,a,s,o,l,u,c,d,h,p,f,m)}set(e,t,n,i,r,a,s,o,l,u,c,d,h,p,f,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=i,g[1]=r,g[5]=a,g[9]=s,g[13]=o,g[2]=l,g[6]=u,g[10]=c,g[14]=d,g[3]=h,g[7]=p,g[11]=f,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new sn).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,i=1/on.setFromMatrixColumn(e,0).length(),r=1/on.setFromMatrixColumn(e,1).length(),a=1/on.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,i=e.y,r=e.z,a=Math.cos(n),s=Math.sin(n),o=Math.cos(i),l=Math.sin(i),u=Math.cos(r),c=Math.sin(r);if("XYZ"===e.order){const e=a*u,n=a*c,i=s*u,r=s*c;t[0]=o*u,t[4]=-o*c,t[8]=l,t[1]=n+i*l,t[5]=e-r*l,t[9]=-s*o,t[2]=r-e*l,t[6]=i+n*l,t[10]=a*o}
vendor: 11,600 bytes, line 67
67else if("YXZ"===e.order){const e=o*u,n=o*c,i=l*u,r=l*c;t[0]=e+r*s,t[4]=i*s-n,t[8]=a*l,t[1]=a*c,t[5]=a*u,t[9]=-s,t[2]=n*s-i,t[6]=r+e*s,t[10]=a*o}else if("ZXY"===e.order){const e=o*u,n=o*c,i=l*u,r=l*c;t[0]=e-r*s,t[4]=-a*c,t[8]=i+n*s,t[1]=n+i*s,t[5]=a*u,t[9]=r-e*s,t[2]=-a*l,t[6]=s,t[10]=a*o}else if("ZYX"===e.order){const e=a*u,n=a*c,i=s*u,r=s*c;t[0]=o*u,t[4]=i*l-n,t[8]=e*l+r,t[1]=o*c,t[5]=r*l+e,t[9]=n*l-i,t[2]=-l,t[6]=s*o,t[10]=a*o}else if("YZX"===e.order){const e=a*o,n=a*l,i=s*o,r=s*l;t[0]=o*u,t[4]=r-e*c,t[8]=i*c+n,t[1]=c,t[5]=a*u,t[9]=-s*u,t[2]=-l*u,t[6]=n*c+i,t[10]=e-r*c}else if("XZY"===e.order){const e=a*o,n=a*l,i=s*o,r=s*l;t[0]=o*u,t[4]=-c,t[8]=l*u,t[1]=e*c+r,t[5]=a*u,t[9]=n*c-i,t[2]=i*c-n,t[6]=s*u,t[10]=r*c+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(un,e,cn)}lookAt(e,t,n){const i=this.elements;return pn.subVectors(e,t),0===pn.lengthSq()&&(pn.z=1),pn.normalize(),dn.crossVectors(n,pn),0===dn.lengthSq()&&(1===Math.abs(n.z)?pn.x+=1e-4:pn.z+=1e-4,pn.normalize(),dn.crossVectors(n,pn)),dn.normalize(),hn.crossVectors(pn,dn),i[0]=dn.x,i[4]=hn.x,i[8]=pn.x,i[1]=dn.y,i[5]=hn.y,i[9]=pn.y,i[2]=dn.z,i[6]=hn.z,i[10]=pn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,a=n[0],s=n[4],o=n[8],l=n[12],u=n[1],c=n[5],d=n[9],h=n[13],p=n[2],f=n[6],m=n[10],g=n[14],v=n[3],A=n[7],y=n[11],b=n[15],_=i[0],w=i[4],E=i[8],S=i[12],T=i[1],x=i[5],C=i[9],I=i[13],M=i[2],k=i[6],P=i[10],R=i[14],L=i[3],B=i[7],D=i[11],N=i[15];return r[0]=a*_+s*T+o*M+l*L,r[4]=a*w+s*x+o*k+l*B,r[8]=a*E+s*C+o*P+l*D,r[12]=a*S+s*I+o*R+l*N,r[1]=u*_+c*T+d*M+h*L,r[5]=u*w+c*x+d*k+h*B,r[9]=u*E+c*C+d*P+h*D,r[13]=u*S+c*I+d*R+h*N,r[2]=p*_+f*T+m*M+g*L,r[6]=p*w+f*x+m*k+g*B,r[10]=p*E+f*C+m*P+g*D,r[14]=p*S+f*I+m*R+g*N,r[3]=v*_+A*T+y*M+b*L,r[7]=v*w+A*x+y*k+b*B,r[11]=v*E+A*C+y*P+b*D,r[15]=v*S+A*I+y*R+b*N,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],i=e[8],r=e[12],a=e[1],s=e[5],o=e[9],l=e[13],u=e[2],c=e[6],d=e[10],h=e[14];return e[3]*(+r*o*c-i*l*c-r*s*d+n*l*d+i*s*h-n*o*h)+e[7]*(+t*o*h-t*l*d+r*a*d-i*a*h+i*l*u-r*o*u)+e[11]*(+t*l*c-t*s*h-r*a*c+n*a*h+r*s*u-n*l*u)+e[15]*(-i*s*u-t*o*c+t*s*d+i*a*c-n*a*d+n*o*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],a=e[4],s=e[5],o=e[6],l=e[7],u=e[8],c=e[9],d=e[10],h=e[11],p=e[12],f=e[13],m=e[14],g=e[15],v=c*m*l-f*d*l+f*o*h-s*m*h-c*o*g+s*d*g,A=p*d*l-u*m*l-p*o*h+a*m*h+u*o*g-a*d*g,y=u*f*l-p*c*l+p*s*h-a*f*h-u*s*g+a*c*g,b=p*c*o-u*f*o-p*s*d+a*f*d+u*s*m-a*c*m,_=t*v+n*A+i*y+r*b;if(0===_)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/_;return e[0]=v*w,e[1]=(f*d*r-c*m*r-f*i*h+n*m*h+c*i*g-n*d*g)*w,e[2]=(s*m*r-f*o*r+f*i*l-n*m*l-s*i*g+n*o*g)*w,e[3]=(c*o*r-s*d*r-c*i*l+n*d*l+s*i*h-n*o*h)*w,e[4]=A*w,e[5]=(u*m*r-p*d*r+p*i*h-t*m*h-u*i*g+t*d*g)*w,e[6]=(p*o*r-a*m*r-p*i*l+t*m*l+a*i*g-t*o*g)*w,e[7]=(a*d*r-u*o*r+u*i*l-t*d*l-a*i*h+t*o*h)*w,e[8]=y*w,e[9]=(p*c*r-u*f*r-p*n*h+t*f*h+u*n*g-t*c*g)*w,e[10]=(a*f*r-p*s*r+p*n*l-t*f*l-a*n*g+t*s*g)*w,e[11]=(u*s*r-a*c*r-u*n*l+t*c*l+a*n*h-t*s*h)*w,e[12]=b*w,e[13]=(u*f*i-p*c*i+p*n*d-t*f*d-u*n*m+t*c*m)*w,e[14]=(p*s*i-a*f*i-p*n*o+t*f*o+a*n*m-t*s*m)*w,e[15]=(a*c*i-u*s*i+u*n*o-t*c*o-a*n*d+t*s*d)*w,this}scale(e){const t=this.elements,n=e.x,i=e.y,r=e.z;return t[0]*=n,t[4]*=i,t[8]*=r,t[1]*=n,t[5]*=i,t[9]*=r,t[2]*=n,t[6]*=i,t[10]*=r,t[3]*=n,t[7]*=i,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),i=Math.sin(t),r=1-n,a=e.x,s=e.y,o=e.z,l=r*a,u=r*s;return this.set(l*a+n,l*s-i*o,l*o+i*s,0,l*s+i*o,u*s+n,u*o-i*a,0,l*o-i*s,u*o+i*a,r*o*o+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,r,a){return this.set(1,n,r,0,e,1,a,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){const i=this.elements,r=t._x,a=t._y,s=t._z,o=t._w,l=r+r,u=a+a,c=s+s,d=r*l,h=r*u,p=r*c,f=a*u,m=a*c,g=s*c,v=o*l,A=o*u,y=o*c,b=n.x,_=n.y,w=n.z;return i[0]=(1-(f+g))*b,i[1]=(h+y)*b,i[2]=(p-A)*b,i[3]=0,i[4]=(h-y)*_,i[5]=(1-(d+g))*_,i[6]=(m+v)*_,i[7]=0,i[8]=(p+A)*w,i[9]=(m-v)*w,i[10]=(1-(d+f))*w,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){const i=this.elements;let r=on.set(i[0],i[1],i[2]).length();const a=on.set(i[4],i[5],i[6]).length(),s=on.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],ln.copy(this);const o=1/r,l=1/a,u=1/s;return ln.elements[0]*=o,ln.elements[1]*=o,ln.elements[2]*=o,ln.elements[4]*=l,ln.elements[5]*=l,ln.elements[6]*=l,ln.elements[8]*=u,ln.elements[9]*=u,ln.elements[10]*=u,t.setFromRotationMatrix(ln),n.x=r,n.y=a,n.z=s,this}makePerspective(e,t,n,i,r,a,s=2e3){const o=this.elements,l=2*r/(t-e),u=2*r/(n-i),c=(t+e)/(t-e),d=(n+i)/(n-i);let h,p;if(s===Qe)h=-(a+r)/(a-r),p=-2*a*r/(a-r);else{if(s!==Ve)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+s);h=-a/(a-r),p=-a*r/(a-r)}return o[0]=l,o[4]=0,o[8]=c,o[12]=0,o[1]=0,o[5]=u,o[9]=d,o[13]=0,o[2]=0,o[6]=0,o[10]=h,o[14]=p,o[3]=0,o[7]=0,o[11]=-1,o[15]=0,this}makeOrthographic(e,t,n,i,r,a,s=2e3){const o=this.elements,l=1/(t-e),u=1/(n-i),c=1/(a-r),d=(t+e)*l,h=(n+i)*u;let p,f;if(s===Qe)p=(a+r)*c,f=-2*c;else{if(s!==Ve)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+s);p=r*c,f=-1*c}return o[0]=2*l,o[4]=0,o[8]=0,o[12]=-d,o[1]=0,o[5]=2*u,o[9]=0,o[13]=-h,o[2]=0,o[6]=0,o[10]=f,o[14]=-p,o[3]=0,o[7]=0,o[11]=0,o[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const on=new Mt,ln=new sn,un=new Mt(0,0,0),cn=new Mt(1,1,1),dn=new Mt,hn=new Mt,pn=new Mt,fn=new sn,mn=new It;class gn{constructor(e=0,t=0,n=0,i=gn.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,r=i[0],a=i[4],s=i[8],o=i[1],l=i[5],u=i[9],c=i[2],d=i[6],h=i[10];switch(t){case"XYZ":this._y=Math.asin(Xe(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-a,r)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Xe(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(s,h),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-c,r),this._z=0);break;case"ZXY":this._x=Math.asin(Xe(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-c,h),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-Xe(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(d,h),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-a,l));break;case"YZX":this._z=Math.asin(Xe(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-u,l),this._y=Math.atan2(-c,r)):(this._x=0,this._y=Math.atan2(s,h));break;case"XZY":this._z=Math.asin(-Xe(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(s,r)):(this._x=Math.atan2(-u,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return fn.makeRotationFromQuaternion(e),this.setFromRotationMatrix(fn,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return mn.setFromEuler(this),this.setFromQuaternion(mn,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}gn.DEFAULT_ORDER="XYZ";class vn{constructor(){this.mask=1}set(e){this.mask=1<<e>>>0}enable(e){this.mask|=1<<e}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e}disable(e){this.mask&=~(1<<e)}disableAll(){this.mask=0}test(e){return 0!==(this.mask&e.mask)}isEnabled(e){return!!(this.mask&1<<e)}}let An=0;const yn=new Mt,bn=new It,_n=new sn,wn=new Mt,En=new Mt,Sn=new Mt,Tn=new It,xn=new Mt(1,0,0),Cn=new Mt(0,1,0),In=new Mt(0,0,1),Mn={type:"added"},kn={type:"removed"},Pn={type:"childadded",child:null},Rn={type:"childremoved",child:null};class Ln extends He{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:An++}),this.uuid=Ye(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Ln.DEFAULT_UP.clone();const e=new Mt,t=new gn,n=new It,i=new Mt(1,1,1);t._onChange(function(){n.setFromEuler(t,!1)}),n._onChange(function(){t.setFromQuaternion(n,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new sn},normalMatrix:{value:new nt}}),this.matrix=new sn,this.matrixWorld=new sn,this.matrixAutoUpdate=Ln.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=Ln.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new vn,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}
vendor: 4,299 bytes, line 67
67setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return bn.setFromAxisAngle(e,t),this.quaternion.multiply(bn),this}rotateOnWorldAxis(e,t){return bn.setFromAxisAngle(e,t),this.quaternion.premultiply(bn),this}rotateX(e){return this.rotateOnAxis(xn,e)}rotateY(e){return this.rotateOnAxis(Cn,e)}rotateZ(e){return this.rotateOnAxis(In,e)}translateOnAxis(e,t){return yn.copy(e).applyQuaternion(this.quaternion),this.position.add(yn.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(xn,e)}translateY(e){return this.translateOnAxis(Cn,e)}translateZ(e){return this.translateOnAxis(In,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(_n.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?wn.copy(e):wn.set(e,t,n);const i=this.parent;this.updateWorldMatrix(!0,!1),En.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?_n.lookAt(En,wn,this.up):_n.lookAt(wn,En,this.up),this.quaternion.setFromRotationMatrix(_n),i&&(_n.extractRotation(i.matrixWorld),bn.setFromRotationMatrix(_n),this.quaternion.premultiply(bn.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(Mn),Pn.child=e,this.dispatchEvent(Pn),Pn.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(kn),Rn.child=e,this.dispatchEvent(Rn),Rn.child=null),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),_n.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),_n.multiply(e.parent.matrixWorld)),e.applyMatrix4(_n),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(Mn),Pn.child=e,this.dispatchEvent(Pn),Pn.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n].getObjectByProperty(e,t);if(void 0!==i)return i}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);const i=this.children;for(let r=0,a=i.length;r<a;r++)i[r].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(En,e,Sn),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(En,Tn,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let n=0,i=t.length;n<i;n++){const i=t[n];!0!==i.matrixWorldAutoUpdate&&!0!==e||i.updateMatrixWorld(e)}}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix
vendor: 5,444 bytes, line 67
67):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===t){const e=this.children;for(let t=0,n=e.length;t<n;t++){const n=e[t];!0===n.matrixWorldAutoUpdate&&n.updateWorldMatrix(!1,!0)}}}toJSON(e){const t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const i={};function r(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(e=>({boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),null!==this.boundingSphere&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),null!==this.boundingBox&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,i=n.length;t<i;t++){const i=n[t];r(e.shapes,i)}else r(e.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const t=[];for(let n=0,i=this.material.length;n<i;n++)t.push(r(e.materials,this.material[n]));i.material=t}else i.material=r(e.materials,this.material);if(this.children.length>0){i.children=[];for(let t=0;t<this.children.length;t++)i.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];i.animations.push(r(e.animations,n))}}if(t){const t=a(e.geometries),i=a(e.materials),r=a(e.textures),s=a(e.images),o=a(e.shapes),l=a(e.skeletons),u=a(e.animations),c=a(e.nodes);t.length>0&&(n.geometries=t),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),s.length>0&&(n.images=s),o.length>0&&(n.shapes=o),l.length>0&&(n.skeletons=l),u.length>0&&(n.animations=u),c.length>0&&(n.nodes=c)}return n.object=i,n;function a(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t<e.children.length;t++){const n=e.children[t];this.add(n.clone())}return this}}Ln.DEFAULT_UP=new Mt(0,1,0),Ln.DEFAULT_MATRIX_AUTO_UPDATE=!0,Ln.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Bn=new Mt,Dn=new Mt,Nn=new Mt,On=new Mt,Un=new Mt,Fn=new Mt,zn=new Mt,Qn=new Mt,Vn=new Mt,Hn=new Mt;class Gn{constructor(e=new Mt,t=new Mt,n=new Mt){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,i){i.subVectors(n,t),Bn.subVectors(e,t),i.cross(Bn);const r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,t,n,i,r){Bn.subVectors(i,t),Dn.subVectors(n,t),Nn.subVectors(e,t);const a=Bn.dot(Bn),s=Bn.dot(Dn),o=Bn.dot(Nn),l=Dn.dot(Dn),u=Dn.dot(Nn),c=a*l-s*s;if(0===c)return r.set(0,0,0),null;const d=1/c,h=(l*o-s*u)*d,p=(a*u-s*o)*d;return r.set(1-h-p,p,h)}static containsPoint(e,t,n,i){return null!==this.getBarycoord(e,t,n,i,On)&&
vendor: 4,980 bytes, line 67
67(On.x>=0&&On.y>=0&&On.x+On.y<=1)}static getInterpolation(e,t,n,i,r,a,s,o){return null===this.getBarycoord(e,t,n,i,On)?(o.x=0,o.y=0,"z"in o&&(o.z=0),"w"in o&&(o.w=0),null):(o.setScalar(0),o.addScaledVector(r,On.x),o.addScaledVector(a,On.y),o.addScaledVector(s,On.z),o)}static isFrontFacing(e,t,n,i){return Bn.subVectors(n,t),Dn.subVectors(e,t),Bn.cross(Dn).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Bn.subVectors(this.c,this.b),Dn.subVectors(this.a,this.b),.5*Bn.cross(Dn).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Gn.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Gn.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,r){return Gn.getInterpolation(e,this.a,this.b,this.c,t,n,i,r)}containsPoint(e){return Gn.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Gn.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,i=this.b,r=this.c;let a,s;Un.subVectors(i,n),Fn.subVectors(r,n),Qn.subVectors(e,n);const o=Un.dot(Qn),l=Fn.dot(Qn);if(o<=0&&l<=0)return t.copy(n);Vn.subVectors(e,i);const u=Un.dot(Vn),c=Fn.dot(Vn);if(u>=0&&c<=u)return t.copy(i);const d=o*c-u*l;if(d<=0&&o>=0&&u<=0)return a=o/(o-u),t.copy(n).addScaledVector(Un,a);Hn.subVectors(e,r);const h=Un.dot(Hn),p=Fn.dot(Hn);if(p>=0&&h<=p)return t.copy(r);const f=h*l-o*p;if(f<=0&&l>=0&&p<=0)return s=l/(l-p),t.copy(n).addScaledVector(Fn,s);const m=u*p-h*c;if(m<=0&&c-u>=0&&h-p>=0)return zn.subVectors(r,i),s=(c-u)/(c-u+(h-p)),t.copy(i).addScaledVector(zn,s);const g=1/(m+f+d);return a=f*g,s=d*g,t.copy(n).addScaledVector(Un,a).addScaledVector(Fn,s)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const jn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},qn={h:0,s:0,l:0},Wn={h:0,s:0,l:0};
vendor: 6,951 bytes, line 67
67function Yn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class Xn{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=we){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,pt.toWorkingColorSpace(this,t),this}setRGB(e,t,n,i=pt.workingColorSpace){return this.r=e,this.g=t,this.b=n,pt.toWorkingColorSpace(this,i),this}setHSL(e,t,n,i=pt.workingColorSpace){if(e=Ke(e,1),t=Xe(t,0,1),n=Xe(n,0,1),0===t)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+t):n+t-n*t,r=2*n-i;this.r=Yn(r,i,e+1/3),this.g=Yn(r,i,e),this.b=Yn(r,i,e-1/3)}return pt.toWorkingColorSpace(this,i),this}setStyle(e,t=we){function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const a=i[1],s=i[2];switch(a){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const n=i[1],r=n.length;if(3===r)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(6===r)return this.setHex(parseInt(n,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=we){const n=jn[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=ft(e.r),this.g=ft(e.g),this.b=ft(e.b),this}copyLinearToSRGB(e){return this.r=mt(e.r),this.g=mt(e.g),this.b=mt(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=we){return pt.fromWorkingColorSpace(Kn.copy(this),e),65536*Math.round(Xe(255*Kn.r,0,255))+256*Math.round(Xe(255*Kn.g,0,255))+Math.round(Xe(255*Kn.b,0,255))}getHexString(e=we){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=pt.workingColorSpace){pt.fromWorkingColorSpace(Kn.copy(this),t);const n=Kn.r,i=Kn.g,r=Kn.b,a=Math.max(n,i,r),s=Math.min(n,i,r);let o,l;const u=(s+a)/2;if(s===a)o=0,l=0;else{const e=a-s;switch(l=u<=.5?e/(a+s):e/(2-a-s),a){case n:o=(i-r)/e+(i<r?6:0);break;case i:o=(r-n)/e+2;break;case r:o=(n-i)/e+4}o/=6}return e.h=o,e.s=l,e.l=u,e}getRGB(e,t=pt.workingColorSpace){return pt.fromWorkingColorSpace(Kn.copy(this),t),e.r=Kn.r,e.g=Kn.g,e.b=Kn.b,e}getStyle(e=we){pt.fromWorkingColorSpace(Kn.copy(this),e);const t=Kn.r,n=Kn.g,i=Kn.b;return e!==we?`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(255*t)},${Math.round(255*n)},${Math.round(255*i)})`}offsetHSL(e,t,n){return this.getHSL(qn),this.setHSL(qn.h+e,qn.s+t,qn.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(qn),e.getHSL(Wn);const n=$e(qn.h,Wn.h,t),i=$e(qn.s,Wn.s,t),r=$e(qn.l,Wn.l,t);return this.setHSL(n,i,r),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,n=this.g,i=this.b,r=e.elements;return this.r=r[0]*t+r[3]*n+r[6]*i,this.g=r[1]*t+r[4]*n+r[7]*i,this.b=r[2]*t+r[5]*n+r[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Kn=new Xn;Xn.NAMES=jn;let $n=0;class Jn extends He{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:$n++}),this.uuid=Ye(),this.name="",this.type="Material",this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=c,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Xn(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=ke,this.stencilZFail=ke,this.stencilZPass=ke,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n:console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`)}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function i(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}
vendor: 5,369 bytes, line 67
67if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapRotation&&(n.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),0!==this.side&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),204!==this.blendSrc&&(n.blendSrc=this.blendSrc),205!==this.blendDst&&(n.blendDst=this.blendDst),this.blendEquation!==c&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&
vendor: 12,148 bytes, line 67
67(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==ke&&(n.stencilFail=this.stencilFail),this.stencilZFail!==ke&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==ke&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=i(e.textures),r=i(e.images);t.length>0&&(n.textures=t),r.length>0&&(n.images=r)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let i=0;i!==e;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class Zn extends Jn{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Xn(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new gn,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const ei=ti();function ti(){const e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),i=new Uint32Array(512),r=new Uint32Array(512);for(let e=0;e<256;++e){const t=e-127;t<-27?(i[e]=0,i[256|e]=32768,r[e]=24,r[256|e]=24):t<-14?(i[e]=1024>>-t-14,i[256|e]=1024>>-t-14|32768,r[e]=-t-1,r[256|e]=-t-1):t<=15?(i[e]=t+15<<10,i[256|e]=t+15<<10|32768,r[e]=13,r[256|e]=13):t<128?(i[e]=31744,i[256|e]=64512,r[e]=24,r[256|e]=24):(i[e]=31744,i[256|e]=64512,r[e]=13,r[256|e]=13)}const a=new Uint32Array(2048),s=new Uint32Array(64),o=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(8388608&t);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,a[e]=t|n}for(let e=1024;e<2048;++e)a[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)s[e]=e<<23;s[31]=1199570944,s[32]=2147483648;for(let e=33;e<63;++e)s[e]=2147483648+(e-32<<23);s[63]=3347054592;for(let e=1;e<64;++e)32!==e&&(o[e]=1024);return{floatView:t,uint32View:n,baseTable:i,shiftTable:r,mantissaTable:a,exponentTable:s,offsetTable:o}}const ni={toHalfFloat:function(e){Math.abs(e)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),e=Xe(e,-65504,65504),ei.floatView[0]=e;const t=ei.uint32View[0],n=t>>23&511;return ei.baseTable[n]+((8388607&t)>>ei.shiftTable[n])},fromHalfFloat:function(e){const t=e>>10;return ei.uint32View[0]=ei.mantissaTable[ei.offsetTable[t]+(1023&e)]+ei.exponentTable[t],ei.floatView[0]}},ii=new Mt,ri=new tt;class ai{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=Fe,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=q,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return lt("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let i=0,r=this.itemSize;i<r;i++)this.array[e+i]=t.array[n+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)ri.fromBufferAttribute(this,t),ri.applyMatrix3(e),this.setXY(t,ri.x,ri.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)ii.fromBufferAttribute(this,t),ii.applyMatrix3(e),this.setXYZ(t,ii.x,ii.y,ii.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)ii.fromBufferAttribute(this,t),ii.applyMatrix4(e),this.setXYZ(t,ii.x,ii.y,ii.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)ii.fromBufferAttribute(this,t),ii.applyNormalMatrix(e),this.setXYZ(t,ii.x,ii.y,ii.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)ii.fromBufferAttribute(this,t),ii.transformDirection(e),this.setXYZ(t,ii.x,ii.y,ii.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=Je(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=Ze(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Je(t,this.array)),t}setX(e,t){return this.normalized&&(t=Ze(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Je(t,this.array)),t}setY(e,t){return this.normalized&&(t=Ze(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Je(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Ze(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Je(t,this.array)),t}setW(e,t){return this.normalized&&(t=Ze(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=Ze(t,this.array),n=Ze(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,i){return e*=this.itemSize,this.normalized&&(t=Ze(t,this.array),n=Ze(n,this.array),i=Ze(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this}setXYZW(e,t,n,i,r){return e*=this.itemSize,this.normalized&&(t=Ze(t,this.array),n=Ze(n,this.array),i=Ze(i,this.array),r=Ze(r,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this.array[e+3]=r,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),this.usage!==Fe&&(e.usage=this.usage),e}}class si extends ai{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class oi extends ai{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class li extends ai{constructor(e,t,n){super(new Float32Array(e),t,n)}}let ui=0;const ci=new sn,di=new Ln,hi=new Mt,pi=new Rt,fi=new Rt,mi=new Mt;class gi extends He{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:ui++}),this.uuid=Ye(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(rt(e)?oi:si)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new nt).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return ci.makeRotationFromQuaternion(e),this.applyMatrix4(ci),this}rotateX(e){return ci.makeRotationX(e),this.applyMatrix4(ci),this}rotateY(e){return ci.makeRotationY(e),this.applyMatrix4(ci),this}rotateZ(e){return ci.makeRotationZ(e),this.applyMatrix4(ci),this}translate(e,t,n){return ci.makeTranslation(e,t,n),this.applyMatrix4(ci),this}scale(e,t,n){return ci.makeScale(e,t,n),this.applyMatrix4(ci),this}lookAt(e){return di.lookAt(e),di.updateMatrix(),this.applyMatrix4(di.matrix
vendor: 22,140 bytes, line 67
67),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(hi).negate(),this.translate(hi.x,hi.y,hi.z),this}setFromPoints(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];t.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new li(t,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Rt);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),void this.boundingBox.set(new Mt(-1/0,-1/0,-1/0),new Mt(1/0,1/0,1/0));if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];pi.setFromBufferAttribute(n),this.morphTargetsRelative?(mi.addVectors(this.boundingBox.min,pi.min),this.boundingBox.expandByPoint(mi),mi.addVectors(this.boundingBox.max,pi.max),this.boundingBox.expandByPoint(mi)):(this.boundingBox.expandByPoint(pi.min),this.boundingBox.expandByPoint(pi.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new Kt);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),void this.boundingSphere.set(new Mt,1/0);if(e){const n=this.boundingSphere.center;if(pi.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];fi.setFromBufferAttribute(n),this.morphTargetsRelative?(mi.addVectors(pi.min,fi.min),pi.expandByPoint(mi),mi.addVectors(pi.max,fi.max),pi.expandByPoint(mi)):(pi.expandByPoint(fi.min),pi.expandByPoint(fi.max))}pi.getCenter(n);let i=0;for(let t=0,r=e.count;t<r;t++)mi.fromBufferAttribute(e,t),i=Math.max(i,n.distanceToSquared(mi));if(t)for(let r=0,a=t.length;r<a;r++){const a=t[r],s=this.morphTargetsRelative;for(let t=0,r=a.count;t<r;t++)mi.fromBufferAttribute(a,t),s&&(hi.fromBufferAttribute(e,t),mi.add(hi)),i=Math.max(i,n.distanceToSquared(mi))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.position,i=t.normal,r=t.uv;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new ai(new Float32Array(4*n.count),4));const a=this.getAttribute("tangent"),s=[],o=[];for(let e=0;e<n.count;e++)s[e]=new Mt,o[e]=new Mt;const l=new Mt,u=new Mt,c=new Mt,d=new tt,h=new tt,p=new tt,f=new Mt,m=new Mt;function g(e,t,i){l.fromBufferAttribute(n,e),u.fromBufferAttribute(n,t),c.fromBufferAttribute(n,i),d.fromBufferAttribute(r,e),h.fromBufferAttribute(r,t),p.fromBufferAttribute(r,i),u.sub(l),c.sub(l),h.sub(d),p.sub(d);const a=1/(h.x*p.y-p.x*h.y);isFinite(a)&&(f.copy(u).multiplyScalar(p.y).addScaledVector(c,-h.y).multiplyScalar(a),m.copy(c).multiplyScalar(h.x).addScaledVector(u,-p.x).multiplyScalar(a),s[e].add(f),s[t].add(f),s[i].add(f),o[e].add(m),o[t].add(m),o[i].add(m))}let v=this.groups;0===v.length&&(v=[{start:0,count:e.count}]);for(let t=0,n=v.length;t<n;++t){const n=v[t],i=n.start;for(let t=i,r=i+n.count;t<r;t+=3)g(e.getX(t+0),e.getX(t+1),e.getX(t+2))}const A=new Mt,y=new Mt,b=new Mt,_=new Mt;function w(e){b.fromBufferAttribute(i,e),_.copy(b);const t=s[e];A.copy(t),A.sub(b.multiplyScalar(b.dot(t))).normalize(),y.crossVectors(_,t);const n=y.dot(o[e])<0?-1:1;a.setXYZW(e,A.x,A.y,A.z,n)}for(let t=0,n=v.length;t<n;++t){const n=v[t],i=n.start;for(let t=i,r=i+n.count;t<r;t+=3)w(e.getX(t+0)),w(e.getX(t+1)),w(e.getX(t+2))}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new ai(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const i=new Mt,r=new Mt,a=new Mt,s=new Mt,o=new Mt,l=new Mt,u=new Mt,c=new Mt;if(e)for(let d=0,h=e.count;d<h;d+=3){const h=e.getX(d+0),p=e.getX(d+1),f=e.getX(d+2);i.fromBufferAttribute(t,h),r.fromBufferAttribute(t,p),a.fromBufferAttribute(t,f),u.subVectors(a,r),c.subVectors(i,r),u.cross(c),s.fromBufferAttribute(n,h),o.fromBufferAttribute(n,p),l.fromBufferAttribute(n,f),s.add(u),o.add(u),l.add(u),n.setXYZ(h,s.x,s.y,s.z),n.setXYZ(p,o.x,o.y,o.z),n.setXYZ(f,l.x,l.y,l.z)}else for(let e=0,s=t.count;e<s;e+=3)i.fromBufferAttribute(t,e+0),r.fromBufferAttribute(t,e+1),a.fromBufferAttribute(t,e+2),u.subVectors(a,r),c.subVectors(i,r),u.cross(c),n.setXYZ(e+0,u.x,u.y,u.z),n.setXYZ(e+1,u.x,u.y,u.z),n.setXYZ(e+2,u.x,u.y,u.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)mi.fromBufferAttribute(e,t),mi.normalize(),e.setXYZ(t,mi.x,mi.y,mi.z)}toNonIndexed(){function e(e,t){const n=e.array,i=e.itemSize,r=e.normalized,a=new n.constructor(t.length*i);let s=0,o=0;for(let r=0,l=t.length;r<l;r++){s=e.isInterleavedBufferAttribute?t[r]*e.data.stride+e.offset:t[r]*i;for(let e=0;e<i;e++)a[o++]=n[s++]}return new ai(a,i,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const t=new gi,n=this.index.array,i=this.attributes;for(const r in i){const a=e(i[r],n);t.setAttribute(r,a)}const r=this.morphAttributes;for(const i in r){const a=[],s=r[i];for(let t=0,i=s.length;t<i;t++){const i=e(s[t],n);a.push(i)}t.morphAttributes[i]=a}t.morphTargetsRelative=this.morphTargetsRelative;const a=this.groups;for(let e=0,n=a.length;e<n;e++){const n=a[e];t.addGroup(n.start,n.count,n.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const t in n){const i=n[t];e.data.attributes[t]=i.toJSON(e.data)}const i={};let r=!1;for(const t in this.morphAttributes){const n=this.morphAttributes[t],a=[];for(let t=0,i=n.length;t<i;t++){const i=n[t];a.push(i.toJSON(e.data))}a.length>0&&(i[t]=a,r=!0)}r&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));const s=this.boundingSphere;return null!==s&&(e.data.boundingSphere={center:s.center.toArray(),radius:s.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const i=e.attributes;for(const e in i){const n=i[e];this.setAttribute(e,n.clone(t))}const r=e.morphAttributes;for(const e in r){const n=[],i=r[e];for(let e=0,r=i.length;e<r;e++)n.push(i[e].clone(t));this.morphAttributes[e]=n}this.morphTargetsRelative=e.morphTargetsRelative;const a=e.groups;for(let e=0,t=a.length;e<t;e++){const t=a[e];this.addGroup(t.start,t.count,t.materialIndex)}const s=e.boundingBox;null!==s&&(this.boundingBox=s.clone());const o=e.boundingSphere;return null!==o&&(this.boundingSphere=o.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const vi=new sn,Ai=new an,yi=new Kt,bi=new Mt,_i=new Mt,wi=new Mt,Ei=new Mt,Si=new Mt,Ti=new Mt,xi=new tt,Ci=new tt,Ii=new tt,Mi=new Mt,ki=new Mt,Pi=new Mt,Ri=new Mt,Li=new Mt;class Bi extends Ln{constructor(e=new gi,t=new Zn){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){const n=this.geometry,i=n.attributes.position,r=n.morphAttributes.position,a=n.morphTargetsRelative;t.fromBufferAttribute(i,e);const s=this.morphTargetInfluences;if(r&&s){Ti.set(0,0,0);for(let n=0,i=r.length;n<i;n++){const i=s[n],o=r[n];0!==i&&(Si.fromBufferAttribute(o,e),a?Ti.addScaledVector(Si,i):Ti.addScaledVector(Si.sub(t),i))}t.add(Ti)}return t}raycast(e,t){const n=this.geometry,i=this.material,r=this.matrixWorld;if(void 0!==i){if(null===n.boundingSphere&&n.computeBoundingSphere(),yi.copy(n.boundingSphere),yi.applyMatrix4(r),Ai.copy(e.ray).recast(e.near),!1===yi.containsPoint(Ai.origin)){if(null===Ai.intersectSphere(yi,bi))return;if(Ai.origin.distanceToSquared(bi)>(e.far-e.near)**2)return}vi.copy(r).invert(),Ai.copy(e.ray).applyMatrix4(vi),null!==n.boundingBox&&!1===Ai.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,Ai)}}_computeIntersections(e,t,n){let i;const r=this.geometry,a=this.material,s=r.index,o=r.attributes.position,l=r.attributes.uv,u=r.attributes.uv1,c=r.attributes.normal,d=r.groups,h=r.drawRange;if(null!==s)if(Array.isArray(a))for(let r=0,o=d.length;r<o;r++){const o=d[r],p=a[o.materialIndex];for(let r=Math.max(o.start,h.start),a=Math.min(s.count,Math.min(o.start+o.count,h.start+h.count));r<a;r+=3){i=Di(this,p,e,n,l,u,c,s.getX(r),s.getX(r+1),s.getX(r+2)),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=o.materialIndex,t.push(i))}}else{for(let r=Math.max(0,h.start),o=Math.min(s.count,h.start+h.count);r<o;r+=3){i=Di(this,a,e,n,l,u,c,s.getX(r),s.getX(r+1),s.getX(r+2)),i&&(i.faceIndex=Math.floor(r/3),t.push(i))}}else if(void 0!==o)if(Array.isArray(a))for(let r=0,s=d.length;r<s;r++){const s=d[r],p=a[s.materialIndex];for(let r=Math.max(s.start,h.start),a=Math.min(o.count,Math.min(s.start+s.count,h.start+h.count));r<a;r+=3){i=Di(this,p,e,n,l,u,c,r,r+1,r+2),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=s.materialIndex,t.push(i))}}else{for(let r=Math.max(0,h.start),s=Math.min(o.count,h.start+h.count);r<s;r+=3){i=Di(this,a,e,n,l,u,c,r,r+1,r+2),i&&(i.faceIndex=Math.floor(r/3),t.push(i))}}}}function Di(e,t,n,i,r,a,s,o,l,u){e.getVertexPosition(o,_i),e.getVertexPosition(l,wi),e.getVertexPosition(u,Ei);const c=function(e,t,n,i,r,a,s,o){let l;if(l=1===t.side?i.intersectTriangle(s,a,r,!0,o):i.intersectTriangle(r,a,s,0===t.side,o),null===l)return null;Li.copy(o),Li.applyMatrix4(e.matrixWorld);const u=n.ray.origin.distanceTo(Li);return u<n.near||u>n.far?null:{distance:u,point:Li.clone(),object:e}}(e,t,n,i,_i,wi,Ei,Ri);if(c){r&&(xi.fromBufferAttribute(r,o),Ci.fromBufferAttribute(r,l),Ii.fromBufferAttribute(r,u),c.uv=Gn.getInterpolation(Ri,_i,wi,Ei,xi,Ci,Ii,new tt)),a&&(xi.fromBufferAttribute(a,o),Ci.fromBufferAttribute(a,l),Ii.fromBufferAttribute(a,u),c.uv1=Gn.getInterpolation(Ri,_i,wi,Ei,xi,Ci,Ii,new tt)),s&&(Mi.fromBufferAttribute(s,o),ki.fromBufferAttribute(s,l),Pi.fromBufferAttribute(s,u),c.normal=Gn.getInterpolation(Ri,_i,wi,Ei,Mi,ki,Pi,new Mt),c.normal.dot(i.direction)>0&&c.normal.multiplyScalar(-1));const e={a:o,b:l,c:u,normal:new Mt,materialIndex:0};Gn.getNormal(_i,wi,Ei,e.normal),c.face=e}return c}class Ni extends gi{constructor(e=1,t=1,n=1,i=1,r=1,a=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:a};const s=this;i=Math.floor(i),r=Math.floor(r),a=Math.floor(a);const o=[],l=[],u=[],c=[];let d=0,h=0;function p(e,t,n,i,r,a,p,f,m,g,v){const A=a/m,y=p/g,b=a/2,_=p/2,w=f/2,E=m+1,S=g+1;let T=0,x=0;const C=new Mt;for(let a=0;a<S;a++){const s=a*y-_;for(let o=0;o<E;o++){const d=o*A-b;C[e]=d*i,C[t]=s*r,C[n]=w,l.push(C.x,C.y,C.z),C[e]=0,C[t]=0,C[n]=f>0?1:-1,u.push(C.x,C.y,C.z),c.push(o/m),c.push(1-a/g),T+=1}}for(let e=0;e<g;e++)for(let t=0;t<m;t++){const n=d+t+E*e,i=d+t+E*(e+1),r=d+(t+1)+E*(e+1),a=d+(t+1)+E*e;o.push(n,i,a),o.push(i,r,a),x+=6}s.addGroup(h,x,v),h+=x,d+=T}p("z","y","x",-1,-1,n,t,e,a,r,0),p("z","y","x",1,-1,n,t,-e,a,r,1),p("x","z","y",1,1,e,n,t,i,a,2),p("x","z","y",1,-1,e,n,-t,i,a,3),p("x","y","z",1,-1,e,t,n,i,r,4),p("x","y","z",-1,-1,e,t,-n,i,r,5),this.setIndex(o),this.setAttribute("position",new li(l,3)),this.setAttribute("normal",new li(u,3)),this.setAttribute("uv",new li(c,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ni(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Oi(e){const t={};for(const n in e){t[n]={};for(const i in e[n]){const r=e[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[n][i]=null):t[n][i]=r.clone():Array.isArray(r)?t[n][i]=r.slice():t[n][i]=r}}return t}function Ui(e){const t={};for(let n=0;n<e.length;n++){const i=Oi(e[n]);for(const e in i)t[e]=i[e]}return t}function Fi(e){const t=e.getRenderTarget();return null===t?e.outputColorSpace:!0===t.isXRRenderTarget?t.texture.colorSpace:pt.workingColorSpace}const zi={clone:Oi,merge:Ui};class Qi extends Jn{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Oi(e.uniforms),this.uniformsGroups=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const n in this.uniforms){const i=this.uniforms[n].value;i&&i.isTexture?t.uniforms[n]={type:"t",value:i.toJSON(e).uuid}:i&&i.isColor?t.uniforms[n]={type:"c",value:i.getHex()}:i&&i.isVector2?t.uniforms[n]={type:"v2",value:i.toArray()}:i&&i.isVector3?t.uniforms[n]={type:"v3",value:i.toArray()}:i&&i.isVector4?t.uniforms[n]={type:"v4",value:i.toArray()}:i&&i.isMatrix3?t.uniforms[n]={type:"m3",value:i.toArray()}:i&&i.isMatrix4?t.uniforms[n]={type:"m4",value:i.toArray()}:t.uniforms[n]={value:i}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const e in this.extensions)!0===this.extensions[e]&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Vi extends Ln{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new sn,this.projectionMatrix=new sn,this.projectionMatrixInverse=new sn,this.coordinateSystem=Qe}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}const Hi=new Mt,Gi=new tt,ji=new tt;class qi extends Vi{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*We*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*qe*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*We*Math.atan(Math.tan(.5*qe*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){Hi.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(Hi.x,Hi.y).multiplyScalar(-e/Hi.z),Hi.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Hi.x,Hi.y).multiplyScalar(-e/Hi.z)}getViewSize(e,t){return this.getViewBounds(e,Gi,ji),t.subVectors(ji,Gi)}setViewOffset(e,t,n,i,r,a){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*qe*this.fov)/this.zoom,n=2*t,i=this.aspect*n,r=-.5*i;const a=this.view;if(null!==this.view&&this.view.enabled){const e=a.fullWidth,s=a.fullHeight;r+=a.offsetX*i/e,t-=a.offsetY*n/s,i*=a.width/e,n*=a.height/s}const s=this.filmOffset;0!==s&&(r+=e*s/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Wi=-90;class Yi extends Ln{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new qi(Wi,1,e,t);i.layers=this.layers,this.add(i);const r=new qi(Wi,1,e,t);r.layers=this.layers,this.add(r);const a=new qi(Wi,1,e,t);a.layers=this.layers,this.add(a);const s=new qi(Wi,1,e,t);s.layers=this.layers,this.add(s);const o=new qi(Wi,1,e,t);o.layers=this.layers,this.add(o);const l=new qi(Wi,1,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,i,r,a,s,o]=t;for(const e of t)this.remove(e);if(e===Qe)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),s.up.set(0,1,0),s.lookAt(0,0,1),o.up.set(0,1,0),o.lookAt(0,0,-1);else{if(e!==Ve)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),s.up.set(0,-1,0),s.lookAt(0,0,1),o.up.set(0,-1,0),o.lookAt(0,0,-1)}for(const e of t)this.add(e),e.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,a,s,o,l,u]=this.children,c=e.getRenderTarget(),d=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const f=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,r),e.setRenderTarget(n,1,i),e.render(t,a),e.setRenderTarget(n,2,i),e.render(t,s),e.setRenderTarget(n,3,i),e.render(t,o),e.setRenderTarget(n,4,i),e.render(t,l),n.texture.generateMipmaps=f,e.setRenderTarget(n,5,i),e.render(t,u),e.setRenderTarget(c,d,h),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}}class Xi extends wt{constructor(e,t,n,i,r,a,s,o,l,u){super(e=void 0!==e?e:[],t=void 0!==t?t:k,n,i,r,a,s,o,l,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Ki extends Tt{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new Xi(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:z}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace
vendor: 4,527 bytes, line 67
67=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new Ni(5,5,5),r=new Qi({name:"CubemapFromEquirect",uniforms:Oi(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});r.uniforms.tEquirect.value=t;const a=new Bi(i,r),s=t.minFilter;t.minFilter===V&&(t.minFilter=z);return new Yi(1,10,this).update(e,a),t.minFilter=s,a.geometry.dispose(),a.material.dispose(),this}clear(e,t,n,i){const r=e.getRenderTarget();for(let r=0;r<6;r++)e.setRenderTarget(this,r),e.clear(t,n,i);e.setRenderTarget(r)}}const $i=new Mt,Ji=new Mt,Zi=new nt;class er{constructor(e=new Mt(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const i=$i.subVectors(n,t).cross(Ji.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta($i),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:t.copy(e.start).addScaledVector(n,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||Zi.getNormalMatrix(e),i=this.coplanarPoint($i).applyMatrix4(e),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const tr=new Kt,nr=new Mt;class ir{constructor(e=new er,t=new er,n=new er,i=new er,r=new er,a=new er){this.planes=[e,t,n,i,r,a]}set(e,t,n,i,r,a){const s=this.planes;return s[0].copy(e),s[1].copy(t),s[2].copy(n),s[3].copy(i),s[4].copy(r),s[5].copy(a),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=2e3){const n=this.planes,i=e.elements,r=i[0],a=i[1],s=i[2],o=i[3],l=i[4],u=i[5],c=i[6],d=i[7],h=i[8],p=i[9],f=i[10],m=i[11],g=i[12],v=i[13],A=i[14],y=i[15];if(n[0].setComponents(o-r,d-l,m-h,y-g).normalize(),n[1].setComponents(o+r,d+l,m+h,y+g).normalize(),n[2].setComponents(o+a,d+u,m+p,y+v).normalize(),n[3].setComponents(o-a,d-u,m-p,y-v).normalize(),n[4].setComponents(o-s,d-c,m-f,y-A).normalize(),t===Qe)n[5].setComponents(o+s,d+c,m+f,y+A).normalize();else{if(t!==Ve)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(s,c,f,A).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),tr.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),tr.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(tr)}
vendor: 4,850 bytes, line 67
67intersectsSprite(e){return tr.center.set(0,0,0),tr.radius=.7071067811865476,tr.applyMatrix4(e.matrixWorld),this.intersectsSphere(tr)}intersectsSphere(e){const t=this.planes,n=e.center,i=-e.radius;for(let e=0;e<6;e++){if(t[e].distanceToPoint(n)<i)return!1}return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const i=t[n];if(nr.x=i.normal.x>0?e.max.x:e.min.x,nr.y=i.normal.y>0?e.max.y:e.min.y,nr.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(nr)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function rr(){let e=null,t=!1,n=null,i=null;function r(t,a){n(t,a),i=e.requestAnimationFrame(r)}return{start:function(){!0!==t&&null!==n&&(i=e.requestAnimationFrame(r),t=!0)},stop:function(){e.cancelAnimationFrame(i),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function ar(e){const t=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);const i=t.get(n);i&&(e.deleteBuffer(i.buffer),t.delete(n))},update:function(n,i){if(n.isGLBufferAttribute){const e=t.get(n);return void((!e||e.version<n.version)&&t.set(n,{buffer:n.buffer,type:n.type,bytesPerElement:n.elementSize,version:n.version}))}n.isInterleavedBufferAttribute&&(n=n.data);const r=t.get(n);if(void 0===r)t.set(n,function(t,n){const i=t.array,r=t.usage,a=i.byteLength,s=e.createBuffer();let o;if(e.bindBuffer(n,s),e.bufferData(n,i,r),t.onUploadCallback(),i instanceof Float32Array)o=e.FLOAT;else if(i instanceof Uint16Array)o=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(i instanceof Int16Array)o=e.SHORT;else if(i instanceof Uint32Array)o=e.UNSIGNED_INT;else if(i instanceof Int32Array)o=e.INT;else if(i instanceof Int8Array)o=e.BYTE;else if(i instanceof Uint8Array)o=e.UNSIGNED_BYTE;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);o=e.UNSIGNED_BYTE}return{buffer:s,type:o,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version,size:a}}(n,i));else if(r.version<n.version){if(r.size!==n.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");!function(t,n,i){const r=n.array,a=n._updateRange,s=n.updateRanges;if(e.bindBuffer(i,t),-1===a.count&&0===s.length&&e.bufferSubData(i,0,r),0!==s.length){for(let t=0,n=s.length;t<n;t++){const n=s[t];e.bufferSubData(i,n.start*r.BYTES_PER_ELEMENT,r,n.start,n.count)}n.clearUpdateRanges()}-1!==a.count&&(e.bufferSubData(i,a.offset*r.BYTES_PER_ELEMENT,r,a.offset,a.count),a.count=-1),n.onUploadCallback()}(r.buffer,n,i),r.version=n.version}}}}class sr extends gi{constructor(e=1,t=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:i};const r=e/2,a=t/2,s=Math.floor(n),o=Math.floor(i),l=s+1,u=o+1,c=e/s,d=t/o,h=[],p=[],f=[],m=[];for(let e=0;e<u;e++){const t=e*d-a;for(let n=0;n<l;n++){const i=n*c-r;p.push(i,-t,0),f.push(0,0,1),m.push(n/s),m.push(1-e/o)}}for(let e=0;e<o;e++)for(let t=0;t<s;t++){const n=t+l*e,i=t+l*(e+1),r=t+1+l*(e+1),a=t+1+l*e;h.push(n,i,a),h.push(i,r,a)}this.setIndex(h),this.setAttribute("position",new li(p,3)),this.setAttribute("normal",new li(f,3)),this.setAttribute("uv",new li(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new sr(e.width,e.height,e.widthSegments,e.heightSegments)}}const or={alphahash_fragment:"#ifdef USE_ALPHAHASH\n\tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",alphahash_pars_fragment:"#ifdef USE_ALPHAHASH\n\tconst float ALPHA_HASH_SCALE = 0.05;\n\tfloat hash2D( vec2 value ) {\n\t\treturn fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n\t}\n\tfloat hash3D( vec3 value ) {\n\t\treturn hash2D( vec2( hash2D( value.xy ), value.z ) );\n\t}\n\tfloat getAlphaHashThreshold( vec3 position ) {\n\t\tfloat maxDeriv = max(\n\t\t\tlength( dFdx( position.xyz ) ),\n\t\t\tlength( dFdy( position.xyz ) )\n\t\t);\n\t\tfloat pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n\t\tvec2 pixScales = vec2(\n\t\t\texp2( floor( log2( pixScale ) ) ),\n\t\t\texp2( ceil( log2( pixScale ) ) )\n\t\t);\n\t\tvec2 alpha = vec2(\n\t\t\thash3D( floor( pixScales.x * position.xyz ) ),\n\t\t\thash3D( floor( pixScales.y * position.xyz ) )\n\t\t);\n\t\tfloat lerpFactor = fract( log2( pixScale ) );\n\t\tfloat x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n\t\tfloat a = min( lerpFactor, 1.0 - lerpFactor );\n\t\tvec3 cases = vec3(\n\t\t\tx * x / ( 2.0 * a * ( 1.0 - a ) ),\n\t\t\t( x - 0.5 * a ) / ( 1.0 - a ),\n\t\t\t1.0 
67- ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n\t\t);\n\t\tfloat threshold = ( x < ( 1.0 - a ) )\n\t\t\t? ( ( x < a ) ? cases.x : cases.y )\n\t\t\t: cases.z;\n\t\treturn clamp( threshold , 1.0e-6, 1.0 );\n\t}\n#endif",alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\t#ifdef ALPHA_TO_COVERAGE\n\tdiffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\tif ( diffuseColor.a < alphaTest ) discard;\n\t#endif\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_CLEARCOAT ) \n\t\tclearcoatSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_SHEEN ) \n\t\tsheenSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometryNormal, geometryViewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",batching_pars_vertex:"#ifdef USE_BATCHING\n\tattribute float batchId;\n\tuniform highp sampler2D batchingTexture;\n\tmat4 getBatchingMatrix( const in float i ) {\n\t\tint size = textureSize( batchingTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",batching_vertex:"#ifdef USE_BATCHING\n\tmat4 batchingMatrix = getBatchingMatrix( batchId );\n#endif",begin_vertex:"vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n\tvPosition = vec3( position );\n#endif",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"float G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n} // validated",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660,  0.0556434,\n\t\t-1.5371385,  1.8760108, -0.2040259,\n\t\t-0.4985314,  0.0415560,  1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\treturn vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
67\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n\t\tvec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instance
vendor: 14,829 bytes, line 67
67Color.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_
67fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif
vendor: 7,866 bytes, line 67
67\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_
67IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90
vendor: 16,739 bytes, line 67
67;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n    float x2 = x * x;\n    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadow
67Bias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[MORPHTARGETS_COUNT];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] =  texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t#endif\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\t#ifndef USE_INSTANCING_MORPH\n\t\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\t#endif\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif
vendor: 7,877 bytes, line 67
67\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadow
67Bias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;
67\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}
67\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize
vendor: 5,438 bytes, line 67
67, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(  1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,  1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,  1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\t
67float startCompression = 0.8 - 0.04;\n\tfloat desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min(color.r, min(color.g, color.b));\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max(color.r, max(color.g, color.b));\n\tif (peak < startCompression) return color;\n\tfloat d = 1. - startCompression;\n\tfloat newPeak = 1. - d * d / (peak + d - startCompression);\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / (desaturation * (peak - newPeak) + 1.);\n\treturn mix(color, newPeak * vec3(1, 1, 1), g);\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
vendor: 12,076 bytes, line 67
67\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",depth_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#e
67ndif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_lambert_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
67\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;
67\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
67\n\t#endif\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}"},lr={common:{diffuse:{value:new Xn(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new nt},alphaMap:{value:null},alphaMapTransform:{value:new nt},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new nt}},envmap:{envMap:{value:null},envMapRotation:{value:new nt},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new nt}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new nt}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new nt},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new nt},normalScale:{value:new tt(1,1)}}
vendor: 7,524 bytes, line 67
67,displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new nt},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new nt}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new nt}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new nt}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Xn(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Xn(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new nt},alphaTest:{value:0},uvTransform:{value:new nt}},sprite:{diffuse:{value:new Xn(16777215)},opacity:{value:1},center:{value:new tt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new nt},alphaMap:{value:null},alphaMapTransform:{value:new nt},alphaTest:{value:0}}},ur={basic:{uniforms:Ui([lr.common,lr.specularmap,lr.envmap,lr.aomap,lr.lightmap,lr.fog]),vertexShader:or.meshbasic_vert,fragmentShader:or.meshbasic_frag},lambert:{uniforms:Ui([lr.common,lr.specularmap,lr.envmap,lr.aomap,lr.lightmap,lr.emissivemap,lr.bumpmap,lr.normalmap,lr.displacementmap,lr.fog,lr.lights,{emissive:{value:new Xn(0)}}]),vertexShader:or.meshlambert_vert,fragmentShader:or.meshlambert_frag},phong:{uniforms:Ui([lr.common,lr.specularmap,lr.envmap,lr.aomap,lr.lightmap,lr.emissivemap,lr.bumpmap,lr.normalmap,lr.displacementmap,lr.fog,lr.lights,{emissive:{value:new Xn(0)},specular:{value:new Xn(1118481)},shininess:{value:30}}]),vertexShader:or.meshphong_vert,fragmentShader:or.meshphong_frag},standard:{uniforms:Ui([lr.common,lr.envmap,lr.aomap,lr.lightmap,lr.emissivemap,lr.bumpmap,lr.normalmap,lr.displacementmap,lr.roughnessmap,lr.metalnessmap,lr.fog,lr.lights,{emissive:{value:new Xn(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:or.meshphysical_vert,fragmentShader:or.meshphysical_frag},toon:{uniforms:Ui([lr.common,lr.aomap,lr.lightmap,lr.emissivemap,lr.bumpmap,lr.normalmap,lr.displacementmap,lr.gradientmap,lr.fog,lr.lights,{emissive:{value:new Xn(0)}}]),vertexShader:or.meshtoon_vert,fragmentShader:or.meshtoon_frag},matcap:{uniforms:Ui([lr.common,lr.bumpmap,lr.normalmap,lr.displacementmap,lr.fog,{matcap:{value:null}}]),vertexShader:or.meshmatcap_vert,fragmentShader:or.meshmatcap_frag},points:{uniforms:Ui([lr.points,lr.fog]),vertexShader:or.points_vert,fragmentShader:or.points_frag},dashed:{uniforms:Ui([lr.common,lr.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:or.linedashed_vert,fragmentShader:or.linedashed_frag},depth:{uniforms:Ui([lr.common,lr.displacementmap]),vertexShader:or.depth_vert,fragmentShader:or.depth_frag},normal:{uniforms:Ui([lr.common,lr.bumpmap,lr.normalmap,lr.displacementmap,{opacity:{value:1}}]),vertexShader:or.meshnormal_vert,fragmentShader:or.meshnormal_frag},sprite:{uniforms:Ui([lr.sprite,lr.fog]),vertexShader:or.sprite_vert,fragmentShader:or.sprite_frag},background:{uniforms:{uvTransform:{value:new nt},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:or.background_vert,fragmentShader:or.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new nt}},vertexShader:or.backgroundCube_vert,fragmentShader:or.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:or.cube_vert,fragmentShader:or.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:or.equirect_vert,fragmentShader:or.equirect_frag},distanceRGBA:{uniforms:Ui([lr.common,lr.displacementmap,{referencePosition:{value:new Mt},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:or.distanceRGBA_vert,fragmentShader:or.distanceRGBA_frag},shadow:{uniforms:Ui([lr.lights,lr.fog,{color:{value:new Xn(0)},opacity:{value:1}}]),vertexShader:or.shadow_vert,fragmentShader:or.shadow_frag}};ur.physical={uniforms:Ui([ur.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new nt},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new nt},clearcoatNormalScale:{value:new tt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new nt},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new nt},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new nt},sheen:{value:0},sheenColor:{value:new Xn(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new nt},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new nt},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new nt},transmissionSamplerSize:{value:new tt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new nt},attenuationDistance:{value:0},attenuationColor:{value:new Xn(0)},specularColor:{value:new Xn(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new nt},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new nt},anisotropyVector:{value:new tt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new nt}}]),vertexShader:or.meshphysical_vert,fragmentShader:or.meshphysical_frag};const cr={r:0,b:0,g:0},dr=new gn,hr=new sn;function pr(e,t,n,i,r,a,s){const o=new Xn(0);let l,u,c=!0===a?0:1,d=null,h=0,p=null;function f(t,n){t.getRGB(cr,Fi(e)),i.buffers.color.setClear(cr.r,cr.g,cr.b,n,s)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),c=t,f(o,c)},getClearAlpha:function(){return c},setClearAlpha:function(e){c=e,f(o,c)},render:function(a,m){let g=!1,v=!0===m.isScene?m.background:null;if(v&&v.isTexture){v=(m.backgroundBlurriness>0?n:t).get(v)}null===v?f(o,c):v&&v.isColor&&(f(v,1),g=!0);const A=e.xr.getEnvironmentBlendMode();"additive"===A?i.buffers.color.setClear(0,0,0,1,s):"alpha-blend"===A&&i.buffers.color.setClear(0,0,0,0,s),(e.autoClear||g)&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),v&&(v.isCubeTexture||v.mapping===L)?(void 0===u&&(u=new Bi(new Ni(1,1,1),new Qi({name:"Backgroun
67dCubeMaterial",uniforms:Oi(ur.backgroundCube.uniforms),vertexShader:ur.backgroundCube.vertexShader,fragmentShader:ur.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(u)),dr.copy(m.backgroundRotation),dr.x*=-1,dr.y*=-1,dr.z*=-1,v.isCubeTexture&&!1===v.isRenderTargetTexture&&(dr.y*=-1,dr.z*=-1),u.material.uniforms.envMap.value=v,u.material.uniforms.flipEnvMap.value=v.isCubeTexture&&!1===v.isRenderTargetTexture?-1:1,u.material.uniforms.backgroundBlurriness.value=m.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=m.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(hr.makeRotationFromEuler(dr)),u.material.toneMapped=pt.getTransfer(v.colorSpace)!==Ce,d===v&&h===v.version&&p===e.toneMapping||(u.material.needsUpdate=!0,d=v,h=v.version,p=e.toneMapping),u.layers.enableAll(),a.unshift(u,u.geometry,u.material,0,0,null)):v&&v.isTexture&&(void 0===l&&(l=new Bi(new sr(2,2),new Qi({name:"BackgroundMaterial",uniforms:Oi(ur.background.uniforms),vertexShader:ur.background.vertexShader,fragmentShader:ur.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(l)),l.material.uniforms.t2D.value=v,l.material.uniforms.backgroundIntensity.value=m.backgroundIntensity,l.material.toneMapped=pt.getTransfer(v.colorSpace)!==Ce,!0===v.matrixAutoUpdate&&v.updateMatrix(),l.material.uniforms.uvTransform.value.copy(v.matrix),d===v&&h===v.version&&p===e.toneMapping||(l.material.needsUpdate=!0,d=v,h=v.version,p=e.toneMapping),l.layers.enableAll(),a.unshift(l,l.geometry,l.material,0,0,null))}}}function fr(e,t){const n=e.getParameter(e.MAX_VERTEX_ATTRIBS),i={},r=u(null);let a=r,s=!1;function o(t){return e.bindVertexArray(t)}function l(t){return e.deleteVertexArray(t)}function u(e){const t=[],i=[],r=[];for(let e=0;e<n;e++)t[e]=0,i[e]=0,r[e]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:i,attributeDivisors:r,object:e,attributes:{},index:null}}function c(){const e=a.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function d(e){h(e,0)}function h(t,n){const i=a.newAttributes,r=a.enabledAttributes,s=a.attributeDivisors;i[t]=1,0===r[t]&&(e.enableVertexAttribArray(t),r[t]=1),s[t]!==n&&(e.vertexAttribDivisor(t,n),s[t]=n)}function p(){const t=a.newAttributes,n=a.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==t[i]&&(e.disableVertexAttribArray(i),n[i]=0)}function f(t,n,i,r,a,s,o){!0===o?e.vertexAttribIPointer(t,n,i,a,s):e.vertexAttribPointer(t,n,i,r,a,s)}function m(){g(),s=!0,a!==r&&(a=r,o(a.object))}function g(){r.geometry=null,r.program=null,r.wireframe=!1}return{setup:function(n,r,l,m,g){let v=!1;const A=function(t,n,r){const a=!0===r.wireframe;let s=i[t.id];void 0===s&&(s={},i[t.id]=s);let o=s[n.id];void 0===o&&(o={},s[n.id]=o);let l=o[a];void 0===l&&(l=u(e.createVertexArray()),o[a]=l);return l}(m,l,r);a!==A&&(a=A,o(a.object)),v=function(e,t,n,i){const r=a.attributes,s=t.attributes;let o=0;const l=n.getAttributes();for(const t in l){if(l[t].location>=0){const n=r[t];let i=s[t];if(void 0===i&&("instanceMatrix"===t&&e.instanceMatrix&&(i=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(i=e.instanceColor)),void 0===n)return!0;if(n.attribute!==i)return!0;if(i&&n.data!==i.data)return!0;o++}}return a.attributesNum!==o||a.index!==i}(n,m,l,g),v&&function(e,t,n,i){const r={},s=t.attributes;let o=0;const l=n.getAttributes();for(const t in l){if(l[t].location>=0){let n=s[t];void 0===n&&("instanceMatrix"===t&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(n=e.instanceColor));const i={};i.attribute=n,n&&n.data&&(i.data=n.data),r[t]=i,o++}}a.attributes=r,a.attributesNum=o,a.index=i}(n,m,l,g),null!==g&&t.update(g,e.ELEMENT_ARRAY_BUFFER),(v||s)&&(s=!1,function(n,i,r,a){c();const s=a.attributes,o=r.getAttributes(),l=i.defaultAttributeValues;for(const i in o){const r=o[i];if(r.location>=0){let o=s[i];if(void 0===o&&("instanceMatrix"===i&&n.instanceMatrix&&(o=n.instanceMatrix),"instanceColor"===i&&n.instanceColor&&(o=n.instanceColor)),void 0!==o){const i=o.normalized,s=o.itemSize,l=t.get(o);if(void 0===l)continue;const u=l.buffer,c=l.type,p=l.bytesPerElement,m=c===e.INT||c===e.UNSIGNED_INT||o.gpuType===G;if(o.isInterleavedBufferAttribute){const t=o.data,l=t.stride,g=o.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e<r.locationSize;e++)h(r.location+e,t.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===a._maxInstanceCount&&(a._maxInstanceCount=t.meshPerAttribute*t.count)}else for(let e=0;e<r.locationSize;e++)d(r.location+e);e.bindBuffer(e.ARRAY_BUFFER,u);for(let e=0;e<r.locationSize;e++)f(r.location+e,s/r.locationSize,c,i,l*p,(g+s/r.locationSize*e)*p,m)}else{if(o.isInstancedBufferAttribute){for(let e=0;e<r.locationSize;e++)h(r.location+e,o.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===a._maxInstanceCount&&(a._maxInstanceCount=o.meshPerAttribute*o.count)}
vendor: 4,833 bytes, line 67
67else for(let e=0;e<r.locationSize;e++)d(r.location+e);e.bindBuffer(e.ARRAY_BUFFER,u);for(let e=0;e<r.locationSize;e++)f(r.location+e,s/r.locationSize,c,i,s*p,s/r.locationSize*e*p,m)}}else if(void 0!==l){const t=l[i];if(void 0!==t)switch(t.length){case 2:e.vertexAttrib2fv(r.location,t);break;case 3:e.vertexAttrib3fv(r.location,t);break;case 4:e.vertexAttrib4fv(r.location,t);break;default:e.vertexAttrib1fv(r.location,t)}}}}p()}(n,r,l,m),null!==g&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(g).buffer))},reset:m,resetDefaultState:g,dispose:function(){m();for(const e in i){const t=i[e];for(const e in t){const n=t[e];for(const e in n)l(n[e].object),delete n[e];delete t[e]}delete i[e]}},releaseStatesOfGeometry:function(e){if(void 0===i[e.id])return;const t=i[e.id];for(const e in t){const n=t[e];for(const e in n)l(n[e].object),delete n[e];delete t[e]}delete i[e.id]},releaseStatesOfProgram:function(e){for(const t in i){const n=i[t];if(void 0===n[e.id])continue;const r=n[e.id];for(const e in r)l(r[e].object),delete r[e];delete n[e.id]}},initAttributes:c,enableAttribute:d,disableUnusedAttributes:p}}function mr(e,t,n){let i;this.setMode=function(e){i=e},this.render=function(t,r){e.drawArrays(i,t,r),n.update(r,i,1)},this.renderInstances=function(t,r,a){0!==a&&(e.drawArraysInstanced(i,t,r,a),n.update(r,i,a))},this.renderMultiDraw=function(e,r,a){if(0===a)return;const s=t.get("WEBGL_multi_draw");if(null===s)for(let t=0;t<a;t++)this.render(e[t],r[t]);else{s.multiDrawArraysWEBGL(i,e,0,r,0,a);let t=0;for(let e=0;e<a;e++)t+=r[e];n.update(t,i,1)}}}function gr(e,t,n){let i;function r(t){if("highp"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let a=void 0!==n.precision?n.precision:"highp";const s=r(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);const o=!0===n.logarithmicDepthBuffer,l=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),u=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS);return{isWebGL2:!0,getMaxAnisotropy:function(){if(void 0!==i)return i;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");i=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i},getMaxPrecision:r,precision:a,logarithmicDepthBuffer:o,maxTextures:l,maxVertexTextures:u,maxTextureSize:e.getParameter(e.MAX_TEXTURE_SIZE),maxCubemapSize:e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),maxAttributes:e.getParameter(e.MAX_VERTEX_ATTRIBS),maxVertexUniforms:e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),maxVaryings:e.getParameter(e.MAX_VARYING_VECTORS),maxFragmentUniforms:e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),vertexTextures:u>0,maxSamples:e.getParameter(e.MAX_SAMPLES)}}function vr(e){const t=this;let n=null,i=0,r=!1,a=!1;const s=new er,o=new nt,l={value:null,needsUpdate:!1};function u(e,n,i,r){const a=null!==e?e.length:0;let u=null;if(0!==a){if(u=l.value,!0!==r||null===u){const t=i+4*a,r=n.matrixWorldInverse;o.getNormalMatrix(r),(null===u||u.length<t)&&(u=new Float32Array(t));for(let t=0,n=i;t!==a;++t,n+=4)s.copy(e[t]).applyMatrix4(r,o),s.normal.toArray(u,n),u[n+3]=s.constant}l.value=u,l.needsUpdate=!0}return t.numPlanes=a,t.numIntersection=0,u}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||0!==i||r;return r=t,i=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(s,o,c){const d=s.clippingPlanes,h=s.clipIntersection,p=s.clipShadows,f=e.get(s);if(!r||null===d||0===d.length||a&&!p)a?u(null):function(){l.value!==n&&(l.value=n,l.needsUpdate=i>0);t.numPlanes=i,t.numIntersection=0}();else{const e=a?0:i,t=4*e;let r=f.clippingState||null;l.value=r,r=u(d,o,t,c);for(let e=0;e!==t;++e)r[e]=n[e];f.clippingState=r,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=e}}}function Ar(e){let t=new WeakMap;function n(e,t){return t===R?e.mapping=k:304===t&&(e.mapping=P),e}function i(e){const n=e.target;n.removeEventListener("dispose",i);const r=t.get(n);void 0!==r&&(t.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const a=r.mapping;if(a===R||304===a){if(t.has(r)){return n(t.get(r).texture,r.mapping)}{const a=r.image;if(a&&a.height>0){const s=new Ki(a.height);return s.fromEquirectangularTexture(e,r),t.set(r,s),r.addEventListener("dispose",i),n(s.texture,r.mapping)}return null}}}return r},dispose:function(){t=new WeakMap}}}class yr extends Vi{constructor(e=-1,t=1,n=1,i=-1,r=.1,a=2e3){super(),this.isOrthographicCamera=!0,this.type="Orthogra
67phicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=r,this.far=a,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,r,a){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=a,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-e,a=n+e,s=i+t,o=i-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=e*this.view.offsetX,a=r+e*this.view.width,s-=t*this.view.offsetY,o=s-t*this.view.height}this.projectionMatrix.makeOrthographic(r,a,s,o,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const br=[.125,.215,.35,.446,.526,.582],_r=20,wr=new yr,Er=new Xn;let Sr=null,Tr=0,xr=0,Cr=!1;const Ir=(1+Math.sqrt(5))/2,Mr=1/Ir,kr=[new Mt(1,1,1),new Mt(-1,1,1),new Mt(1,1,-1),new Mt(-1,1,-1),new Mt(0,Ir,Mr),new Mt(0,Ir,-Mr),new Mt(Mr,0,Ir),new Mt(-Mr,0,Ir),new Mt(Ir,Mr,0),new Mt(-Ir,Mr,0)];class Pr{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100){Sr=this._renderer.getRenderTarget(),Tr=this._renderer.getActiveCubeFace(),xr=this._renderer.getActiveMipmapLevel(),Cr=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,n,i,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=Dr(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=Br(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(Sr,Tr,xr),this._renderer.xr.enabled=Cr,e.scissorTest=!1,Lr(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===k||e.mapping===P?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Sr=this._renderer.getRenderTarget(),Tr=this._renderer.getActiveCubeFace(),xr=this._renderer.getActiveMipmapLevel(),Cr=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:z,minFilter:z,generateMipmaps:!1,type:W,format:X,colorSpace:Ee,depthBuffer:!1},i=Rr(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=Rr(e,t,n);const{_lodMax:i}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],i=[];let r=e;const a=e-4+1+br.length;for(let s=0;s<a;s++){const a=Math.pow(2,r);n.push(a);let o=1/a;s>e-4?o=br[s-e+4-1]:0===s&&(o=0),i.push(o);const l=1/(a-2),u=-l,c=1+l,d=[u,u,c,u,c,c,u,u,c,c,u,c],h=6,p=6,f=3,m=2,g=1,v=new Float32Array(f*p*h),A=new Float32Array(m*p*h),y=new Float32Array(g*p*h);for(let e=0;e<h;e++){const t=e%3*2/3-1,n=e>2?0:-1,i=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(i,f*p*e),A.set(d,m*p*e);const r=[e,e,e,e,e,e];y.set(r,g*p*e)}const b=new gi;b.setAttribute("position",new ai(v,f)),b.setAttribute("uv",new ai(A,m)),b.setAttribute("faceIndex",new ai(y,g)),t.push(b),r>4&&r--}return{lodPlanes:t,sizeLods:n,sigmas:i}}(i)),this._blurMaterial=function(e,t,n){const i=new Float32Array(_r),r=new Mt(0,1,0),a=new Qi({name:"SphericalGaussianBlur",defines:{n:_r,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:Nr(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1});return a}(i,e,t)}return i}_compileMaterial(e){const t=new Bi(this._lodPlanes[0],e);this._renderer.compile(t,wr)}_sceneToCubeUV(e,t,n,i){const r=new qi(90,1,t,n),a=[1,-1,1,1,1,1],s=[1,1,1,-1,-1,-1],o=this._renderer,l=o.autoClear,u=o.toneMapping;o.getClearColor(Er),o.toneMapping=0,o.autoClear=!1;
vendor: 21,984 bytes, line 67
67const c=new Zn({name:"PMREM.Background",side:1,depthWrite:!1,depthTest:!1}),d=new Bi(new Ni,c);let h=!1;const p=e.background;p?p.isColor&&(c.color.copy(p),e.background=null,h=!0):(c.color.copy(Er),h=!0);for(let t=0;t<6;t++){const n=t%3;0===n?(r.up.set(0,a[t],0),r.lookAt(s[t],0,0)):1===n?(r.up.set(0,0,a[t]),r.lookAt(0,s[t],0)):(r.up.set(0,a[t],0),r.lookAt(0,0,s[t]));const l=this._cubeSize;Lr(i,n*l,t>2?l:0,l,l),o.setRenderTarget(i),h&&o.render(d,r),o.render(e,r)}d.geometry.dispose(),d.material.dispose(),o.toneMapping=u,o.autoClear=l,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,i=e.mapping===k||e.mapping===P;i?(null===this._cubemapMaterial&&(this._cubemapMaterial=Dr()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=Br());const r=i?this._cubemapMaterial:this._equirectMaterial,a=new Bi(this._lodPlanes[0],r);r.uniforms.envMap.value=e;const s=this._cubeSize;Lr(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,wr)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;for(let t=1;t<this._lodPlanes.length;t++){const n=Math.sqrt(this._sigmas[t]*this._sigmas[t]-this._sigmas[t-1]*this._sigmas[t-1]),i=kr[(t-1)%kr.length];this._blur(e,t-1,t,n,i)}t.autoClear=n}_blur(e,t,n,i,r){const a=this._pingPongRenderTarget;this._halfBlur(e,a,t,n,i,"latitudinal",r),this._halfBlur(a,e,n,n,i,"longitudinal",r)}_halfBlur(e,t,n,i,r,a,s){const o=this._renderer,l=this._blurMaterial;"latitudinal"!==a&&"longitudinal"!==a&&console.error("blur direction must be either latitudinal or longitudinal!");const u=new Bi(this._lodPlanes[i],l),c=l.uniforms,d=this._sizeLods[n]-1,h=isFinite(r)?Math.PI/(2*d):2*Math.PI/39,p=r/h,f=isFinite(r)?1+Math.floor(3*p):_r;f>_r&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${f} samples when the maximum is set to 20`);const m=[];let g=0;for(let e=0;e<_r;++e){const t=e/p,n=Math.exp(-t*t/2);m.push(n),0===e?g+=n:e<f&&(g+=2*n)}for(let e=0;e<m.length;e++)m[e]=m[e]/g;c.envMap.value=e.texture,c.samples.value=f,c.weights.value=m,c.latitudinal.value="latitudinal"===a,s&&(c.poleAxis.value=s);const{_lodMax:v}=this;c.dTheta.value=h,c.mipInt.value=v-n;const A=this._sizeLods[i];Lr(t,3*A*(i>v-4?i-v+4:0),4*(this._cubeSize-A),3*A,2*A),o.setRenderTarget(t),o.render(u,wr)}}function Rr(e,t,n){const i=new Tt(e,t,n);return i.texture.mapping=L,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function Lr(e,t,n,i,r){e.viewport.set(t,n,i,r),e.scissor.set(t,n,i,r)}function Br(){return new Qi({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Nr(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function Dr(){return new Qi({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Nr(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function Nr(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function Or(e){let t=new WeakMap,n=null;function i(e){const n=e.target;n.removeEventListener("dispose",i);const r=t.get(n);void 0!==r&&(t.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const a=r.mapping,s=a===R||304===a,o=a===k||a===P;if(s||o){let a=t.get(r);const l=void 0!==a?a.texture.pmremVersion:0;if(r.isRenderTargetTexture&&r.pmremVersion!==l)return null===n&&(n=new Pr(e)),a=s?n.fromEquirectangular(r,a):n.fromCubemap(r,a),a.texture.pmremVersion=r.pmremVersion,t.set(r,a),a.texture;if(void 0!==a)return a.texture;{const l=r.image;return s&&l&&l.height>0||o&&l&&function(e){let t=0;const n=6;for(let i=0;i<n;i++)void 0!==e[i]&&t++;return t===n}(l)?(null===n&&(n=new Pr(e)),a=s?n.fromEquirectangular(r):n.fromCubemap(r),a.texture.pmremVersion=r.pmremVersion,t.set(r,a),r.addEventListener("dispose",i),a.texture):null}}}return r},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function Ur(e){const t={};function n(n){if(void 0!==t[n])return t[n];let i;switch(n){case"WEBGL_depth_texture":i=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=e.getExtension(n)}return t[n]=i,i}return{has:function(e){return null!==n(e)},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(e){const t=n(e);return null===t&&console.warn("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function Fr(e,t,n,i){const r={},a=new WeakMap;function s(e){const o=e.target;null!==o.index&&t.remove(o.index);for(const e in o.attributes)t.remove(o.attributes[e]);for(const e in o.morphAttributes){const n=o.morphAttributes[e];for(let e=0,i=n.length;e<i;e++)t.remove(n[e])}o.removeEventListener("dispose",s),delete r[o.id];const l=a.get(o);l&&(t.remove(l),a.delete(o)),i.releaseStatesOfGeometry(o),!0===o.isInstancedBufferGeometry&&delete o._maxInstanceCount,n.memory.geometries--}function o(e){const n=[],i=e.index,r=e.attributes.position;let s=0;if(null!==i){const e=i.array;s=i.version;for(let t=0,i=e.length;t<i;t+=3){const i=e[t+0],r=e[t+1],a=e[t+2];n.push(i,r,r,a,a,i)}}else{if(void 0===r)return;{const e=r.array;s=r.version;for(let t=0,i=e.length/3-1;t<i;t+=3){const e=t+0,i=t+1,r=t+2;n.push(e,i,i,r,r,e)}}}const o=new(rt(n)?oi:si)(n,1);o.version=s;const l=a.get(e);l&&t.remove(l),a.set(e,o)}return{get:function(e,t){return!0===r[t.id]||(t.addEventListener("dispose",s),r[t.id]=!0,n.memory.geometries++),t},update:function(n){const i=n.attributes;for(const n in i)t.update(i[n],e.ARRAY_BUFFER);const r=n.morphAttributes;for(const n in r){const i=r[n];for(let n=0,r=i.length;n<r;n++)t.update(i[n],e.ARRAY_BUFFER)}},getWireframeAttribute:function(e){const t=a.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&o(e)}else o(e);return a.get(e)}}}function zr(e,t,n){let i,r,a;this.setMode=function(e){i=e},this.setIndex=function(e){r=e.type,a=e.bytesPerElement},this.render=function(t,s){e.drawElements(i,s,r,t*a),n.update(s,i,1)},this.renderInstances=function(t,s,o){0!==o&&(e.drawElementsInstanced(i,s,r,t*a,o),n.update(s,i,o))},this.renderMultiDraw=function(e,s,o){if(0===o)return;const l=t.get("WEBGL_multi_draw");if(null===l)for(let t=0;t<o;t++)this.render(e[t]/a,s[t]);else{l.multiDrawElementsWEBGL(i,s,0,r,e,0,o);let t=0;for(let e=0;e<o;e++)t+=s[e];n.update(t,i,1)}}}function Qr(e){const t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(n,i,r){switch(t.calls++,i){case e.TRIANGLES:t.triangles+=r*(n/3);break;case e.LINES:t.lines+=r*(n/2);break;case e.LINE_STRIP:t.lines+=r*(n-1);break;case e.LINE_LOOP:t.lines+=r*n;break;case e.POINTS:t.points+=r*n;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",i)}}}}function Vr(e,t,n){const i=new WeakMap,r=new Et;return{update:function(a,s,o){const l=a.morphTargetInfluences,u=s.morphAttributes.position||s.morphAttributes.normal||s.morphAttributes.color,c=void 0!==u?u.length:0;let d=i.get(s);if(void 0===d||d.count!==c){void 0!==d&&d.texture.dispose();const h=void 0!==s.morphAttributes.position,p=void 0!==s.morphAttributes.normal,f=void 0!==s.morphAttributes.color,m=s.morphAttributes.position||[],g=s.morphAttributes.normal||[],v=s.morphAttributes.color||[];let A=0;!0===h&&(A=1),!0===p&&(A=2),!0===f&&(A=3);let y=s.attributes.position.count*A,b=1;y>t.maxTextureSize&&(b=Math.ceil(y/t.maxTextureSize),y=t.maxTextureSize);const _=new Float32Array(y*b*4*c),w=new xt(_,y,b,c);w.type=q,w.needsUpdate=!0;const E=4*A;for(let T=0;T<c;T++){const x=m[T],C=g[T],I=v[T],M=y*b*4*T;for(let k=0;k<x.count;k++){const P=k*E;!0===h&&(r.fromBufferAttribute(x,k),_[M+P+0]=r.x,_[M+P+1]=r.y,_[M+P+2]=r.z,_[M+P+3]=0),!0===p&&(r.fromBufferAttribute(C,k),_[M+P+4]=r.x,_[M+P+5]=r.y,_[M+P+6]=r.z,_[M+P+7]=0),!0===f&&(r.fromBufferAttribute(I,k),_[M+P+8]=r.x,_[M+P+9]=r.y,_[M+P+10]=r.z,_[M+P+11]=4===I.itemSize?r.w:1)}}function S(){w.dispose(),i.delete(s),s.removeEventListener("dispose",S)}d={count:c,texture:w,size:new tt(y,b)},i.set(s,d),s.addEventListener("dispose",S)}if(!0===a.isInstancedMesh&&null!==a.morphTexture)o.getUniforms().setValue(e,"morphTexture",a.morphTexture,n);else{let R=0;for(let B=0;B<l.length;B++)R+=l[B];const L=s.morphTargetsRelative?1:1-R;o.getUniforms().setValue(e,"morphTargetBaseInfluence",L),o.getUniforms().setValue(e,"morphTargetInfluences",l)}o.getUniforms().setValue(e,"morphTargetsTexture",d.texture,n),o.getUniforms().setValue(e,"morphTargetsTextureSize",d.size)}}}function Hr(e,t,n,i){let r=new WeakMap;function a(e){const t=e.target;t.removeEventListener("dispose",a),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(s){const o=i.render.frame,l=s.geometry,u=t.get(s,l);if(r.get(u)!==o&&(t.update(u),r.set(u,o)),s.isInstancedMesh&&(!1===s.hasEventListener("dispose",a)&&s.addEventListener("dispose",a),r.get(s)!==o&&(n.update(s.instanceMatrix,e.ARRAY_BUFFER),null!==s.instanceColor&&n.update(s.instanceColor,e.ARRAY_BUFFER),r.set(s,o))),s.isSkinnedMesh){const e=s.skeleton;r.get(e)!==o&&(e.update(),r.set(e,o))}return u},dispose:function(){r=new WeakMap}}}class Gr extends wt{constructor(e,t,n,i,r,a,s,o,l,u){if((u=void 0!==u?u:K)!==K&&u!==$)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&u===K&&(n=j),void 0===n&&u===$&&(n=Y),super(null,i,r,a,s,o,u,n,l),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==s?s:O,this.minFilter=void 0!==o?o:O,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return null!==this.compareFunction&&(t.compareFunction=this.compareFunction),t}}const jr=new wt,qr=new Gr(1,1);qr.compareFunction=515;const Wr=new xt,Yr=new Ct,Xr=new Xi,Kr=[],$r=[],Jr=new Float32Array(16),Zr=new Float32Array(9),ea=new Float32Array(4);function ta(e,t,n){const i=e[0];if(i<=0||i>0)return e;const r=t*n;let a=Kr[r];if(void 0===a&&(a=new Float32Array(r),Kr[r]=a),0!==t){i.toArray(a,0);for(let i=1,r=0;i!==t;++i)r+=n,e[i].toArray(a,r)}return a}function na(e,t){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function ia(e,t){for(let n=0,i=t.length;n<i;n++)e[n]=t[n]}function ra(e,t){let n=$r[t];void 0===n&&(n=new Int32Array(t),$r[t]=n);for(let i=0;i!==t;++i)n[i]=e.allocateTextureUnit();return n}function aa(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function sa(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(na(n,t))return;e.uniform2fv(this.addr,t),ia(n,t)}}function oa(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(na(n,t))return;e.uniform3fv(this.addr,t),ia(n,t)}}function la(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(na(n,t))return;e.uniform4fv(this.addr,t),ia(n,t)}}function ua(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(na(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),ia(n,t)}else{if(na(n,i))return;ea.set(i),e.uniformMatrix2fv(this.addr,!1,ea),ia(n,i)}}function ca(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(na(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),ia(n,t)}else{if(na(n,i))return;Zr.set(i),e.uniformMatrix3fv(this.addr,!1,Zr),ia(n,i)}}function da(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(na(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),ia(n,t)}else{if(na(n,i))return;Jr.set(i),e.uniformMatrix4fv(this.addr,!1,Jr),ia(n,i)}}function ha(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function pa(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(na(n,t))return;e.uniform2iv(this.addr,t),ia(n,t)}}function fa(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(na(n,t))return;e.uniform3iv(this.addr,t),ia(n,t)}}function ma(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(na(n,t))return;e.uniform4iv(this.addr,t),ia(n,t)}}function ga(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function va(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(na(n,t))return;e.uniform2uiv(this.addr,t),ia(n,t)}}function Aa(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(na(n,t))return;e.uniform3uiv(this.addr,t),ia(n,t)}}function ya(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(na(n,t))return;e.uniform4uiv(this.addr,t),ia(n,t)}}function ba(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r);const a=this.type===e.SAMPLER_2D_SHADOW?qr:jr;n.setTexture2D(t||a,r)}function _a(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(t||Yr,r)}function wa(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(t||Xr,r)}function Ea(e,t,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(e.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(t||Wr,r)}function Sa(e,t){e.uniform1fv(this.addr,t)}function Ta(e,t){const n=ta(t,this.size,2);e.uniform2fv(this.addr,n)}function xa(e,t){const n=ta(t,this.size,3);e.uniform3fv(this.addr,n)}function Ca(e,t){const n=ta(t,this.size,4);e.uniform4fv(this.addr,n)}function Ia(e,t){const n=ta(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function Ma(e,t){const n=ta(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function ka(e,t){const n=ta(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function Pa(e,t){e.uniform1iv(this.addr,t)}function Ra(e,t){e.uniform2iv(this.addr,t)}function La(e,t){e.uniform3iv(this.addr,t)}function Ba(e,t){e.uniform4iv(this.addr,t)}function Da(e,t){e.uniform1uiv(this.addr,t)}function Na(e,t){e.uniform2uiv(this.addr,t)}function Oa(e,t){e.uniform3uiv(this.addr,t)}function Ua(e,t){e.uniform4uiv(this.addr,t)}function Fa(e,t,n){const i=this.cache,r=t.length,a=ra(n,r);na(i,a)||(e.uniform1iv(this.addr,a),ia(i,a));for(let e=0;e!==r;++e)n.setTexture2D(t[e]||jr,a[e])}function za(e,t,n){const i=this.cache,r=t.length,a=ra(n,r);na(i,a)||(e.uniform1iv(this.addr,a),ia(i,a));for(let e=0;e!==r;++e)n.setTexture3D(t[e]||Yr,a[e])}function Qa(e,t,n){const i=this.cache,r=t.length,a=ra(n,r);na(i,a)||(e.uniform1iv(this.addr,a),ia(i,a));for(let e=0;e!==r;++e)n.setTextureCube(t[e]||Xr,a[e])}function Va(e,t,n){const i=this.cache,r=t.length,a=ra(n,r);na(i,a)||(e.uniform1iv(this.addr,a),ia(i,a));for(let e=0;e!==r;++e)n.setTexture2DArray(t[e]||Wr,a[e])}class Ha{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.setValue=function(e){switch(e){case 5126:return aa;case 35664:return sa;case 35665:return oa;case 35666:return la;case 35674:return ua;case 35675:return ca;case 35676:return da;case 5124:case 35670:return ha;case 35667:case 35671:return pa;case 35668:case 35672:return fa;case 35669:case 35673:return ma;case 5125:return ga;case 36294:return va;case 36295:return Aa;case 36296:return ya;case 35678:case 36198:case 36298:case 36306:case 35682:return ba;case 35679:case 36299:case 36307:return _a;case 35680:case 36300:case 36308:case 36293:return wa;case 36289:case 36303:case 36311:case 36292:return Ea}}(t.type)}}class Ga{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=function(e){switch(e){case 5126:return Sa;case 35664:return Ta;case 35665:return xa;case 35666:return Ca;case 35674:return Ia;case 35675:return Ma;case 35676:return ka;case 5124:case 35670:return Pa;case 35667:case 35671:return Ra;case 35668:case 35672:return La;case 35669:case 35673:return Ba;case 5125:return Da;case 36294:return Na;case 36295:return Oa;case 36296:return Ua;case 35678:case 36198:case 36298:case 36306:case 35682:return Fa;case 35679:case 36299:case 36307:return za;case 35680:case 36300:case 36308:case 36293:return Qa;case 36289:case 36303:case 36311:case 36292:return Va}}(t.type)}}class ja{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const i=this.seq;for(let r=0,a=i.length;r!==a;++r){const a=i[r];a.setValue(e,t[a.id],n)}}}const qa=/(\w+)(\])?(\[|\.)?/g;function Wa(e,t){e.seq.push(t),e.map[t.id]=t}function Ya(e,t,n){const i=e.name,r=i.length;for(qa.lastIndex=0;;){const a=qa.exec(i),s=qa.lastIndex;let o=a[1];const l="]"===a[2],u=a[3];if(l&&(o|=0),void 0===u||"["===u&&s+2===r){Wa(n,void 0===u?new Ha(o,e,t):new Ga(o,e,t));break}{let e=n.map[o];void 0===e&&(e=new ja(o),Wa(n,e)),n=e}}}class Xa{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<n;++i){const n=e.getActiveUniform(t,i);Ya(n,e.getUniformLocation(t,n.name),this)}}setValue(e,t,n,i){const r=this.map[t];void 0!==r&&r.setValue(e,n,i)}setOptional(e,t,n){const i=t[n];void 0!==i&&this.setValue(e,n,i)}static upload(e,t,n,i){for(let r=0,a=t.length;r!==a;++r){const a=t[r],s=n[a.id];!1!==s.needsUpdate&&a.setValue(e,s.value,i)}}static seqWithValue(e,t){const n=[];for(let i=0,r=e.length;i!==r;++i){const r=e[i];r.id in t&&n.push(r)}return n}}function Ka(e,t,n){const i=e.createShader(t);return e.shaderSource(i,n),e.compileShader(i),i}let $a=0;function Ja(e,t,n){const i=e.getShaderParameter(t,e.COMPILE_STATUS),r=e.getShaderInfoLog(t).trim();if(i&&""===r)return"";const a=/ERROR: 0:(\d+)/.exec(r);if(a){const i=parseInt(a[1]);return n.toUpperCase()+"\n\n"+r+"\n\n"+function(e,t){const n=e.split("\n"),i=[],r=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=r;e<a;e++){const r=e+1;i.push(`${r===t?">":" "} ${r}: ${n[e]}`)}return i.join("\n")}(e.getShaderSource(t),i)}return r}function Za(e,t){const n=function(e){const t=pt.getPrimaries(pt.workingColorSpace),n=pt.getPrimaries(e);let i;switch(t===n?i="":t===Me&&n===Ie?i="LinearDisplayP3ToLinearSRGB":t===Ie&&n===Me&&(i="LinearSRGBToLinearDisplayP3"),e){case Ee:case Te:return[i,"LinearTransferOETF"];case we:case Se:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",e),[i,"LinearTransferOETF"]}}(t);return`vec4 ${e}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function es(e,t){let n;switch(t){case 1:n="Linear";break;case 2:n="Reinhard";break;case 3:n="OptimizedCineon";break;case 4:n="ACESFilmic";break;case 6:n="AgX";break;case 7:n="Neutral";break;case 5:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function ts(e){return""!==e}function ns(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_L
vendor: 5,123 bytes, line 67
67IGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function is(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const rs=/^[ \t]*#include +<([\w\d./]+)>/gm;function as(e){return e.replace(rs,os)}const ss=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function os(e,t){let n=or[t];if(void 0===n){const e=ss.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=or[e],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,e)}return as(n)}const ls=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function us(e){return e.replace(ls,cs)}function cs(e,t,n,i){let r="";for(let e=parseInt(t);e<parseInt(n);e++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+e+" ]").replace(/UNROLLED_LOOP_INDEX/g,e);return r}function ds(e){let t=`precision ${e.precision} float;\n\tprecision ${e.precision} int;\n\tprecision ${e.precision} sampler2D;\n\tprecision ${e.precision} samplerCube;\n\tprecision ${e.precision} sampler3D;\n\tprecision ${e.precision} sampler2DArray;\n\tprecision ${e.precision} sampler2DShadow;\n\tprecision ${e.precision} samplerCubeShadow;\n\tprecision ${e.precision} sampler2DArrayShadow;\n\tprecision ${e.precision} isampler2D;\n\tprecision ${e.precision} isampler3D;\n\tprecision ${e.precision} isamplerCube;\n\tprecision ${e.precision} isampler2DArray;\n\tprecision ${e.precision} usampler2D;\n\tprecision ${e.precision} usampler3D;\n\tprecision ${e.precision} usamplerCube;\n\tprecision ${e.precision} usampler2DArray;\n\t`;return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function hs(e,t,n,i){const r=e.getContext(),a=n.defines;let s=n.vertexShader,o=n.fragmentShader;const l=function(e){let t="SHADOWMAP_TYPE_BASIC";return 1===e.shadowMapType?t="SHADOWMAP_TYPE_PCF":2===e.shadowMapType?t="SHADOWMAP_TYPE_PCF_SOFT":3===e.shadowMapType&&(t="SHADOWMAP_TYPE_VSM"),t}(n),u=function(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case k:case P:t="ENVMAP_TYPE_CUBE";break;case L:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),c=function(e){let t="ENVMAP_MODE_REFLECTION";e.envMap&&e.envMapMode===P&&(t="ENVMAP_MODE_REFRACTION");return t}(n),d=function(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case 0:t="ENVMAP_BLENDING_MULTIPLY";break;case 1:t="ENVMAP_BLENDING_MIX";break;case 2:t="ENVMAP_BLENDING_ADD"}return t}(n),h=function(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,i=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:i,maxMip:n}}(n),p=function(e){return[e.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",e.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(ts).join("\n")}(n),f=function(e){const t=[];for(const n in e){const i=e[n];!1!==i&&t.push("#define "+n+" "+i)}return t.join("\n")}(a),m=r.createProgram();let g,v,A=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(g=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f].filter(ts).join("\n"),g.length>0&&(g+="\n"),v=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f].filter(ts).join("\n"),v.length>0&&(v+="\n")):(g=[ds(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IR
67IDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","\tuniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(ts).join("\n"),v=[ds(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,f,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alph
vendor: 52,069 bytes, line 67
67aToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.envMap?"#define "+c:"",n.envMap?"#define "+d:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",0!==n.toneMapping?"#define TONE_MAPPING":"",0!==n.toneMapping?or.tonemapping_pars_fragment:"",0!==n.toneMapping?es("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",or.colorspace_pars_fragment,Za("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(ts).join("\n")),s=as(s),s=ns(s,n),s=is(s,n),o=as(o),o=ns(o,n),o=is(o,n),s=us(s),o=us(o),!0!==n.isRawShaderMaterial&&(A="#version 300 es\n",g=[p,"#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+g,v=["#define varying in",n.glslVersion===ze?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===ze?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+v);const y=A+g+s,b=A+v+o,_=Ka(r,r.VERTEX_SHADER,y),w=Ka(r,r.FRAGMENT_SHADER,b);function E(t){if(e.debug.checkShaderErrors){const n=r.getProgramInfoLog(m).trim(),i=r.getShaderInfoLog(_).trim(),a=r.getShaderInfoLog(w).trim();let s=!0,o=!0;if(!1===r.getProgramParameter(m,r.LINK_STATUS))if(s=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(r,m,_,w);else{const e=Ja(r,_,"vertex"),i=Ja(r,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(m,r.VALIDATE_STATUS)+"\n\nMaterial Name: "+t.name+"\nMaterial Type: "+t.type+"\n\nProgram Info Log: "+n+"\n"+e+"\n"+i)}else""!==n?console.warn("THREE.WebGLProgram: Program Info Log:",n):""!==i&&""!==a||(o=!1);o&&(t.diagnostics={runnable:s,programLog:n,vertexShader:{log:i,prefix:g},fragmentShader:{log:a,prefix:v}})}r.deleteShader(_),r.deleteShader(w),S=new Xa(r,m),T=function(e,t){const n={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let r=0;r<i;r++){const i=e.getActiveAttrib(t,r),a=i.name;let s=1;i.type===e.FLOAT_MAT2&&(s=2),i.type===e.FLOAT_MAT3&&(s=3),i.type===e.FLOAT_MAT4&&(s=4),n[a]={type:i.type,location:e.getAttribLocation(t,a),locationSize:s}}return n}(r,m)}let S,T;r.attachShader(m,_),r.attachShader(m,w),void 0!==n.index0AttributeName?r.bindAttribLocation(m,0,n.index0AttributeName):!0===n.morphTargets&&r.bindAttribLocation(m,0,"position"),r.linkProgram(m),this.getUniforms=function(){return void 0===S&&E(this),S},this.getAttributes=function(){return void 0===T&&E(this),T};let x=!1===n.rendererExtensionParallelShaderCompile;return this.isReady=function(){return!1===x&&(x=r.getProgramParameter(m,37297)),x},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(m),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=$a++,this.cacheKey=t,this.usedTimes=1,this.program=m,this.vertexShader=_,this.fragmentShader=w,this}let ps=0;class fs{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),r=this._getShaderStage(n),a=this._getShaderCacheForMaterial(e);return!1===a.has(i)&&(a.add(i),i.usedTimes++),!1===a.has(r)&&(a.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const e of t)e.usedTimes--,0===e.usedTimes&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new ms(e),t.set(e,n)),n}}class ms{constructor(e){this.id=ps++,this.code=e,this.usedTimes=0}}function gs(e,t,n,i,r,a,s){const o=new vn,l=new fs,u=new Set,c=[],d=r.logarithmicDepthBuffer,h=r.vertexTextures;let p=r.precision;const f={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function m(e){return u.add(e),0===e?"uv":`uv${e}`}return{getParameters:function(a,o,c,g,v){const A=g.fog,y=v.geometry,b=a.isMeshStandardMaterial?g.environment:null,_=(a.isMeshStandardMaterial?n:t).get(a.envMap||b),w=_&&_.mapping===L?_.image.height:null,E=f[a.type];null!==a.precision&&(p=r.getMaxPrecision(a.precision),p!==a.precision&&console.warn("THREE.WebGLProgram.getParameters:",a.precision,"not supported, using",p,"instead."));const S=y.morphAttributes.position||y.morphAttributes.normal||y.morphAttributes.color,T=void 0!==S?S.length:0;let x,C,I,M,k=0;if(void 0!==y.morphAttributes.position&&(k=1),void 0!==y.morphAttributes.normal&&(k=2),void 0!==y.morphAttributes.color&&(k=3),E){const e=ur[E];x=e.vertexShader,C=e.fragmentShader}else x=a.vertexShader,C=a.fragmentShader,l.update(a),I=l.getVertexShaderID(a),M=l.getFragmentShaderID(a);const P=e.getRenderTarget(),R=!0===v.isInstancedMesh,B=!0===v.isBatchedMesh,D=!!a.map,N=!!a.matcap,O=!!_,U=!!a.aoMap,F=!!a.lightMap,z=!!a.bumpMap,Q=!!a.normalMap,V=!!a.displacementMap,H=!!a.emissiveMap,G=!!a.metalnessMap,j=!!a.roughnessMap,q=a.anisotropy>0,W=a.clearcoat>0,Y=a.iridescence>0,X=a.sheen>0,K=a.transmission>0,$=q&&!!a.anisotropyMap,J=W&&!!a.clearcoatMap,Z=W&&!!a.clearcoatNormalMap,ee=W&&!!a.clearcoatRoughnessMap,te=Y&&!!a.iridescenceMap,ne=Y&&!!a.iridescenceThicknessMap,ie=X&&!!a.sheenColorMap,re=X&&!!a.sheenRoughnessMap,ae=!!a.specularMap,se=!!a.specularColorMap,oe=!!a.specularIntensityMap,le=K&&!!a.transmissionMap,ue=K&&!!a.thicknessMap,ce=!!a.gradientMap,de=!!a.alphaMap,he=a.alphaTest>0,pe=!!a.alphaHash,fe=!!a.extensions;let me=0;a.toneMapped&&(null!==P&&!0!==P.isXRRenderTarget||(me=e.toneMapping));const ge={shaderID:E,shaderType:a.type,shaderName:a.name,vertexShader:x,fragmentShader:C,defines:a.defines,customVertexShaderID:I,customFragmentShaderID:M,isRawShaderMaterial:!0===a.isRawShaderMaterial,glslVersion:a.glslVersion,precision:p,batching:B,instancing:R,instancingColor:R&&null!==v.instanceColor,instancingMorph:R&&null!==v.morphTexture,supportsVertexTextures:h,outputColorSpace:null===P?e.outputColorSpace:!0===P.isXRRenderTarget?P.texture.colorSpace:Ee,alphaToCoverage:!!a.alphaToCoverage,map:D,matcap:N,envMap:O,envMapMode:O&&_.mapping,envMapCubeUVHeight:w,aoMap:U,lightMap:F,bumpMap:z,normalMap:Q,displacementMap:h&&V,emissiveMap:H,normalMapObjectSpace:Q&&1===a.normalMapType,normalMapTangentSpace:Q&&0===a.normalMapType,metalnessMap:G,roughnessMap:j,anisotropy:q,anisotropyMap:$,clearcoat:W,clearcoatMap:J,clearcoatNormalMap:Z,clearcoatRoughnessMap:ee,iridescence:Y,iridescenceMap:te,iridescenceThicknessMap:ne,sheen:X,sheenColorMap:ie,sheenRoughnessMap:re,specularMap:ae,specularColorMap:se,specularIntensityMap:oe,transmission:K,transmissionMap:le,thicknessMap:ue,gradientMap:ce,opaque:!1===a.transparent&&1===a.blending&&!1===a.alphaToCoverage,alphaMap:de,alphaTest:he,alphaHash:pe,combine:a.combine,mapUv:D&&m(a.map.channel),aoMapUv:U&&m(a.aoMap.channel),lightMapUv:F&&m(a.lightMap.channel),bumpMapUv:z&&m(a.bumpMap.channel),normalMapUv:Q&&m(a.normalMap.channel),displacementMapUv:V&&m(a.displacementMap.channel),emissiveMapUv:H&&m(a.emissiveMap.channel),metalnessMapUv:G&&m(a.metalnessMap.channel),roughnessMapUv:j&&m(a.roughnessMap.channel),anisotropyMapUv:$&&m(a.anisotropyMap.channel),clearcoatMapUv:J&&m(a.clearcoatMap.channel),clearcoatNormalMapUv:Z&&m(a.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ee&&m(a.clearcoatRoughnessMap.channel),iridescenceMapUv:te&&m(a.iridescenceMap.channel),iridescenceThicknessMapUv:ne&&m(a.iridescenceThicknessMap.channel),sheenColorMapUv:ie&&m(a.sheenColorMap.channel),sheenRoughnessMapUv:re&&m(a.sheenRoughnessMap.channel),specularMapUv:ae&&m(a.specularMap.channel),specularColorMapUv:se&&m(a.specularColorMap.channel),specularIntensityMapUv:oe&&m(a.specularIntensityMap.channel),transmissionMapUv:le&&m(a.transmissionMap.channel),thicknessMapUv:ue&&m(a.thicknessMap.channel),alphaMapUv:de&&m(a.alphaMap.channel),vertexTangents:!!y.attributes.tangent&&(Q||q),vertexColors:a.vertexColors,vertexAlphas:!0===a.vertexColors&&!!y.attributes.color&&4===y.attributes.color.itemSize,pointsUvs:!0===v.isPoints&&!!y.attributes.uv&&(D||de),fog:!!A,useFog:!0===a.fog,fogExp2:!!A&&A.isFogExp2,flatShading:!0===a.flatShading,sizeAttenuation:!0===a.sizeAttenuation,logarithmicDepthBuffer:d,skinning:!0===v.isSkinnedMesh,morphTargets:void 0!==y.morphAttributes.position,morphNormals:void 0!==y.morphAttributes.normal,morphColors:void 0!==y.morphAttributes.color,morphTargetsCount:T,morphTextureStride:k,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:a.dithering,shadowMapEnabled:e.shadowMap.enabled&&c.length>0,shadowMapType:e.shadowMap.type,toneMapping:me,useLegacyLights:e._useLegacyLights,decodeVideoTexture:D&&!0===a.map.isVideoTexture&&pt.getTransfer(a.map.colorSpace)===Ce,premultipliedAlpha:a.premultipliedAlpha,doubleSided:2===a.side,flipSided:1===a.side,useDepthPacking:a.depthPacking>=0,depthPacking:a.depthPacking||0,index0AttributeName:a.index0AttributeName,extensionClipCullDistance:fe&&!0===a.extensions.clipCullDistance&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:fe&&!0===a.extensions.multiDraw&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:a.customProgramCacheKey()};return ge.vertexUv1s=u.has(1),ge.vertexUv2s=u.has(2),ge.vertexUv3s=u.has(3),u.clear(),ge},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){o.disableAll(),t.supportsVertexTextures&&o.enable(0);t.instancing&&o.enable(1);t.instancingColor&&o.enable(2);t.instancingMorph&&o.enable(3);t.matcap&&o.enable(4);t.envMap&&o.enable(5);t.normalMapObjectSpace&&o.enable(6);t.normalMapTangentSpace&&o.enable(7);t.clearcoat&&o.enable(8);t.iridescence&&o.enable(9);t.alphaTest&&o.enable(10);t.vertexColors&&o.enable(11);t.vertexAlphas&&o.enable(12);t.vertexUv1s&&o.enable(13);t.vertexUv2s&&o.enable(14);t.vertexUv3s&&o.enable(15);t.vertexTangents&&o.enable(16);t.anisotropy&&o.enable(17);t.alphaHash&&o.enable(18);t.batching&&o.enable(19);e.push(o.mask),o.disableAll(),t.fog&&o.enable(0);t.useFog&&o.enable(1);t.flatShading&&o.enable(2);t.logarithmicDepthBuffer&&o.enable(3);t.skinning&&o.enable(4);t.morphTargets&&o.enable(5);t.morphNormals&&o.enable(6);t.morphColors&&o.enable(7);t.premultipliedAlpha&&o.enable(8);t.shadowMapEnabled&&o.enable(9);t.useLegacyLights&&o.enable(10);t.doubleSided&&o.enable(11);t.flipSided&&o.enable(12);t.useDepthPacking&&o.enable(13);t.dithering&&o.enable(14);t.transmission&&o.enable(15);t.sheen&&o.enable(16);t.opaque&&o.enable(17);t.pointsUvs&&o.enable(18);t.decodeVideoTexture&&o.enable(19);t.alphaToCoverage&&o.enable(20);e.push(o.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=f[e.type];let n;if(t){const e=ur[t];n=zi.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let i;for(let e=0,t=c.length;e<t;e++){const t=c[e];if(t.cacheKey===n){i=t,++i.usedTimes;break}}return void 0===i&&(i=new hs(e,n,t,a),c.push(i)),i},releaseProgram:function(e){if(0===--e.usedTimes){const t=c.indexOf(e);c[t]=c[c.length-1],c.pop(),e.destroy()}},releaseShaderCache:function(e){l.remove(e)},programs:c,dispose:function(){l.dispose()}}}function vs(){let e=new WeakMap;return{get:function(t){let n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,i){e.get(t)[n]=i},dispose:function(){e=new WeakMap}}}function As(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function ys(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function bs(){const e=[];let t=0;const n=[],i=[],r=[];function a(n,i,r,a,s,o){let l=e[t];return void 0===l?(l={id:n.id,object:n,geometry:i,material:r,groupOrder:a,renderOrder:n.renderOrder,z:s,group:o},e[t]=l):(l.id=n.id,l.object=n,l.geometry=i,l.material=r,l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=o),t++,l}return{opaque:n,transmissive:i,transparent:r,init:function(){t=0,n.length=0,i.length=0,r.length=0},push:function(e,t,s,o,l,u){const c=a(e,t,s,o,l,u);s.transmission>0?i.push(c):!0===s.transparent?r.push(c):n.push(c)},unshift:function(e,t,s,o,l,u){const c=a(e,t,s,o,l,u);s.transmission>0?i.unshift(c):!0===s.transparent?r.unshift(c):n.unshift(c)},finish:function(){for(let n=t,i=e.length;n<i;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||As),i.length>1&&i.sort(t||ys),r.length>1&&r.sort(t||ys)}}}function _s(){let e=new WeakMap;return{get:function(t,n){const i=e.get(t);let r;return void 0===i?(r=new bs,e.set(t,[r])):n>=i.length?(r=new bs,i.push(r)):r=i[n],r},dispose:function(){e=new WeakMap}}}function ws(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Mt,color:new Xn};break;case"SpotLight":n={position:new Mt,direction:new Mt,color:new Xn,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Mt,color:new Xn,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Mt,skyColor:new Xn,groundColor:new Xn};break;case"RectAreaLight":n={color:new Xn,position:new Mt,halfWidth:new Mt,halfHeight:new Mt}}return e[t.id]=n,n}}}let Es=0;function Ss(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function Ts(e){const t=new ws,n=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new tt,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)i.probe.push(new Mt);const r=new Mt,a=new sn,s=new sn;return{setup:function(r,a){let s=0,o=0,l=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let u=0,c=0,d=0,h=0,p=0,f=0,m=0,g=0,v=0,A=0,y=0;r.sort(Ss);const b=!0===a?Math.PI:1;for(let e=0,a=r.length;e<a;e++){const a=r[e],_=a.color,w=a.intensity,E=a.distance,S=a.shadow&&a.shadow.map?a.shadow.map.texture:null;if(a.isAmbientLight)s+=_.r*w*b,o+=_.g*w*b,l+=_.b*w*b;else if(a.isLightProbe){for(let e=0;e<9;e++)i.probe[e].addScaledVector(a.sh.coefficients[e],w);y++}else if(a.isDirectionalLight){const e=t.get(a);if(e.color.copy(a.color).multiplyScalar(a.intensity*b),a.castShadow){const e=a.shadow,t=n.get(a);t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,i.directionalShadow[u]=t,i.directionalShadowMap[u]=S,i.directionalShadowMatrix[u]=a.shadow.matrix,f++}i.directional[u]=e,u++}else if(a.isSpotLight){const e=t.get(a);e.position.setFromMatrixPosition(a.matrixWorld),e.color.copy(_).multiplyScalar(w*b),e.distance=E,e.coneCos=Math.cos(a.angle),e.penumbraCos=Math.cos(a.angle*(1-a.penumbra)),e.decay=a.decay,i.spot[d]=e;const r=a.shadow;if(a.map&&(i.spotLightMap[v]=a.map,v++,r.updateMatrices(a),a.castShadow&&A++),i.spotLightMatrix[d]=r.matrix,a.castShadow){const e=n.get(a);e.shadowBias=r.bias,e.shadowNormalBias=r.normalBias,e.shadowRadius=r.radius,e.shadowMapSize=r.mapSize,i.spotShadow[d]=e,i.spotShadowMap[d]=S,g++}d++}else if(a.isRectAreaLight){const e=t.get(a);e.color.copy(_).multiplyScalar(w),e.halfWidth.set(.5*a.width,0,0),e.halfHeight.set(0,.5*a.height,0),i.rectArea[h]=e,h++}else if(a.isPointLight){const e=t.get(a);if(e.color.copy(a.color).multiplyScalar(a.intensity*b),e.distance=a.distance,e.decay=a.decay,a.castShadow){const e=a.shadow,t=n.get(a);t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,t.shadowCameraNear=e.camera.near,t.shadowCameraFar=e.camera.far,i.pointShadow[c]=t,i.pointShadowMap[c]=S,i.pointShadowMatrix[c]=a.shadow.matrix,m++}i.point[c]=e,c++}else if(a.isHemisphereLight){const e=t.get(a);e.skyColor.copy(a.color).multiplyScalar(w*b),e.groundColor.copy(a.groundColor).multiplyScalar(w*b),i.hemi[p]=e,p++}}h>0&&(!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=lr.LTC_FLOAT_1,i.rectAreaLTC2=lr.LTC_FLOAT_2):(i.rectAreaLTC1=lr.LTC_HALF_1,i.rectAreaLTC2=lr.LTC_HALF_2)),i.ambient[0]=s,i.ambient[1]=o,i.ambient[2]=l;const _=i.hash;_.directionalLength===u&&_.pointLength===c&&_.spotLength===d&&_.rectAreaLength===h&&_.hemiLength===p&&_.numDirectionalShadows===f&&_.numPointShadows===m&&_.numSpotShadows===g&&_.numSpotMaps===v&&_.numLightProbes===y||(i.directional.length=u,i.spot.length=d,i.rectArea.length=h,i.point.length=c,i.hemi.length=p,i.directionalShadow.length=f,i.directionalShadowMap.length=f,i.pointShadow.length=m,i.pointShadowMap.length=m,i.spotShadow.length=g,i.spotShadowMap.length=g,i.directionalShadowMatrix.length=f,i.pointShadowMatrix.length=m,i.spotLightMatrix.length=g+v-A,i.spotLightMap.length=v,i.numSpotLightShadowsWithMaps=A,i.numLightProbes=y,_.directionalLength=u,_.pointLength=c,_.spotLength=d,_.rectAreaLength=h,_.hemiLength=p,_.numDirectionalShadows=f,_.numPointShadows=m,_.numSpotShadows=g,_.numSpotMaps=v,_.numLightProbes=y,i.version=Es++)},setupView:function(e,t){let n=0,o=0,l=0,u=0,c=0;const d=t.matrixWorldInverse;for(let t=0,h=e.length;t<h;t++){const h=e[t];if(h.isDirectionalLight){const e=i.directional[n];e.direction.setFromMatrixPosition(h.matrixWorld),r.setFromMatrixPosition(h.target.matrixWorld),e.direction.sub(r),e.direction.transformDirection(d),n++}else if(h.isSpotLight){const e=i.spot[l];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),e.direction.setFromMatrixPosition(h.matrixWorld),r.setFromMatrixPosition(h.target.matrixWorld),e.direction.sub(r),e.direction.transformDirection(d),l++}else if(h.isRectAreaLight){const e=i.rectArea[u];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),s.identity(),a.copy(h.matrixWorld),a.premultiply(d),s.extractRotation(a),e.halfWidth.set(.5*h.width,0,0),e.halfHeight.set(0,.5*h.height,0),e.halfWidth.applyMatrix4(s),e.halfHeight.applyMatrix4(s),u++}else if(h.isPointLight){const e=i.point[o];e.position.setFromMatrixPosition(h.matrixWorld),e.position.applyMatrix4(d),o++}else if(h.isHemisphereLight){const e=i.hemi[c];e.direction.setFromMatrixPosition(h.matrixWorld),e.direction.transformDirection(d),c++}}},state:i}}function xs(e){const t=new Ts(e),n=[],i=[];return{init:function(){n.length=0,i.length=0},state:{lightsArray:n,shadowsArray:i,lights:t,transmissionRenderTarget:null},setupLights:function(e){t.setup(n,e)},setupLightsView:function(e){t.setupView(n,e)},pushLight:function(e){n.push(e)},pushShadow:function(e){i.push(e)}}}function Cs(e){let t=new WeakMap;return{get:function(n,i=0){const r=t.get(n);let a;return void 0===r?(a=new xs(e),t.set(n,[a])):i>=r.length?(a=new xs(e),r.push(a)):a=r[i],a},dispose:function(){t=new WeakMap}}}class Is extends Jn{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Ms extends Jn{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function ks(e,t,n){let i=new ir;const r=new tt,a=new tt,s=new Et,c=new Is({depthPacking:3201}),d=new Ms,h={},p=n.maxTextureSize,f={[o]:1,[l]:0,[u]:2},m=new Qi({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new tt},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),g=m.clone();g.defines.HORIZONTAL_PASS=1;const v=new gi;v.setAttribute("position",new ai(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const A=new Bi(v,m),y=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let b=this.type;function _(n,i){const a=t.update(A);m.defines.VSM_SAMPLES!==n.blurSamples&&(m.defines.VSM_SAMPLES=n.blurSamples,g.defines.VSM_SAMPLES=n.blurSamples,m.needsUpdate=!0,g.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new Tt(r.x,r.y)),m.uniforms.shadow_pass.value=n.map.texture,m.uniforms.resolution.value=n.mapSize,m.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(i,null,a,m,A,null),g.uniforms.shadow_pass.value=n.mapPass.texture,g.uniforms.resolution.value=n.mapSize,g.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(i,null,a,g,A,null)}function w(t,n,i,r){let a=null;const s=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==s)a=s;else if(a=!0===i.isPointLight?d:c,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=a.uuid,t=n.uuid;let i=h[e];void 0===i&&(i={},h[e]=i);let r=i[t];void 0===r&&(r=a.clone(),i[t]=r,n.addEventListener("dispose",S)),a=r}if(a.visible=n.visible,a.wireframe=n.wireframe,a.side=3===r?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:f[n.side],a.alphaMap=n.alphaMap,a.alphaTest=n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,!0===i.isPointLight&&!0===a.isMeshDistanceMaterial){e.properties.get(a).light=i}return a}function E(n,r,a,s,o){if(!1===n.visible)return;if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&3===o)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);const i=t.update(n),l=n.material;if(Array.isArray(l)){const t=i.groups;for(let u=0,c=t.length;u<c;u++){const c=t[u],d=l[c.materialIndex];if(d&&d.visible){const t=w(n,d,s,o);n.onBeforeShadow(e,n,r,a,i,t,c),e.renderBufferDirect(a,null,i,t,n,c),n.onAfterShadow(e,n,r,a,i,t,c)}}}else if(l.visible){const t=w(n,l,s,o);n.onBeforeShadow(e,n,r,a,i,t,null),e.renderBufferDirect(a,null,i,t,n,null),n.onAfterShadow(e,n,r,a,i,t,null)}}const l=n.children;for(let e=0,t=l.length;e<t;e++)E(l[e],r,a,s,o)}function S(e){e.target.removeEventListener("dispose",S);for(const t in h){const n=h[t],i=e.target.uuid;if(i in n){n[i].dispose(),delete n[i]}}}this.render=function(t,n,o){if(!1===y.enabled)return;if(!1===y.autoUpdate&&!1===y.needsUpdate)return;if(0===t.length)return;const l=e.getRenderTarget(),u=e.getActiveCubeFace(),c=e.getActiveMipmapLevel(),d=e.state;d.setBlending(0),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);const h=3!==b&&3===this.type,f=3===b&&3!==this.type;for(let l=0,u=t.length;l<u;l++){const u=t[l],c=u.shadow;if(void 0===c){console.warn("THREE.WebGLShadowMap:",u,"has no shadow.");continue}if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;r.copy(c.mapSize);const m=c.getFrameExtents();if(r.multiply(m),a.copy(c.mapSize),(r.x>p||r.y>p)&&(r.x>p&&(a.x=Math.floor(p/m.x),r.x=a.x*m.x,c.mapSize.x=a.x),r.y>p&&(a.y=Math.floor(p/m.y),r.y=a.y*m.y,c.mapSize.y=a.y)),null===c.map||!0===h||!0===f){const e=3!==this.type?{minFilter:O,magFilter:O}:{};null!==c.map&&c.map.dispose(),c.map=new Tt(r.x,r.y,e),c.map.texture.name=u.name+".shadowMap",c.camera.updateProjectionMatrix()}e.setRenderTarget(c.map),e.clear();const g=c.getViewportCount();for(let e=0;e<g;e++){const t=c.getViewport(e);s.set(a.x*t.x,a.y*t.y,a.x*t.z,a.y*t.w),d.viewport(s),c.updateMatrices(u,e),i=c.getFrustum(),E(n,o,c.camera,u,this.type)}!0!==c.isPointLightShadow&&3===this.type&&_(c,o),c.needsUpdate=!1}b=this.type,y.needsUpdate=!1,e.setRenderTarget(l,u,c)}}function Ps(e){const t=new function(){let t=!1;const n=new Et;let i=null;const r=new Et(0,0,0,0);return{setMask:function(n){i===n||t||(e.colorMask(n,n,n,n),i=n)},setLocked:function(e){t=e},setClear:function(t,i,a,s,o){!0===o&&(t*=s,i*=s,a*=s),n.set(t,i,a,s),!1===r.equals(n)&&(e.clearColor(t,i,a,s),r.copy(n))},reset:function(){t=!1,i=null,r.set(-1,0,0,0)}}},n=new function(){let t=!1,n=null,i=null,r=null;return{setTest:function(t){t?ie(e.DEPTH_TEST):re(e.DEPTH_TEST)},setMask:function(i){n===i||t||(e.depthMask(i),n=i)},setFunc:function(t){if(i!==t){switch(t){case 0:e.depthFunc(e.NEVER);break;case 1:e.depthFunc(e.ALWAYS);break;case 2:e.depthFunc(e.LESS);break;case 3:default:e.depthFunc(e.LEQUAL);break;case 4:e.depthFunc(e.EQUAL);break;case 5:e.depthFunc(e.GEQUAL);break;case 6:e.depthFunc(e.GREATER);break;case 7:e.depthFunc(e.NOTEQUAL)}i=t}},setLocked:function(e){t=e},setClear:function(t){r!==t&&(e.clearDepth(t),r=t)},reset:function(){t=!1,n=null,i=null,r=null}}},i=new function(){let t=!1,n=null,i=null,r=null,a=null,s=null,o=null,l=null,u=null;return{setTest:function(n){t||(n?ie(e.STENCIL_TEST):re(e.STENCIL_TEST))},setMask:function(i){n===i||t||(e.stencilMask(i),n=i)},setFunc:function(t,n,s){i===t&&r===n&&a===s||(e.stencilFunc(t,n,s),i=t,r=n,a=s)},setOp:function(t,n,i){s===t&&o===n&&l===i||(e.stencilOp(t,n,i),s=t,o=n,l=i)},setLocked:function(e){t=e},setClear:function(t){u!==t&&(e.clearStencil(t),u=t)},reset:function(){t=!1,n=null,i=null,r=null,a=null,s=null,o=null,l=null,u=null}}},r=new WeakMap,a=new WeakMap;let s={},o={},l=new WeakMap,u=[],I=null,M=!1,k=null,P=null,R=null,L=null,B=null,D=null,N=null,O=new Xn(0,0,0),U=0,F=!1,z=null,Q=null,V=null,H=null,G=null;const j=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let q=!1,W=0;const Y=e.getParameter(e.VERSION);-1!==Y.indexOf("WebGL")?(W=parseFloat(/^WebGL (\d)/.exec(Y)[1]),q=W>=1):-1!==Y.indexOf("OpenGL ES")&&(W=parseFloat(/^OpenGL ES (\d)/.exec(Y)[1]),q=W>=2);let X=null,K={};const $=e.getParameter(e.SCISSOR_BOX),J=e.getParameter(e.VIEWPORT),Z=(new Et).fromArray($),ee=(new Et).fromArray(J);function te(t,n,i,r){const a=new Uint8Array(4),s=e.createTexture();e.bindTexture(t,s),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let s=0;s<i;s++)t===e.TEXTURE_3D||t===e.TEXTURE_2D_ARRAY?e.texImage3D(n,0,e.RGBA,1,1,r,0,e.RGBA,e.UNSIGNED_BYTE,a):e.texImage2D(n+s,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,a);return s}const ne={};function ie(t){!0!==s[t]&&(e.enable(t),s[t]=!0)}function re(t){!1!==s[t]&&(e.disable(t),s[t]=!1)}ne[e.TEXTURE_2D]=te(e.TEXTURE_2D,e.TEXTURE_2D,1),ne[e.TEXTURE_CUBE_MAP]=te(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),ne[e.TEXTURE_2D_ARRAY]=te(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),ne[e.TEXTURE_3D]=te(e.TEXTURE_3D,e.TEXTURE_3D,1,1),t.setClear(0,0,0,1),n.setClear(1),i.setClear(0),ie(e.DEPTH_TEST),n.setFunc(3),le(!1),ue(1),ie(e.CULL_FACE),oe(0);const ae={[c]:e.FUNC_ADD,[d]:e.FUNC_SUBTRACT,[h]:e.FUNC_REVERSE_SUBTRACT};ae[103]=e.MIN,ae[104]=e.MAX;const se={[p]:e.ZERO,[f]:e.ONE,[m]:e.SRC_COLOR,[v]:e.SRC_ALPHA,[E]:e.SRC_ALPHA_SATURATE,[_]:e.DST_COLOR,[y]:e.DST_ALPHA,[g]:e.ONE_MINUS_SRC_COLOR,[A]:e.ONE_MINUS_SRC_ALPHA,[w]:e.ONE_MINUS_DST_COLOR,[b]:e.ONE_MINUS_DST_ALPHA,[S]:e.CONSTANT_COLOR,[T]:e.ONE_MINUS_CONSTANT_COLOR,[x]:e.CONSTANT_ALPHA,[C]:e.ONE_MINUS_CONSTANT_ALPHA};function oe(t,n,i,r,a,s,o,l,u,d){if(0!==t){if(!1===M&&(ie(e.BLEND),M=!0),5===t)a=a||n,s=s||i,o=o||r,n===P&&a===B||(e.blendEquationSeparate(ae[n],ae[a]),P=n,B=a),i===R&&r===L&&s===D&&o===N||(e.blendFuncSeparate(se[i],se[r],se[s],se[o]),R=i,L=r,D=s,N=o),!1!==l.equals(O)&&u===U||(e.blendColor(l.r,l.g,l.b,u),O.copy(l),U=u),k=t,F=!1;else if(t!==k||d!==F){if(P===c&&B===c||(e.blendEquation(e.FUNC_ADD),P=c,B=c),d)switch(t){case 1:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.ONE,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ZERO,e.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}else switch(t){case 1:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.SRC_ALPHA,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFunc(e.ZERO,e.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",t)}R=null,L=null,D=null,N=null,O.set(0,0,0),U=0,k=t,F=d}}else!0===M&&(re(e.BLEND),M=!1)}function le(t){z!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),z=t)}function ue(t){0!==t?(ie(e.CULL_FACE),t!==Q&&(1===t?e.cullFace(e.BACK):2===t?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))):re(e.CULL_FACE),Q=t}function ce(t,n,i){t?(ie(e.POLYGON_OFFSET_FILL),H===n&&G===i||(e.polygonOffset(n,i),H=n,G=i)):re(e.POLYGON_OFFSET_FILL)}return{buffers:{color:t,depth:n,stencil:i},enable:ie,disable:re,bindFramebuffer:function(t,n){return o[t]!==n&&(e.bindFramebuffer(t,n),o[t]=n,t===e.DRAW_FRAMEBUFFER&&(o[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(o[e.DRAW_FRAMEBUFFER]=n),!0)},drawBuffers:function(t,n){let i=u,r=!1;if(t){i=l.get(n),void 0===i&&(i=[],l.set(n,i));const a=t.textures;if(i.length!==a.length||i[0]!==e.COLOR_ATTACHMENT0){for(let t=0,n=a.length;t<n;t++)i[t]=e.COLOR_ATTACHMENT0+t;i.length=a.length,r=!0}}else i[0]!==e.BACK&&(i[0]=e.BACK,r=!0);r&&e.drawBuffers(i)},useProgram:function(t){return I!==t&&(e.useProgram(t),I=t,!0)},setBlending:oe,setMaterial:function(r,a){2===r.side?re(e.CULL_FACE):ie(e.CULL_FACE);let s=1===r.side;a&&(s=!s),le(s),1===r.blending&&!1===r.transparent?oe(0):oe(r.blending,r.blendEquation,r.blendSrc,r.blendDst,r.blendEquationAlpha,r.blendSrcAlpha,r.blendDstAlpha,r.blendColor,r.blendAlpha,r.premultipliedAlpha),n.setFunc(r.depthFunc),n.setTest(r.depthTest),n.setMask(r.depthWrite),t.setMask(r.colorWrite);const o=r.stencilWrite;i.setTest(o),o&&(i.setMask(r.stencilWriteMask),i.setFunc(r.stencilFunc,r.stencilRef,r.stencilFuncMask),i.setOp(r.stencilFail,r.stencilZFail,r.stencilZPass)),ce(r.polygonOffset,r.polygonOffsetFactor,r.polygonOffsetUnits),!0===r.alphaToCoverage?ie(e.SAMPLE_ALPHA_TO_COVERAGE):re(e.SAMPLE_ALPHA_TO_COVERAGE)},setFlipSided:le,setCullFace:ue,setLineWidth:function(t){t!==V&&(q&&e.lineWidth(t),V=t)},setPolygonOffset:ce,setScissorTest:function(t){t?ie(e.SCISSOR_TEST):re(e.SCISSOR_TEST)},activeTexture:function(t){void 0===t&&(t=e.TEXTURE0+j-1),X!==t&&(e.activeTexture(t),X=t)},bindTexture:function(t,n,i){void 0===i&&(i=null===X?e.TEXTURE0+j-1:X);let r=K[i];void 0===r&&(r={type:void 0,texture:void 0},K[i]=r),r.type===t&&r.texture===n||(X!==i&&(e.activeTexture(i),X=i),e.bindTexture(t,n||ne[t]),r.type=t,r.texture=n)},unbindTexture:function(){const t=K[X];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexImage3D:function(){try{e.compressedTexImage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},updateUBOMapping:function(t,n){let i=a.get(n);void 0===i&&(i=new WeakMap,a.set(n,i));let r=i.get(t);void 0===r&&(r=e.getUniformBlockIndex(n,t.name),i.set(t,r))},uniformBlockBinding:function(t,n){const i=a.get(n).get(t);r.get(n)!==i&&(e.uniformBlockBinding(n,i,t.__bindingPointIndex),r.set(n,i))},texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D.apply(e,arguments)}catch(e){console.error("THREE.WebGLState:",e)}},scissor:function(t){!1===Z.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),Z.copy(t))},viewport:function(t){!1===ee.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),ee.copy(t))},reset:function(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),s={},X=null,K={},o={},l=new WeakMap,u=[],I=null,M=!1,k=null,P=null,R=null,L=null,B=null,D=null,N=null,O=new Xn(0,0,0),U=0,F=!1,z=null,Q=null,V=null,H=null,G=null,Z.set(0,0,e.canvas.width,e.canvas.height),ee.set(0,0,e.canvas.width,e.canvas.height),t.reset(),n.reset(),i.reset()}}}function Rs(e,t,n,i,r,a,s){const o=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,l="undefined"!=typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),u=new tt,c=new WeakMap;let d;const h=new WeakMap;let p=!1;try{p="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(e){}function f(e,t){return p?new OffscreenCanvas(e,t):at("canvas")}function m(e,t,n){let i=1;const r=Z(e);if((r.width>n||r.height>n)&&(i=n/Math.max(r.width,r.height)),i<1){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof VideoFrame&&e instanceof VideoFrame){const n=Math.floor(i*r.width),a=Math.floor(i*r.height);void 0===d&&(d=f(n,a));const s=t?f(n,a):d;s.width=n,s.height=a;return s.getContext("2d").drawImage(e,0,0,n,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+r.width+"x"+r.height+") to ("+n+"x"+a+")."),s}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+r.width+"x"+r.height+")."),e}return e}function g(e){return e.generateMipmaps&&e.minFilter!==O&&e.minFilter!==z}function v(t){e.generateMipmap(t)}function A(n,i,r,a,s=!1){if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let o=i;if(i===e.RED&&(r===e.FLOAT&&(o=e.R32F),r===e.HALF_FLOAT&&(o=e.R16F),r===e.UNSIGNED_BYTE&&(o=e.R8)),i===e.RED_INTEGER&&(r===e.UNSIGNED_BYTE&&(o=e.R8UI),r===e.UNSIGNED_SHORT&&(o=e.R16UI),r===e.UNSIGNED_INT&&(o=e.R32UI),r===e.BYTE&&(o=e.R8I),r===e.SHORT&&(o=e.R16I),r===e.INT&&(o=e.R32I)),i===e.RG&&(r===e.FLOAT&&(o=e.RG32F),r===e.HALF_FLOAT&&(o=e.RG16F),r===e.UNSIGNED_BYTE&&(o=e.RG8)),i===e.RG_INTEGER&&(r===e.UNSIGNED_BYTE&&(o=e.RG8UI),r===e.UNSIGNED_SHORT&&(o=e.RG16UI),r===e.UNSIGNED_INT&&(o=e.RG32UI),r===e.BYTE&&(o=e.RG8I),r===e.SHORT&&(o=e.RG16I),r===e.INT&&(o=e.RG32I)),i===e.RGB&&r===e.UNSIGNED_INT_5_9_9_9_REV&&(o=e.RGB9_E5),i===e.RGBA){const t=s?xe:pt.getTransfer(a);r===e.FLOAT&&(o=e.RGBA32F),r===e.HALF_FLOAT&&(o=e.RGBA16F),r===e.UNSIGNED_BYTE&&(o=t===Ce?e.SRGB8_ALPHA8:e.RGBA8),r===e.UNSIGNED_SHORT_4_4_4_4&&(o=e.RGBA4),r===e.UNSIGNED_SHORT_5_5_5_1&&(o=e.RGB5_A1)}return o!==e.R16F&&o!==e.R32F&&o!==e.RG16F&&o!==e.RG32F&&o!==e.RGBA16F&&o!==e.RGBA32F||t.get("EXT_color_buffer_float"),o}function y(e,t){return!0===g(e)||e.isFramebufferTexture&&e.minFilter!==O&&e.minFilter!==z?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function b(e){const t=e.target;t.removeEventListener("dispose",b),function(e){const t=i.get(e);if(void 0===t.__webglInit)return;const n=e.source,r=h.get(n);if(r){const i=r[t.__cacheKey];i.usedTimes--,0===i.usedTimes&&w(e),0===Object.keys(r).length&&h.delete(n)}i.remove(e)}(t),t.isVideoTexture&&c.delete(t)}function _(t){const n=t.target;n.removeEventListener("dispose",_),function(t){const n=i.get(t);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let i=0;i<n.__webglFramebuffer[t].length;i++)e.deleteFramebuffer(n.__webglFramebuffer[t][i]);else e.deleteFramebuffer(n.__webglFramebuffer[t]);n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[t])}else{if(Array.isArray(n.__webglFramebuffer))for(let t=0;t<n.__webglFramebuffer.length;t++)e.deleteFramebuffer(n.__webglFramebuffer[t]);else e.deleteFramebuffer(n.__webglFramebuffer);if(n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRenderbuffer)for(let t=0;t<n.__webglColorRenderbuffer.length;t++)n.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(n.__webglColorRenderbuffer[t]);n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer)}const r=t.textures;for(let t=0,n=r.length;t<n;t++){const n=i.get(r[t]);n.__webglTexture&&(e.deleteTexture(n.__webglTexture),s.memory.textures--),i.remove(r[t])}i.remove(t)}(n)}function w(t){const n=i.get(t);e.deleteTexture(n.__webglTexture);const r=t.source;delete h.get(r)[n.__cacheKey],s.memory.textures--}let E=0;function S(t,r){const a=i.get(t);if(t.isVideoTexture&&function(e){const t=s.render.frame;c.get(e)!==t&&(c.set(e,t),e.update())}(t),!1===t.isRenderTargetTexture&&t.version>0&&a.__version!==t.version){const e=t.image;if(null===e)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==e.complete)return void k(a,t,r);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+r)}const T={[B]:e.REPEAT,[D]:e.CLAMP_TO_EDGE,[N]:e.MIRRORED_REPEAT},x={[O]:e.NEAREST,[U]:e.NEAREST_MIPMAP_NEAREST,[F]:e.NEAREST_MIPMAP_LINEAR,[z]:e.LINEAR,[Q]:e.LINEAR_MIPMAP_NEAREST,[V]:e.LINEAR_MIPMAP_LINEAR},C={[Pe]:e.NEVER,[Ue]:e.ALWAYS,[Re]:e.LESS,[Be]:e.LEQUAL,[Le]:e.EQUAL,[Oe]:e.GEQUAL,[De]:e.GREATER,[Ne]:e.NOTEQUAL};function I(n,a){if(a.type!==q||!1!==t.has("OES_texture_float_linear")||a.magFilter!==z&&a.magFilter!==Q&&a.magFilter!==F&&a.magFilter!==V&&a.minFilter!==z&&a.minFilter!==Q&&a.minFilter!==F&&a.minFilter!==V||console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),e.texParameteri(n,e.TEXTURE_WRAP_S,T[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,T[a.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,T[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,x[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,x[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,C[a.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){if(a.magFilter===O)return;if(a.minFilter!==F&&a.minFilter!==V)return;if(a.type===q&&!1===t.has("OES_texture_float_linear"))return;if(a.anisotropy>1||i.get(a).__currentAnisotropy){const s=t.get("EXT_texture_filter_anisotropic");e.texParameterf(n,s.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,r.getMaxAnisotropy())),i.get(a).__currentAnisotropy=a.anisotropy}}}function M(t,n){let i=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",b));const r=n.source;let a=h.get(r);void 0===a&&(a={},h.set(r,a));const o=function(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(n);if(o!==t.__cacheKey){void 0===a[o]&&(a[o]={texture:e.createTexture(),usedTimes:0},s.memory.textures++,i=!0),a[o].usedTimes++;const r=a[t.__cacheKey];void 0!==r&&(a[t.__cacheKey].usedTimes--,0===r.usedTimes&&w(n)),t.__cacheKey=o,t.__webglTexture=a[o].texture}return i}function k(t,s,o){let l=e.TEXTURE_2D;(s.isDataArrayTexture||s.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),s.isData3DTexture&&(l=e.TEXTURE_3D);const u=M(t,s),c=s.source;n.bindTexture(l,t.__webglTexture,e.TEXTURE0+o);const d=i.get(c);if(c.version!==d.__version||!0===u){n.activeTexture(e.TEXTURE0+o);const t=pt.getPrimaries(pt.workingColorSpace),i=s.colorSpace===_e?null:pt.getPrimaries(s.colorSpace),h=s.colorSpace===_e||t===i?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);let p=m(s.image,!1,r.maxTextureSize);p=J(s,p);const f=a.convert(s.format,s.colorSpace),b=a.convert(s.type);let _,w=A(s.internalFormat,f,b,s.colorSpace,s.isVideoTexture);I(l,s);const E=s.mipmaps,S=!0!==s.isVideoTexture&&w!==se,T=void 0===d.__version||!0===u,x=c.dataReady,C=y(s,p);if(s.isDepthTexture)w=e.DEPTH_COMPONENT16,s.type===q?w=e.DEPTH_COMPONENT32F:s.type===j?w=e.DEPTH_COMPONENT24:s.type===Y&&(w=e.DEPTH24_STENCIL8),T&&(S?n.texStorage2D(e.TEXTURE_2D,1,w,p.width,p.height):n.texImage2D(e.TEXTURE_2D,0,w,p.width,p.height,0,f,b,null));else if(s.isDataTexture)if(E.length>0){S&&T&&n.texStorage2D(e.TEXTURE_2D,C,w,E[0].width,E[0].height);for(let t=0,i=E.length;t<i;t++)_=E[t],S?x&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,_.width,_.height,f,b,_.data):n.texImage2D(e.TEXTURE_2D,t,w,_.width,_.height,0,f,b,_.data);s.generateMipmaps=!1}else S?(T&&n.texStorage2D(e.TEXTURE_2D,C,w,p.width,p.height),x&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,p.width,p.height,f,b,p.data)):n.texImage2D(e.TEXTURE_2D,0,w,p.width,p.height,0,f,b,p.data);else if(s.isCompressedTexture)if(s.isCompressedArrayTexture){S&&T&&n.texStorage3D(e.TEXTURE_2D_ARRAY,C,w,E[0].width,E[0].height,p.depth);for(let t=0,i=E.length;t<i;t++)_=E[t],s.format!==X?null!==f?S?x&&n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,_.width,_.height,p.depth,f,_.data,0,0):n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,w,_.width,_.height,p.depth,0,_.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):S?x&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,_.width,_.height,p.depth,f,b,_.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,w,_.width,_.height,p.depth,0,f,b,_.data)}else{S&&T&&n.texStorage2D(e.TEXTURE_2D,C,w,E[0].width,E[0].height);for(let t=0,i=E.length;t<i;t++)_=E[t],s.format!==X?null!==f?S?x&&n.compressedTexSubImage2D(e.TEXTURE_2D,t,0,0,_.width,_.height,f,_.data):n.compressedTexImage2D(e.TEXTURE_2D,t,w,_.width,_.height,0,_.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):S?x&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,_.width,_.height,f,b,_.data):n.texImage2D(e.TEXTURE_2D,t,w,_.width,_.height,0,f,b,_.data)}else if(s.isDataArrayTexture)S?(T&&n.texStorage3D(e.TEXTURE_2D_ARRAY,C,w,p.width,p.height,p.depth),x&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,p.width,p.height,p.depth,f,b,p.data)):n.texImage3D(e.TEXTURE_2D_ARRAY,0,w,p.width,p.height,p.depth,0,f,b,p.data);else if(s.isData3DTexture)S?(T&&n.texStorage3D(e.TEXTURE_3D,C,w,p.width,p.height,p.depth),x&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,p.width,p.height,p.depth,f,b,p.data)):n.texImage3D(e.TEXTURE_3D,0,w,p.width,p.height,p.depth,0,f,b,p.data);else if(s.isFramebufferTexture){if(T)if(S)n.texStorage2D(e.TEXTURE_2D,C,w,p.width,p.height);else{let t=p.width,i=p.height;for(let r=0;r<C;r++)n.texImage2D(e.TEXTURE_2D,r,w,t,i,0,f,b,null),t>>=1,i>>=1}}else if(E.length>0){if(S&&T){const t=Z(E[0]);n.texStorage2D(e.TEXTURE_2D,C,w,t.width,t.height)}for(let t=0,i=E.length;t<i;t++)_=E[t],S?x&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,f,b,_):n.texImage2D(e.TEXTURE_2D,t,w,f,b,_);s.generateMipmaps=!1}else if(S){if(T){const t=Z(p);n.texStorage2D(e.TEXTURE_2D,C,w,t.width,t.height)}x&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,f,b,p)}else n.texImage2D(e.TEXTURE_2D,0,w,f,b,p);
67g(s)&&v(l),d.__version=c.version,s.onUpdate&&s.onUpdate(s)}t.__version=s.version}function P(t,r,s,l,u,c){const d=a.convert(s.format,s.colorSpace),h=a.convert(s.type),p=A(s.internalFormat,d,h,s.colorSpace);if(!i.get(r).__hasExternalTextures){const t=Math.max(1,r.width>>c),i=Math.max(1,r.height>>c);u===e.TEXTURE_3D||u===e.TEXTURE_2D_ARRAY?n.texImage3D(u,c,p,t,i,r.depth,0,d,h,null):n.texImage2D(u,c,p,t,i,0,d,h,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),W(r)?o.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,l,u,i.get(s).__webglTexture,0,G(r)):(u===e.TEXTURE_2D||u>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&u<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,l,u,i.get(s).__webglTexture,c),n.bindFramebuffer(e.FRAMEBUFFER,null)}function R(t,n,i){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer&&!n.stencilBuffer){let r=e.DEPTH_COMPONENT24;if(i||W(n)){const t=n.depthTexture;t&&t.isDepthTexture&&(t.type===q?r=e.DEPTH_COMPONENT32F:t.type===j&&(r=e.DEPTH_COMPONENT24));const i=G(n);W(n)?o.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,i,r,n.width,n.height):e.renderbufferStorageMultisample(e.RENDERBUFFER,i,r,n.width,n.height)}else e.renderbufferStorage(e.RENDERBUFFER,r,n.width,n.height);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t)}else if(n.depthBuffer&&n.stencilBuffer){const r=G(n);i&&!1===W(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,r,e.DEPTH24_STENCIL8,n.width,n.height):W(n)?o.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,r,e.DEPTH24_STENCIL8,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,t)}else{const t=n.textures;for(let r=0;r<t.length;r++){const s=t[r],l=a.convert(s.format,s.colorSpace),u=a.convert(s.type),c=A(s.internalFormat,l,u,s.colorSpace),d=G(n);i&&!1===W(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,d,c,n.width,n.height):W(n)?o.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,d,c,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,c,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function L(t){const r=i.get(t),a=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!r.__autoAllocateDepthBuffer){if(a)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,r){if(r&&r.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(e.FRAMEBUFFER,t),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),S(r.depthTexture,0);const a=i.get(r.depthTexture).__webglTexture,s=G(r);if(r.depthTexture.format===K)W(r)?o.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,a,0,s):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,a,0);else{if(r.depthTexture.format!==$)throw new Error("Unknown depthTexture format");W(r)?o.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,a,0,s):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,a,0)}}(r.__webglFramebuffer,t)}else if(a){r.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer[i]),r.__webglDepthbuffer[i]=e.createRenderbuffer(),R(r.__webglDepthbuffer[i],t,!1)}else n.bindFramebuffer(e.FRAMEBUFFER,r.__webglFramebuffer),r.__webglDepthbuffer=e.createRenderbuffer(),R(r.__webglDepthbuffer,t,!1);n.bindFramebuffer(e.FRAMEBUFFER,null)}function G(e){return Math.min(r.maxSamples,e.samples)}function W(e){const n=i.get(e);return e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function J(e,t){const n=e.colorSpace,i=e.format,r=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||n!==Ee&&n!==_e&&(pt.getTransfer(n)===Ce?i===X&&r===H||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",n)),t}function Z(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?(u.width=e.naturalWi
vendor: 4,670 bytes, line 67
67dth||e.width,u.height=e.naturalHeight||e.height):"undefined"!=typeof VideoFrame&&e instanceof VideoFrame?(u.width=e.displayWidth,u.height=e.displayHeight):(u.width=e.width,u.height=e.height),u}this.allocateTextureUnit=function(){const e=E;return e>=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+r.maxTextures),E+=1,e},this.resetTextureUnits=function(){E=0},this.setTexture2D=S,this.setTexture2DArray=function(t,r){const a=i.get(t);t.version>0&&a.__version!==t.version?k(a,t,r):n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+r)},this.setTexture3D=function(t,r){const a=i.get(t);t.version>0&&a.__version!==t.version?k(a,t,r):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+r)},this.setTextureCube=function(t,s){const o=i.get(t);t.version>0&&o.__version!==t.version?function(t,s,o){if(6!==s.image.length)return;const l=M(t,s),u=s.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+o);const c=i.get(u);if(u.version!==c.__version||!0===l){n.activeTexture(e.TEXTURE0+o);const t=pt.getPrimaries(pt.workingColorSpace),i=s.colorSpace===_e?null:pt.getPrimaries(s.colorSpace),d=s.colorSpace===_e||t===i?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,s.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,s.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);const h=s.isCompressedTexture||s.image[0].isCompressedTexture,p=s.image[0]&&s.image[0].isDataTexture,f=[];for(let e=0;e<6;e++)f[e]=h||p?p?s.image[e].image:s.image[e]:m(s.image[e],!0,r.maxCubemapSize),f[e]=J(s,f[e]);const b=f[0],_=a.convert(s.format,s.colorSpace),w=a.convert(s.type),E=A(s.internalFormat,_,w,s.colorSpace),S=!0!==s.isVideoTexture,T=void 0===c.__version||!0===l,x=u.dataReady;let C,M=y(s,b);if(I(e.TEXTURE_CUBE_MAP,s),h){S&&T&&n.texStorage2D(e.TEXTURE_CUBE_MAP,M,E,b.width,b.height);for(let t=0;t<6;t++){C=f[t].mipmaps;for(let i=0;i<C.length;i++){const r=C[i];s.format!==X?null!==_?S?x&&n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,r.width,r.height,_,r.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,E,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):S?x&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,r.width,r.height,_,w,r.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,E,r.width,r.height,0,_,w,r.data)}}}else{if(C=s.mipmaps,S&&T){C.length>0&&M++;const t=Z(f[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,M,E,t.width,t.height)}for(let t=0;t<6;t++)if(p){S?x&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,f[t].width,f[t].height,_,w,f[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,E,f[t].width,f[t].height,0,_,w,f[t].data);for(let i=0;i<C.length;i++){const r=C[i].image[t].image;S?x&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,r.width,r.height,_,w,r.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,E,r.width,r.height,0,_,w,r.data)}}else{S?x&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,_,w,f[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,E,_,w,f[t]);for(let i=0;i<C.length;i++){const r=C[i];S?x&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,_,w,r.image[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,E,_,w,r.image[t])}}}g(s)&&v(e.TEXTURE_CUBE_MAP),c.__version=u.version,s.onUpdate&&s.onUpdate(s)}t.__version=s.version}(o,t,s):n.bindTexture(e.TEXTURE_CUBE_MAP,o.__webglTexture,e.TEXTURE0+s)},this.rebindTextures=function(t,n,r){const a=i.get(t);void 0!==n&&P(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),void 0!==r&&L(t)},this.setupRenderTarget=function(t){const r=t.texture,o=i.get(t),l=i.get(r);t.addEventListener("dispose",_);const u=t.textures,c=!0===t.isWebGLCubeRenderTarget,d=u.length>1;if(d||(void 0===l.__webglTexture&&(l.__webglTexture=e.createTexture()),l.__version=r.version,s.memory.textures++),c){o.__webglFramebuffer=[];for(let t=0;t<6;t++)if(r.mipmaps&&r.mipmaps.length>0){o.__webglFramebuffer[t]=[];for(let n=0;n<r.mipmaps.length;n++)o.__webglFramebuffer[t][n]=e.createFramebuffer()}else o.__webglFramebuffer[t]=e.createFramebuffer()}else{if(r.mipmaps&&r.mipmaps.length>0){o.__webglFramebuffer=[];for(let t=0;t<r.mipmaps.length;t++)o.__webglFramebuffer[t]=e.createFramebuffer()}else o.__webglFramebuffer=e.createFramebuffer();if(d)for(let t=0,n=u.length;t<n;t++){const n=i.get(u[t]);void 0===n.__webglTexture&&(n.__webglTexture=e.createTexture(),s.memory.textures++)}if(t.samples>0&&!1===W(t)){o.__webglMultisampledFramebuffer=e.createFramebuffer(),o.__webglColorRen
67derbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,o.__webglMultisampledFramebuffer);for(let n=0;n<u.length;n++){const i=u[n];o.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,o.__webglColorRenderbuffer[n]);const r=a.convert(i.format,i.colorSpace),s=a.convert(i.type),l=A(i.internalFormat,r,s,i.colorSpace,!0===t.isXRRenderTarget),c=G(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,c,l,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,o.__webglColorRenderbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(o.__webglDepthRenderbuffer=e.createRenderbuffer(),R(o.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(c){n.bindTexture(e.TEXTURE_CUBE_MAP,l.__webglTexture),I(e.TEXTURE_CUBE_MAP,r);for(let n=0;n<6;n++)if(r.mipmaps&&r.mipmaps.length>0)for(let i=0;i<r.mipmaps.length;i++)P(o.__webglFramebuffer[n][i],t,r,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,i);else P(o.__webglFramebuffer[n],t,r,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);g(r)&&v(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(d){for(let r=0,a=u.length;r<a;r++){const a=u[r],s=i.get(a);n.bindTexture(e.TEXTURE_2D,s.__webglTexture),I(e.TEXTURE_2D,a),P(o.__webglFramebuffer,t,a,e.COLOR_ATTACHMENT0+r,e.TEXTURE_2D,0),g(a)&&v(e.TEXTURE_2D)}n.unbindTexture()}else{let i=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(i=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(i,l.__webglTexture),I(i,r),r.mipmaps&&r.mipmaps.length>0)for(let n=0;n<r.mipmaps.length;n++)P(o.__webglFramebuffer[n],t,r,e.COLOR_ATTACHMENT0,i,n);else P(o.__webglFramebuffer,t,r,e.COLOR_ATTACHMENT0,i,0);g(r)&&v(i),n.unbindTexture()}t.depthBuffer&&L(t)},this.updateRenderTargetMipmap=function(t){const r=t.textures;for(let a=0,s=r.length;a<s;a++){const s=r[a];if(g(s)){const r=t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:e.TEXTURE_2D,a=i.get(s).__webglTexture;n.bindTexture(r,a),v(r),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(t.samples>0&&!1===W(t)){const r=t.textures,a=t.width,s=t.height;let o=e.COLOR_BUFFER_BIT;const u=[],c=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,d=i.get(t),h=r.length>1;if(h)for(let t=0;t<r.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,d.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,d.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,d.__webglMultisampledFramebuffer),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,d.__webglFramebuffer);for(let n=0;n<r.length;n++){u.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&u.push(c);const p=void 0!==d.__ignoreDepthValues&&d.__ignoreDepthValues;if(!1===p&&(t.depthBuffer&&(o|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&!0!==d.__isTransmissionRenderTarget&&(o|=e.STENCIL_BUFFER_BIT)),h&&e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,d.__webglColorRenderbuffer[n]),!0===p&&(e.invalidateFramebuffer(e.READ_FRAMEBUFFER,[c]),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[c])),h){const t=i.get(r[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,a,s,0,0,a,s,o,e.NEAREST),l&&e.invalidateFramebuffer(e.READ_FRAMEBUFFER,u)}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),h)for(let t=0;t<r.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,d.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,d.__webglColorRenderbuffer[t]);const a=i.get(r[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,d.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,a,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,d.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=L,this.setupFrameBufferTexture=P,this.useMultisampledRTT=W}function Ls(e,t){return{convert:function(n,i=""){let r;const a=pt.getTransfer(i);if(n===H)return e.UNSIGNED_BYTE;if(1017===n)return e.UNSIGNED_SHORT_4_4_4_4;if(1018===n)return e.UNSIGNED_SHORT_5_5_5_1;if(35902===n)return e.UNSIGNED_INT_5_9_9_9_REV;if(1010===n)return e.BYTE;if(1011===n)return e.SHORT;if(1012===n)return e.UNSIGNED_SHORT;if(n===G)return e.INT;if(n===j)return e.UNSIGNED_INT;if(n===q)return e.FLOAT;if(n===W)return e.HALF_FLOAT;if(1021===n)return e.ALPHA;if(1022===n)return e.RGB;if(n===X)return e.RGBA;if(1024===n)return e.LUMINANCE;if(1025===n)return e.LUMINANCE_ALPHA;if(n===K)return e.DEPTH_COMPONENT;if(n===$)return e.DEPTH_STENCIL;if(n===J)return e.RED;if(1029===n)return e.RED_INTEGER;if(n===Z)return e.RG;if(1031===n)return e.RG_INTEGER;if(1033===n)return e.RGBA_INTEGER;if(n===ee||n===te||n===ne||n===ie)if(a===Ce){if(r=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===r)return null;if(n===ee)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===te)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===ne)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===ie)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(r=t.get("WEBGL_compressed_texture_s3tc"),null===r)return null;if(n===ee)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===te)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===ne)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===ie)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(n===re||35841===n||n===ae||35843===n){if(r=t.get("WEBGL_compressed_texture_pvrtc"),null===r)return null;if(n===re)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(35841===n)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===ae)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===n)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===se)return r=t.get("WEBGL_compressed_texture_etc1"),null!==r?r.COMPRESSED_RGB_ETC1_WEBGL:null;if(n===oe||n===le){if(r=t.get("WEBGL_compressed_texture_etc"),null===r)return null;if(n===oe)return a===Ce?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(n===le)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}if(n===ue||37809===n||37810===n||37811===n||n===ce||37813===n||37814===n||37815===n||37816===n||37817===n||37818===n||37819===n||37820===n||37821===n){if(r=t.get("WEBGL_compressed_texture_astc"),null===r)return null;if(n===ue)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(37809===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(37810===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(37811===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===ce)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(37813===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(37814===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(37815===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(37816===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(37817===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(37818===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(37819===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(37820===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(37821===n)return a===Ce?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===de||36494===n||36495===n){if(r=t.get("EXT_texture_compression_bptc"),null===r)return null;if(n===de)return a===Ce?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(36494===n)return r.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(36495===n)return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}if(36283===n||36284===n||36285===n||36286===n){if(r=t.get("EXT_texture_compression_rgtc"),null===r)return null;
vendor: 11,885 bytes, line 67
67if(n===de)return r.COMPRESSED_RED_RGTC1_EXT;if(36284===n)return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(36285===n)return r.COMPRESSED_RED_GREEN_RGTC2_EXT;if(36286===n)return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===Y?e.UNSIGNED_INT_24_8:void 0!==e[n]?e[n]:null}}}class Bs extends qi{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Ds extends Ln{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Ns={type:"move"};class Os{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Ds,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Ds,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new Mt,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new Mt),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Ds,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new Mt,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new Mt),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let i=null,r=null,a=null;const s=this._targetRay,o=this._grip,l=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(l&&e.hand){a=!0;for(const i of e.hand.values()){const e=t.getJointPose(i,n),r=this._getHandJoint(l,i);null!==e&&(r.matrix.fromArray(e.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.matrixWorldNeedsUpdate=!0,r.jointRadius=e.radius),r.visible=null!==e}const i=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],s=i.position.distanceTo(r.position),o=.02,u=.005;l.inputState.pinching&&s>o+u?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&s<=o-u&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==o&&e.gripSpace&&(r=t.getPose(e.gripSpace,n),null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1));null!==s&&(i=t.getPose(e.targetRaySpace,n),null===i&&null!==r&&(i=r),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,this.dispatchEvent(Ns)))}return null!==s&&(s.visible=null!==i),null!==o&&(o.visible=null!==r),null!==l&&(l.visible=null!==a),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new Ds;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class Us{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(null===this.texture){const i=new wt;e.properties.get(i).__webglTexture=t.texture,t.depthNear==n.depthNear&&t.depthFar==n.depthFar||(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}render(e,t){if(null!==this.texture){if(null===this.mesh){const e=t.cameras[0].viewport,n=new Qi({vertexShader:"\nvoid main() {\n\n\tgl_Position = vec4( position, 1.0 );\n\n}",fragmentShader:"\nuniform sampler2DArray depthColor;\nuniform float depthWidth;\nuniform float depthHeight;\n\nvoid main() {\n\n\tvec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );\n\n\tif ( coord.x >= 1.0 ) {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;\n\n\t} else {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;\n\n\t}\n\n}",uniforms:{depthColor:{value:this.texture},depthWidth:{value:e.z},depthHeight:{value:e.w}}});this.mesh=new Bi(new sr(20,20),n)}e.render(this.mesh,t)}}reset(){this.texture=null,this.mesh=null}}class Fs extends He{constructor(e,t){super();const n=this;let i=null,r=1,a=null,s="local-floor",o=1,l=null,u=null,c=null,d=null,h=null,p=null;const f=new Us,m=t.getContextAttributes();let g=null,v=null;const A=[],y=[],b=new tt;let _=null;const w=new qi;w.layers.enable(1),w.viewport=new Et;const E=new qi;E.layers.enable(2),E.viewport=new Et;const S=[w,E],T=new Bs;T.layers.enable(1),T.layers.enable(2);let x=null,C=null;function I(e){const t=y.indexOf(e.inputSource);if(-1===t)return;const n=A[t];void 0!==n&&(n.update(e.inputSource,e.frame,l||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function M(){i.removeEventListener("select",I),i.removeEventListener("selectstart",I),i.removeEventListener("selectend",I),i.removeEventListener("squeeze",I),i.removeEventListener("squeezestart",I),i.removeEventListener("squeezeend",I),i.removeEventListener("end",M),i.removeEventListener("inputsourceschange",k);for(let e=0;e<A.length;e++){const t=y[e];null!==t&&(y[e]=null,A[e].disconnect(t))}x=null,C=null,f.reset(),e.setRenderTarget(g),h=null,d=null,c=null,i=null,v=null,D.stop(),n.isPresenting=!1,e.setPixelRatio(_),e.setSize(b.width,b.height,!1),n.dispatchEvent({type:"sessionend"})}function k(e){for(let t=0;t<e.removed.length;t++){const n=e.removed[t],i=y.indexOf(n);i>=0&&(y[i]=null,A[i].disconnect(n))}for(let t=0;t<e.added.length;t++){const n=e.added[t];let i=y.indexOf(n);if(-1===i){for(let e=0;e<A.length;e++){if(e>=y.length){y.push(n),i=e;break}if(null===y[e]){y[e]=n,i=e;break}}if(-1===i)break}const r=A[i];r&&r.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=A[e];return void 0===t&&(t=new Os,A[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=A[e];return void 0===t&&(t=new Os,A[e]=t),t.getGripSpace()},this.getHand=function(e){let t=A[e];return void 0===t&&(t=new Os,A[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){r=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){s=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||a},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==d?d:h},this.getBinding=function(){return c},this.getFrame=function(){return p},this.getSession=function(){return i},this.setSession=async function(u){if(i=u,null!==i){if(g=e.getRenderTarget(),i.addEventListener("select",I),i.addEventListener("selectstart",I),i.addEventListener("selectend",I),i.addEventListener("squeeze",I),i.addEventListener("squeezestart",I),i.addEventListener("squeezeend",I),i.addEventListener("end",M),i.addEventListener("inputsourceschange",k),!0!==m.xrCompatible&&await t.makeXRCompatible(),_=e.getPixelRatio(),e.getSize(b),void 0===i.renderState.layers){const n={antialias:m.antialias,alpha:!0,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:r};h=new XRWebGLLayer(i,t,n),i.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),v=new Tt(h.framebufferWidth,h.framebufferHeight,{format:X,type:H,colorSpace:e.outputColorSpace,stencilBuffer:m.stencil})}else{let n=null,a=null,s=null;m.depth&&(s=m.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=m.stencil?$:K,a=m.stencil?Y:j);const o={colorFormat:t.RGBA8,depthFormat:s,scaleFactor:r};c=new XRWebGLBinding(i,t),d=c.createProjectionLayer(o),i.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),v=new Tt(d.textureWidth,d.textureHeight,{format:X,type:H,depthTexture:new Gr(d.textureWidth,d.textureHeight,a,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:m.stencil,colorSpace:e.outputColorSpace,samples:m.antialias?4:0});e.properties.get(v).__ignoreDepthValues=d.ignoreDepthValues}v.isXRRenderTarget=!0,this.setFoveation(o),l=null,a=await i.requestReferenceSpace(s),D.setContext(i),D.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==i)return i.environmentBlendMode};const P=new Mt,R=new Mt;function L(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===i)return;null!==f.texture&&(e.near=f.depthNear,e.far=f.depthFar),T.near=E.near=w.near=e.near,T.far=E.far=w.far=e.far,x===T.near&&C===T.far||(i.updateRenderState({depthNear:T.near,depthFar:T.far}),x=T.near,C=T.far,w.near=x,w.far=C,E.near=x,E.far=C,w.updateProjectionMatrix(),E.updateProjectionMatrix(),e.updateProjectionMatrix());const t=e.parent,n=T.cameras;L(T,t);for(let e=0;e<n.length;e++)L(n[e],t);2===n.length?function(e,t,n){P.setFromMatrixPosition(t.matrixWorld),R.setFromMatrixPosition(n.matrixWorld);const i=P.distanceTo(R),r=t.projectionMatrix.elements,a=n.projectionMatrix.elements,s=r[14]/(r[10]-1),o=r[14]/(r[10]+1),l=(r[9]+1)/r[5],u=(r[9]-1)/r[5],c=(r[8]-1)/r[0],d=(a[8]+1)/a[0],h=s*c,p=s*d,f=i/(-c+d),m=f*-c;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(m),e.translateZ(f),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const g=s+f,v=o+f,A=h-m,y=p+(i-m),b=l*o/v*g,_=u*o/v*g;e.projectionMatrix.makePerspective(A,y,b,_,g,v),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}(T,w,E):T.projectionMatrix.copy(w.projectionMatrix),function(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld));e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*We*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}(e,T,t)},this.getCamera=function(){return T},this.getFoveation=function(){if(null!==d||null!==h)return o},this.setFoveation=function(e){o=e,null!==d&&(d.fixedFoveation=e),null!==h&&void 0!==h.fixedFoveation&&(h.fixedFoveation=e)},this.hasDepthSensing=function(){return null!==f.texture};let B=null;const D=new rr;D.setAnimationLoop(function(t,r){if(u=r.getViewerPose(l||a),p=r,null!==u){const t=u.views;null!==h&&(e.setRenderTargetFramebuffer(v,h.framebuffer),e.setRenderTarget(v));let n=!1;t.length!==T.cameras.length&&(T.cameras.length=0,n=!0);for(let i=0;i<t.length;i++){const r=t[i];let a=null;if(null!==h)a=h.getViewport(r);else{const t=c.getViewSubImage(d,r);a=t.viewport,0===i&&(e.setRenderTargetTextures(v,t.colorTexture,d.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(v))}let s=S[i];void 0===s&&(s=new qi,s.layers.enable(i),s.viewport=new Et,S[i]=s),s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.quaternion,s.scale),s.projectionMatrix.fromArray(r.projectionMatrix),s.projectionMatrixInverse.copy(s.projectionMatrix).invert(),s.viewport.set(a.x,a.y,a.width,a.height),0===i&&(T.matrix.copy(s.matrix
67),T.matrix.decompose(T.position,T.quaternion,T.scale)),!0===n&&T.cameras.push(s)}const r=i.enabledFeatures;if(r&&r.includes("depth-sensing")){const n=c.getDepthInformation(t[0]);n&&n.isValid&&n.texture&&f.init(e,n,i.renderState)}}for(let e=0;e<A.length;e++){const t=y[e],n=A[e];null!==t&&void 0!==n&&n.update(t,r,l||a)}f.render(e,T),B&&B(t,r),r.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:r}),p=null}),this.setAnimationLoop=function(e){B=e},this.dispose=function(){}}}const zs=new gn,Qs=new sn;function Vs(e,t){function n(e,t){!0===e.matrixAutoUpdate&&e.updateMatrix(),t.value.copy(e.matrix)}function i(i,r){i.opacity.value=r.opacity,r.color&&i.diffuse.value.copy(r.color),r.emissive&&i.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(i.map.value=r.map,n(r.map,i.mapTransform)),r.alphaMap&&(i.alphaMap.value=r.alphaMap,n(r.alphaMap,i.alphaMapTransform)),r.bumpMap&&(i.bumpMap.value=r.bumpMap,n(r.bumpMap,i.bumpMapTransform),i.bumpScale.value=r.bumpScale,1===r.side&&(i.bumpScale.value*=-1)),r.normalMap&&(i.normalMap.value=r.normalMap,n(r.normalMap,i.normalMapTransform),i.normalScale.value.copy(r.normalScale),1===r.side&&i.normalScale.value.negate()),r.displacementMap&&(i.displacementMap.value=r.displacementMap,n(r.displacementMap,i.displacementMapTransform),i.displacementScale.value=r.displacementScale,i.displacementBias.value=r.displacementBias),r.emissiveMap&&(i.emissiveMap.value=r.emissiveMap,n(r.emissiveMap,i.emissiveMapTransform)),r.specularMap&&(i.specularMap.value=r.specularMap,n(r.specularMap,i.specularMapTransform)),r.alphaTest>0&&(i.alphaTest.value=r.alphaTest);const a=t.get(r),s=a.envMap,o=a.envMapRotation;if(s&&(i.envMap.value=s,zs.copy(o),zs.x*=-1,zs.y*=-1,zs.z*=-1,s.isCubeTexture&&!1===s.isRenderTargetTexture&&(zs.y*=-1,zs.z*=-1),i.envMapRotation.value.setFromMatrix4(Qs.makeRotationFromEuler(zs)),i.flipEnvMap.value=s.isCubeTexture&&!1===s.isRenderTargetTexture?-1:1,i.reflectivity.value=r.reflectivity,i.ior.value=r.ior,i.refractionRatio.value=r.refractionRatio),r.lightMap){i.lightMap.value=r.lightMap;const t=!0===e._useLegacyLights?Math.PI:1;i.lightMapIntensity.value=r.lightMapIntensity*t,n(r.lightMap,i.lightMapTransform)}r.aoMap&&(i.aoMap.value=r.aoMap,i.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,i.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,Fi(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,r,a,s,o){r.isMeshBasicMaterial||r.isMeshLambertMaterial?i(e,r):r.isMeshToonMaterial?(i(e,r),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,r)):r.isMeshPhongMaterial?(i(e,r),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,r)):r.isMeshStandardMaterial?(i(e,r),function(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform));e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform));t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}(e,r),r.isMeshPhysicalMaterial&&function(e,t,i){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform)));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),1===t.side&&e.clearcoatNormalScale.value.negate()));t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform)));t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=i.texture,e.transmissionSamplerSize.value.set(i.width,i.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform)));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform));t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}
vendor: 4,780 bytes, line 67
67(e,r,o)):r.isMeshMatcapMaterial?(i(e,r),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,r)):r.isMeshDepthMaterial?i(e,r):r.isMeshDistanceMaterial?(i(e,r),function(e,n){const i=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(i.matrixWorld),e.nearDistance.value=i.shadow.camera.near,e.farDistance.value=i.shadow.camera.far}(e,r)):r.isMeshNormalMaterial?i(e,r):r.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,r),r.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,r)):r.isPointsMaterial?function(e,t,i,r){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*i,e.scale.value=.5*r,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,r,a,s):r.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,r):r.isShadowMaterial?(e.color.value.copy(r.color),e.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function Hs(e,t,n,i){let r={},a={},s=[];const o=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function l(e,t,n,i){const r=e.value,a=t+"_"+n;if(void 0===i[a])return i[a]="number"==typeof r||"boolean"==typeof r?r:r.clone(),!0;{const e=i[a];if("number"==typeof r||"boolean"==typeof r){if(e!==r)return i[a]=r,!0}else if(!1===e.equals(r))return e.copy(r),!0}return!1}function u(e){const t={boundary:0,storage:0};return"number"==typeof e||"boolean"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function c(t){const n=t.target;n.removeEventListener("dispose",c);const i=s.indexOf(n.__bindingPointIndex);s.splice(i,1),e.deleteBuffer(r[n.id]),delete r[n.id],delete a[n.id]}return{bind:function(e,t){const n=t.program;i.uniformBlockBinding(e,n)},update:function(n,d){let h=r[n.id];void 0===h&&(!function(e){const t=e.uniforms;let n=0;const i=16;for(let e=0,r=t.length;e<r;e++){const r=Array.isArray(t[e])?t[e]:[t[e]];for(let e=0,t=r.length;e<t;e++){const t=r[e],a=Array.isArray(t.value)?t.value:[t.value];for(let e=0,r=a.length;e<r;e++){const r=u(a[e]),s=n%i;0!==s&&i-s<r.boundary&&(n+=i-s),t.__data=new Float32Array(r.storage/Float32Array.BYTES_PER_ELEMENT),t.__offset=n,n+=r.storage}}}const r=n%i;r>0&&(n+=i-r);e.__size=n,e.__cache={}}(n),h=function(t){const n=function(){for(let e=0;e<o;e++)if(-1===s.indexOf(e))return s.push(e),e;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}();t.__bindingPointIndex=n;const i=e.createBuffer(),r=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,i),e.bufferData(e.UNIFORM_BUFFER,r,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,i),i}(n),r[n.id]=h,n.addEventListener("dispose",c));const p=d.program;i.updateUBOMapping(n,p);const f=t.render.frame;a[n.id]!==f&&(!function(t){const n=r[t.id],i=t.uniforms,a=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let t=0,n=i.length;t<n;t++){const n=Array.isArray(i[t])?i[t]:[i[t]];for(let i=0,r=n.length;i<r;i++){const r=n[i];if(!0===l(r,t,i,a)){const t=r.__offset,n=Array.isArray(r.value)?r.value:[r.value];let i=0;for(let a=0;a<n.length;a++){const s=n[a],o=u(s);"number"==typeof s||"boolean"==typeof s?(r.__data[0]=s,e.bufferSubData(e.UNIFORM_BUFFER,t+i,r.__data)):s.isMatrix3?(r.__data[0]=s.elements[0],r.__data[1]=s.elements[1],r.__data[2]=s.elements[2],r.__data[3]=0,r.__data[4]=s.elements[3],r.__data[5]=s.elements[4],r.__data[6]=s.elements[5],r.__data[7]=0,r.__data[8]=s.elements[6],r.__data[9]=s.elements[7],r.__data[10]=s.elements[8],r.__data[11]=0):(s.toArray(r.__data,i),i+=o.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,t,r.__data)}}}e.bindBuffer(e.UNIFORM_BUFFER,null)}(n),a[n.id]=f)},dispose:function(){for(const t in r)e.deleteBuffer(r[t]);s=[],r={},a={}}}}class Gs{constructor(e={}){const{canvas:t=st(),context:n=null,depth:i=!0,stencil:r=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:u=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:d=!1}=e;let h;
vendor: 7,271 bytes, line 67
67if(this.isWebGLRenderer=!0,null!==n){if("undefined"!=typeof WebGLRenderingContext&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");h=n.getContextAttributes().alpha}else h=a;const p=new Uint32Array(4),f=new Int32Array(4);let m=null,g=null;const v=[],A=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=we,this._useLegacyLights=!1,this.toneMapping=0,this.toneMappingExposure=1;const y=this;let b=!1,_=0,w=0,E=null,S=-1,T=null;const x=new Et,C=new Et;let I=null;const M=new Xn(0);let k=0,P=t.width,R=t.height,L=1,B=null,D=null;const N=new Et(0,0,P,R),O=new Et(0,0,P,R);let U=!1;const F=new ir;let z=!1,Q=!1;const G=new sn,K=new tt,$=new Mt,J={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Z(){return null===E?L:1}let ee,te,ne,ie,re,ae,se,oe,le,ue,ce,de,he,pe,fe,me,ge,ve,Ae,ye,be,_e,Se,Te,xe=n;function Ce(e,n){const i=t.getContext(e,n);return null!==i?i:null}try{const e={alpha:!0,depth:i,stencil:r,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:u,powerPreference:c,failIfMajorPerformanceCaveat:d};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${s}`),t.addEventListener("webglcontextlost",ke,!1),t.addEventListener("webglcontextrestored",Pe,!1),t.addEventListener("webglcontextcreationerror",Re,!1),null===xe){const t="webgl2";if(xe=Ce(t,e),null===xe)throw Ce(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(e){throw console.error("THREE.WebGLRenderer: "+e.message),e}function Ie(){ee=new Ur(xe),ee.init(),te=new gr(xe,ee,e),_e=new Ls(xe,ee),ne=new Ps(xe),ie=new Qr(xe),re=new vs,ae=new Rs(xe,ee,ne,re,te,_e,ie),se=new Ar(y),oe=new Or(y),le=new ar(xe),Se=new fr(xe,le),ue=new Fr(xe,le,ie,Se),ce=new Hr(xe,ue,le,ie),Ae=new Vr(xe,te,ae),me=new vr(re),de=new gs(y,se,oe,ee,te,Se,me),he=new Vs(y,re),pe=new _s,fe=new Cs(ee),ve=new pr(y,se,oe,ne,ce,h,l),ge=new ks(y,ce,te),Te=new Hs(xe,ie,te,ne),ye=new mr(xe,ee,ie),be=new zr(xe,ee,ie),ie.programs=de.programs,y.capabilities=te,y.extensions=ee,y.properties=re,y.renderLists=pe,y.shadowMap=ge,y.state=ne,y.info=ie}Ie();const Me=new Fs(y,xe);function ke(e){e.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),b=!0}function Pe(){console.log("THREE.WebGLRenderer: Context Restored."),b=!1;const e=ie.autoReset,t=ge.enabled,n=ge.autoUpdate,i=ge.needsUpdate,r=ge.type;Ie(),ie.autoReset=e,ge.enabled=t,ge.autoUpdate=n,ge.needsUpdate=i,ge.type=r}function Re(e){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",e.statusMessage)}function Le(e){const t=e.target;t.removeEventListener("dispose",Le),function(e){(function(e){const t=re.get(e).programs;void 0!==t&&(t.forEach(function(e){de.releaseProgram(e)}),e.isShaderMaterial&&de.releaseShaderCache(e))})(e),re.remove(e)}(t)}function Be(e,t,n){!0===e.transparent&&2===e.side&&!1===e.forceSinglePass?(e.side=1,e.needsUpdate=!0,He(e,t,n),e.side=0,e.needsUpdate=!0,He(e,t,n),e.side=2):He(e,t,n)}this.xr=Me,this.getContext=function(){return xe},this.getContextAttributes=function(){return xe.getContextAttributes()},this.forceContextLoss=function(){const e=ee.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=ee.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return L},this.setPixelRatio=function(e){void 0!==e&&(L=e,this.setSize(P,R,!1))},this.getSize=function(e){return e.set(P,R)},this.setSize=function(e,n,i=!0){Me.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(P=e,R=n,t.width=Math.floor(e*L),t.height=Math.floor(n*L),!0===i&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(P*L,R*L).floor()},this.setDrawingBufferSize=function(e,n,i){P=e,R=n,L=i,t.width=Math.floor(e*i),t.height=Math.floor(n*i),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(x)},this.getViewport=function(e){return e.copy(N)},this.setViewport=function(e,t,n,i){e.isVector4?N.set(e.x,e.y,e.z,e.w):N.set(e,t,n,i),ne.viewport(x.copy(N).multiplyScalar(L).round())},this.getScissor=function(e){return e.copy(O)},this.setScissor=function(e,t,n,i){e.isVector4?O.set(e.x,e.y,e.z,e.w):O.set(e,t,n,i),ne.scissor(C.copy(O).multiplyScalar(L).round())},this.getScissorTest=function(){return U},this.setScissorTest=function(e){ne.setScissorTest(U=e)},this.setOpaqueSort=function(e){B=e},this.setTransparentSort=function(e){D=e},this.getClearColor=function(e){return e.copy(ve.getClearColor())},this.setClearColor=function(){ve.setClearColor.apply(ve,arguments)},this.getClearAlpha=function(){return ve.getClearAlpha()},this.setClearAlpha=function(){ve.setClearAlpha.apply(ve,arguments)},this.clear=function(e=!0,t=!0,n=!0){let i=0;if(e){let e=!1;if(null!==E){const t=E.texture.format;e=1033===t||1031===t||1029===t}if(e){const e=E.texture.type,t=e===H||e===j||1012===e||e===Y||1017===e||1018===e,n=ve.getClearColor(),i=ve.getClearAlpha(),r=n.r,a=n.g,s=n.b;t?(p[0]=r,p[1]=a,p[2]=s,p[3]=i,xe.clearBufferuiv(xe.COLOR,0,p)):(f[0]=r,f[1]=a,f[2]=s,f[3]=i,xe.clearBufferiv(xe.COLOR,0,f))}else i|=xe.COLOR_BUFFER_BIT}t&&(i|=xe.DEPTH_BUFFER_BIT),n&&(i|=xe.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),xe.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",ke,!1),t.removeEventListener("webglcontextrestored",Pe,!1),t.removeEventListener("webglcontextcreationerror",Re,!1),pe.dispose(),fe.dispose(),re.dispose(),se.dispose(),oe.dispose(),ce.dispose(),Se.dispose(),Te.dispose(),de.dispose(),Me.dispose(),Me.removeEventListener("sessionstart",Ne),Me.removeEventListener("sessionend",Oe),Ue.stop()},this.renderBufferDirect=function(e,t,n,i,r,a){null===t&&(t=J);const s=r.isMesh&&r.matrixWorld.determinant()<0,o=function(e,t,n,i,r){!0!==t.isScene&&(t=J);ae.resetTextureUnits();const a=t.fog,s=i.isMeshStandardMaterial?t.environment:null,o=null===E?y.outputColorSpace:!0===E.isXRRenderTarget?E.texture.colorSpace:Ee,l=(i.isMeshStandardMaterial?oe:se).get(i.envMap||s),u=!0===i.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,c=!!n.attributes.tangent&&(!!i.normalMap||i.anisotropy>0),d=!!n.morphAttributes.position,h=!!n.morphAttributes.normal,p=!!n.morphAttributes.color;let f=0;i.toneMapped&&(null!==E&&!0!==E.isXRRenderTarget||(f=y.toneMapping));const m=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,v=void 0!==m?m.length:0,A=re.get(i),b=g.state.lights;if(!0===z&&(!0===Q||e!==T)){const t=e===T&&i.id===S;me.setState(i,e,t)}let _=!1;i.version===A.__version?A.needsLights&&A.lightsStateVersion!==b.state.version||A.outputColorSpace!==o||r.isBatchedMesh&&!1===A.batching?_=!0:r.isBatchedMesh||!0!==A.batching?r.isInstancedMesh&&!1===A.instancing?_=!0:r.isInstancedMesh||!0!==A.instancing?r.isSkinnedMesh&&
vendor: 4,959 bytes, line 67
67!1===A.skinning?_=!0:r.isSkinnedMesh||!0!==A.skinning?r.isInstancedMesh&&!0===A.instancingColor&&null===r.instanceColor||r.isInstancedMesh&&!1===A.instancingColor&&null!==r.instanceColor||r.isInstancedMesh&&!0===A.instancingMorph&&null===r.morphTexture||r.isInstancedMesh&&!1===A.instancingMorph&&null!==r.morphTexture||A.envMap!==l||!0===i.fog&&A.fog!==a?_=!0:void 0===A.numClippingPlanes||A.numClippingPlanes===me.numPlanes&&A.numIntersection===me.numIntersection?(A.vertexAlphas!==u||A.vertexTangents!==c||A.morphTargets!==d||A.morphNormals!==h||A.morphColors!==p||A.toneMapping!==f||A.morphTargetsCount!==v)&&(_=!0):_=!0:_=!0:_=!0:_=!0:(_=!0,A.__version=i.version);let w=A.currentProgram;!0===_&&(w=He(i,t,r));let x=!1,C=!1,I=!1;const M=w.getUniforms(),k=A.uniforms;ne.useProgram(w.program)&&(x=!0,C=!0,I=!0);i.id!==S&&(S=i.id,C=!0);if(x||T!==e){M.setValue(xe,"projectionMatrix",e.projectionMatrix),M.setValue(xe,"viewMatrix",e.matrixWorldInverse);const t=M.map.cameraPosition;void 0!==t&&t.setValue(xe,$.setFromMatrixPosition(e.matrixWorld)),te.logarithmicDepthBuffer&&M.setValue(xe,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&M.setValue(xe,"isOrthographic",!0===e.isOrthographicCamera),T!==e&&(T=e,C=!0,I=!0)}if(r.isSkinnedMesh){M.setOptional(xe,r,"bindMatrix"),M.setOptional(xe,r,"bindMatrixInverse");const e=r.skeleton;e&&(null===e.boneTexture&&e.computeBoneTexture(),M.setValue(xe,"boneTexture",e.boneTexture,ae))}r.isBatchedMesh&&(M.setOptional(xe,r,"batchingTexture"),M.setValue(xe,"batchingTexture",r._matricesTexture,ae));const P=n.morphAttributes;void 0===P.position&&void 0===P.normal&&void 0===P.color||Ae.update(r,n,w);(C||A.receiveShadow!==r.receiveShadow)&&(A.receiveShadow=r.receiveShadow,M.setValue(xe,"receiveShadow",r.receiveShadow));i.isMeshGouraudMaterial&&null!==i.envMap&&(k.envMap.value=l,k.flipEnvMap.value=l.isCubeTexture&&!1===l.isRenderTargetTexture?-1:1);i.isMeshStandardMaterial&&null===i.envMap&&null!==t.environment&&(k.envMapIntensity.value=t.environmentIntensity);C&&(M.setValue(xe,"toneMappingExposure",y.toneMappingExposure),A.needsLights&&(D=I,(B=k).ambientLightColor.needsUpdate=D,B.lightProbe.needsUpdate=D,B.directionalLights.needsUpdate=D,B.directionalLightShadows.needsUpdate=D,B.pointLights.needsUpdate=D,B.pointLightShadows.needsUpdate=D,B.spotLights.needsUpdate=D,B.spotLightShadows.needsUpdate=D,B.rectAreaLights.needsUpdate=D,B.hemisphereLights.needsUpdate=D),a&&!0===i.fog&&he.refreshFogUniforms(k,a),he.refreshMaterialUniforms(k,i,L,R,g.state.transmissionRenderTarget),Xa.upload(xe,Ge(A),k,ae));var B,D;i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(Xa.upload(xe,Ge(A),k,ae),i.uniformsNeedUpdate=!1);i.isSpriteMaterial&&M.setValue(xe,"center",r.center);if(M.setValue(xe,"modelViewMatrix",r.modelViewMatrix),M.setValue(xe,"normalMatrix",r.normalMatrix),M.setValue(xe,"modelMatrix",r.matrixWorld),i.isShaderMaterial||i.isRawShaderMaterial){const e=i.uniformsGroups;for(let t=0,n=e.length;t<n;t++){const n=e[t];Te.update(n,w),Te.bind(n,w)}}return w}(e,t,n,i,r);ne.setMaterial(i,s);let l=n.index,u=1;if(!0===i.wireframe){if(l=ue.getWireframeAttribute(n),void 0===l)return;u=2}const c=n.drawRange,d=n.attributes.position;let h=c.start*u,p=(c.start+c.count)*u;null!==a&&(h=Math.max(h,a.start*u),p=Math.min(p,(a.start+a.count)*u)),null!==l?(h=Math.max(h,0),p=Math.min(p,l.count)):null!=d&&(h=Math.max(h,0),p=Math.min(p,d.count));const f=p-h;if(f<0||f===1/0)return;let m;Se.setup(r,i,o,n,l);let v=ye;if(null!==l&&(m=le.get(l),v=be,v.setIndex(m)),r.isMesh)!0===i.wireframe?(ne.setLineWidth(i.wireframeLinewidth*Z()),v.setMode(xe.LINES)):v.setMode(xe.TRIANGLES);else if(r.isLine){let e=i.linewidth;void 0===e&&(e=1),ne.setLineWidth(e*Z()),r.isLineSegments?v.setMode(xe.LINES):r.isLineLoop?v.setMode(xe.LINE_LOOP):v.setMode(xe.LINE_STRIP)}else r.isPoints?v.setMode(xe.POINTS):r.isSprite&&v.setMode(xe.TRIANGLES);if(r.isBatchedMesh)v.renderMultiDraw(r._multiDrawStarts,r._multiDrawCounts,r._multiDrawCount);else if(r.isInstancedMesh)v.renderInstances(h,f,r.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);v.renderInstances(h,f,t)}else v.render(h,f)},this.compile=function(e,t,n=null){null===n&&(n=e),g=fe.get(n),g.init(),A.push(g),n.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(g.pushLight(e),e.castShadow&&g.pushShadow(e))}),e!==n&&e.traverseVisible(function(e){e.isLight&&e.layers.test(t.layers)&&(g.pushLight(e),e.castShadow&&g.pushShadow(e))}),g.setupLights(y._useLegacyLights);const i=new Set;return e.traverse(function(e){const t=e.material;if(t)if(Array.isArray(t))for(let r=0;r<t.length;r++){const a=t[r];Be(a,n,e),i.add(a)}else Be(t,n,e),i.add(t)}),A.pop(),g=null,i},this.compileAsync=function(e,t,n=null){const i=this.compile(e,t,n);return new Promise(t=>
vendor: 31,562 bytes, line 67
67{function n(){i.forEach(function(e){re.get(e).currentProgram.isReady()&&i.delete(e)}),0!==i.size?setTimeout(n,10):t(e)}null!==ee.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)})};let De=null;function Ne(){Ue.stop()}function Oe(){Ue.start()}const Ue=new rr;function Fe(e,t,n,i){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)g.pushLight(e),e.castShadow&&g.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||F.intersectsSprite(e)){i&&$.setFromMatrixPosition(e.matrixWorld).applyMatrix4(G);const t=ce.update(e),r=e.material;r.visible&&m.push(e,t,r,n,$.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||F.intersectsObject(e))){const t=ce.update(e),r=e.material;if(i&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),$.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),$.copy(t.boundingSphere.center)),$.applyMatrix4(e.matrixWorld).applyMatrix4(G)),Array.isArray(r)){const i=t.groups;for(let a=0,s=i.length;a<s;a++){const s=i[a],o=r[s.materialIndex];o&&o.visible&&m.push(e,t,o,n,$.z,s)}}else r.visible&&m.push(e,t,r,n,$.z,null)}const r=e.children;for(let e=0,a=r.length;e<a;e++)Fe(r[e],t,n,i)}function ze(e,t,n,i){const a=e.opaque,s=e.transmissive,o=e.transparent;g.setupLightsView(n),!0===z&&me.setGlobalState(y.clippingPlanes,n),s.length>0&&function(e,t,n,i){const a=!0===n.isScene?n.overrideMaterial:null;if(null!==a)return;if(null===g.state.transmissionRenderTarget){g.state.transmissionRenderTarget=new Tt(1,1,{generateMipmaps:!0,type:ee.has("EXT_color_buffer_half_float")||ee.has("EXT_color_buffer_float")?W:H,minFilter:V,samples:4,stencilBuffer:r});re.get(g.state.transmissionRenderTarget).__isTransmissionRenderTarget=!0}const s=g.state.transmissionRenderTarget;y.getDrawingBufferSize(K),s.setSize(K.x,K.y);const o=y.getRenderTarget();y.setRenderTarget(s),y.getClearColor(M),k=y.getClearAlpha(),k<1&&y.setClearColor(16777215,.5);y.clear();const l=y.toneMapping;y.toneMapping=0,Qe(e,n,i),ae.updateMultisampleRenderTarget(s),ae.updateRenderTargetMipmap(s);let u=!1;for(let e=0,r=t.length;e<r;e++){const r=t[e],a=r.object,s=r.geometry,o=r.material,l=r.group;if(2===o.side&&a.layers.test(i.layers)){const e=o.side;o.side=1,o.needsUpdate=!0,Ve(a,n,i,s,o,l),o.side=e,o.needsUpdate=!0,u=!0}}!0===u&&(ae.updateMultisampleRenderTarget(s),ae.updateRenderTargetMipmap(s));y.setRenderTarget(o),y.setClearColor(M,k),y.toneMapping=l}(a,s,t,n),i&&ne.viewport(x.copy(i)),a.length>0&&Qe(a,t,n),s.length>0&&Qe(s,t,n),o.length>0&&Qe(o,t,n),ne.buffers.depth.setTest(!0),ne.buffers.depth.setMask(!0),ne.buffers.color.setMask(!0),ne.setPolygonOffset(!1)}function Qe(e,t,n){const i=!0===t.isScene?t.overrideMaterial:null;for(let r=0,a=e.length;r<a;r++){const a=e[r],s=a.object,o=a.geometry,l=null===i?a.material:i,u=a.group;s.layers.test(n.layers)&&Ve(s,t,n,o,l,u)}}function Ve(e,t,n,i,r,a){e.onBeforeRender(y,t,n,i,r,a),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),r.onBeforeRender(y,t,n,i,e,a),!0===r.transparent&&2===r.side&&!1===r.forceSinglePass?(r.side=1,r.needsUpdate=!0,y.renderBufferDirect(n,t,i,r,e,a),r.side=0,r.needsUpdate=!0,y.renderBufferDirect(n,t,i,r,e,a),r.side=2):y.renderBufferDirect(n,t,i,r,e,a),e.onAfterRender(y,t,n,i,r,a)}function He(e,t,n){!0!==t.isScene&&(t=J);const i=re.get(e),r=g.state.lights,a=g.state.shadowsArray,s=r.state.version,o=de.getParameters(e,r.state,a,t,n),l=de.getProgramCacheKey(o);let u=i.programs;i.environment=e.isMeshStandardMaterial?t.environment:null,i.fog=t.fog,i.envMap=(e.isMeshStandardMaterial?oe:se).get(e.envMap||i.environment),i.envMapRotation=null!==i.environment&&null===e.envMap?t.environmentRotation:e.envMapRotation,void 0===u&&(e.addEventListener("dispose",Le),u=new Map,i.programs=u);let c=u.get(l);if(void 0!==c){if(i.currentProgram===c&&i.lightsStateVersion===s)return je(e,o),c}else o.uniforms=de.getUniforms(e),e.onBuild(n,o,y),e.onBeforeCompile(o,y),c=de.acquireProgram(o,l),u.set(l,c),i.uniforms=o.uniforms;const d=i.uniforms;return(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(d.clippingPlanes=me.uniform),je(e,o),i.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),i.lightsStateVersion=s,i.needsLights&&(d.ambientLightColor.value=r.state.ambient,d.lightProbe.value=r.state.probe,d.directionalLights.value=r.state.directional,d.directionalLightShadows.value=r.state.directionalShadow,d.spotLights.value=r.state.spot,d.spotLightShadows.value=r.state.spotShadow,d.rectAreaLights.value=r.state.rectArea,d.ltc_1.value=r.state.rectAreaLTC1,d.ltc_2.value=r.state.rectAreaLTC2,d.pointLights.value=r.state.point,d.pointLightShadows.value=r.state.pointShadow,d.hemisphereLights.value=r.state.hemi,d.directionalShadowMap.value=r.state.directionalShadowMap,d.directionalShadowMatrix.value=r.state.directionalShadowMatrix,d.spotShadowMap.value=r.state.spotShadowMap,d.spotLightMatrix.value=r.state.spotLightMatrix,d.spotLightMap.value=r.state.spotLightMap,d.pointShadowMap.value=r.state.pointShadowMap,d.pointShadowMatrix.value=r.state.pointShadowMatrix),i.currentProgram=c,i.uniformsList=null,c}function Ge(e){if(null===e.uniformsList){const t=e.currentProgram.getUniforms();e.uniformsList=Xa.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function je(e,t){const n=re.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}Ue.setAnimationLoop(function(e){De&&De(e)}),"undefined"!=typeof self&&Ue.setContext(self),this.setAnimationLoop=function(e){De=e,Me.setAnimationLoop(e),null===e?Ue.stop():Ue.start()},Me.addEventListener("sessionstart",Ne),Me.addEventListener("sessionend",Oe),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===b)return;!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===Me.enabled&&!0===Me.isPresenting&&(!0===Me.cameraAutoUpdate&&Me.updateCamera(t),t=Me.getCamera()),!0===e.isScene&&e.onBeforeRender(y,e,t,E),g=fe.get(e,A.length),g.init(),A.push(g),G.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),F.setFromProjectionMatrix(G),Q=this.localClippingEnabled,z=me.init(this.clippingPlanes,Q),m=pe.get(e,v.length),m.init(),v.push(m),Fe(e,t,0,y.sortObjects),m.finish(),!0===y.sortObjects&&m.sort(B,D),this.info.render.frame++,!0===z&&me.beginShadows();const n=g.state.shadowsArray;if(ge.render(n,e,t),!0===z&&me.endShadows(),!0===this.info.autoReset&&this.info.reset(),!1!==Me.enabled&&!1!==Me.isPresenting&&!1!==Me.hasDepthSensing()||ve.render(m,e),g.setupLights(y._useLegacyLights),t.isArrayCamera){const n=t.cameras;for(let t=0,i=n.length;t<i;t++){const i=n[t];ze(m,e,i,i.viewport)}}else ze(m,e,t);null!==E&&(ae.updateMultisampleRenderTarget(E),ae.updateRenderTargetMipmap(E)),!0===e.isScene&&e.onAfterRender(y,e,t),Se.resetDefaultState(),S=-1,T=null,A.pop(),g=A.length>0?A[A.length-1]:null,v.pop(),m=v.length>0?v[v.length-1]:null},this.getActiveCubeFace=function(){return _},this.getActiveMipmapLevel=function(){return w},this.getRenderTarget=function(){return E},this.setRenderTargetTextures=function(e,t,n){re.get(e.texture).__webglTexture=t,re.get(e.depthTexture).__webglTexture=n;const i=re.get(e);i.__hasExternalTextures=!0,i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||!0===ee.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),i.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(e,t){const n=re.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){E=e,_=t,w=n;let i=!0,r=null,a=!1,s=!1;if(e){const o=re.get(e);void 0!==o.__useDefaultFramebuffer?(ne.bindFramebuffer(xe.FRAMEBUFFER,null),i=!1):void 0===o.__webglFramebuffer?ae.setupRenderTarget(e):o.__hasExternalTextures&&ae.rebindTextures(e,re.get(e.texture).__webglTexture,re.get(e.depthTexture).__webglTexture);const l=e.texture;(l.isData3DTexture||l.isDataArrayTexture||l.isCompressedArrayTexture)&&(s=!0);const u=re.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(r=Array.isArray(u[t])?u[t][n]:u[t],a=!0):r=e.samples>0&&!1===ae.useMultisampledRTT(e)?re.get(e).__webglMultisampledFramebuffer:Array.isArray(u)?u[n]:u,x.copy(e.viewport),C.copy(e.scissor),I=e.scissorTest}else x.copy(N).multiplyScalar(L).floor(),C.copy(O).multiplyScalar(L).floor(),I=U;if(ne.bindFramebuffer(xe.FRAMEBUFFER,r)&&i&&ne.drawBuffers(e,r),ne.viewport(x),ne.scissor(C),ne.setScissorTest(I),a){const i=re.get(e.texture);xe.framebufferTexture2D(xe.FRAMEBUFFER,xe.COLOR_ATTACHMENT0,xe.TEXTURE_CUBE_MAP_POSITIVE_X+t,i.__webglTexture,n)}else if(s){const i=re.get(e.texture),r=t||0;xe.framebufferTextureLayer(xe.FRAMEBUFFER,xe.COLOR_ATTACHMENT0,i.__webglTexture,n||0,r)}S=-1},this.readRenderTargetPixels=function(e,t,n,i,r,a,s){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=re.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==s&&(o=o[s]),o){ne.bindFramebuffer(xe.FRAMEBUFFER,o);try{const s=e.texture,o=s.format,l=s.type;if(o!==X&&_e.convert(o)!==xe.getParameter(xe.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const u=l===W&&(ee.has("EXT_color_buffer_half_float")||ee.has("EXT_color_buffer_float"));if(l!==H&&_e.convert(l)!==xe.getParameter(xe.IMPLEMENTATION_COLOR_READ_TYPE)&&l!==q&&!u)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-i&&n>=0&&n<=e.height-r&&xe.readPixels(t,n,i,r,_e.convert(o),_e.convert(l),a)}finally{const e=null!==E?re.get(E).__webglFramebuffer:null;ne.bindFramebuffer(xe.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t,n=0){const i=Math.pow(2,-n),r=Math.floor(t.image.width*i),a=Math.floor(t.image.height*i);ae.setTexture2D(t,0),xe.copyTexSubImage2D(xe.TEXTURE_2D,n,0,0,e.x,e.y,r,a),ne.unbindTexture()},this.copyTextureToTexture=function(e,t,n,i=0){const r=t.image.width,a=t.image.height,s=_e.convert(n.format),o=_e.convert(n.type);ae.setTexture2D(n,0),xe.pixelStorei(xe.UNPACK_FLIP_Y_WEBGL,n.flipY),xe.pixelStorei(xe.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultiplyAlpha),xe.pixelStorei(xe.UNPACK_ALIGNMENT,n.unpackAlignment),t.isDataTexture?xe.texSubImage2D(xe.TEXTURE_2D,i,e.x,e.y,r,a,s,o,t.image.data):t.isCompressedTexture?xe.compressedTexSubImage2D(xe.TEXTURE_2D,i,e.x,e.y,t.mipmaps[0].width,t.mipmaps[0].height,s,t.mipmaps[0].data):xe.texSubImage2D(xe.TEXTURE_2D,i,e.x,e.y,s,o,t.image),0===i&&n.generateMipmaps&&xe.generateMipmap(xe.TEXTURE_2D),ne.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n,i,r=0){const a=Math.round(e.max.x-e.min.x),s=Math.round(e.max.y-e.min.y),o=e.max.z-e.min.z+1,l=_e.convert(i.format),u=_e.convert(i.type);let c;if(i.isData3DTexture)ae.setTexture3D(i,0),c=xe.TEXTURE_3D;else{if(!i.isDataArrayTexture&&!i.isCompressedArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");ae.setTexture2DArray(i,0),c=xe.TEXTURE_2D_ARRAY}xe.pixelStorei(xe.UNPACK_FLIP_Y_WEBGL,i.flipY),xe.pixelStorei(xe.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.premultiplyAlpha),xe.pixelStorei(xe.UNPACK_ALIGNMENT,i.unpackAlignment);const d=xe.getParameter(xe.UNPACK_ROW_LENGTH),h=xe.getParameter(xe.UNPACK_IMAGE_HEIGHT),p=xe.getParameter(xe.UNPACK_SKIP_PIXELS),f=xe.getParameter(xe.UNPACK_SKIP_ROWS),m=xe.getParameter(xe.UNPACK_SKIP_IMAGES),g=n.isCompressedTexture?n.mipmaps[r]:n.image;xe.pixelStorei(xe.UNPACK_ROW_LENGTH,g.width),xe.pixelStorei(xe.UNPACK_IMAGE_HEIGHT,g.height),xe.pixelStorei(xe.UNPACK_SKIP_PIXELS,e.min.x),xe.pixelStorei(xe.UNPACK_SKIP_ROWS,e.min.y),xe.pixelStorei(xe.UNPACK_SKIP_IMAGES,e.min.z),n.isDataTexture||n.isData3DTexture?xe.texSubImage3D(c,r,t.x,t.y,t.z,a,s,o,l,u,g.data):i.isCompressedArrayTexture?xe.compressedTexSubImage3D(c,r,t.x,t.y,t.z,a,s,o,l,g.data):xe.texSubImage3D(c,r,t.x,t.y,t.z,a,s,o,l,u,g),xe.pixelStorei(xe.UNPACK_ROW_LENGTH,d),xe.pixelStorei(xe.UNPACK_IMAGE_HEIGHT,h),xe.pixelStorei(xe.UNPACK_SKIP_PIXELS,p),xe.pixelStorei(xe.UNPACK_SKIP_ROWS,f),xe.pixelStorei(xe.UNPACK_SKIP_IMAGES,m),0===r&&i.generateMipmaps&&xe.generateMipmap(c),ne.unbindTexture()},this.initTexture=function(e){e.isCubeTexture?ae.setTextureCube(e,0):e.isData3DTexture?ae.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?ae.setTexture2DArray(e,0):ae.setTexture2D(e,0),ne.unbindTexture()},this.resetState=function(){_=0,w=0,E=null,ne.reset(),Se.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Qe}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===Se?"display-p3":"srgb",t.unpackColorSpace=pt.workingColorSpace===Te?"display-p3":"srgb"}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class js extends Ln{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new gn,this.environmentIntensity=1,this.environmentRotation=new gn,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),1!==this.environmentIntensity&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class qs{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Fe,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Ye()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return lt("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let i=0,r=this.stride;i<r;i++)this.array[e+i]=t.array[n+i];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Ye()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(t,this.stride);return n.setUsage(this.usage),n}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return void 0===e.arrayBuffers&&(e.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Ye()),void 0===e.arrayBuffers[this.array.buffer._uuid]&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const Ws=new Mt;class Ys{constructor(e,t,n,i=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=n,this.normalized=i}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,n=this.data.count;t<n;t++)Ws.fromBufferAttribute(this,t),Ws.applyMatrix4(e),this.setXYZ(t,Ws.x,Ws.y,Ws.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Ws.fromBufferAttribute(this,t),Ws.applyNormalMatrix(e),this.setXYZ(t,Ws.x,Ws.y,Ws.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Ws.fromBufferAttribute(this,t),Ws.transformDirection(e),this.setXYZ(t,Ws.x,Ws.y,Ws.z);return this}getComponent(e,t){let n=this.array[e*this.data.stride+this.offset+t];return this.normalized&&(n=Je(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=Ze(n,this.array)),this.data.array[e*this.data.stride+this.offset+t]=n,this}setX(e,t){return this.normalized&&(t=Ze(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=Ze(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=Ze(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=Ze(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=Je(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=Je(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=Je(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=Je(t,this.array)),t}setXY(e,t,n){return e=e*this.data.stride+this.offset,this.normalized&&(t=Ze(t,this.array),n=Ze(n,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this}setXYZ(e,t,n,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=Ze(t,this.array),n=Ze(n,this.array),i=Ze(i,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=i,this}setXYZW(e,t,n,i,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=Ze(t,this.array),n=Ze(n,this.array),i=Ze(i,this.array),r=Ze(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=n,this.data.array[e+2]=i,this.data.array[e+3]=r,this}clone(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return new ai(new this.array.constructor(e),this.itemSize,this.normalized)}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new Ys(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(void 0===e){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.");const e=[];for(let t=0;t<this.count;t++){const n=t*this.data.stride+this.offset;for(let t=0;t<this.itemSize;t++)e.push(this.data.array[n+t])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:e,normalized:this.normalized}}return void 0===e.interleavedBuffers&&(e.interleavedBuffers={}),void 0===e.interleavedBuffers[this.data.uuid]&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}const Xs=new Mt,Ks=new Et,$s=new Et,Js=new Mt,Zs=new sn,eo=new Mt,to=new Kt,no=new sn,io=new an;class ro extends Bi{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=I,this.bindMatrix=new sn,this.bindMatrixInverse=new sn,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;null===this.boundingBox&&(this.boundingBox=new Rt),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let e=0;e<t.count;e++)this.getVertexPosition(e,eo),this.boundingBox.expandByPoint(eo)}computeBoundingSphere(){const e=this.geometry;null===this.boundingSphere&&(this.boundingSphere=new Kt),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let e=0;e<t.count;e++)this.getVertexPosition(e,eo),this.boundingSphere.expandByPoint(eo)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){const n=this.material,i=this.matrixWorld;void 0!==n&&(null===this.boundingSphere&&this.computeBoundingSphere(),to.copy(this.boundingSphere),to.applyMatrix4(i),!1!==e.ray.intersectsSphere(to)&&(no.copy(i).invert(),io.copy(e.ray).applyMatrix4(no),null!==this.boundingBox&&!1===io.intersectsBox(this.boundingBox)||this._computeIntersections(e,t,io)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,void 0===t&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new Et,t=this.geometry.attributes.skinWeight;for(let n=0,i=t.count;n<i;n++){e.fromBufferAttribute(t,n);const i=1/e.manhattanLength();i!==1/0?e.multiplyScalar(i):e.set(1,0,0,0),t.setXYZW(n,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===I?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}applyBoneTransform(e,t){const n=this.skeleton,i=this.geometry;Ks.fromBufferAttribute(i.attributes.skinIndex,e),$s.fromBufferAttribute(i.attributes.skinWeight,e),Xs.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let e=0;e<4;e++){const i=$s.getComponent(e);if(0!==i){const r=Ks.getComponent(e);Zs.multiplyMatrices(n.bones[r].matrixWorld,n.boneInverses[r]),t.addScaledVector(Js.copy(Xs).applyMatrix4(Zs),i)}}return t.applyMatrix4(this.bindMatrixInverse)}}class ao extends Ln{constructor(){super(),this.isBone=!0,this.type="Bone"}}class so extends wt{constructor(e=null,t=1,n=1,i,r,a,s,o,l=O,u=O,c,d){super(null,a,s,o,l,u,i,r,c,d),this.isDataTexture=!0,this.image={data:e,width:t,height:n},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const oo=new sn,lo=new sn;class uo{constructor(e=[],t=[]){this.uuid=Ye(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(16*e.length),0===t.length)this.calculateInverses();else if(e.length!==t.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let e=0,t=this.bones.length;e<t;e++)this.boneInverses.push(new sn)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const t=new sn;this.bones[e]&&t.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(t)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&t.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){const t=this.bones[e];t&&(t.parent&&t.parent.isBone?(t.matrix.copy(t.parent.matrixWorld).invert(),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))}}update(){const e=this.bones,t=this.boneInverses,n=this.boneMatrices,i=this.boneTexture;for(let i=0,r=e.length;i<r;i++){const r=e[i]?e[i].matrixWorld:lo;oo.multiplyMatrices(r,t[i]),oo.toArray(n,16*i)}null!==i&&(i.needsUpdate=!0)}clone(){return new uo(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(4*this.bones.length);e=4*Math.ceil(e/4),e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const n=new so(t,e,e,X,q);return n.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=n,this}getBoneByName(e){for(let t=0,n=this.bones.length;t<n;t++){const n=this.bones[t];if(n.name===e)return n}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let n=0,i=e.bones.length;n<i;n++){const i=e.bones[n];let r=t[i];void 0===r&&(console.warn("THREE.Skeleton: No bone found with UUID:",i),r=new ao),this.bones.push(r),this.boneInverses.push((new sn).fromArray(e.boneInverses[n]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,n=this.boneInverses;for(let i=0,r=t.length;i<r;i++){const r=t[i];e.bones.push(r.uuid);const a=n[i];e.boneInverses.push(a.toArray())}return e}}class co extends ai{constructor(e,t,n,i=1){super(e,t,n),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=i}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const ho=new sn,po=new sn,fo=[],mo=new Rt,go=new sn,vo=new Bi,Ao=new Kt;class yo extends Bi{constructor(e,t,n){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new co(new Float32Array(16*n),16),this.instanceColor=null,this.morphTexture=null,this.count=n,this.boundingBox=null,this.boundingSphere=null;for(let e=0;e<n;e++)this.setMatrixAt(e,go)}computeBoundingBox(){const e=this.geometry,t=this.count;null===this.boundingBox&&(this.boundingBox=new Rt),null===e.boundingBox&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,ho),mo.copy(e.boundingBox).applyMatrix4(ho),this.boundingBox.union(mo)}computeBoundingSphere(){const e=this.geometry,t=this.count;null===this.boundingSphere&&(this.boundingSphere=new Kt),null===e.boundingSphere&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let n=0;n<t;n++)this.getMatrixAt(n,ho),Ao.copy(e.boundingSphere).applyMatrix4(ho),this.boundingSphere.union(Ao)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),null!==e.morphTexture&&(this.morphTexture=e.morphTexture.clone()),null!==e.instanceColor&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone()),null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,t){t.fromArray(this.instanceColor.array,3*e)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,16*e)}getMorphAt(e,t){const n=t.morphTargetInfluences,i=this.morphTexture.source.data.data,r=e*(n.length+1)+1;for(let e=0;e<n.length;e++)n[e]=i[r+e]}raycast(e,t){const n=this.matrixWorld,i=this.count;if(vo.geometry=this.geometry,vo.material=this.material,void 0!==vo.material&&(null===this.boundingSphere&&this.computeBoundingSphere(),Ao.copy(this.boundingSphere),Ao.applyMatrix4(n),!1!==e.ray.intersectsSphere(Ao)))for(let r=0;r<i;r++){this.getMatrixAt(r,ho),po.multiplyMatrices(n,ho),vo.matrixWorld=po,vo.raycast(e,fo);for(let e=0,n=fo.length;e<n;e++){const n=fo[e];n.instanceId=r,n.object=this,t.push(n)}fo.length=0}}setColorAt(e,t){null===this.instanceColor&&(this.instanceColor=new co(new Float32Array(3*this.instanceMatrix.count),3)),t.toArray(this.instanceColor.array,3*e)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,16*e)}setMorphAt(e,t){const n=t.morphTargetInfluences,i=n.length+1;null===this.morphTexture&&(this.morphTexture=new so(new Float32Array(i*this.count),i,this.count,J,q));const r=this.morphTexture.source.data.data;let a=0;for(let e=0;e<n.length;e++)a+=n[e];const s=this.geometry.morphTargetsRelative?1:1-a,o=i*e;r[o]=s,r.set(n,o+1)}updateMorphTargets(){}dispose(){return this.dispatchEvent({type:"dispose"}),null!==this.morphTexture&&(this.morphTexture.dispose(),this.morphTexture=null),this}}class bo extends Jn{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Xn(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const _o=new Mt,wo=new Mt,Eo=new sn,So=new an,To=new Kt;class xo extends Ln{constructor(e=new gi,t=new bo){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[0];for(let e=1,i=t.count;e<i;e++)_o.fromBufferAttribute(t,e-1),wo.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=_o.distanceTo(wo);e.setAttribute("lineDistance",new li(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,t){const n=this.geometry,i=this.matrixWorld,r=e.params.Line.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),To.copy(n.boundingSphere),To.applyMatrix4(i),To.radius+=r,!1===e.ray.intersectsSphere(To))return;Eo.copy(i).invert(),So.copy(e.ray).applyMatrix4(Eo);const s=r/((this.scale.x+this.scale.y+this.scale.z)/3),o=s*s,l=new Mt,u=new Mt,c=new Mt,d=new Mt,h=this.isLineSegments?2:1,p=n.index,f=n.attributes.position;if(null!==p){for(let n=Math.max(0,a.start),i=Math.min(p.count,a.start+a.count)-1;n<i;n+=h){const i=p.getX(n),r=p.getX(n+1);l.fromBufferAttribute(f,i),u.fromBufferAttribute(f,r);
67if(So.distanceSqToSegment(l,u,d,c)>o)continue;d.applyMatrix4(this.matrixWorld);const a=e.ray.origin.distanceTo(d);a<e.near||a>e.far||t.push({distance:a,point:c.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,a.start),i=Math.min(f.count,a.start+a.count)-1;n<i;n+=h){l.fromBufferAttribute(f,n),u.fromBufferAttribute(f,n+1);if(So.distanceSqToSegment(l,u,d,c)>o)continue;d.applyMatrix4(this.matrixWorld);const i=e.ray.origin.distanceTo(d);i<e.near||i>e.far||t.push({distance:i,point:c.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}const Co=new Mt,Io=new Mt;class Mo extends xo{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,i=t.count;e<i;e+=2)Co.fromBufferAttribute(t,e),Io.fromBufferAttribute(t,e+1),n[e]=0===e?0:n[e-1],n[e+1]=n[e]+Co.distanceTo(Io);e.setAttribute("lineDistance",new li(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class ko extends xo{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class Po extends Jn{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new Xn(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const Ro=new sn,Lo=new an,Bo=new Kt,Do=new Mt;class No extends Ln{constructor(e=new gi,t=new Po){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,t){const n=this.geometry,i=this.matrixWorld,r=e.params.Points.threshold,a=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Bo.copy(n.boundingSphere),Bo.applyMatrix4(i),Bo.radius+=r,!1===e.ray.intersectsSphere(Bo))return;Ro.copy(i).invert(),Lo.copy(e.ray).applyMatrix4(Ro);const s=r/((this.scale.x+this.scale.y+this.scale.z)/3),o=s*s,l=n.index,u=n.attributes.position;if(null!==l){for(let n=Math.max(0,a.start),r=Math.min(l.count,a.start+a.count);n<r;n++){const r=l.getX(n);Do.fromBufferAttribute(u,r),Oo(Do,r,o,i,e,t,this)}}else{for(let n=Math.max(0,a.start),r=Math.min(u.count,a.start+a.count);n<r;n++)Do.fromBufferAttribute(u,n),Oo(Do,n,o,i,e,t,this)}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}function Oo(e,t,n,i,r,a,s){const o=Lo.distanceSqToPoint(e);if(o<n){const n=new Mt;Lo.closestPointToPoint(e,n),n.applyMatrix4(i);const l=r.ray.origin.distanceTo(n);if(l<r.near||l>r.far)return;a.push({distance:l,distanceToRay:Math.sqrt(o),point:n,index:t,face:null,object:s})}}class Uo extends wt{constructor(e,t,n,i,r,a,s,o,l){super(e,t,n,i,r,a,s,o,l),this.isVideoTexture=!0,this.minFilter=void 0!==a?a:z,this.magFilter=void 0!==r?r:z,this.generateMipmaps=!1;const u=this;"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(function t(){u.needsUpdate=!0,e.requestVideoFrameCallback(t)})}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;!1==="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class Fo extends wt{constructor(e,t,n,i,r,a,s,o,l,u,c,d){super(null,a,s,o,l,u,i,r,c,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class zo extends Fo{constructor(e,t,n,i,r,a){super(e,t,n,r,a),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=D}}class Qo extends Fo{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,k),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class Vo extends wt{constructor(e,t,n,i,r,a,s,o,l){super(e,t,n,i,r,a,s,o,l),this.isCanvasTexture=!0,this.needsUpdate=!0}}class Ho extends gi{constructor(e=1,t=32,n=16,i=0,r=2*Math.PI,a=0,s=Math.PI){super(),this.type="SphereGeometry",this.parameters={radiu
vendor: 9,119 bytes, line 67
67s:e,widthSegments:t,heightSegments:n,phiStart:i,phiLength:r,thetaStart:a,thetaLength:s},t=Math.max(3,Math.floor(t)),n=Math.max(2,Math.floor(n));const o=Math.min(a+s,Math.PI);let l=0;const u=[],c=new Mt,d=new Mt,h=[],p=[],f=[],m=[];for(let h=0;h<=n;h++){const g=[],v=h/n;let A=0;0===h&&0===a?A=.5/t:h===n&&o===Math.PI&&(A=-.5/t);for(let n=0;n<=t;n++){const o=n/t;c.x=-e*Math.cos(i+o*r)*Math.sin(a+v*s),c.y=e*Math.cos(a+v*s),c.z=e*Math.sin(i+o*r)*Math.sin(a+v*s),p.push(c.x,c.y,c.z),d.copy(c).normalize(),f.push(d.x,d.y,d.z),m.push(o+A,1-v),g.push(l++)}u.push(g)}for(let e=0;e<n;e++)for(let i=0;i<t;i++){const t=u[e][i+1],r=u[e][i],s=u[e+1][i],l=u[e+1][i+1];(0!==e||a>0)&&h.push(t,r,l),(e!==n-1||o<Math.PI)&&h.push(r,s,l)}this.setIndex(h),this.setAttribute("position",new li(p,3)),this.setAttribute("normal",new li(f,3)),this.setAttribute("uv",new li(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ho(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class Go extends Jn{constructor(e){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Xn(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Xn(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new tt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new gn,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class jo extends Go{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new tt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Xe(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new Xn(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new Xn(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Xn(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}function qo(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function Wo(e){const t=e.length,n=new Array(t);for(let e=0;e!==t;++e)n[e]=e;return n.sort(function(t,n){return e[t]-e[n]}),n}function Yo(e,t,n){const i=e.length,r=new e.constructor(i);for(let a=0,s=0;s!==i;++a){const i=n[a]*t;for(let n=0;n!==t;++n)r[s++]=e[i+n]}return r}function Xo(e,t,n,i){let r=1,a=e[0];for(;void 0!==a&&void 0===a[i];)a=e[r++];if(void 0===a)return;let s=a[i];if(void 0!==s)if(Array.isArray(s))do{s=a[i],void 0!==s&&(t.push(a.time),n.push.apply(n,s)),a=e[r++]}while(void 0!==a);else if(void 0!==s.toArray)do{s=a[i],void 0!==s&&(t.push(a.time),s.toArray(n,n.length)),a=e[r++]}while(void 0!==a);else do{s=a[i],void 0!==s&&(t.push(a.time),n.push(s)),a=e[r++]}while(void 0!==a)}class Ko{constructor(e,t,n,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new t.constructor(n),this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let n=this._cachedIndex,i=t[n],r=t[n-1];e:{t:{let a;n:{i:if(!(e<i)){for(let a=n+2;;){if(void 0===i){if(e<r)break i;return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}if(n===a)break;if(r=i,i=t[++n],e<i)break t}a=t.length;break n}if(!(e>=r)){const s=t[1];e<s&&(n=2,r=s);for(let a=n-2;;){if(void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(n===a)break;if(i=r,r=t[--n-1],e>=r)break t}a=n,n=0;break n}break e}for(;n<a;){const i=n+a>>>1;e<t[i]?a=i:n=i+1}if(i=t[n],r=t[n-1],void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===i)return n=t.length,this._cachedIndex=n,this.copySampleValue_(n-1)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,e,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=e*i;for(let e=0;e!==i;++e)t[e]=n[r+e];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class $o extends Ko{constructor(e,t,n,i){super(e,t,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:ve,endingEnd:ve}}intervalChanged_(e,t,n){const i=this.parameterPositions;let r=e-2,a=e+1,s=i[r],o=i[a];if(void 0===s)switch(this.getSettings_().endingStart){case Ae:r=e,s=2*t-n;break;case ye:r=i.length-2,s=t+i[r]-i[r+1];break;default:r=e,s=n}if(void 0===o)switch(this.getSettings_().endingEnd){case Ae:a=e,o=2*n-t;break;case ye:a=1,o=n+i[1]-i[0];break;default:a=e-1,o=t}const l=.5*(n-t),u=this.valueSize;this._weightPrev=l/(t-s),this._weightNext=l/(o-n),this._offsetPrev=r*u,this._offsetNext=a*u}interpolate_(e,t,n,i){const r=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=e*s,l=o-s,u=this._offsetPrev,c=this._offsetNext,d=this._weightPrev,h=this._weightNext,p=(n-t)/(i-t),f=p*p,m=f*p,g=-d*m+2*d*f-d*p,v=(1+d)*m+(-1.5-2*d)*f+(-.5+d)*p+1,A=(-1-h)*m+(1.5+h)*f+.5*p,y=h*m-h*f;for(let e=0;e!==s;++e)r[e]=g*a[u+e]+v*a[l+e]+A*a[o+e]+y*a[c+e];return r}}class Jo extends Ko{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const r=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=e*s,l=o-s,u=(n-t)/(i-t),
vendor: 4,144 bytes, line 67
67c=1-u;for(let e=0;e!==s;++e)r[e]=a[l+e]*c+a[o+e]*u;return r}}class Zo extends Ko{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e){return this.copySampleValue_(e-1)}}class el{constructor(e,t,n,i){if(void 0===e)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===t||0===t.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=qo(t,this.TimeBufferType),this.values=qo(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let n;if(t.toJSON!==this.toJSON)n=t.toJSON(e);else{n={name:e.name,times:qo(e.times,Array),values:qo(e.values,Array)};const t=e.getInterpolation();t!==e.DefaultInterpolation&&(n.interpolation=t)}return n.type=e.ValueTypeName,n}InterpolantFactoryMethodDiscrete(e){return new Zo(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new Jo(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new $o(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case fe:t=this.InterpolantFactoryMethodDiscrete;break;case me:t=this.InterpolantFactoryMethodLinear;break;case ge:t=this.InterpolantFactoryMethodSmooth}if(void 0===t){const t="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(e===this.DefaultInterpolation)throw new Error(t);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",t),this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return fe;case this.InterpolantFactoryMethodLinear:return me;case this.InterpolantFactoryMethodSmooth:return ge}}getValueSize(){return this.values.length/this.times.length}shift(e){if(0!==e){const t=this.times;for(let n=0,i=t.length;n!==i;++n)t[n]+=e}return this}scale(e){if(1!==e){const t=this.times;for(let n=0,i=t.length;n!==i;++n)t[n]*=e}return this}trim(e,t){const n=this.times,i=n.length;let r=0,a=i-1;for(;r!==i&&n[r]<e;)++r;for(;-1!==a&&n[a]>t;)--a;if(++a,0!==r||a!==i){r>=a&&(a=Math.max(a,1),r=a-1);const e=this.getValueSize();this.times=n.slice(r,a),this.values=this.values.slice(r*e,a*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let a=null;for(let t=0;t!==r;t++){const i=n[t];if("number"==typeof i&&isNaN(i)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,t,i),e=!1;break}if(null!==a&&a>i){console.error("THREE.KeyframeTrack: Out of order keys.",this,t,i,a),e=!1;break}a=i}if(void 0!==i&&(s=i,ArrayBuffer.isView(s)&&!(s instanceof DataView)))for(let t=0,n=i.length;t!==n;++t){const n=i[t];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,t,n),e=!1;break}}var s;return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===ge,r=e.length-1;let a=1;for(let s=1;s<r;++s){let r=!1;const o=e[s];if(o!==e[s+1]&&(1!==s||o!==e[0]))if(i)r=!0;else{const e=s*n,i=e-n,a=e+n;for(let s=0;s!==n;++s){const n=t[e+s];if(n!==t[i+s]||n!==t[a+s]){r=!0;break}}}if(r){if(s!==a){e[a]=e[s];const i=s*n,r=a*n;for(let e=0;e!==n;++e)t[r+e]=t[i+e]}++a}}if(r>0){e[a]=e[r];for(let e=r*n,i=a*n,s=0;s!==n;++s)t[i+s]=t[e+s];++a}return a!==e.length?(this.times=e.slice(0,a),this.values=t.slice(0,a*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}el.prototype.TimeBufferType=Float32Array,el.prototype.ValueBufferType=Float32Array,el.prototype.DefaultInterpolation=me;class tl extends el{}tl.prototype.ValueTypeName="bool",tl.prototype.ValueBufferType=Array,tl.prototype.DefaultInterpolation=fe,tl.prototype.InterpolantFactoryMethodLinear=void 0,tl.prototype.InterpolantFactoryMethodSmooth=void 0;
vendor: 14,605 bytes, line 67
67class nl extends el{}nl.prototype.ValueTypeName="color";class il extends el{}il.prototype.ValueTypeName="number";class rl extends Ko{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const r=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=(n-t)/(i-t);let l=e*s;for(let e=l+s;l!==e;l+=4)It.slerpFlat(r,0,a,l-s,a,l,o);return r}}class al extends el{InterpolantFactoryMethodLinear(e){return new rl(this.times,this.values,this.getValueSize(),e)}}al.prototype.ValueTypeName="quaternion",al.prototype.DefaultInterpolation=me,al.prototype.InterpolantFactoryMethodSmooth=void 0;class sl extends el{}sl.prototype.ValueTypeName="string",sl.prototype.ValueBufferType=Array,sl.prototype.DefaultInterpolation=fe,sl.prototype.InterpolantFactoryMethodLinear=void 0,sl.prototype.InterpolantFactoryMethodSmooth=void 0;class ol extends el{}ol.prototype.ValueTypeName="vector";class ll{constructor(e="",t=-1,n=[],i=2500){this.name=e,this.tracks=n,this.duration=t,this.blendMode=i,this.uuid=Ye(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,i=1/(e.fps||1);for(let e=0,r=n.length;e!==r;++e)t.push(ul(n[e]).scale(i));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],n=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,i=n.length;e!==i;++e)t.push(el.toJSON(n[e]));return i}static CreateFromMorphTargetSequence(e,t,n,i){const r=t.length,a=[];for(let e=0;e<r;e++){let s=[],o=[];s.push((e+r-1)%r,e,(e+1)%r),o.push(0,1,0);const l=Wo(s);s=Yo(s,1,l),o=Yo(o,1,l),i||0!==s[0]||(s.push(r),o.push(o[0])),a.push(new il(".morphTargetInfluences["+t[e].name+"]",s,o).scale(1/n))}return new this(e,-1,a)}static findByName(e,t){let n=e;if(!Array.isArray(e)){const t=e;n=t.geometry&&t.geometry.animations||t.animations}for(let e=0;e<n.length;e++)if(n[e].name===t)return n[e];return null}static CreateClipsFromMorphTargetSequences(e,t,n){const i={},r=/^([\w-]*?)([\d]+)$/;for(let t=0,n=e.length;t<n;t++){const n=e[t],a=n.name.match(r);if(a&&a.length>1){const e=a[1];let t=i[e];t||(i[e]=t=[]),t.push(n)}}const a=[];for(const e in i)a.push(this.CreateFromMorphTargetSequence(e,i[e],t,n));return a}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,i,r){if(0!==n.length){const a=[],s=[];Xo(n,a,s,i),0!==a.length&&r.push(new e(t,a,s))}},i=[],r=e.name||"default",a=e.fps||30,s=e.blendMode;let o=e.length||-1;const l=e.hierarchy||[];for(let e=0;e<l.length;e++){const r=l[e].keys;if(r&&0!==r.length)if(r[0].morphTargets){const e={};let t;for(t=0;t<r.length;t++)if(r[t].morphTargets)for(let n=0;n<r[t].morphTargets.length;n++)e[r[t].morphTargets[n]]=-1;for(const n in e){const e=[],a=[];for(let i=0;i!==r[t].morphTargets.length;++i){const i=r[t];e.push(i.time),a.push(i.morphTarget===n?1:0)}i.push(new il(".morphTargetInfluence["+n+"]",e,a))}o=e.length*a}else{const a=".bones["+t[e].name+"]";n(ol,a+".position",r,"pos",i),n(al,a+".quaternion",r,"rot",i),n(ol,a+".scale",r,"scl",i)}}if(0===i.length)return null;return new this(r,o,i,s)}resetDuration(){let e=0;for(let t=0,n=this.tracks.length;t!==n;++t){const n=this.tracks[t];e=Math.max(e,n.times[n.times.length-1])}return this.duration=e,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function ul(e){if(void 0===e.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const t=function(e){switch(e.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return il;case"vector":case"vector2":case"vector3":case"vector4":return ol;case"color":return nl;case"quaternion":return al;case"bool":case"boolean":return tl;case"string":return sl}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+e)}(e.type);if(void 0===e.times){const t=[],n=[];Xo(e.keys,t,n,"value"),e.times=t,e.values=n}return void 0!==t.parse?t.parse(e):new t(e.name,e.times,e.values,e.interpolation)}const cl={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};class dl{constructor(e,t,n){const i=this;let r,a=!1,s=0,o=0;const l=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){o++,!1===a&&void 0!==i.onStart&&i.onStart(e,s,o),a=!0},this.itemEnd=function(e){s++,void 0!==i.onProgress&&i.onProgress(e,s,o),s===o&&(a=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(e){void 0!==i.onError&&i.onError(e)},this.resolveURL=function(e){return r?r(e):e},this.setURLModifier=function(e){return r=e,this},this.addHandler=function(e,t){return l.push(e,t),this},this.removeHandler=function(e){const t=l.indexOf(e);return-1!==t&&l.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=l.length;t<n;t+=2){const n=l[t],i=l[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return i}return null}}}const hl=new dl;class pl{constructor(e){this.manager=void 0!==e?e:hl,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise(function(i,r){n.load(e,i,t,r)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}pl.DEFAULT_MATERIAL_NAME="__DEFAULT";const fl={};class ml extends Error{constructor(e,t){super(e),this.response=t}}class gl extends pl{constructor(e){super(e)}load(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const r=cl.get(e);if(void 0!==r)return this.manager.itemStart(e),setTimeout(()=>{t&&t(r),this.manager.itemEnd(e)},0),r;if(void 0!==fl[e])return void fl[e].push({onLoad:t,onProgress:n,onError:i});fl[e]=[],fl[e].push({onLoad:t,onProgress:n,onError:i});const a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),s=this.mimeType,o=this.responseType;fetch(a).then(t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=fl[e],i=t.body.getReader(),r=t.headers.get("Content-Length")||t.headers.get("X-File-Size"),a=r?parseInt(r):0,s=0!==a;let o=0;const l=new ReadableStream({start(e){!function t(){i.read().then(({done:i,value:r})=>{if(i)e.close();else{o+=r.byteLength;const i=new ProgressEvent("progress",{lengthComputable:s,loaded:o,total:a});for(let e=0,t=n.length;e<t;e++){const t=n[e];t.onProgress&&t.onProgress(i)}e.enqueue(r),t()}})}()}});return new Response(l)}throw new ml(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(o){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then(e=>(new DOMParser).parseFromString(e,s));case"json":return e.json();default:if(void 0===s)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(s),n=t&&t[1]?t[1].toLowerCase():void 0,i=new TextDecoder(n);return e.arrayBuffer().then(e=>i.decode(e))}}}).then(t=>{cl.add(e,t);const n=fl[e];delete fl[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];i.onLoad&&i.onLoad(t)}}).catch(t=>{const n=fl[e];if(void 0===n)throw this.manager.itemError(e),t;delete fl[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];i.onError&&i.onError(t)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class vl extends pl{constructor(e){super(e)}load(e,t,n,i){void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,a=cl.get(e);if(void 0!==a)return r.manager.itemStart(e),setTimeout(function(){t&&t(a),r.manager.itemEnd(e)},0),a;const s=at("img");function o(){u(),cl.add(e,this),t&&t(this),r.manager.itemEnd(e)}function l(t){u(),i&&i(t),r.manager.itemError(e),r.manager.itemEnd(e)}function u(){s.removeEventListener("load",o,!1),s.removeEventListener("error",l,!1)}return s.addEventListener("load",o,!1),s.addEventListener("error",l,!1),"data:"!==e.slice(0,5)&&void 0!==this.crossOrigin&&(s.crossOrigin=this.crossOrigin),r.manager.itemStart(e),s.src=e,s}}class Al extends pl{constructor(e){super(e)}load(e,t,n,i){const r=this,a=new so,s=new gl(this.manager);return s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setPath(this.path),s.setWithCredentials(r.withCredentials),s.load(e,function(e){let n;try{n=r.parse(e)}catch(e){if(void 0===i)return void console.error(e);i(e)}void 0!==n.image?a.image=n.image:void 0!==n.data&&(a.image.width=n.width,a.image.height=n.height,a.image.data=n.data),a.wrapS=void 0!==n.wrapS?n.wrapS:D,a.wrapT=void 0!==n.wrapT?n.wrapT:D,a.magFilter=void 0!==n.magFilter?n.magFilter:z,a.minFilter=void 0!==n.minFilter?n.minFilter:z,a.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.colorSpace&&(a.colorSpace=n.colorSpace),void 0!==n.flipY&&(a.flipY=n.flipY),void 0!==n.format&&(a.format=n.format),void 0!==n.type&&(a.type=n.type),void 0!==n.mipmaps&&(a.mipmaps=n.mipmaps,a.minFilter=V),1===n.mipmapCount&&(a.minFilter=z),void 0!==n.generateMipmaps&&(a.generateMipmaps=n.generateMipmaps),a.needsUpdate=!0,t&&t(a,n)},n,i),a}}class yl extends pl{constructor(e){super(e)}load(e,t,n,i){const r=new wt,a=new vl(this.manager);return a.setCrossOrigin(this.crossOrigin),a.setPath(this.path),a.load(e,function(e){r.image=e,r.needsUpdate=!0,void 0!==t&&t(r)},n,i),r}}class bl extends Ln{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new Xn(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),void 0!==this.shadow&&(t.object.shadow=this.shadow.toJSON()),t}}const _l=new sn,wl=new Mt,El=new Mt;class Sl{constructor(e){this.camera=e,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new tt(512,512),this.map=null,this.mapPass=null,this.matrix=new sn,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new ir,this._frameExtents=new tt(1,1),this._viewportCount=1,this._viewports=[new Et(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,n=this.matrix;wl.setFromMatrixPosition(e.matrixWorld),t.position.copy(wl),El.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(El),t.updateMatrixWorld(),_l.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(_l),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(_l)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const e={};return 0!==this.bias&&(e.bias=this.bias),0!==this.normalBias&&(e.normalBias=this.normalBias),1!==this.radius&&(e.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class Tl extends Sl{constructor(){super(new qi(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,n=2*We*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=e.distance||t.far;n===t.fov&&i===t.aspect&&r===t.far||(t.fov=n,t.aspect=i,t.far=r,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class xl extends bl{constructor(e,t,n=0,i=Math.PI/3,r=0,a=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Ln.DEFAULT_UP),this.updateMatrix(),this.target=new Ln,this.distance=n,this.angle=i,this.penumbra=r,this.decay=a,this.map=null,this.shadow=new Tl}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const Cl=new sn,Il=new Mt,Ml=new Mt;class kl extends Sl{constructor(){super(new qi(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new tt(4,2),this._viewportCount=6,this._viewports=[new Et(2,1,1,1),new Et(0,1,1,1),new Et(3,1,1,1),new Et(1,1,1,1),new Et(3,0,1,1),new Et(1,0,1,1)],this._cubeDirections=[new Mt(1,0,0),new Mt(-1,0,0),new Mt(0,0,1),new Mt(0,0,-1),new Mt(0,1,0),new Mt(0,-1,0)],this._cubeUps=[new Mt(0,1,0),new Mt(0,1,0),new Mt(0,1,0),new Mt(0,1,0),new Mt(0,0,1),new Mt(0,0,-1)]}updateMatrices(e,t=0){const n=this.camera,i=this.matrix,r=e.distance||n.far;r!==n.far&&(n.far=r,n.updateProjectionMatrix()),Il.setFromMatrixPosition(e.matrixWorld),n.position.copy(Il),Ml.copy(n.position),Ml.add(this._cubeDirections[t]),n.up.copy(this._cubeUps[t]),n.lookAt(Ml),n.updateMatrixWorld(),i.makeTranslation(-Il.x,-Il.y,-Il.z),Cl.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Cl)}}class Pl extends bl{constructor(e,t,n=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new kl}get power(){return 4*this.intensity*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Rl extends Sl{constructor(){super(new yr(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}
vendor: 10,802 bytes, line 67
67}class Ll extends bl{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Ln.DEFAULT_UP),this.updateMatrix(),this.target=new Ln,this.shadow=new Rl}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class Bl{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new Mt)}set(e){for(let t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}getAt(e,t){const n=e.x,i=e.y,r=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.282095),t.addScaledVector(a[1],.488603*i),t.addScaledVector(a[2],.488603*r),t.addScaledVector(a[3],.488603*n),t.addScaledVector(a[4],n*i*1.092548),t.addScaledVector(a[5],i*r*1.092548),t.addScaledVector(a[6],.315392*(3*r*r-1)),t.addScaledVector(a[7],n*r*1.092548),t.addScaledVector(a[8],.546274*(n*n-i*i)),t}getIrradianceAt(e,t){const n=e.x,i=e.y,r=e.z,a=this.coefficients;return t.copy(a[0]).multiplyScalar(.886227),t.addScaledVector(a[1],1.023328*i),t.addScaledVector(a[2],1.023328*r),t.addScaledVector(a[3],1.023328*n),t.addScaledVector(a[4],.858086*n*i),t.addScaledVector(a[5],.858086*i*r),t.addScaledVector(a[6],.743125*r*r-.247708),t.addScaledVector(a[7],.858086*n*r),t.addScaledVector(a[8],.429043*(n*n-i*i)),t}add(e){for(let t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}addScaledSH(e,t){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(e.coefficients[n],t);return this}scale(e){for(let t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}lerp(e,t){for(let n=0;n<9;n++)this.coefficients[n].lerp(e.coefficients[n],t);return this}equals(e){for(let t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(e,t=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].fromArray(e,t+3*i);return this}toArray(e=[],t=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].toArray(e,t+3*i);return e}static getBasisAt(e,t){const n=e.x,i=e.y,r=e.z;t[0]=.282095,t[1]=.488603*i,t[2]=.488603*r,t[3]=.488603*n,t[4]=1.092548*n*i,t[5]=1.092548*i*r,t[6]=.315392*(3*r*r-1),t[7]=1.092548*n*r,t[8]=.546274*(n*n-i*i)}}class Dl extends bl{constructor(e=new Bl,t=1){super(void 0,t),this.isLightProbe=!0,this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}fromJSON(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}toJSON(e){const t=super.toJSON(e);return t.object.sh=this.sh.toArray(),t}}class Nl{static decodeText(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let n=0,i=e.length;n<i;n++)t+=String.fromCharCode(e[n]);try{return decodeURIComponent(escape(t))}catch(e){return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return-1===t?"./":e.slice(0,t+1)}static resolveURL(e,t){return"string"!=typeof e||""===e?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class Ol extends pl{constructor(e){super(e),this.isImageBitmapLoader=!0,"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,a=cl.get(e);if(void 0!==a)return r.manager.itemStart(e),a.then?void a.then(n=>{t&&t(n),r.manager.itemEnd(e)}).catch(e=>{i&&i(e)}):(setTimeout(function(){t&&t(a),r.manager.itemEnd(e)},0),a);const s={};s.credentials="anonymous"===this.crossOrigin?"same-origin":"include",s.headers=this.requestHeader;const o=fetch(e,s).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(n){return cl.add(e,n),t&&t(n),r.manager.itemEnd(e),n}).catch(function(t){i&&i(t),cl.remove(e),r.manager.itemError(e),r.manager.itemEnd(e)});cl.add(e,o),r.manager.itemStart(e)}}class Ul{constructor(e,t,n){let i,r,a;switch(this.binding=e,this.valueSize=n,t){case"quaternion":i=this._slerp,r=this._slerpAdditive,a=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":i=this._select,r=this._select,a=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:i=this._lerp,r=this._lerpAdditive,a=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=i,this._mixBufferRegionAdditive=r,this._setIdentity=a,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(e,t){const n=this.buffer,i=this.valueSize,r=e*i+i;let a=this.cumulativeWeight;if(0===a){for(let e=0;e!==i;++e)n[r+e]=n[e];a=t}else{a+=t;const e=t/a;this._mixBufferRegion(n,r,0,e,i)}this.cumulativeWeight=a}accumulateAdditive(e){const t=this.buffer,n=this.valueSize,i=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(t,i,0,e,n),this.cumulativeWeightAdditive+=e}apply(e){const t=this.valueSize,n=this.buffer,i=e*t+t,r=this.cumulativeWeight,a=this.cumulativeWeightAdditive,s=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,r<1){const e=t*this._origIndex;this._mixBufferRegion(n,i,e,1-r,t)}a>0&&this._mixBufferRegionAdditive(n,i,this._addIndex*t,1,t);for(let e=t,r=t+t;e!==r;++e)if(n[e]!==n[e+t]){s.setValue(n,i);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,i=n*this._origIndex;e.getValue(t,i);for(let e=n,r=i;e!==r;++e)t[e]=t[i+e%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n<t;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[t+n]=this.buffer[e+n]}_select(e,t,n,i,r){if(i>=.5)for(let i=0;i!==r;++i)e[t+i]=e[n+i]}_slerp(e,t,n,i){It.slerpFlat(e,t,e,t,e,n,i)}_slerpAdditive(e,t,n,i,r){const a=this._workIndex*r;It.multiplyQuaternionsFlat(e,a,e,t,e,n),It.slerpFlat(e,t,e,t,e,a,i)}_lerp(e,t,n,i,r){const a=1-i;for(let s=0;s!==r;++s){const r=t+s;e[r]=e[r]*a+e[n+s]*i}}_lerpAdditive(e,t,n,i,r){for(let a=0;a!==r;++a){const r=t+a;e[r]=e[r]+e[n+a]*i}}}const Fl="\\[\\]\\.:\\/",zl=new RegExp("["+Fl+"]","g"),Ql="[^"+Fl+"]",Vl="[^"+Fl.replace("\\.","")+"]",Hl=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",Ql)+/(WCOD+)?/.source.replace("WCOD",Vl)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Ql)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Ql)+"$"),Gl=["material","materials","bones","map"];class jl{constructor(e,t,n){this.path=t,this.parsedPath=n||jl.parseTrackName(t),this.node=jl.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new jl.Composite(e,t,n):new jl(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(zl,"")}static parseTrackName(e){const t=Hl.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){const e=n.nodeName.substring(i+1);-1!==Gl.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let i=0;i<e.length;i++){const r=e[i];if(r.name===t||r.uuid===t)return r;const a=n(r.children);if(a)return a}return null},i=n(e.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)e[t++]=n[i]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,n=t.objectName,i=t.propertyName;let r=t.propertyIndex;if(e||(e=jl.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return void console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");if(n){let i=t.objectIndex;switch(n){case"materials":if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as no
67de does not have a material.",this);if(!e.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);e=e.material.materials;break;case"bones":if(!e.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);e=e.skeleton.bones;for(let t=0;t<e.length;t++)if(e[t].name===i){i=t;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!e.material.map)return void console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);e=e.material.map;break;default:if(void 0===e[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);e=e[n]}if(void 0!==i){if(void 0===e[i])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,e);e=e[i]}}const a=e[i];if(void 0===a){const n=t.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+i+" but it wasn't found.",e)}let s=this.Versioning.None;this.targetObject=e,void 0!==e.needsUpdate?s=this.Versioning.NeedsUpdate:void 0!==e.matrixWorldNeedsUpdate&&(s=this.Versioning.MatrixWorldNeedsUpdate);let o=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!e.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!e.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==e.morphTargetDictionary[r]&&(r=e.morphTargetDictionary[r])}o=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=r}else void 0!==a.fromArray&&void 0!==a.toArray?(o=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(o=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=i;this.getValue=this.GetterByBindingType[o],this.setValue=this.SetterByBindingTypeAndVersioning[o][s]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}jl.Composite=class{constructor(e,t,n){const i=n||jl.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},jl.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},jl.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},jl.prototype.GetterByBindingType=[jl.prototype._getValue_direct,jl.prototype._getValue_array,jl.prototype._getValue_arrayElement,jl.prototype._getValue_toArray],jl.prototype.SetterByBindingTypeAndVersioning=[[jl.prototype._setValue_direct,jl.prototype._setValue_direct_setNeedsUpdate,jl.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[jl.prototype._setValue_array,jl.prototype._setValue_array_setNeedsUpdate,jl.prototype._setValue_array_setMatrixWorldNeedsUpdate],[jl.prototype._setValue_arrayElement,jl.prototype._setValue_arrayElement_setNeedsUpdate,jl.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[jl.prototype._setValue_fromArray,jl.prototype._setValue_fromArray_setNeedsUpdate,jl.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class ql{constructor(e,t,n=null,i=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=i;const r=t.tracks,a=r.length,s=new Array(a),o={endingStart:ve,endingEnd:ve};for(let e=0;e!==a;++e){const t=r[e].createInterpolant(null);s[e]=t,t.settings=o}this._interpolantSettings=o,this._interpolants=s,this._propertyBindings=new Array(a),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=he,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}
vendor: 4,136 bytes, line 67
67fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const n=this._clip.duration,i=e._clip.duration,r=i/n,a=n/i;e.warp(1,r,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const i=this._mixer,r=i.time,a=this.timeScale;let s=this._timeScaleInterpolant;null===s&&(s=i._lendControlInterpolant(),this._timeScaleInterpolant=s);const o=s.parameterPositions,l=s.sampleValues;return o[0]=r,o[1]=r+n,l[0]=e/a,l[1]=t/a,this}stopWarping(){const e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,i){if(!this.enabled)return void this._updateWeight(e);const r=this._startTime;if(null!==r){const i=(e-r)*n;i<0||0===n?t=0:(this._startTime=null,t=n*i)}t*=this._updateTimeScale(e);const a=this._updateTime(t),s=this._updateWeight(e);if(s>0){const e=this._interpolants,t=this._propertyBindings;if(2501===this.blendMode)for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(a),t[n].accumulateAdditive(s);else for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(a),t[n].accumulate(i,s)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;if(null!==n){t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let i=this.time+e,r=this._loopCount;const a=n===pe;if(0===e)return-1===r||!a||1&~r?i:t-i;if(2200===n){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=t)i=t;else{if(!(i<0)){this.time=i;break e}i=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===r&&(e>=0?(r=0,this._setEndings(!0,0===this.repetitions,a)):this._setEndings(0===this.repetitions,!0,a)),i>=t||i<0){const n=Math.floor(i/t);i-=t*n,r+=Math.abs(n);const s=this.repetitions-r;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?t:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===s){const t=e<0;this._setEndings(t,!t,a)}else this._setEndings(!1,!1,a);this._loopCount=r,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=i;if(a&&!(1&~r))return t-i}return i}_setEndings(e,t,n){const i=this._interpolantSettings;n?(i.endingStart=Ae,i.endingEnd=Ae):(i.endingStart=e?this.zeroSlopeAtStart?Ae:ve:ye,i.endingEnd=t?this.zeroSlopeAtEnd?Ae:ve:ye)}_scheduleFading(e,t,n){const i=this._mixer,r=i.time;let a=this._weightInterpolant;null===a&&(a=i._lendControlInterpolant(),this._weightInterpolant=a);const s=a.parameterPositions,o=a.sampleValues;return s[0]=r,o[0]=t,s[1]=r+e,o[1]=n,this}}const Wl=new Float32Array(1);class Yl extends He{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,i=e._clip.tracks,r=i.length,a=e._propertyBindings,s=e._interpolants,o=n.uuid,l=this._bindingsByRootAndName;let u=l[o];void 0===u&&(u={},l[o]=u);for(let e=0;e!==r;++e){const r=i[e],l=r.name;let c=u[l];
vendor: 8,427 bytes, line 67
67if(void 0!==c)++c.referenceCount,a[e]=c;else{if(c=a[e],void 0!==c){null===c._cacheIndex&&(++c.referenceCount,this._addInactiveBinding(c,o,l));continue}const i=t&&t._propertyBindings[e].binding.parsedPath;c=new Ul(jl.create(n,l,i),r.ValueTypeName,r.getValueSize()),++c.referenceCount,this._addInactiveBinding(c,o,l),a[e]=c}s[e].resultBuffer=c.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){const t=(e._localRoot||this._root).uuid,n=e._clip.uuid,i=this._actionsByClip[n];this._bindAction(e,i&&i.knownActions[0]),this._addInactiveAction(e,n,t)}const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return null!==t&&t<this._nActiveActions}_addInactiveAction(e,t,n){const i=this._actions,r=this._actionsByClip;let a=r[t];if(void 0===a)a={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,r[t]=a;else{const t=a.knownActions;e._byClipCacheIndex=t.length,t.push(e)}e._cacheIndex=i.length,i.push(e),a.actionByRoot[n]=e}_removeInactiveAction(e){const t=this._actions,n=t[t.length-1],i=e._cacheIndex;n._cacheIndex=i,t[i]=n,t.pop(),e._cacheIndex=null;const r=e._clip.uuid,a=this._actionsByClip,s=a[r],o=s.knownActions,l=o[o.length-1],u=e._byClipCacheIndex;l._byClipCacheIndex=u,o[u]=l,o.pop(),e._byClipCacheIndex=null;delete s.actionByRoot[(e._localRoot||this._root).uuid],0===o.length&&delete a[r],this._removeInactiveBindingsForAction(e)}_removeInactiveBindingsForAction(e){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===--n.referenceCount&&this._removeInactiveBinding(n)}}_lendAction(e){const t=this._actions,n=e._cacheIndex,i=this._nActiveActions++,r=t[i];e._cacheIndex=i,t[i]=e,r._cacheIndex=n,t[n]=r}_takeBackAction(e){const t=this._actions,n=e._cacheIndex,i=--this._nActiveActions,r=t[i];e._cacheIndex=i,t[i]=e,r._cacheIndex=n,t[n]=r}_addInactiveBinding(e,t,n){const i=this._bindingsByRootAndName,r=this._bindings;let a=i[t];void 0===a&&(a={},i[t]=a),a[n]=e,e._cacheIndex=r.length,r.push(e)}_removeInactiveBinding(e){const t=this._bindings,n=e.binding,i=n.rootNode.uuid,r=n.path,a=this._bindingsByRootAndName,s=a[i],o=t[t.length-1],l=e._cacheIndex;o._cacheIndex=l,t[l]=o,t.pop(),delete s[r],0===Object.keys(s).length&&delete a[i]}_lendBinding(e){const t=this._bindings,n=e._cacheIndex,i=this._nActiveBindings++,r=t[i];e._cacheIndex=i,t[i]=e,r._cacheIndex=n,t[n]=r}_takeBackBinding(e){const t=this._bindings,n=e._cacheIndex,i=--this._nActiveBindings,r=t[i];e._cacheIndex=i,t[i]=e,r._cacheIndex=n,t[n]=r}_lendControlInterpolant(){const e=this._controlInterpolants,t=this._nActiveControlInterpolants++;let n=e[t];return void 0===n&&(n=new Jo(new Float32Array(2),new Float32Array(2),1,Wl),n.__cacheIndex=t,e[t]=n),n}_takeBackControlInterpolant(e){const t=this._controlInterpolants,n=e.__cacheIndex,i=--this._nActiveControlInterpolants,r=t[i];e.__cacheIndex=i,t[i]=e,r.__cacheIndex=n,t[n]=r}clipAction(e,t,n){const i=t||this._root,r=i.uuid;let a="string"==typeof e?ll.findByName(i,e):e;const s=null!==a?a.uuid:e,o=this._actionsByClip[s];let l=null;if(void 0===n&&(n=null!==a?a.blendMode:be),void 0!==o){const e=o.actionByRoot[r];if(void 0!==e&&e.blendMode===n)return e;l=o.knownActions[0],null===a&&(a=l._clip)}if(null===a)return null;const u=new ql(this,a,t,n);return this._bindAction(u,l),this._addInactiveAction(u,s,r),u}existingAction(e,t){const n=t||this._root,i=n.uuid,r="string"==typeof e?ll.findByName(n,e):e,a=r?r.uuid:e,s=this._actionsByClip[a];return void 0!==s&&s.actionByRoot[i]||null}stopAllAction(){const e=this._actions;for(let t=this._nActiveActions-1;t>=0;--t)e[t].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,i=this.time+=e,r=Math.sign(e),a=this._accuIndex^=1;for(let s=0;s!==n;++s){t[s]._update(i,e,r,a)}const s=this._bindings,o=this._nActiveBindings;for(let e=0;e!==o;++e)s[e].apply(a);return this}setTime(e){this.time=0;for(let e=0;e<this._actions.length;e++)this._actions[e].time=0;return this.update(e)}getRoot(){return this._root}uncacheClip(e){const t=this._actions,n=e.uuid,i=this._actionsByClip,r=i[n];if(void 0!==r){const e=r.knownActions;for(let n=0,i=e.length;n!==i;++n){const i=e[n];this._deactivateAction(i);const r=i._cacheIndex,a=t[t.length-1];i._cacheIndex=null,i._byClipCacheIndex=null,a._cacheIndex=r,t[r]=a,t.pop(),this._removeInactiveBindingsForAction(i)}delete i[n]}}uncacheRoot(e){const t=e.uuid,n=this._actionsByClip;for(const e in n){const i=n[e].actionByRoot[t];void 0!==i&&(this._deactivateAction(i),this._removeInactiveAction(i))}const i=this._bindingsByRootAndName[t];if(void 0!==i)for(const e in i){const t=i[e];t.restoreOriginalState(),this._removeInactiveBinding(t)}}uncacheAction(e,t){const n=this.existingAction(e,t);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}class Xl{constructor(e){this.value=e}clone(){return new Xl(void 0===this.value.clone?this.value:this.value.clone())}}const Kl=new sn;function $l(e,t){return e.distance-t.distance}function Jl(e,t,n,i){if(e.layers.test(t.layers)&&e.raycast(t,n),!0===i){const i=e.children;for(let e=0,r=i.length;e<r;e++)Jl(i[e],t,n,!0)}}class Zl{constructor(e=1,t=0,n=0){return this.radius=e,this.phi=t,this.theta=n,this}set(e,t,n){return this.radius=e,this.phi=t,this.theta=n,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){const e=1e-6;return this.phi=Math.max(e,Math.min(Math.PI-e,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,n){return this.radius=Math.sqrt(e*e+t*t+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,n),this.phi=Math.acos(Xe(t/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:s}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=s);const eu=window,tu=eu.ShadowRoot&&(void 0===eu.ShadyCSS||eu.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nu=Symbol(),iu=new WeakMap;class ru{constructor(e,t,n){if(this._$cssResult$=!0,n!==nu)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(tu&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=iu.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&iu.set(t,e))}return e}toString(){return this.cssText}}const au=tu?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new ru("string"==typeof e?e:e+"",void 0,nu))(t)})(e):e;var su;const ou=window,lu=ou.trustedTypes,uu=lu?lu.emptyScript:"",cu=ou.reactiveElementPolyfillSupport,du={toAttribute(e,t){switch(t){case Boolean:e=e?uu:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},hu=(e,t)=>t!==e&&(t==t||e==e),pu={attribute:!0,type:String,converter:du,reflect:!1,hasChanged:hu},fu="finalized";class mu extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];
67return this.elementProperties.forEach((t,n)=>{const i=this._$Ep(n,t);void 0!==i&&(this._$Ev.set(i,n),e.push(i))}),e}static createProperty(e,t=pu){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(i){const r=this[e];this[t]=i,this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||pu}static finalize(){if(this.hasOwnProperty(fu))return!1;this[fu]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(au(e))}else void 0!==e&&t.push(au(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}
vendor: 12,945 bytes, line 67
67removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{tu?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{const n=document.createElement("style"),i=eu.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=t.cssText,e.appendChild(n)})})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=pu){var i;const r=this.constructor._$Ep(e,n);if(void 0!==r&&!0===n.reflect){const a=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:du).toAttribute(t,n.type);this._$El=e,null==a?this.removeAttribute(r):this.setAttribute(r,a),this._$El=null}}_$AK(e,t){var n;const i=this.constructor,r=i._$Ev.get(e);if(void 0!==r&&this._$El!==r){const e=i.getPropertyOptions(r),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:du;this._$El=r,this[r]=a.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let i=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||hu)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(n)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var gu;mu[fu]=!0,mu.elementProperties=new Map,mu.elementStyles=[],mu.shadowRootOptions={mode:"open"},null==cu||cu({ReactiveElement:mu}),(null!==(su=ou.reactiveElementVersions)&&void 0!==su?su:ou.reactiveElementVersions=[]).push("1.6.3");const vu=window,Au=vu.trustedTypes,yu=Au?Au.createPolicy("lit-html",{createHTML:e=>e}):void 0,bu="$lit$",_u=`lit$${(Math.random()+"").slice(9)}$`,wu="?"+_u,Eu=`<${wu}>`,Su=document,Tu=()=>Su.createComment(""),xu=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Cu=Array.isArray,Iu="[ \t\n\f\r]",Mu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ku=/-->/g,Pu=/>/g,Ru=RegExp(`>|${Iu}(?:([^\\s"'>=/]+)(${Iu}*=${Iu}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Lu=/'/g,Bu=/"/g,Du=/^(?:script|style|textarea|title)$/i,Nu=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),Ou=Symbol.for("lit-noChange"),Uu=Symbol.for("lit-nothing"),Fu=new WeakMap,zu=Su.createTreeWalker(Su,129,null,!1);function Qu(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==yu?yu.createHTML(t):t}const Vu=(e,t)=>{const n=e.length-1,i=[];let r,a=2===t?"<svg>":"",s=Mu;for(let t=0;t<n;t++){const n=e[t];let o,l,u=-1,c=0;for(;c<n.length&&(s.lastIndex=c,l=s.exec(n),null!==l);)c=s.lastIndex,s===Mu?"!--"===l[1]?s=ku:void 0!==l[1]?s=Pu:void 0!==l[2]?(Du.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=Ru):void 0!==l[3]&&(s=Ru):s===Ru?">"===l[0]?(s=null!=r?r:Mu,u=-1):void 0===l[1]?u=-2:(u=s.lastIndex-l[2].length,o=l[1],s=void 0===l[3]?Ru:'"'===l[3]?Bu:Lu):s===Bu||s===Lu?s=Ru:s===ku||s===Pu?s=Mu:(s=Ru,r=void 0);const d=s===Ru&&e[t+1].startsWith("/>")?" ":"";a+=s===Mu?n+Eu:u>=0?(i.push(o),n.slice(0,u)+bu+n.slice(u)+_u+d):n+_u+(-2===u?(i.push(void 0),t):d)}return[Qu(e,a+(e[n]||"<?>")+(2===t?"</svg>":"")),i]};class Hu{constructor({strings:e,_$litType$:t},n){let i;this.parts=[];let r=0,a=0;const s=e.length-1,o=this.parts,[l,u]=Vu(e,t);if(this.el=Hu.createElement(l,n),zu.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(i=zu.nextNode())&&o.length<s;){if(1===i.nodeType){if(i.hasAttributes()){const e=[];for(const t of i.getAttributeNames())if(t.endsWith(bu)||t.startsWith(_u)){const n=u[a++];if(e.push(t),void 0!==n){const e=i.getAttribute(n.toLowerCase()+bu).split(_u),t=/([.?@])?(.*)/.exec(n);o.push({type:1,index:r,name:t[2],strings:e,ctor:"."===t[1]?Yu:"?"===t[1]?Ku:"@"===t[1]?$u:Wu})}else o.push({type:6,index:r})}for(const t of e)i.removeAttribute(t)}if(Du.test(i.tagName)){const e=i.textContent.split(_u),t=e.length-1;if(t>0){i.textContent=Au?Au.emptyScript:"";for(let n=0;n<t;n++)i.append(e[n],Tu()),zu.nextNode(),o.push({type:2,index:++r});i.append(e[t],Tu())}}}else if(8===i.nodeType)if(i.data===wu)o.push({type:2,index:r});else{let e=-1;for(;-1!==(e=i.data.indexOf(_u,e+1));)o.push({type:7,index:r}),e+=_u.length-1}r++}}static createElement(e,t){const n=Su.createElement("template");return n.innerHTML=e,n}}function Gu(e,t,n=e,i){var r,a,s,o;if(t===Ou)return t;let l=void 0!==i?null===(r=n._$Co)||void 0===r?void 0:r[i]:n._$Cl;const u=xu(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(a=null==l?void 0:l._$AO)||void 0===a||a.call(l,!1),void 0===u?l=void 0:(l=new u(e),l._$AT(e,n,i)),void 0!==i?(null!==(s=(o=n)._$Co)&&void 0!==s?s:o._$Co=[])[i]=l:n._$Cl=l),void 0!==l&&(t=Gu(e,l._$AS(e,t.values),l,i)),t}class ju{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:i}=this._$AD,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Su).importNode(n,!0);zu.currentNode=r;let a=zu.nextNode(),s=0,o=0,l=i[0];for(;void 0!==l;){if(s===l.index){let t;2===l.type?t=new qu(a,a.nextSibling,this,e):1===l.type?t=new l.ctor(a,l.name,l.strings,this,e):6===l.type&&(t=new Ju(a,this,e)),this._$AV.push(t),l=i[++o]}s!==(null==l?void 0:l.index)&&(a=zu.nextNode(),s++)}return zu.currentNode=Su,r}v(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class qu{constructor(e,t,n,i){var r;this.type=2,this._$AH=Uu,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Gu(this,e,t),xu(e)?e===Uu||null==e||""===e?(this._$AH!==Uu&&this._$AR(),this._$AH=Uu):e!==this._$AH&&e!==Ou&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):(e=>Cu(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Uu&&xu(this._$AH)?this._$AA.nextSibling.data=e:this.$(Su.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:i}=e,r="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=Hu.createElement(Qu(i.h,i.h[0]),this.options)),i);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===r)this._$AH.v(n);else{const e=new ju(r,this),t=e.u(this.options);e.v(n),this.$(t),this._$AH=e}}_$AC(e){let t=Fu.get(e.strings);return void 0===t&&Fu.set(e.strings,t=new Hu(e)),t}T(e){Cu(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,i=0;for(const r of e)i===t.length?t.push(n=new qu(this.k(Tu()),this.k(Tu()),this,this.options)):n=t[i],n._$AI(r),i++;i<t.length&&(this._$AR(n&&n._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cp=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Wu{constructor(e,t,n,i,r){this.type=1,this._$AH=Uu,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Uu}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,i){const r=this.strings;let a=!1;if(void 0===r)e=Gu(this,e,t,0),a=!xu(e)||e!==this._$AH&&e!==Ou,a&&(this._$AH=e);else{const i=e;let s,o;for(e=r[0],s=0;s<r.length-1;s++)o=Gu(this,i[n+s],t,s),o===Ou&&(o=this._$AH[s]),a||(a=!xu(o)||o!==this._$AH[s]),o===Uu?e=Uu:e!==Uu&&(e+=(null!=o?o:"")+r[s+1]),this._$AH[s]=o}a&&!i&&this.j(e)}j(e){e===Uu?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class Yu extends Wu{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Uu?void 0:e}}const Xu=Au?Au.emptyScript:"";class Ku extends Wu{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Uu?this.element.setAttribute(this.name,Xu):this.element.removeAttribute(this.name)}}class $u extends Wu{constructor(e,t,n,i,r){super(e,t,n,i,r),this.type=5}_$AI(e,t=this){var n;if((e=null!==(n=Gu(this,e,t,0))&&void 0!==n?n:Uu)===Ou)return;const i=this._$AH,r=e===Uu&&i!==Uu||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Uu&&(i===Uu||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}class Ju{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Gu(this,e)}}const Zu=vu.litHtmlPolyfillSupport;null==Zu||Zu(Hu,qu),(null!==(gu=vu.litHtmlVersions)&&void 0!==gu?gu:vu.litHtmlVersions=[]).push("2.8.0");const ec=(e,t,n)=>{var i,r;const a=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:t;let s=a._$litPart$;if(void 0===s){const e=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;a._$litPart$=s=new qu(t.insertBefore(Tu(),e),e,void 0,null!=n?n:{})}return s._$AI(e),s},tc=window,nc=tc.ShadowRoot&&(void 0===tc.ShadyCSS||tc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ic=Symbol(),rc=new WeakMap;class ac{constructor(e,t,n){if(this._$cssResult$=!0,n!==ic)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(nc&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=rc.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&rc.set(t,e))}return e}toString(){return this.cssText}}const sc=nc?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new ac("string"==typeof e?e:e+"",void 0,ic))(t)})(e):e;var oc;const lc=window,uc=lc.trustedTypes,cc=uc?uc.emptyScript:"",dc=lc.reactiveElementPolyfillSupport,hc={toAttribute(e,t){switch(t){case Boolean:e=e?cc:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},pc=(e,t)=>t!==e&&(t==t||e==e),fc={attribute:!0,type:String,converter:hc,reflect:!1,hasChanged:pc},mc="finalized";class gc extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),(null!==(t=this.h)&&void 0!==t?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];
67return this.elementProperties.forEach((t,n)=>{const i=this._$Ep(n,t);void 0!==i&&(this._$Ev.set(i,n),e.push(i))}),e}static createProperty(e,t=fc){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n="symbol"==typeof e?Symbol():"__"+e,i=this.getPropertyDescriptor(e,n,t);void 0!==i&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(i){const r=this[e];this[t]=i,this.requestUpdate(e,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||fc}static finalize(){if(this.hasOwnProperty(mc))return!1;this[mc]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),void 0!==e.h&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of t)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(sc(e))}else void 0!==e&&t.push(sc(e));return t}static _$Ep(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,n;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}
67removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{nc?e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{const n=document.createElement("style"),i=tc.litNonce;void 0!==i&&n.setAttribute("nonce",i),n.textContent=t.cssText,e.appendChild(n)})})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=fc){var i;const r=this.constructor._$Ep(e,n);if(void 0!==r&&!0===n.reflect){const a=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:hc).toAttribute(t,n.type);this._$El=e,null==a?this.removeAttribute(r):this.setAttribute(r,a),this._$El=null}}_$AK(e,t){var n;const i=this.constructor,r=i._$Ev.get(e);if(void 0!==r&&this._$El!==r){const e=i.getPropertyOptions(r),a="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(n=e.converter)||void 0===n?void 0:n.fromAttribute)?e.converter:hc;this._$El=r,this[r]=a.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,n){let i=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||pc)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((e,t)=>this[t]=e),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),null===(e=this._$ES)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)}),this.update(n)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach((e,t)=>this._$EO(t,this[t],e)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}var vc,Ac;gc[mc]=!0,gc.elementProperties=new Map,gc.elementStyles=[],gc.shadowRootOptions={mode:"open"},null==dc||dc({ReactiveElement:gc}),(null!==(oc=lc.reactiveElementVersions)&&void 0!==oc?oc:lc.reactiveElementVersions=[]).push("1.6.3");class yc extends gc{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ec(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Ou}}yc.finalized=!0,yc._$litElement$=!0,null===(vc=globalThis.litElementHydrateSupport)||void 0===vc||vc.call(globalThis,{LitElement:yc});const bc=globalThis.litElementPolyfillSupport;null==bc||bc({LitElement:yc}),(null!==(Ac=globalThis.litElementVersions)&&void 0!==Ac?Ac:globalThis.litElementVersions=[]).push("3.3.3");const _c=null!=navigator.xr&&null!=self.XRSession&&null!=navigator.xr.isSessionSupported,wc=_c&&null!=self.XRSession.prototype.requestHitTestSource,Ec=null!=self.ResizeObserver,Sc=null!=self.IntersectionObserver,Tc=wc;(()=>{const e=navigator.userAgent||navigator.vendor||self.opera;let t=!1;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
67sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)})(),/\bCrOS\b/.test(navigator.userAgent);const xc=/android/i.test(navigator.userAgent),Cc=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!self.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;/Safari\//.test(navigator.userAgent);const Ic=/firefox/i.test(navigator.userAgent),Mc=/OculusBrowser/.test(navigator.userAgent);Cc&&/CriOS\//.test(navigator.userAgent);const kc=xc&&!Ic&&!Mc,Pc=Boolean(window.webkit&&window.webkit.messageHandlers),Rc=(()=>{if(Cc){if(Pc)return Boolean(/CriOS\/|EdgiOS\/|FxiOS\/|GSA\/|DuckDuckGo\//.test(navigator.userAgent));{const e=document.createElement("a");return Boolean(e.relList&&e.relList.supports&&e.relList.supports("ar"))}}return!1})(),Lc=e=>e&&"null"!==e?Dc(e):null,Bc=()=>{if(Tc)return;const e=[];throw _c||e.push("WebXR Device API"),wc||e.push("WebXR Hit Test API"),new Error(`The following APIs are required for AR, but are missing in this browser: ${e.join(", ")}`)},Dc=e=>new URL(e,window.location.toString()).toString(),Nc=(e,t)=>{let n=null;return(...i)=>{null!=n&&self.clearTimeout(n),n=self.setTimeout(()=>{n=null,e(...i)},t)}},Oc=(e,t,n)=>Math.max(t,Math.min(n,e)),Uc=(()=>{const e=(()=>{var e;if(null===(e=document.documentElement.getAttribute("itemtype"))||void 0===e?void 0:e.includes("schema.org/SearchResultsPage"))return!0;if(window.self!==window.top)return!0;const t=null!=document.head?Array.from(document.head.querySelectorAll("meta")):[];for(const e of t)if("viewport"===e.name)return!0;return!1})();return e||console.warn('No <meta name="viewport"> detected; <model-viewer> will cap pixel density at 1.'),()=>e?window.devicePixelRatio:1})(),Fc=(()=>{const e=new RegExp("[?&]model-viewer-debug-mode(&|$)");return()=>self.ModelViewerElement&&self.ModelViewerElement.debugMode||self.location&&self.location.search&&self.location.search.match(e)})();var zc=function(e,t,n,i){for(var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i,o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};const Qc=Symbol("currentEnvironmentMap"),Vc=Symbol("currentBackground"),Hc=Symbol("updateEnvironment"),Gc=Symbol("cancelEnvironmentUpdate");const jc=Nu`
68<style>
69:host {
70  display: block;
71  position: relative;
72  contain: strict;
73  width: 300px;
74  height: 150px;
75}
76
77.container {
78  position: relative;
79  overflow: hidden;
80}
81
82.userInput {
83  width: 100%;
84  height: 100%;
85  display: none;
86  position: relative;
87  outline-offset: -1px;
88  outline-width: 1px;
89}
90
91canvas {
92  position: absolute;
93  display: none;
94  pointer-events: none;
95  /* NOTE(cdata): Chrome 76 and below apparently have a bug
96   * that causes our canvas not to display pixels unless it is
97   * on its own render layer
98   * @see https://github.com/google/model-viewer/pull/755#issuecomment-536597893
99   */
100  transform: translateZ(0);
101}
102
103.show {
104  display: block;
105}
106
107/* Adapted from HTML5 Boilerplate
108 *
109 * @see https://github.com/h5bp/html5-boilerplate/blob/ceb4620c78fc82e13534fc44202a3f168754873f/dist/css/main.css#L122-L133 */
110.screen-reader-only {
111  border: 0;
112  left: 0;
113  top: 0;
114  clip: rect(0, 0, 0, 0);
115  height: 1px;
116  margin: -1px;
117  overflow: hidden;
118  padding: 0;
119  position: absolute;
120  white-space: nowrap;
121  width: 1px;
122  pointer-events: none;
123}
124
125.slot {
126  position: absolute;
127  pointer-events: none;
128  top: 0;
129  left: 0;
130  width: 100%;
131  height: 100%;
132}
133
134.slot > * {
135  pointer-events: initial;
136}
137
138.annotation-wrapper ::slotted(*) {
139  opacity: var(--max-hotspot-opacity, 1);
140  transition: opacity 0.3s;
141}
142
143.pointer-tumbling .annotation-wrapper ::slotted(*) {
144  pointer-events: none;
145}
146
147.annotation-wrapper ::slotted(*) {
148  pointer-events: initial;
149}
150
151.annotation-wrapper.hide ::slotted(*) {
152  opacity: var(--min-hotspot-opacity, 0.25);
153}
154
155.slot.poster {
156  display: none;
157  background-color: inherit;
158}
159
160.slot.poster.show {
161  display: inherit;
162}
163
164.slot.poster > * {
165  pointer-events: initial;
166}
167
168.slot.poster:not(.show) > * {
169  pointer-events: none;
170}
171
172#default-poster {
173  width: 100%;
174  height: 100%;
175  /* The default poster is a <button> so we need to set display
176   * to prevent it from being affected by text-align: */
177  display: block;
178  position: absolute;
179  border: none;
180  padding: 0;
181  background-size: contain;
182  background-repeat: no-repeat;
183  background-position: center;
184  background-color: #fff0;
185}
186
187#default-progress-bar {
188  display: block;
189  position: relative;
190  width: 100%;
191  height: 100%;
192  pointer-events: none;
193  overflow: hidden;
194}
195
196#default-progress-bar > .bar {
197  position: absolute;
198  top: 0;
199  left: 0;
200  width: 100%;
201  height: var(--progress-bar-height, 5px);
202  background-color: var(--progress-bar-color, rgba(0, 0, 0, 0.4));
203  transition: transform 0.09s;
204  transform-origin: top left;
205  transform: scaleX(0);
206  overflow: hidden;
207}
208
209#default-progress-bar > .bar.hide {
210  transition: opacity 0.3s 1s;
211  opacity: 0;
212}
213
214.centered {
215  align-items: center;
216  justify-content: center;
217}
218
219.cover {
220  position: absolute;
221  top: 0;
222  left: 0;
223  width: 100%;
224  height: 100%;
225  pointer-events: none;
226}
227
228.slot.interaction-prompt {
229  display: var(--interaction-prompt-display, flex);
230  overflow: hidden;
231  opacity: 0;
232  will-change: opacity;
233  transition: opacity 0.3s;
234}
235
236.slot.interaction-prompt.visible {
237  opacity: 1;
238}
239
240.animated-container {
241  will-change: transform, opacity;
242  opacity: 0;
243  transition: opacity 0.3s;
244}
245
246.slot.interaction-prompt > * {
247  pointer-events: none;
248}
249
250.slot.ar-button {
251  -moz-user-select: none;
252  -webkit-tap-highlight-color: transparent;
253  user-select: none;
254
255  display: var(--ar-button-display, block);
256}
257
258.slot.ar-button:not(.enabled) {
259  display: none;
260}
261
262.fab {
263  display: flex;
264  align-items: center;
265  justify-content: center;
266  box-sizing: border-box;
267  width: 40px;
268  height: 40px;
269  cursor: pointer;
270  background-color: #fff;
271  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);
272  border-radius: 100px;
273}
274
275.fab > * {
276  opacity: 0.87;
277}
278
279#default-ar-button {
280  position: absolute;
281  bottom: 16px;
282  right: 16px;
283  transform: scale(var(--ar-button-scale, 1));
284  transform-origin: bottom right;
285}
286
287.slot.pan-target {
288  display: block;
289  position: absolute;
290  width: 0;
291  height: 0;
292  left: 50%;
293  top: 50%;
294  transform: translate3d(-50%, -50%, 0);
295  background-color: transparent;
296  opacity: 0;
297  transition: opacity 0.3s;
298}
299
300#default-pan-target {
301  width: 6px;
302  height: 6px;
303  border-radius: 6px;
304  border: 1px solid white;
305  box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.8);
306}
307
308.slot.default {
309  pointer-events: none;
310}
311
312.slot.progress-bar {
313  pointer-events: none;
314}
315
316.slot.exit-webxr-ar-button {
317  pointer-events: none;
318}
319
320.slot.exit-webxr-ar-button:not(.enabled) {
321  display: none;
322}
323
324#default-exit-webxr-ar-button {
325  display: flex;
326  align-items: center;
327  justify-content: center;
328  position: absolute;
329  top: env(safe-area-inset-top, 16px);
330  right: 16px;
331  width: 40px;
332  height: 40px;
333  box-sizing: border-box;
334}
335
336#default-exit-webxr-ar-button > svg {
337  fill: #fff;
338}
339</style>
340<div class="container">
341  <div class="userInput" tabindex="0" role="img"
342      aria-label="3D model">
343      <div class="slot canvas">
344        <slot name="canvas">
345          <canvas></canvas>
346        </slot>
347      </div>
348
349  </div>
350
351  <!-- NOTE(cdata): We need to wrap slots because browsers without ShadowDOM
352        will have their <slot> elements removed by ShadyCSS -->
353  <div class="slot poster">
354    <slot name="poster">
355      <button type="button" id="default-poster" aria-hidden="true" aria-label="Loading 3D model"></button>
356    </slot>
357  </div>
358
359  <div class="slot ar-button">
360    <slot name="ar-button">
361      <a id="default-ar-button" part="default-ar-button" class="fab"
362          tabindex="2"
363          role="button"
364          href="javascript:void(0);"
365          aria-label="View in your space">
366        ${Nu`
367<svg version="1.1" id="view_x5F_in_x5F_AR_x5F_icon"
368	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px" height="24px"
369	 viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
370<rect id="Bounding_Box" x="0" y="0" fill="none" width="24" height="24"/>
371<g id="Art_layer">
372	<path d="M3,4c0-0.55,0.45-1,1-1h2V1H4C2.35,1,1,2.35,1,4v2h2V4z"/>
373	<path d="M20,3c0.55,0,1,0.45,1,1v2h2V4c0-1.65-1.35-3-3-3h-2v2H20z"/>
374	<path d="M4,21c-0.55,0-1-0.45-1-1v-2H1v2c0,1.65,1.35,3,3,3h2v-2H4z"/>
375	<path d="M20,21c0.55,0,1-0.45,1-1v-2h2v2c0,1.65-1.35,3-3,3h-2v-2H20z"/>
376	<g>
377		<path d="M18.25,7.6l-5.5-3.18c-0.46-0.27-1.04-0.27-1.5,0L5.75,7.6C5.29,7.87,5,8.36,5,8.9v6.35c0,0.54,0.29,1.03,0.75,1.3
378			l5.5,3.18c0.46,0.27,1.04,0.27,1.5,0l5.5-3.18c0.46-0.27,0.75-0.76,0.75-1.3V8.9C19,8.36,18.71,7.87,18.25,7.6z M7,14.96v-4.62
379			l4,2.32v4.61L7,14.96z M12,10.93L8,8.61l4-2.31l4,2.31L12,10.93z M13,17.27v-4.61l4-2.32v4.62L13,17.27z"/>
380	</g>
381</g>
382</svg>`}
383      </a>
384    </slot>
385  </div>
386
387  <div class="slot pan-target">
388    <slot name="pan-target">
389      <div id="default-pan-target">
390      </div>
391    </slot>
392  </div>
393
394  <div class="slot interaction-prompt cover centered">
395    <div id="prompt" class="animated-container">
396      <slot name="interaction-prompt" aria-hidden="true">
397        ${Nu`
398<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="36">
399    <defs>
400        <path id="A" d="M.001.232h24.997V36H.001z" />
401    </defs>
402    <g transform="translate(-11 -4)" fill="none" fill-rule="evenodd">
403        <path fill-opacity="0" fill="#fff" d="M0 0h44v44H0z" />
404        <g transform="translate(11 3)">
405            <path d="M8.733 11.165c.04-1.108.766-2.027 1.743-2.307a2.54 2.54 0 0 1 .628-.089c.16 0 .314.017.463.044 1.088.2 1.9 1.092 1.9 2.16v8.88h1.26c2.943-1.39 5-4.45 5-8.025a9.01 9.01 0 0 0-1.9-5.56l-.43-.5c-.765-.838-1.683-1.522-2.712-2-1.057-.49-2.226-.77-3.46-.77s-2.4.278-3.46.77c-1.03.478-1.947 1.162-2.71 2l-.43.5a9.01 9.01 0 0 0-1.9 5.56 9.04 9.04 0 0 0 .094 1.305c.03.21.088.41.13.617l.136.624c.083.286.196.56.305.832l.124.333a8.78 8.78 0 0 0 .509.953l.065.122a8.69 8.69 0 0 0 3.521 3.191l1.11.537v-9.178z" fill-opacity=".5" fill="#e4e4e4" />
406            <path d="M22.94 26.218l-2.76 7.74c-.172.485-.676.8-1.253.8H12.24c-1.606 0-3.092-.68-3.98-1.82-1.592-2.048-3.647-3.822-6.11-5.27-.095-.055-.15-.137-.152-.23-.004-.1.046-.196.193-.297.56-.393 1.234-.6 1.926-.6a3.43 3.43 0 0 1 .691.069l4.922.994V10.972c0-.663.615-1.203 1.37-1.203s1.373.54 1.373 1.203v9.882h2.953c.273 0 .533.073.757.21l6.257 3.874c.027.017.045.042.07.06.41.296.586.77.426 1.22M4.1 16.614c-.024-.04-.042-.083-.065-.122a8.69 8.69 0 0 1-.509-.953c-.048-.107-.08-.223-.124-.333l-.305-.832c-.058-.202-.09-.416-.136-.624l-.13-.617a9.03 9.03 0 0 1-.094-1.305c0-2.107.714-4.04 1.9-5.56l.43-.5c.764-.84 1.682-1.523 2.71-2 1.058-.49 2.226-.77 3.46-.77s2.402.28 3.46.77c1.03.477 1.947 1.16 2.712 2l.428.5a9 9 0 0 1 1.901 5.559c0 3.577-2.056 6.636-5 8.026h-1.26v-8.882c0-1.067-.822-1.96-1.9-2.16-.15-.028-.304-.044-.463-.044-.22 0-.427.037-.628.09-.977.28-1.703 1.198-1.743 2.306v9.178l-1.11-.537C6.18 19.098 4.96 18 4.1 16.614M22.97 24.09l-6.256-3.874c-.102-.063-.218-.098-.33-.144 2.683-1.8 4.354-4.855 4.354-8.243 0-.486-.037-.964-.104-1.43a9.97 9.97 0 0 0-1.57-4.128l-.295-.408-.066-.092a10.05 10.05 0 0 0-.949-1.078c-.342-.334-.708-.643-1.094-.922-1.155-.834-2.492-1.412-3.94-1.65l-.732-.088-.748-.03a9.29 9.29 0 0 0-1.482.119c-1.447.238-2.786.816-3.94 1.65a9.33 9.33 0 0 0-.813.686 9.59 9.59 0 0 0-.845.877l-.385.437-.36.5-.288.468-.418.778-.04.09c-.593 1.28-.93 2.71-.93 4.222 0 3.832 2.182 7.342 5.56 8.938l1.437.68v4.946L5 25.64a4.44 4.44 0 0 0-.888-.086c-.017 0-.034.003-.05.003-.252.004-.503.033-.75.08a5.08 5.08 0 0 0-.237.056c-.193.046-.382.107-.568.18-.075.03-.15.057-.225.1-.25.114-.494.244-.723.405a1.31 1.31 0 0 0-.566 1.122 1.28 1.28 0 0 0 .645 1.051C4 29.925 5.96 31.614 7.473 33.563a5.06 5.06 0 0 0 .434.491c1.086 1.082 2.656 1.713 4.326 1.715h6.697c.748-.001 1.43-.333 1.858-.872.142-.18.256-.38.336-.602l2.757-7.74c.094-.26.13-.53.112-.794s-.088-.52-.203-.76a2.19 2.19 0 0 0-.821-.91" fill-opacity=".6" fill="#000" />
407            <path d="M22.444 24.94l-6.257-3.874a1.45 1.45 0 0 0-.757-.211h-2.953v-9.88c0-.663-.616-1.203-1.373-1.203s-1.37.54-1.37 1.203v16.643l-4.922-.994a3.44 3.44 0 0 0-.692-.069 3.35 3.35 0 0 0-1.925.598c-.147.102-.198.198-.194.298.004.094.058.176.153.23 2.462 1.448 4.517 3.22 6.11 5.27.887 1.14 2.373 1.82 3.98 1.82h6.686c.577 0 1.08-.326 1.253-.8l2.76-7.74c.16-.448-.017-.923-.426-1.22-.025-.02-.043-.043-.07-.06z" fill="#fff" />
408            <g transform="translate(0 .769)">
409                <mask id="B" fill="#fff">
410                    <use xlink:href="#A" />
411                </mask>
412                <path d="M23.993 24.992a1.96 1.96 0 0 1-.111.794l-2.758 7.74c-.08.22-.194.423-.336.602-.427.54-1.11.87-1.857.872h-6.698c-1.67-.002-3.24-.633-4.326-1.71
4125-.154-.154-.3-.318-.434-.49C5.96 30.846 4 29.157 1.646 27.773c-.385-.225-.626-.618-.645-1.05a1.31 1.31 0 0 1 .566-1.122 4.56 4.56 0 0 1 .723-.405l.225-.1a4.3 4.3 0 0 1 .568-.18l.237-.056c.248-.046.5-.075.75-.08.018 0 .034-.003.05-.003.303-.001.597.027.89.086l3.722.752V20.68l-1.436-.68c-3.377-1.596-5.56-5.106-5.56-8.938 0-1.51.336-2.94.93-4.222.015-.03.025-.06.04-.09.127-.267.268-.525.418-.778.093-.16.186-.316.288-.468.063-.095.133-.186.2-.277L3.773 5c.118-.155.26-.29.385-.437.266-.3.544-.604.845-.877a9.33 9.33 0 0 1 .813-.686C6.97 2.167 8.31 1.59 9.757 1.35a9.27 9.27 0 0 1 1.481-.119 8.82 8.82 0 0 1 .748.031c.247.02.49.05.733.088 1.448.238 2.786.816 3.94 1.65.387.28.752.588 1.094.922a9.94 9.94 0 0 1 .949 1.078l.066.092c.102.133.203.268.295.408a9.97 9.97 0 0 1 1.571 4.128c.066.467.103.945.103 1.43 0 3.388-1.67 6.453-4.353 8.243.11.046.227.08.33.144l6.256 3.874c.37.23.645.55.82.9.115.24.185.498.203.76m.697-1.195c-.265-.55-.677-1.007-1.194-1.326l-5.323-3.297c2.255-2.037 3.564-4.97 3.564-8.114 0-2.19-.637-4.304-1.84-6.114-.126-.188-.26-.37-.4-.552-.645-.848-1.402-1.6-2.252-2.204C15.472.91 13.393.232 11.238.232A10.21 10.21 0 0 0 5.23 2.19c-.848.614-1.606 1.356-2.253 2.205-.136.18-.272.363-.398.55C1.374 6.756.737 8.87.737 11.06c0 4.218 2.407 8.08 6.133 9.842l.863.41v3.092l-2.525-.51c-.356-.07-.717-.106-1.076-.106a5.45 5.45 0 0 0-3.14.996c-.653.46-1.022 1.202-.99 1.983a2.28 2.28 0 0 0 1.138 1.872c2.24 1.318 4.106 2.923 5.543 4.772 1.26 1.62 3.333 2.59 5.55 2.592h6.698c1.42-.001 2.68-.86 3.134-2.138l2.76-7.74c.272-.757.224-1.584-.134-2.325" fill-opacity=".05" fill="#000" mask="url(#B)" />
413            </g>
414        </g>
415    </g>
416</svg>`}
417      </slot>
418    </div>
419  </div>
420
421  <div id="finger0" class="animated-container cover">
422    <slot name="finger0" aria-hidden="true">
423    </slot>
424  </div>
425  <div id="finger1" class="animated-container cover">
426    <slot name="finger1" aria-hidden="true">
427    </slot>
428  </div>
429
430  <div class="slot default">
431    <slot></slot>
432
433    <div class="slot progress-bar">
434      <slot name="progress-bar">
435        <div id="default-progress-bar" aria-hidden="true">
436          <div class="bar" part="default-progress-bar"></div>
437        </div>
438      </slot>
439    </div>
440
441    <div class="slot exit-webxr-ar-button">
442      <slot name="exit-webxr-ar-button">
443        <a id="default-exit-webxr-ar-button" part="default-exit-webxr-ar-button"
444            tabindex="3"
445            aria-label="Exit AR"
446            aria-hidden="true">
447          ${Nu`
448<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="#000000">
449    <!-- NOTE(cdata): This SVG filter is a stop-gap until we can implement
450         support for dynamic re-coloring of UI components -->
451    <defs>
452      <filter id="drop-shadow" x="-100%" y="-100%" width="300%" height="300%">
453        <feGaussianBlur in="SourceAlpha" stdDeviation="1"/>
454        <feOffset dx="0" dy="0" result="offsetblur"/>
455        <feFlood flood-color="#000000"/>
456        <feComposite in2="offsetblur" operator="in"/>
457        <feMerge>
458          <feMergeNode/>
459          <feMergeNode in="SourceGraphic"/>
460        </feMerge>
461      </filter>
462    </defs>
vendor: 6,341 bytes, lines 463-473
463    <path filter="url(#drop-shadow)" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
464    <path d="M0 0h24v24H0z" fill="none"/>
465</svg>`}
466        </a>
467      </slot>
468    </div>
469  </div>
470</div>
471<div class="screen-reader-only">
472  <span id="status" role="status"></span>
473</div>`,qc=new WeakMap;function Wc(){let e,t;function n(e,t,n,i,r,a){const s=a.num_components(),o=n.num_points()*s,l=o*r.BYTES_PER_ELEMENT,u=function(e,t){switch(t){case Float32Array:return e.DT_FLOAT32;case Int8Array:return e.DT_INT8;case Int16Array:return e.DT_INT16;case Int32Array:return e.DT_INT32;case Uint8Array:return e.DT_UINT8;case Uint16Array:return e.DT_UINT16;case Uint32Array:return e.DT_UINT32}}(e,r),c=e._malloc(l);t.GetAttributeDataArrayForAllPoints(n,a,u,l,c);const d=new r(e.HEAPF32.buffer,c,o).slice();return e._free(c),{name:i,array:d,itemSize:s}}onmessage=function(i){const r=i.data;switch(r.type){case"init":e=r.decoderConfig,t=new Promise(function(t){e.onModuleLoaded=function(e){t({draco:e})},DracoDecoderModule(e)});break;case"decode":const i=r.buffer,a=r.taskConfig;t.then(e=>{const t=e.draco,s=new t.Decoder;try{const e=function(e,t,i,r){const a=r.attributeIDs,s=r.attributeTypes;let o,l;const u=t.GetEncodedGeometryType(i);if(u===e.TRIANGULAR_MESH)o=new e.Mesh,l=t.DecodeArrayToMesh(i,i.byteLength,o);else{if(u!==e.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");o=new e.PointCloud,l=t.DecodeArrayToPointCloud(i,i.byteLength,o)}if(!l.ok()||0===o.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+l.error_msg());const c={index:null,attributes:[]};for(const i in a){const l=self[s[i]];let u,d;if(r.useUniqueIDs)d=a[i],u=t.GetAttributeByUniqueId(o,d);else{if(d=t.GetAttributeId(o,e[a[i]]),-1===d)continue;u=t.GetAttribute(o,d)}const h=n(e,t,o,i,l,u);"color"===i&&(h.vertexColorSpace=r.vertexColorSpace),c.attributes.push(h)}u===e.TRIANGULAR_MESH&&(c.index=function(e,t,n){const i=n.num_faces(),r=3*i,a=4*r,s=e._malloc(a);t.GetTrianglesUInt32Array(n,a,s);const o=new Uint32Array(e.HEAPF32.buffer,s,r).slice();return e._free(s),{array:o,itemSize:1}}(e,t,o));return e.destroy(o),c}(t,s,new Int8Array(i),a),o=e.attributes.map(e=>e.array.buffer);e.index&&o.push(e.index.array.buffer),self.postMessage({type:"decode",id:r.id,geometry:e},o)}catch(e){console.error(e),self.postMessage({type:"error",id:r.id,error:e.message})}finally{t.destroy(s)}})}}}function Yc(e,t){if(0===t)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),e;if(2===t||1===t){let n=e.getIndex();if(null===n){const t=[],i=e.getAttribute("position");if(void 0===i)return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),e;for(let e=0;e<i.count;e++)t.push(e);e.setIndex(t),n=e.getIndex()}const i=n.count-2,r=[];if(2===t)for(let e=1;e<=i;e++)r.push(n.getX(0)),r.push(n.getX(e)),r.push(n.getX(e+1));else for(let e=0;e<i;e++)e%2==0?(r.push(n.getX(e)),r.push(n.getX(e+1)),r.push(n.getX(e+2))):(r.push(n.getX(e+2)),r.push(n.getX(e+1)),r.push(n.getX(e)));r.length/3!==i&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const a=e.clone();return a.setIndex(r),a.clearGroups(),a}return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",t),e}class Xc extends pl{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(e){return new td(e)}),this.register(function(e){return new cd(e)}),this.register(function(e){return new dd(e)}),this.register(function(e){return new hd(e)}),this.register(function(e){return new id(e)}),this.register(function(e){return new rd(e)}),this.register(function(e){return new ad(e)}),this.register(function(e){return new sd(e)}),this.register(function(e){return new ed(e)}),this.register(function(e){return new od(e)}),this.register(function(e){return new nd(e)}),this.register(function(e){return new ud(e)}),this.register(function(e){return new ld(e)}),this.register(function(e){return new Jc(e)}),this.register(function(e){return new pd(e)}),this.register(function(e){return new fd(e)})}load(e,t,n,i){const r=this;let a;if(""!==this.resourcePath)a=this.resourcePath;else if(""!==this.path){const t=Nl.extractUrlBase(e);a=Nl.resolveURL(t,this.path)}else a=Nl.extractUrlBase(e);this.manager.itemStart(e);const s=function(t){i?i(t):console.error(t),r.manager.itemError(e),r.manager.itemEnd(e)},o=new gl(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(n){try{r.parse(n,a,function(n){t(n),r.manager.itemEnd(e)},s)}catch(e){s(e)}},n,s)}setDRACOLoader(e){return this.dracoLoader=e,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}unregister(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,i){let r;const a={},s={},o=new TextDecoder;if("string"==typeof e)r=JSON.parse(e);else if(e instanceof ArrayBuffer){if(o.decode(new Uint8Array(e,0,4))===md){try{a[$c.KHR_BINARY_GLTF]=new Ad(e)}catch(e){return void(i&&i(e))}r=JSON.parse(a[$c.KHR_BINARY_GLTF].content)}else r=JSON.parse(o.decode(e))}else r=e;if(void 0===r.asset||r.asset.version[0]<2)return void(i&&i(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.")));const l=new Gd(r,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});l.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e<this.pluginCallbacks.length;e++){const t=this.pluginCallbacks[e](l);t.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),s[t.name]=t,a[t.name]=!0}if(r.extensionsUsed)for(let e=0;e<r.extensionsUsed.length;++e){const t=r.extensionsUsed[e],n=r.extensionsRequired||[];
vendor: 12,585 bytes, line 473
473switch(t){case $c.KHR_MATERIALS_UNLIT:a[t]=new Zc;break;case $c.KHR_DRACO_MESH_COMPRESSION:a[t]=new yd(r,this.dracoLoader);break;case $c.KHR_TEXTURE_TRANSFORM:a[t]=new bd;break;case $c.KHR_MESH_QUANTIZATION:a[t]=new _d;break;default:n.indexOf(t)>=0&&void 0===s[t]&&console.warn('THREE.GLTFLoader: Unknown extension "'+t+'".')}}l.setExtensions(a),l.setPlugins(s),l.parse(n,i)}parseAsync(e,t){const n=this;return new Promise(function(i,r){n.parse(e,t,i,r)})}}function Kc(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}const $c={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class Jc{constructor(e){this.parser=e,this.name=$c.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let n=0,i=t.length;n<i;n++){const i=t[n];i.extensions&&i.extensions[this.name]&&void 0!==i.extensions[this.name].light&&e._addNodeRef(this.cache,i.extensions[this.name].light)}}_loadLight(e){const t=this.parser,n="light:"+e;let i=t.cache.get(n);if(i)return i;const r=t.json,a=((r.extensions&&r.extensions[this.name]||{}).lights||[])[e];let s;const o=new Xn(16777215);void 0!==a.color&&o.setRGB(a.color[0],a.color[1],a.color[2],Ee);const l=void 0!==a.range?a.range:0;switch(a.type){case"directional":s=new Ll(o),s.target.position.set(0,0,-1),s.add(s.target);break;case"point":s=new Pl(o),s.distance=l;break;case"spot":s=new xl(o),s.distance=l,a.spot=a.spot||{},a.spot.innerConeAngle=void 0!==a.spot.innerConeAngle?a.spot.innerConeAngle:0,a.spot.outerConeAngle=void 0!==a.spot.outerConeAngle?a.spot.outerConeAngle:Math.PI/4,s.angle=a.spot.outerConeAngle,s.penumbra=1-a.spot.innerConeAngle/a.spot.outerConeAngle,s.target.position.set(0,0,-1),s.add(s.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+a.type)}return s.position.set(0,0,0),s.decay=2,Ud(s,a),void 0!==a.intensity&&(s.intensity=a.intensity),s.name=t.createUniqueName(a.name||"light_"+e),i=Promise.resolve(s),t.cache.add(n,i),i}getDependency(e,t){if("light"===e)return this._loadLight(t)}createNodeAttachment(e){const t=this,n=this.parser,i=n.json.nodes[e],r=(i.extensions&&i.extensions[this.name]||{}).light;return void 0===r?null:this._loadLight(r).then(function(e){return n._getNodeRef(t.cache,r,e)})}}class Zc{constructor(){this.name=$c.KHR_MATERIALS_UNLIT}getMaterialType(){return Zn}extendParams(e,t,n){const i=[];e.color=new Xn(1,1,1),e.opacity=1;const r=t.pbrMetallicRoughness;if(r){if(Array.isArray(r.baseColorFactor)){const t=r.baseColorFactor;e.color.setRGB(t[0],t[1],t[2],Ee),e.opacity=t[3]}void 0!==r.baseColorTexture&&i.push(n.assignTexture(e,"map",r.baseColorTexture,we))}return Promise.all(i)}}class ed{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){const n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const i=n.extensions[this.name].emissiveStrength;return void 0!==i&&(t.emissiveIntensity=i),Promise.resolve()}}class td{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];if(void 0!==a.clearcoatFactor&&(t.clearcoat=a.clearcoatFactor),void 0!==a.clearcoatTexture&&r.push(n.assignTexture(t,"clearcoatMap",a.clearcoatTexture)),void 0!==a.clearcoatRoughnessFactor&&(t.clearcoatRoughness=a.clearcoatRoughnessFactor),void 0!==a.clearcoatRoughnessTexture&&r.push(n.assignTexture(t,"clearcoatRoughnessMap",a.clearcoatRoughnessTexture)),void 0!==a.clearcoatNormalTexture&&(r.push(n.assignTexture(t,"clearcoatNormalMap",a.clearcoatNormalTexture)),void 0!==a.clearcoatNormalTexture.scale)){const e=a.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new tt(e,e)}return Promise.all(r)}}class nd{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];return void 0!==a.iridescenceFactor&&(t.iridescence=a.iridescenceFactor),void 0!==a.iridescenceTexture&&r.push(n.assignTexture(t,"iridescenceMap",a.iridescenceTexture)),void 0!==a.iridescenceIor&&(t.iridescenceIOR=a.iridescenceIor),void 0===t.iridescenceThicknessRange&&(t.iridescenceThicknessRange=[100,400]),void 0!==a.iridescenceThicknessMinimum&&(t.iridescenceThicknessRange[0]=a.iridescenceThicknessMinimum),void 0!==a.iridescenceThicknessMaximum&&(t.iridescenceThicknessRange[1]=a.iridescenceThicknessMaximum),void 0!==a.iridescenceThicknessTexture&&r.push(n.assignTexture(t,"iridescenceThicknessMap",a.iridescenceThicknessTexture)),Promise.all(r)}}class id{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_SHEEN}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[];t.sheenColor=new Xn(0,0,0),t.sheenRoughness=0,t.sheen=1;const a=i.extensions[this.name];if(void 0!==a.sheenColorFactor){const e=a.sheenColorFactor;t.sheenColor.setRGB(e[0],e[1],e[2],Ee)}return void 0!==a.sheenRoughnessFactor&&(t.sheenRoughness=a.sheenRoughnessFactor),void 0!==a.sheenColorTexture&&r.push(n.assignTexture(t,"sheenColorMap",a.sheenColorTexture,we)),void 0!==a.sheenRoughnessTexture&&r.push(n.assignTexture(t,"sheenRoughnessMap",a.sheenRoughnessTexture)),Promise.all(r)}}class rd{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];return void 0!==a.transmissionFactor&&(t.transmission=a.transmissionFactor),void 0!==a.transmissionTexture&&r.push(n.assignTexture(t,"transmissionMap",a.transmissionTexture)),Promise.all(r)}}class ad{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_VOLUME}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];t.thickness=void 0!==a.thicknessFactor?a.thicknessFactor:0,void 0!==a.thicknessTexture&&r.push(n.assignTexture(t,"thicknessMap",a.thicknessTexture)),t.attenuationDistance=a.attenuationDistance||1/0;const s=a.attenuationColor||[1,1,1];return t.attenuationColor=(new Xn).setRGB(s[0],s[1],s[2],Ee),Promise.all(r)}}class sd{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_IOR}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser.json.materials[e];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const i=n.extensions[this.name];return t.ior=void 0!==i.ior?i.ior:1.5,Promise.resolve()}}class od{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_SPECULAR}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];t.specularIntensity=void 0!==a.specularFactor?a.specularFactor:1,void 0!==a.specularTexture&&r.push(n.assignTexture(t,"specularIntensityMap",a.specularTexture));const s=a.specularColorFactor||[1,1,1];return t.specularColor=(new Xn).setRGB(s[0],s[1],s[2],Ee),void 0!==a.specularColorTexture&&r.push(n.assignTexture(t,"specularColorMap",a.specularColorTexture,we)),Promise.all(r)}}class ld{constructor(e){this.parser=e,this.name=$c.EXT_MATERIALS_BUMP}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];return t.bumpScale=void 0!==a.bumpFactor?a.bumpFactor:1,void 0!==a.bumpTexture&&r.push(n.assignTexture(t,"bumpMap",a.bumpTexture)),Promise.all(r)}}class ud{constructor(e){this.parser=e,this.name=$c.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){const t=this.parser.json.materials[e];return t.extensions&&t.extensions[this.name]?jo:null}extendMaterialParams(e,t){const n=this.parser,i=n.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],a=i.extensions[this.name];return void 0!==a.anisotropyStrength&&(t.anisotropy=a.anisotropyStrength),void 0!==a.anisotropyRotation&&(t.anisotropyRotation=a.anisotropyRotation),void 0!==a.anisotropyTexture&&r.push(n.assignTexture(t,"anisotropyMap",a.anisotropyTexture)),Promise.all(r)}}class cd{constructor(e){this.parser=e,this.name=$c.KHR_TEXTURE_BASISU}loadTexture(e){const t=this.parser,n=t.json,i=n.textures[e];if(!i.extensions||!i.extensions[this.name])return null;const r=i.extensions[this.name],a=t.options.ktx2Loader;if(!a){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,r.source,a)}}class dd{constructor(e){this.parser=e,this.name=$c.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,i=n.json,r=i.textures[e];if(!r.extensions||!r.extensions[t])return null;const a=r.extensions[t],s=i.images[a.source];let o=n.textureLoader;if(s.uri){const e=n.options.manager.getHandler(s.uri);null!==e&&(o=e)}return this.detectSupport().then(function(r){if(r)return n.loadTextureImage(e,a.source,o);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(1===t.height)}})),this.isSupported}}class hd{constructor(e){this.parser=e,this.name=$c.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,n=this.parser,i=n.json,r=i.textures[e];if(!r.extensions||!r.extensions[t])return null;const a=r.extensions[t],s=i.images[a.source];let o=n.textureLoader;if(s.uri){const e=n.options.manager.getHandler(s.uri);null!==e&&(o=e)}return this.detectSupport().then(function(r){if(r)return n.loadTextureImage(e,a.source,o);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return n.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdj
473FDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(1===t.height)}})),this.isSupported}}class pd{constructor(e){this.name=$c.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){const e=n.extensions[this.name],i=this.parser.getDependency("buffer",e.buffer),r=this.parser.options.meshoptDecoder;if(!r||!r.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return i.then(function(t){const n=e.byteOffset||0,i=e.byteLength||0,a=e.count,s=e.byteStride,o=new Uint8Array(t,n,i);return r.decodeGltfBufferAsync?r.decodeGltfBufferAsync(a,s,o,e.mode,e.filter).then(function(e){return e.buffer}):r.ready.then(function(){const t=new ArrayBuffer(a*s);return r.decodeGltfBuffer(new Uint8Array(t),a,s,o,e.mode,e.filter),t})})}return null}}class fd{constructor(e){this.name=$c.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||void 0===n.mesh)return null;const i=t.meshes[n.mesh];for(const e of i.primitives)if(e.mode!==Td.TRIANGLES&&e.mode!==Td.TRIANGLE_STRIP&&e.mode!==Td.TRIANGLE_FAN&&void 0!==e.mode)return null;const r=n.extensions[this.name].attributes,a=[],s={};for(const e in r)a.push(this.parser.getDependency("accessor",r[e]).then(t=>(s[e]=t,s[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{const t=e.pop(),n=t.isGroup?t.children:[t],i=e[0].count,r=[];for(const e of n){const t=new sn,n=new Mt,a=new It,o=new Mt(1,1,1),l=new yo(e.geometry,e.material,i);for(let e=0;e<i;e++)s.TRANSLATION&&n.fromBufferAttribute(s.TRANSLATION,e),s.ROTATION&&a.fromBufferAttribute(s.ROTATION,e),s.SCALE&&o.fromBufferAttribute(s.SCALE,e),l.setMatrixAt(e,t.compose(n,a,o));for(const t in s)if("_COLOR_0"===t){const e=s[t];l.instanceColor=new co(e.array,e.itemSize,e.normalized)}else"TRANSLATION"!==t&&"ROTATION"!==t&&"SCALE"!==t&&e.geometry.setAttribute(t,s[t]);Ln.prototype.copy.call(l,e),this.parser.assignFinalMaterial(l),r.push(l)}return t.isGroup?(t.clear(),t.add(...r),t):r[0]}))}}const md="glTF",gd=1313821514,vd=5130562;class Ad{constructor(e){this.name=$c.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,12),n=new TextDecoder;if(this.header={magic:n.decode(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==md)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const i=this.header.length-12,r=new DataView(e,12);let a=0;for(;a<i;){const t=r.getUint32(a,!0);a+=4;const i=r.getUint32(a,!0);if(a+=4,i===gd){const i=new Uint8Array(e,12+a,t);this.content=n.decode(i)}else if(i===vd){const n=12+a;this.body=e.slice(n,n+t)}a+=t}if(null===this.content)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class yd{constructor(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=$c.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){const n=this.json,i=this.dracoLoader,r=e.extensions[this.name].bufferView,a=e.extensions[this.name].attributes,s={},o={},l={};for(const e in a){const t=kd[e]||e.toLowerCase();s[t]=a[e]}for(const t in e.attributes){const i=kd[t]||t.toLowerCase();if(void 0!==a[t]){const r=n.accessors[e.attributes[t]],a=xd[r.componentType];l[i]=a.name,o[i]=!0===r.normalized}}return t.getDependency("bufferView",r).then(function(e){return new Promise(function(t,n){i.decodeDracoFile(e,function(e){for(const t in e.attributes){const n=e.attributes[t],i=o[t];void 0!==i&&(n.normalized=i)}t(e)},s,l,Ee,n)})})}}class bd{constructor(){this.name=$c.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return void 0!==t.texCoord&&t.texCoord!==e.channel||void 0!==t.offset||void 0!==t.rotation||void 0!==t.scale?(e=e.clone(),void 0!==t.texCoord&&(e.channel=t.texCoord),void 0!==t.offset&&e.offset.fromArray(t.offset),void 0!==t.rotation&&(e.rotation=t.rotation),void 0!==t.scale&&e.repeat.fromArray(t.scale),e.needsUpdate=!0,e):e}}
vendor: 10,198 bytes, line 473
473class _d{constructor(){this.name=$c.KHR_MESH_QUANTIZATION}}class wd extends Ko{constructor(e,t,n,i){super(e,t,n,i)}copySampleValue_(e){const t=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=e*i*3+i;for(let e=0;e!==i;e++)t[e]=n[r+e];return t}interpolate_(e,t,n,i){const r=this.resultBuffer,a=this.sampleValues,s=this.valueSize,o=2*s,l=3*s,u=i-t,c=(n-t)/u,d=c*c,h=d*c,p=e*l,f=p-l,m=-2*h+3*d,g=h-d,v=1-m,A=g-d+c;for(let e=0;e!==s;e++){const t=a[f+e+s],n=a[f+e+o]*u,i=a[p+e+s],l=a[p+e]*u;r[e]=v*t+A*n+m*i+g*l}return r}}const Ed=new It;class Sd extends wd{interpolate_(e,t,n,i){const r=super.interpolate_(e,t,n,i);return Ed.fromArray(r).normalize().toArray(r),r}}const Td={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},xd={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},Cd={9728:O,9729:z,9984:U,9985:Q,9986:F,9987:V},Id={33071:D,33648:N,10497:B},Md={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},kd={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},Pd={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},Rd={CUBICSPLINE:void 0,LINEAR:me,STEP:fe},Ld="OPAQUE",Bd="MASK",Dd="BLEND";function Nd(e){return void 0===e.DefaultMaterial&&(e.DefaultMaterial=new Go({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:0})),e.DefaultMaterial}function Od(e,t,n){for(const i in n.extensions)void 0===e[i]&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[i]=n.extensions[i])}function Ud(e,t){void 0!==t.extras&&("object"==typeof t.extras?Object.assign(e.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function Fd(e,t){if(e.updateMorphTargets(),void 0!==t.weights)for(let n=0,i=t.weights.length;n<i;n++)e.morphTargetInfluences[n]=t.weights[n];if(t.extras&&Array.isArray(t.extras.targetNames)){const n=t.extras.targetNames;if(e.morphTargetInfluences.length===n.length){e.morphTargetDictionary={};for(let t=0,i=n.length;t<i;t++)e.morphTargetDictionary[n[t]]=t}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function zd(e){let t;const n=e.extensions&&e.extensions[$c.KHR_DRACO_MESH_COMPRESSION];if(t=n?"draco:"+n.bufferView+":"+n.indices+":"+Qd(n.attributes):e.indices+":"+Qd(e.attributes)+":"+e.mode,void 0!==e.targets)for(let n=0,i=e.targets.length;n<i;n++)t+=":"+Qd(e.targets[n]);return t}function Qd(e){let t="";const n=Object.keys(e).sort();for(let i=0,r=n.length;i<r;i++)t+=n[i]+":"+e[n[i]]+";";return t}function Vd(e){switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}const Hd=new sn;class Gd{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new Kc,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,i=!1,r=-1;"undefined"!=typeof navigator&&(n=!0===/^((?!chrome|android).)*safari/i.test(navigator.userAgent),i=navigator.userAgent.indexOf("Firefox")>-1,r=i?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),"undefined"==typeof createImageBitmap||n||i&&r<98?this.textureLoader=new yl(this.options.manager):this.textureLoader=new Ol(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new gl(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const n=this,i=this.json,r=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])}).then(function(t){const a={scene:t[0][i.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:i.asset,parser:n,userData:{}};return Od(r,a,i),Ud(a,i),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(const e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,i=t.length;n<i;n++){const i=t[n].joints;for(let t=0,n=i.length;t<n;t++)e[i[t]].isBone=!0}for(let t=0,i=e.length;t<i;t++){const i=e[t];void 0!==i.mesh&&(this._addNodeRef(this.meshCache,i.mesh),void 0!==i.skin&&(n[i.mesh].isSkinnedMesh=!0)),void 0!==i.camera&&this._addNodeRef(this.cameraCache,i.camera)}}_addNodeRef(e,t){void 0!==t&&(void 0===e.refs[t]&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,n){if(e.refs[t]<=1)return n;const i=n.clone(),r=(e,t)=>{const n=this.associations.get(e);null!=n&&this.associations.set(t,n);for(const[n,i]of e.children.entries())r(i,t.children[n])};return r(n,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let n=0;n<t.length;n++){const i=e(t[n]);if(i)return i}return null}_invokeAll(e){const t=Object.values(this.plugins);t.unshift(this);const n=[];for(let i=0;i<t.length;i++){const r=e(t[i]);r&&n.push(r)}return n}getDependency(e,t){const n=e+":"+t;let i=this.cache.get(n);if(!i){switch(e){case"scene":i=this.loadScene(t);break;case"node":i=this._invokeOne(function(e){return e.loadNode&&e.loadNode(t)});break;case"mesh":i=this._invokeOne(function(e){return e.loadMesh&&e.loadMesh(t)});break;case"accessor":i=this.loadAccessor(t);break;case"bufferView":i=this._invokeOne(function(e){return e.loadBufferView&&e.loadBufferView(t)});break;case"buffer":i=this.loadBuffer(t);break;case"material":i=this._invokeOne(function(e){return e.loadMaterial&&e.loadMaterial(t)});break;case"texture":i=this._invokeOne(function(e){return e.loadTexture&&e.loadTexture(t)});break;case"skin":i=this.loadSkin(t);break;case"animation":i=this._invokeOne(function(e){return e.loadAnimation&&e.loadAnimation(t)});break;case"camera":i=this.loadCamera(t);break;default:if(i=this._invokeOne(function(n){return n!=this&&n.getDependency&&n.getDependency(e,t)}),!i)throw new Error("Unknown type: "+e)}this.cache.add(n,i)}return i}getDependencies(e){let t=this.cache.get(e);if(!t){const n=this,i=this.json[e+("mesh"===e?"es":"s")]||[];t=Promise.all(i.map(function(t,i){return n.getDependency(e,i)})),this.cache.add(e,t)}return t}loadBuffer(e){const t=this.json.buffers[e],n=this.fileLoader;if(t.type&&"arraybuffer"!==t.type)throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(void 0===t.uri&&0===e)return Promise.resolve(this.extensions[$c.KHR_BINARY_GLTF].body);const i=this.options;return new Promise(function(e,r){n.load(Nl.resolveURL(t.uri,i.path),e,void 0,function(){r(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))})})}loadBufferView(e){const t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then(function(e){const n=t.byteLength||0,i=t.byteOffset||0;return e.slice(i,i+n)})}loadAccessor(e){const t=this,n=this.json,i=this.json.accessors[e];if(void 0===i.bufferView&&void 0===i.sparse){const e=Md[i.type],t=xd[i.componentType],n=!0===i.normalized,r=new t(i.count*e);return Promise.resolve(new ai(r,e,n))}const r=[];return void 0!==i.bufferView?r.push(this.getDependency("bufferView",i.bufferView)):r.push(null),void 0!==i.sparse&&(r.push(this.getDependency("bufferView",i.sparse.indices.bufferView)),r.push(this.getDependency("bufferView",i.sparse.values.bufferView))),Promise.all(r).then(function(e){const r=e[0],a=Md[i.type],s=xd[i.componentType],o=s.BYTES_PER_ELEMENT,l=o*a,u=i.byteOffset||0,c=void 0!==i.bufferView?n.bufferViews[i.bufferView].byteStride:void 0,d=!0===i.normalized;let h,p;if(c&&c!==l){const e=Math.floor(u/c),n="InterleavedBuffer:"+i.bufferView+":"+i.componentType+":"+e+":"+i.count;let l=t.cache.get(n);l||(h=new s(r,e*c,i.count*c/o),l=new qs(h,c/o),t.cache.add(n,l)),p=new Ys(l,a,u%c/o,d)}else h=null===r?new s(i.count*a):new s(r,u,i.count*a),p=new ai(h,a,d);if(void 0!==i.sparse){const t=Md.SCALAR,n=xd[i.sparse.indices.componentType],o=i.sparse.indices.byteOffset||0,l=i.sparse.values.byteOffset||0,u=new n(e[1],o,i.sparse.count*t),c=new s(e[2],l,i.sparse.count*a);null!==r&&(p=new ai(p.array.slice(),p.itemSize,p.normalized));for(let e=0,t=u.length;e<t;e++){const t=u[e];if(p.setX(t,c[e*a]),a>=2&&p.setY(t,c[e*a+1]),a>=3&&p.setZ(t,c[e*a+2]),a>=4&&p.setW(t,c[e*a+3]),a>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return p})}loadTexture(e){const t=this.json,n=this.options,i=t.textures[e].source,r=t.images[i];let a=this.textureLoader;if(r.uri){const e=n.manager.getHandler(r.uri);null!==e&&(a=e)}return this.loadTextureImage(e,i,a)}loadTextureImage(e,t,n){const i=this,r=this.json,a=r.textures[e],s=r.images[t],o=(s.uri||s.bufferView)+":"+a.sampler;if(this.textureCache[o])return this.textureCache[o];const l=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||s.name||"",""===t.name&&"string"==typeof s.uri&&!1===s.uri.startsWith("data:image/")&&(t.name=s.uri);const n=(r.samplers||{})[a.sampler]||{};return t.magFilter=Cd[n.magFilter]||z,t.minFilter=Cd[n.minFilter]||V,t.wrapS=Id[n.wrapS]||B,t.wrapT=Id[n.wrapT]||B,i.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[o]=l,l}loadImageSource(e,t){const n=this,i=this.json,r=this.options;if(void 0!==this.sourceCache[e])return this.sourceCache[e].then(e=>e.clone());
vendor: 1,368 bytes, line 473
473const a=i.images[e],s=self.URL||self.webkitURL;let o=a.uri||"",l=!1;if(void 0!==a.bufferView)o=n.getDependency("bufferView",a.bufferView).then(function(e){l=!0;const t=new Blob([e],{type:a.mimeType});return o=s.createObjectURL(t),o});else if(void 0===a.uri)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(o).then(function(e){return new Promise(function(n,i){let a=n;!0===t.isImageBitmapLoader&&(a=function(e){const t=new wt(e);t.needsUpdate=!0,n(t)}),t.load(Nl.resolveURL(e,r.path),a,void 0,i)})}).then(function(e){var t;return!0===l&&s.revokeObjectURL(o),e.userData.mimeType=a.mimeType||((t=a.uri).search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/)?"image/jpeg":t.search(/\.webp($|\?)/i)>0||0===t.search(/^data\:image\/webp/)?"image/webp":"image/png"),e}).catch(function(e){throw console.error("THREE.GLTFLoader: Couldn't load texture",o),e});return this.sourceCache[e]=u,u}assignTexture(e,t,n,i){const r=this;return this.getDependency("texture",n.index).then(function(a){if(!a)return null;if(void 0!==n.texCoord&&n.texCoord>0&&((a=a.clone()).channel=n.texCoord),r.extensions[$c.KHR_TEXTURE_TRANSFORM]){const e=void 0!==n.extensions?n.extensions[$c.KHR_TEXTURE_TRANSFORM]:void 0;if(e){const t=r.associations.get(a);a=r.extensions[$c.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),r.associations.set(a,t)}}
vendor: 5,928 bytes, line 473
473return void 0!==i&&(a.colorSpace=i),e[t]=a,a})}assignFinalMaterial(e){const t=e.geometry;let n=e.material;const i=void 0===t.attributes.tangent,r=void 0!==t.attributes.color,a=void 0===t.attributes.normal;if(e.isPoints){const e="PointsMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new Po,Jn.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){const e="LineBasicMaterial:"+n.uuid;let t=this.cache.get(e);t||(t=new bo,Jn.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(i||r||a){let e="ClonedMaterial:"+n.uuid+":";i&&(e+="derivative-tangents:"),r&&(e+="vertex-colors:"),a&&(e+="flat-shading:");let t=this.cache.get(e);t||(t=n.clone(),r&&(t.vertexColors=!0),a&&(t.flatShading=!0),i&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return Go}loadMaterial(e){const t=this,n=this.json,i=this.extensions,r=n.materials[e];let a;const s={},o=[];if((r.extensions||{})[$c.KHR_MATERIALS_UNLIT]){const e=i[$c.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),o.push(e.extendParams(s,r,t))}else{const n=r.pbrMetallicRoughness||{};if(s.color=new Xn(1,1,1),s.opacity=1,Array.isArray(n.baseColorFactor)){const e=n.baseColorFactor;s.color.setRGB(e[0],e[1],e[2],Ee),s.opacity=e[3]}void 0!==n.baseColorTexture&&o.push(t.assignTexture(s,"map",n.baseColorTexture,we)),s.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,s.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(o.push(t.assignTexture(s,"metalnessMap",n.metallicRoughnessTexture)),o.push(t.assignTexture(s,"roughnessMap",n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),o.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,s)})))}!0===r.doubleSided&&(s.side=2);const l=r.alphaMode||Ld;if(l===Dd?(s.transparent=!0,s.depthWrite=!1):(s.transparent=!1,l===Bd&&(s.alphaTest=void 0!==r.alphaCutoff?r.alphaCutoff:.5)),void 0!==r.normalTexture&&a!==Zn&&(o.push(t.assignTexture(s,"normalMap",r.normalTexture)),s.normalScale=new tt(1,1),void 0!==r.normalTexture.scale)){const e=r.normalTexture.scale;s.normalScale.set(e,e)}if(void 0!==r.occlusionTexture&&a!==Zn&&(o.push(t.assignTexture(s,"aoMap",r.occlusionTexture)),void 0!==r.occlusionTexture.strength&&(s.aoMapIntensity=r.occlusionTexture.strength)),void 0!==r.emissiveFactor&&a!==Zn){const e=r.emissiveFactor;s.emissive=(new Xn).setRGB(e[0],e[1],e[2],Ee)}return void 0!==r.emissiveTexture&&a!==Zn&&o.push(t.assignTexture(s,"emissiveMap",r.emissiveTexture,we)),Promise.all(o).then(function(){const n=new a(s);return r.name&&(n.name=r.name),Ud(n,r),t.associations.set(n,{materials:e}),r.extensions&&Od(i,n,r),n})}createUniqueName(e){const t=jl.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,n=this.extensions,i=this.primitiveCache;function r(e){return n[$c.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return jd(n,e,t)})}const a=[];for(let n=0,s=e.length;n<s;n++){const s=e[n],o=zd(s),l=i[o];if(l)a.push(l.promise);else{let e;e=s.extensions&&s.extensions[$c.KHR_DRACO_MESH_COMPRESSION]?r(s):jd(new gi,s,t),i[o]={primitive:s,promise:e},a.push(e)}}return Promise.all(a)}loadMesh(e){const t=this,n=this.json,i=this.extensions,r=n.meshes[e],a=r.primitives,s=[];for(let e=0,t=a.length;e<t;e++){const t=void 0===a[e].material?Nd(this.cache):this.getDependency("material",a[e].material);s.push(t)}return s.push(t.loadGeometries(a)),Promise.all(s).then(function(n){const s=n.slice(0,n.length-1),o=n[n.length-1],l=[];for(let n=0,u=o.length;n<u;n++){const u=o[n],c=a[n];let d;const h=s[n];if(c.mode===Td.TRIANGLES||c.mode===Td.TRIANGLE_STRIP||c.mode===Td.TRIANGLE_FAN||void 0===c.mode)d=!0===r.isSkinnedMesh?new ro(u,h):new Bi(u,h),!0===d.isSkinnedMesh&&d.normalizeSkinWeights(),c.mode===Td.TRIANGLE_STRIP?d.geometry=Yc(d.geometry,1):c.mode===Td.TRIANGLE_FAN&&(d.geometry=Yc(d.geometry,2));else if(c.mode===Td.LINES)d=new Mo(u,h);else if(c.mode===Td.LINE_STRIP)d=new xo(u,h);else if(c.mode===Td.LINE_LOOP)d=new ko(u,h);else{if(c.mode!==Td.POINTS)throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+c.mode);d=new No(u,h)}Object.keys(d.geometry.morphAttributes).length>0&&Fd(d,r),d.name=t.createUniqueName(r.name||"mesh_"+e),Ud(d,r),c.extensions&&Od(i,d,c),t.assignFinalMaterial(d),l.push(d)}for(let n=0,i=l.length;n<i;n++)t.associations.set(l[n],{meshes:e,primitives:n});if(1===l.length)return r.extensions&&Od(i,l[0],r),l[0];const u=new Ds;r.extensions&&Od(i,u,r),t.associations.set(u,{meshes:e});for(let e=0,t=l.length;e<t;e++)u.add(l[e]);return u})}loadCamera(e){let t;const n=this.json.cameras[e],i=n[n.type];if(i)return"perspective"===n.type?t=new qi(et.radToDeg(i.yfov),i.aspectRatio||1,i.znear||1,i.zfar||2e6):"orthographic"===n.type&&(t=new yr(-i.xmag,i.xmag,i.ymag,-i.ymag,i.znear,i.zfar)),n.name&&(t.name=this.createUniqueName(n.name)),Ud(t,n),Promise.resolve(t);console.warn("THREE.GLTFLoader: Missing camera parameters.")}loadSkin(e){const t=this.json.skins[e],n=[];for(let e=0,i=t.joints.length;e<i;e++)n.push(this._loadNodeShallow(t.joints[e]));return void 0!==t.inverseBindMatrices?n.push(this.getDependency("accessor",t.inverseBindMatrices)):n.push(null),Promise.all(n).then(function(e){const n=e.pop(),i=e,r=[],a=[];for(let e=0,s=i.length;e<s;e++){const s=i[e];if(s){r.push(s);const t=new sn;null!==n&&t.fromArray(n.array,16*e),a.push(t)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',t.joints[e])}return new uo(r,a)})}loadAnimation(e){const t=this.json,n=this,i=t.animations[e],r=i.name?i.name:"animation_"+e,a=[],s=[],o=[],l=[],u=[];for(let e=0,t=i.channels.length;e<t;
vendor: 10,075 bytes, line 473
473e++){const t=i.channels[e],n=i.samplers[t.sampler],r=t.target,c=r.node,d=void 0!==i.parameters?i.parameters[n.input]:n.input,h=void 0!==i.parameters?i.parameters[n.output]:n.output;void 0!==r.node&&(a.push(this.getDependency("node",c)),s.push(this.getDependency("accessor",d)),o.push(this.getDependency("accessor",h)),l.push(n),u.push(r))}return Promise.all([Promise.all(a),Promise.all(s),Promise.all(o),Promise.all(l),Promise.all(u)]).then(function(e){const t=e[0],i=e[1],a=e[2],s=e[3],o=e[4],l=[];for(let e=0,r=t.length;e<r;e++){const r=t[e],u=i[e],c=a[e],d=s[e],h=o[e];if(void 0===r)continue;r.updateMatrix&&r.updateMatrix();const p=n._createAnimationTracks(r,u,c,d,h);if(p)for(let e=0;e<p.length;e++)l.push(p[e])}return new ll(r,void 0,l)})}createNodeMesh(e){const t=this.json,n=this,i=t.nodes[e];return void 0===i.mesh?null:n.getDependency("mesh",i.mesh).then(function(e){const t=n._getNodeRef(n.meshCache,i.mesh,e);return void 0!==i.weights&&t.traverse(function(e){if(e.isMesh)for(let t=0,n=i.weights.length;t<n;t++)e.morphTargetInfluences[t]=i.weights[t]}),t})}loadNode(e){const t=this,n=this.json.nodes[e],i=t._loadNodeShallow(e),r=[],a=n.children||[];for(let e=0,n=a.length;e<n;e++)r.push(t.getDependency("node",a[e]));const s=void 0===n.skin?Promise.resolve(null):t.getDependency("skin",n.skin);return Promise.all([i,Promise.all(r),s]).then(function(e){const t=e[0],n=e[1],i=e[2];null!==i&&t.traverse(function(e){e.isSkinnedMesh&&e.bind(i,Hd)});for(let e=0,i=n.length;e<i;e++)t.add(n[e]);return t})}_loadNodeShallow(e){const t=this.json,n=this.extensions,i=this;if(void 0!==this.nodeCache[e])return this.nodeCache[e];const r=t.nodes[e],a=r.name?i.createUniqueName(r.name):"",s=[],o=i._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return o&&s.push(o),void 0!==r.camera&&s.push(i.getDependency("camera",r.camera).then(function(e){return i._getNodeRef(i.cameraCache,r.camera,e)})),i._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){s.push(e)}),this.nodeCache[e]=Promise.all(s).then(function(t){let s;if(s=!0===r.isBone?new ao:t.length>1?new Ds:1===t.length?t[0]:new Ln,s!==t[0])for(let e=0,n=t.length;e<n;e++)s.add(t[e]);if(r.name&&(s.userData.name=r.name,s.name=a),Ud(s,r),r.extensions&&Od(n,s,r),void 0!==r.matrix){const e=new sn;e.fromArray(r.matrix),s.applyMatrix4(e)}else void 0!==r.translation&&s.position.fromArray(r.translation),void 0!==r.rotation&&s.quaternion.fromArray(r.rotation),void 0!==r.scale&&s.scale.fromArray(r.scale);return i.associations.has(s)||i.associations.set(s,{}),i.associations.get(s).nodes=e,s}),this.nodeCache[e]}loadScene(e){const t=this.extensions,n=this.json.scenes[e],i=this,r=new Ds;n.name&&(r.name=i.createUniqueName(n.name)),Ud(r,n),n.extensions&&Od(t,r,n);const a=n.nodes||[],s=[];for(let e=0,t=a.length;e<t;e++)s.push(i.getDependency("node",a[e]));return Promise.all(s).then(function(e){for(let t=0,n=e.length;t<n;t++)r.add(e[t]);return i.associations=(e=>{const t=new Map;for(const[e,n]of i.associations)(e instanceof Jn||e instanceof wt)&&t.set(e,n);return e.traverse(e=>{const n=i.associations.get(e);null!=n&&t.set(e,n)}),t})(r),r})}_createAnimationTracks(e,t,n,i,r){const a=[],s=e.name?e.name:e.uuid,o=[];let l;switch(Pd[r.path]===Pd.weights?e.traverse(function(e){e.morphTargetInfluences&&o.push(e.name?e.name:e.uuid)}):o.push(s),Pd[r.path]){case Pd.weights:l=il;break;case Pd.rotation:l=al;break;case Pd.position:case Pd.scale:l=ol;break;default:if(1===n.itemSize)l=il;else l=ol}const u=void 0!==i.interpolation?Rd[i.interpolation]:me,c=this._getArrayFromAccessor(n);for(let e=0,n=o.length;e<n;e++){const n=new l(o[e]+"."+Pd[r.path],t.array,c,u);"CUBICSPLINE"===i.interpolation&&this._createCubicSplineTrackInterpolant(n),a.push(n)}return a}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const e=Vd(t.constructor),n=new Float32Array(t.length);for(let i=0,r=t.length;i<r;i++)n[i]=t[i]*e;t=n}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(e){return new(this instanceof al?Sd:wd)(this.times,this.values,this.getValueSize()/3,e)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function jd(e,t,n){const i=t.attributes,r=[];function a(t,i){return n.getDependency("accessor",t).then(function(t){e.setAttribute(i,t)})}for(const t in i){const n=kd[t]||t.toLowerCase();n in e.attributes||r.push(a(i[t],n))}if(void 0!==t.indices&&!e.index){const i=n.getDependency("accessor",t.indices).then(function(t){e.setIndex(t)});r.push(i)}return pt.workingColorSpace!==Ee&&"COLOR_0"in i&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${pt.workingColorSpace}" not supported.`),Ud(e,t),function(e,t,n){const i=t.attributes,r=new Rt;if(void 0===i.POSITION)return;{const e=n.json.accessors[i.POSITION],t=e.min,a=e.max;if(void 0===t||void 0===a)return void console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");if(r.set(new Mt(t[0],t[1],t[2]),new Mt(a[0],a[1],a[2])),e.normalized){const t=Vd(xd[e.componentType]);r.min.multiplyScalar(t),r.max.multiplyScalar(t)}}const a=t.targets;if(void 0!==a){const e=new Mt,t=new Mt;for(let i=0,r=a.length;i<r;i++){const r=a[i];if(void 0!==r.POSITION){const i=n.json.accessors[r.POSITION],a=i.min,s=i.max;if(void 0!==a&&void 0!==s){if(t.setX(Math.max(Math.abs(a[0]),Math.abs(s[0]))),t.setY(Math.max(Math.abs(a[1]),Math.abs(s[1]))),t.setZ(Math.max(Math.abs(a[2]),Math.abs(s[2]))),i.normalized){const e=Vd(xd[i.componentType]);t.multiplyScalar(e)}e.max(t)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}r.expandByVector(e)}e.boundingBox=r;const s=new Kt;r.getCenter(s.center),s.radius=r.min.distanceTo(r.max)/2,e.boundingSphere=s}(e,t,n),Promise.all(r).then(function(){return void 0!==t.targets?function(e,t,n){let i=!1,r=!1,a=!1;for(let e=0,n=t.length;e<n;e++){const n=t[e];if(void 0!==n.POSITION&&(i=!0),void 0!==n.NORMAL&&(r=!0),void 0!==n.COLOR_0&&(a=!0),i&&r&&a)break}if(!i&&!r&&!a)return Promise.resolve(e);const s=[],o=[],l=[];for(let u=0,c=t.length;u<c;u++){const c=t[u];if(i){const t=void 0!==c.POSITION?n.getDependency("accessor",c.POSITION):e.attributes.position;s.push(t)}if(r){const t=void 0!==c.NORMAL?n.getDependency("accessor",c.NORMAL):e.attributes.normal;o.push(t)}if(a){const t=void 0!==c.COLOR_0?n.getDependency("accessor",c.COLOR_0):e.attributes.color;l.push(t)}}return Promise.all([Promise.all(s),Promise.all(o),Promise.all(l)]).then(function(t){const n=t[0],s=t[1],o=t[2];return i&&(e.morphAttributes.position=n),r&&(e.morphAttributes.normal=s),a&&(e.morphAttributes.color=o),e.morphTargetsRelative=!0,e})}(e,t.targets,n):e})}class qd{constructor(e=4){this.pool=e,this.queue=[],this.workers=[],this.workersResolve=[],this.workerStatus=0}_initWorker(e){if(!this.workers[e]){const t=this.workerCreator();t.addEventListener("message",this._onMessage.bind(this,e)),this.workers[e]=t}}_getIdleWorker(){for(let e=0;e<this.pool;e++)if(!(this.workerStatus&1<<e))return e;return-1}_onMessage(e,t){const n=this.workersResolve[e];if(n&&n(t),this.queue.length){const{resolve:t,msg:n,transfer:i}=this.queue.shift();this.workersResolve[e]=t,this.workers[e].postMessage(n,i)}else this.workerStatus^=1<<e}setWorkerCreator(e){this.workerCreator=e}setWorkerLimit(e){this.pool=e}postMessage(e,t){return new Promise(n=>{const i=this._getIdleWorker();-1!==i?(this._initWorker(i),this.workerStatus|=1<<i,this.workersResolve[i]=n,this.workers[i].postMessage(e,t)):this.queue.push({resolve:n,msg:e,transfer:t})})}dispose(){this.workers.forEach(e=>e.terminate()),this.workersResolve.length=0,this.workers.length=0,this.queue.length=0,this.workerStatus=0}}const Wd=9,Yd=15,Xd=16,Kd=22,$d=37,Jd=43,Zd=76,eh=83,th=97,nh=100,ih=103,rh=109,ah=165,sh=166;class oh{constructor(){this.vkFormat=0,this.typeSize=1,this.pixelWidth=0,this.pixelHeight=0,this.pixelDepth=0,this.layerCount=0,this.faceCount=1,this.supercompressionScheme=0,this.levels=[],this.dataFormatDescriptor=[{vendorId:0,descriptorType:0,descriptorBlockSize:0,versionNumber:2,colorModel:0,colorPrimaries:1,transferFunction:2,flags:0,texelBlockDimension:[0,0,0,0],bytesPlane:[0,0,0,0,0,0,0,0],samples:[]}],this.keyValue={},this.globalData=null}}class lh{constructor(e,t,n,i){this._dataView=new DataView(e.buffer,e.byteOffset+t,n),this._littleEndian=i,this._offset=0}_nextUint8(){const e=this._dataView.getUint8(this._offset);return this._offset+=1,e}_nextUint16(){const e=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,e}_nextUint32(){const e=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,e}_nextUint64(){const e=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,e}_nextInt32(){const e=this._dataView.getInt32(this._offset,this._littleEndian);return this._offset+=4,e}_skip(e){return this._offset+=e,this}_scan(e,t=0){const n=this._offset;let i=0;for(;this._dataView.getUint8(this._offset)!==t&&i<e;)i++,this._offset++;return i<e&&this._offset++,new Uint8Array(this._dataView.buffer,this._dataView.byteOffset+n,i)}}const uh=[171,75,84,88,32,50,48,187,13,10,26,10];function ch(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Buffer.from(e).toString("utf8")}let dh,hh,ph;const fh={env:{emscripten_notify_memory_growth:function(e){ph=new Uint8Array(hh.exports.memory.buffer)}}};class mh{init(){return dh||(dh="undefined"!=typeof fetch?fetch("data:application/wasm;base64,"+gh).then(e=>e.arrayBuffer()).then(e=>WebAssembly.instantiate(e,fh)).then(this._init):WebAssembly.instantiate(Buffer.from(gh,"base64"),fh).then(this._init),dh)}_init(e){hh=e.instance,fh.env.emscripten_notify_memory_growth(0)}decode(e,t=0){if(!hh)throw new Error("ZSTDDecoder: Await .init() before decoding.");const n=e.byteLength,i=hh.exports.malloc(n);ph.set(e,i),t=t||Number(hh.exports.ZSTD_findDecompressedSize(i,n));const r=hh.exports.malloc(t),a=hh.exports.ZSTD_decompress(r,t,i,n),s=ph.slice(r,r+a);return hh.exports.free(i),hh.exports.free(r),s}}const gh
vendor: 38,980 bytes, line 473
473="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gAABgBX9/f39/AGAGf39/f39/AGAIf39/f39/f38AYAl/f39/f39/f38AYAABf2AIf39/f39/f38Bf2ANf39/f39/f39/f39/fwF/YAF/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgAgv3AQECfyACRQRAIABCADcCACAAQQA2AhAgAEIANwIIQbh/DwsgACABNgIMIAAgAUEEajYCECACQQRPBEAgACABIAJqIgFBfGoiAzYCCCAAIAMoAAA2AgAgAUF/ai0AACIBBEAgAEEIIAEQFGs2AgQgAg8LIABBADYCBEF/DwsgACABNgIIIAAgAS0AACIDNgIAIAJBfmoiBEEBTQRAIARBAWtFBEAgACABLQACQRB0IANyIgM2AgALIAAgAS0AAUEIdCADajYCAAsgASACakF/ai0AACIBRQRAIABBADYCBEFsDwsgAEEoIAEQFCACQQN0ams2AgQgAgsWACAAIAEpAAA3AAAgACABKQAINwAICy8BAX8gAUECdEGgHWooAgAgACgCAEEgIAEgACgCBGprQR9xdnEhAiAAIAEQASACCyEAIAFCz9bTvtLHq9lCfiAAfEIfiUKHla+vmLbem55/fgsdAQF/IAAoAgggACgCDEYEfyAAKAIEQSBGBUEACwuCBAEDfyACQYDAAE8EQCAAIAEgAhBnIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAkEBSARAIAAhAgwBCyAAQQNxRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADTw0BIAJBA3ENAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgA0F8aiIEIABJBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsMACAAIAEpAAA3AAALQQECfyAAKAIIIgEgACgCEEkEQEEDDwsgACAAKAIEIgJBB3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQhBSAGQQR2IQRBICAAdCIAQQFyIQkgASgCACEPQQAhAiADIQYCQANAIAlBAkggAiAPS3JFBEAgAiEHAkAgCARAA0AgBEH//wNxQf//A0YEQCAHQRhqIQcgBiAQSQR/IAZBAmoiBigAACAFdgUgBUEQaiEFIARBEHYLIQQMAQsLA0AgBEEDcSIIQQNGBEAgBUECaiEFIARBAnYhBCAHQQNqIQcMAQsLIAcgCGoiByAPSw0EIAVBAmohBQNAIAIgB0kEQCANIAJBAXRqQQA7AQAgAkEBaiECDAELCyAGIA5LQQAgBiAFQQN1aiIHIAxLG0UEQCAHKAAAIAVBB3EiBXYhBAwCCyAEQQJ2IQQLIAYhBwsCfyALQX9qIAQgAEF/anEiBiAAQQF0QX9qIgggCWsiEUkNABogBCAIcSIEQQAgESAEIABIG2shBiALCyEIIA0gAkEBdGogBkF/aiIEOwEAIAlBASAGayAEIAZBAUgbayEJA0AgCSAASARAIABBAXUhACALQX9qIQsMAQsLAn8gByAOS0EAIAcgBSAIaiIFQQN1aiIGIAxLG0UEQCAFQQdxDAELIAUgDCIGIAdrQQN0awshBSACQQFqIQIgBEUhCCAGKAAAIAVBH3F2IQQMAQsLQWwgCUEBRyAFQSBKcg0BGiABIAJBf2o2AgAgBiAFQQdqQQN1aiADawwBC0FQCyEAIApBEGokACAACwkAQQFBBSAAGwsMACAAIAEoAAA2AAALqgMBCn8jAEHwAGsiCiQAIAJBAWohDiAAQQhqIQtBgIAEIAVBf2p0QRB1IQxBACECQQEhBkEBIAV0IglBf2oiDyEIA0AgAiAORkUEQAJAIAEgAkEBdCINai8BACIHQf//A0YEQCALIAhBA3RqIAI2AgQgCEF/aiEIQQEhBwwBCyAGQQAgDCAHQRB0QRB1ShshBgsgCiANaiAHOwEAIAJBAWohAgwBCwsgACAFNgIEIAAgBjYCACAJQQN2IAlBAXZqQQNqIQxBACEAQQAhBkEAIQIDQCAGIA5GBEADQAJAIAAgCUYNACAKIAsgAEEDdGoiASgCBCIGQQF0aiICIAIvAQAiAkEBajsBACABIAUgAhAUayIIOgADIAEgAiAIQf8BcXQgCWs7AQAgASAEIAZBAnQiAmooAgA6AAIgASACIANqKAIANgIEIABBAWohAAwBCwsFIAEgBkEBdGouAQAhDUEAIQcDQCAHIA1ORQRAIAsgAkEDdGogBjYCBANAIAIgDGogD3EiAiAISw0ACyAHQQFqIQcMAQsLIAZBAWohBgwBCwsgCkHwAGokAAsjAEIAIAEQCSAAhUKHla+vmLbem55/fkLj3MqV/M7y9YV/fAsQACAAQn43AwggACABNgIACyQBAX8gAARAIAEoAgQiAgRAIAEoAgggACACEQEADwsgABAmCwsfACAAIAEgAi8BABAINgIAIAEQBBogACACQQRqNgIEC0oBAX9BoCAoAgAiASAAaiIAQX9MBEBBiCBBMDYCAEF/DwsCQCAAPwBBEHRNDQAgABBmDQBBiCBBMDYCAEF/DwtBoCAgADYCACABC9cBAQh/Qbp/IQoCQCACKAIEIgggAigCACIJaiIOIAEgAGtLDQBBbCEKIAkgBCADKAIAIgtrSw0AIAAgCWoiBCACKAIIIgxrIQ0gACABQWBqIg8gCyAJQQAQKSADIAkgC2o2AgACQAJAIAwgBCAFa00EQCANIQUMAQsgDCAEIAZrSw0CIAcgDSAFayIAaiIBIAhqIAdNBEAgBCABIAgQDxoMAgsgBCABQQAgAGsQDyEBIAIgACAIaiIINgIEIAEgAGshBAsgBCAPIAUgCEEBECkLIA4hCgsgCgubAgEBfyMAQYABayINJAAgDSADNgJ8AkAgAkEDSwRAQX8hCQwBCwJAAkACQAJAIAJBAWsOAwADAgELIAZFBEBBuH8hCQwEC0FsIQkgBS0AACICIANLDQMgACAHIAJBAnQiAmooAgAgAiAIaigCABA7IAEgADYCAEEBIQkMAwsgASAJNgIAQQAhCQwCCyAKRQRAQWwhCQwCC0EAIQkgC0UgDEEZSHINAUEIIAR0QQhqIQBBACECA0AgAiAATw0CIAJBQGshAgwAAAsAC0FsIQkgDSANQfwAaiANQfgAaiAFIAYQFSICEAMNACANKAJ4IgMgBEsNACAAIA0gDSgCfCAHIAggAxAYIAEgADYCACACIQkLIA1BgAFqJAAgCQsLACAAIAEgAhALGgsQACAALwAAIAAtAAJBEHRyCy8AAn9BuH8gAUEISQ0AGkFyIAAoAAQiAEF3Sw0AGkG4fyAAQQhqIgAgACABSxsLCwkAIAAgATsAAAsDAAELigYBBX8gACAAKAIAIgVBfnE2AgBBACAAIAVBAXZqQYQgKAIAIgQgAEYbIQECQAJAIAAoAgQiAkUNACACKAIAIgNBAXENACACQQhqIgUgA0EBdkF4aiIDQQggA0EISxtnQR9zQQJ0QYAfaiIDKAIARgRAIAMgAigCDDYCAAsgAigCCCIDBEAgAyACKAIMNgIECyACKAIMIgMEQCADIAIoAgg2AgALIAIgAigCACAAKAIAQX5xajYCAEGEICEAAkACQCABRQ0AIAEgAjYCBCABKAIAIgNBAXENASADQQF2QXhqIgNBCCADQQhLG2dBH3NBAnRBgB9qIgMoAgAgAUEIakYEQCADIAEoAgw2AgALIAEoAggiAwRAIAMgASgCDDYCBAsgASgCDCIDBEAgAyABKAIINgIAQYQgKAIAIQQLIAIgAigCACABKAIAQX5xajYCACABIARGDQAgASABKAIAQQF2akEEaiEACyAAIAI2AgALIAIoAgBBAXZBeGoiAEEIIABBCEsbZ0Efc0ECdEGAH2oiASgCACEAIAEgBTYCACACIAA2AgwgAkEANgIIIABFDQEgACAFNgIADwsCQCABRQ0AIAEoAgAiAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAigCACABQQhqRgRAIAIgASgCDDYCAAsgASgCCCICBEAgAiABKAIMNgIECyABKAIMIgIEQCACIAEoAgg2AgBBhCAoAgAhBAsgACAAKAIAIAEoAgBBfnFqIgI2AgACQCABIARHBEAgASABKAIAQQF2aiAANgIEIAAoAgAhAgwBC0GEICAANgIACyACQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgIoAgAhASACIABBCGoiAjYCACAAIAE2AgwgAEEANgIIIAFFDQEgASACNgIADwsgBUEBdkF4aiIBQQggAUEISxtnQR9zQQJ0QYAfaiICKAIAIQEgAiAAQQhqIgI2AgAgACABNgIMIABBADYCCCABRQ0AIAEgAjYCAAsLDgAgAARAIABBeGoQJQsLgAIBA38CQCAAQQ9qQXhxQYQgKAIAKAIAQQF2ayICEB1Bf0YNAAJAQYQgKAIAIgAoAgAiAUEBcQ0AIAFBAXZBeGoiAUEIIAFBCEsbZ0Efc0ECdEGAH2oiASgCACAAQQhqRgRAIAEgACgCDDYCAAsgACgCCCIBBEAgASAAKAIMNgIECyAAKAIMIgFFDQAgASAAKAIINgIAC0EBIQEgACAAKAIAIAJBAXRqIgI2AgAgAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAygCACECIAMgAEEIaiIDNgIAIAAgAjYCDCAAQQA2AgggAkUNACACIAM2AgALIAELtwIBA38CQAJAIABBASAAGyICEDgiAA0AAkACQEGEICgCACIARQ0AIAAoAgAiA0EBcQ0AIAAgA0EBcjYCACADQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgAgAEEIakYEQCABIAAoAgw2AgALIAAoAggiAQRAIAEgACgCDDYCBAsgACgCDCIBBEAgASAAKAIINgIACyACECchAkEAIQFBhCAoAgAhACACDQEgACAAKAIAQX5xNgIAQQAPCyACQQ9qQXhxIgMQHSICQX9GDQIgAkEHakF4cSIAIAJHBEAgACACaxAdQX9GDQMLAkBBhCAoAgAiAUUEQEGAICAANgIADAELIAAgATYCBAtBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigCACACaiAAQQZ2IgFBAnRBsB5qKAIAaiAAQSBxIgBFaiABRSAAQQV2cWoFQbh/CwsdACAAKAKQ4gEQWiAAQQA2AqDiASAAQgA3A5DiAQu1AwEFfyMAQZACayIKJABBuH8hBgJAIAVFDQAgBCwAACIIQf8BcSEHAkAgCEF/TARAIAdBgn9qQQF2IgggBU8NAkFsIQYgB0GBf2oiBUGAAk8NAiAEQQFqIQdBACEGA0AgBiAFTwRAIAUhBiAIIQcMAwUgACAGaiAHIAZBAXZqIgQtAABBBHY6AAAgACAGQQFyaiAELQAAQQ9xOgAAIAZBAmohBgwBCwAACwALIAcgBU8NASAAIARBAWogByAKEFMiBhADDQELIAYhBEEAIQYgAUEAQTQQECEJQQAhBQNAIAQgBkcEQCAAIAZqIggtAAAiAUELSwRAQWwhBgwDBSAJIAFBAnRqIgEgASgCAEEBajYCACAGQQFqIQZBASAILQAAdEEBdSAFaiEFDAILAAsLQWwhBiAFRQ0AIAUQFEEBaiIBQQxLDQAgAyABNgIAQQFBASABdCAFayIDEBQiAXQgA0cNACAAIARqIAFBAWoiADoAACAJIABBAnRqIgAgACgCAEEBajYCACAJKAIEIgBBAkkgAEEBcXINACACIARBAWo2AgAgB0EBaiEGCyAKQZACaiQAIAYLxhEBDH8jAEHwAGsiBSQAQWwhCwJAIANBCkkNACACLwAAIQogAi8AAiEJIAIvAAQhByAFQQhqIAQQDgJAIAMgByAJIApqakEGaiIMSQ0AIAUtAAohCCAFQdgAaiACQQZqIgIgChAGIgsQAw0BIAVBQGsgAiAKaiICIAkQBiILEAMNASAFQShqIAIgCWoiAiAHEAYiCxADDQEgBUEQaiACIAdqIAMgDGsQBiILEAMNASAAIAFqIg9BfWohECAEQQRqIQZBASELIAAgAUEDakECdiIDaiIMIANqIgIgA2oiDiEDIAIhBCAMIQcDQCALIAMgEElxBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgCS0AAyELIAcgBiAFQUBrIAgQAkECdGoiCS8BADsAACAFQUBrIAktAAIQASAJLQADIQogBCAGIAVBKGogCBACQQJ0aiIJLwEAOwAAIAVBKGogCS0AAhABIAktAAMhCSADIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgDS0AAyENIAAgC2oiCyAGIAVB2ABqIAgQAkECdGoiAC8BADsAACAFQdgAaiAALQACEAEgAC0AAyEAIAcgCmoiCiAGIAVBQGsgCBACQQJ0aiIHLwEAOwAAIAVBQGsgBy0AAhABIActAAMhByAEIAlqIgkgBiAFQShqIAgQAkECdGoiBC8BADsAACAFQShqIAQtAAIQASAELQADIQQgAyANaiIDIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgACALaiEAIAcgCmohByAEIAlqIQQgAyANLQADaiEDIAVB2ABqEA0gBUFAaxANciAFQShqEA1yIAVBEGoQDXJFIQsMAQsLIAQgDksgByACS3INAEFsIQsgACAMSw0BIAxBfWohCQNAQQAgACAJSSAFQdgAahAEGwRAIAAgBiAFQdgAaiAIEAJBAnRqIgovAQA7AAAgBUHYAGogCi0AAhABIAAgCi0AA2oiACAGIAVB2ABqIAgQAkECdGoiCi8BADsAACAFQdgAaiAKLQACEAEgACAKLQADaiEADAEFIAxBfmohCgNAIAVB2ABqEAQgACAKS3JFBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgACAJLQADaiEADAELCwNAIAAgCk0EQCAAIAYgBUHYAGogCBACQQJ0aiIJLwEAOwAAIAVB2ABqIAktAAIQASAAIAktAANqIQAMAQsLAkAgACAMTw0AIAAgBiAFQdgAaiAIEAIiAEECdGoiDC0AADoAACAMLQADQQFGBEAgBUHYAGogDC0AAhABDAELIAUoAlxBH0sNACAFQdgAaiAGIABBAnRqLQACEAEgBSgCXEEhSQ0AIAVBIDYCXAsgAkF9aiEMA0BBACAHIAxJIAVBQGsQBBsEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiIAIAYgBUFAayAIEAJBAnRqIgcvAQA7AAAgBUFAayAHLQACEAEgACAHLQADaiEHDAEFIAJBfmohDANAIAVBQGsQBCAHIAxLckUEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwNAIAcgDE0EQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwJAIAcgAk8NACAHIAYgBUFAayAIEAIiAEECdGoiAi0AADoAACACLQADQQFGBEAgBUFAayACLQACEAEMAQsgBSgCREEfSw0AIAVBQGsgBiAAQQJ0ai0AAhABIAUoAkRBIUkNACAFQSA2AkQLIA5BfWohAgNAQQAgBCACSSAFQShqEAQbBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2oiACAGIAVBKGogCBACQQJ0aiIELwEAOwAAIAVBKGogBC0AAhABIAAgBC0AA2ohBAwBBSAOQX5qIQIDQCAFQShqEAQgBCACS3JFBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsDQCAEIAJNBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsCQCAEIA5PDQAgBCAGIAVBKGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBKGogAi0AAhABDAELIAUoAixBH0sNACAFQShqIAYgAEECdGotAAIQASAFKAIsQSFJDQAgBUEgNgIsCwNAQQAgAyAQSSAFQRBqEAQbBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2oiACAGIAVBEGogCBACQQJ0aiICLwEAOwAAIAVBEGogAi0AAhABIAAgAi0AA2ohAwwBBSAPQX5qIQIDQCAFQRBqEAQgAyACS3JFBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsDQCADIAJNBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsCQCADIA9PDQAgAyAGIAVBEGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBEGogAi0AAhABDAELIAUoAhRBH0sNACAFQRBqIAYgAEECdGotAAIQASAFKAIUQSFJDQAgBUEgNgIUCyABQWwgBUHYAGoQCiAFQUBrEApxIAVBKGoQCnEgBUEQahAKcRshCwwJCwAACwALAAALAAsAAAsACwAACwALQWwhCwsgBUHwAGokACALC7UEAQ5/IwBBEGsiBiQAIAZBBGogABAOQVQhBQJAIARB3AtJDQAgBi0ABCEHIANB8ARqQQBB7AAQECEIIAdBDEsNACADQdwJaiIJIAggBkEIaiAGQQxqIAEgAhAxIhAQA0UEQCAGKAIMIgQgB0sNASADQdwFaiEPIANBpAVqIREgAEEEaiESIANBqAVqIQEgBCEFA0AgBSICQX9qIQUgCCACQQJ0aigCAEUNAAsgAkEBaiEOQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgASALaiAKNgIAIAVBAWohBSAKIAxqIQoMAQsLIAEgCjYCAEEAIQUgBigCCCELA0AgBSALRkUEQCABIAUgCWotAAAiDEECdGoiDSANKAIAIg1BAWo2AgAgDyANQQF0aiINIAw6AAEgDSAFOgAAIAVBAWohBQwBCwtBACEBIANBADYCqAUgBEF/cyAHaiEJQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgAyALaiABNgIAIAwgBSAJanQgAWohASAFQQFqIQUMAQsLIAcgBEEBaiIBIAJrIgRrQQFqIQgDQEEBIQUgBCAIT0UEQANAIAUgDk9FBEAgBUECdCIJIAMgBEE0bGpqIAMgCWooAgAgBHY2AgAgBUEBaiEFDAELCyAEQQFqIQQMAQsLIBIgByAPIAogESADIAIgARBkIAZBAToABSAGIAc6AAYgACAGKAIENgIACyAQIQULIAZBEGokACAFC8ENAQt/IwBB8ABrIgUkAEFsIQkCQCADQQpJDQAgAi8AACEKIAIvAAIhDCACLwAEIQYgBUEIaiAEEA4CQCADIAYgCiAMampBBmoiDUkNACAFLQAKIQcgBUHYAGogAkEGaiICIAoQBiIJEAMNASAFQUBrIAIgCmoiAiAMEAYiCRADDQEgBUEoaiACIAxqIgIgBhAGIgkQAw0BIAVBEGogAiAGaiADIA1rEAYiCRADDQEgACABaiIOQX1qIQ8gBEEEaiEGQQEhCSAAIAFBA2pBAnYiAmoiCiACaiIMIAJqIg0hAyAMIQQgCiECA0AgCSADIA9JcQRAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAACAGIAVBQGsgBxACQQF0aiIILQAAIQsgBUFAayAILQABEAEgAiALOgAAIAYgBUEoaiAHEAJBAXRqIggtAAAhCyAFQShqIAgtAAEQASAEIAs6AAAgBiAFQRBqIAcQAkEBdGoiCC0AACELIAVBEGogCC0AARABIAMgCzoAACAGIAVB2ABqIAcQAkEBdGoiCC0AACELIAVB2ABqIAgtAAEQASAAIAs6AAEgBiAFQUBrIAcQAkEBdGoiCC0AACELIAVBQGsgCC0AARABIAIgCzoAASAGIAVBKGogBxACQQF0aiIILQAAIQsgBUEoaiAILQABEAEgBCALOgABIAYgBUEQaiAHEAJBAXRqIggtAAAhCyAFQRBqIAgtAAEQASADIAs6AAEgA0ECaiEDIARBAmohBCACQQJqIQIgAEECaiEAIAkgBUHYAGoQDUVxIAVBQGsQDUVxIAVBKGoQDUVxIAVBEGoQDUVxIQkMAQsLIAQgDUsgAiAMS3INAEFsIQkgACAKSw0BIApBfWohCQNAIAVB2ABqEAQgACAJT3JFBEAgBiAFQdgAaiAHEAJBAXRqIggtAAAhCyAFQdgAaiAILQABEAEgACALOgAAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAASAAQQJqIQAMAQsLA0AgBUHYAGoQBCAAIApPckUEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCwNAIAAgCkkEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCyAMQX1qIQADQCAFQUBrEAQgAiAAT3JFBEAgBiAFQUBrIAcQAkEBdGoiCi0AACEJIAVBQGsgCi0AARABIAIgCToAACAGIAVBQGsgBxACQQF0aiIKLQAAIQkgBUFAayAKLQABEAEgAiAJOgABIAJBAmohAgwBCwsDQCAFQUBrEAQgAiAMT3JFBEAgBiAFQUBrIAcQAkEBdGoiAC0AACEKIAVBQGsgAC0AARABIAIgCjoAACACQQFqIQIMAQsLA0AgAiAMSQRAIAYgBUFAayAHEAJBAXRqIgAtAAAhCiAFQUBrIAAtAAEQASACIAo6AAAgAkEBaiECDAELCyANQX1qIQADQCAFQShqEAQgBCAAT3JFBEAgBiAFQShqIAcQAkEBdGoiAi0AACEKIAVBKGogAi0AARABIAQgCjoAACAGIAVBKGogBxACQQF0aiICLQAAIQogBUEoaiACLQABEAEgBCAKOgABIARBAmohBAwBCwsDQCAFQShqEAQgBCANT3JFBEAgBiAFQShqIAcQAkEBdGoiAC0AACECIAVBKGogAC0AARABIAQgAjoAACAEQQFqIQQMAQsLA0AgBCANSQRAIAYgBUEoaiAHEAJBAXRqIgAtAAAhAiAFQShqIAAtAAEQASAEIAI6AAAgBEEBaiEEDAELCwNAIAVBEGoQBCADIA9PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIAYgBUEQaiAHEAJBAXRqIgAtAAAhAiAFQRBqIAAtAAEQASADIAI6AAEgA0ECaiEDDAELCwNAIAVBEGoQBCADIA5PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIANBAWohAwwBCwsDQCADIA5JBEAgBiAFQRBqIAcQAkEBdGoiAC0AACECIAVBEGogAC0AARABIAMgAjoAACADQQFqIQMMAQsLIAFBbCAFQdgAahAKIAVBQGsQCnEgBUEoahAKcSAFQRBqEApxGyEJDAELQWwhCQsgBUHwAGokACAJC8oCAQR/IwBBIGsiBSQAIAUgBBAOIAUtAAIhByAFQQhqIAIgAxAGIgIQA0UEQCAEQQRqIQIgACABaiIDQX1qIQQDQCAFQQhqEAQgACAET3JFBEAgAiAFQQhqIAcQAkEBdGoiBi0AACEIIAVBCGogBi0AARABIAAgCDoAACACIAVBCGogBxACQQF0aiIGLQAAIQggBUEIaiAGLQABEAEgACAIOgABIABBAmohAAwBCwsDQCAFQQhqEAQgACADT3JFBEAgAiAFQQhqIAcQAkEBdGoiBC0AACEGIAVBCGogBC0AARABIAAgBjoAACAAQQFqIQAMAQsLA0AgACADT0UEQCACIAVBCGogBxACQQF0aiIELQAAIQYgBUEIaiAELQABEAEgACAGOgAAIABBAWohAAwBCwsgAUFsIAVBCGoQChshAgsgBUEgaiQAIAILtgMBCX8jAEEQayIGJAAgBkEANgIMIAZBADYCCEFUIQQCQAJAIANBQGsiDCADIAZBCGogBkEMaiABIAIQMSICEAMNACAGQQRqIAAQDiAGKAIMIgcgBi0ABEEBaksNASAAQQRqIQogBkEAOgAFIAYgBzoABiAAIAYoAgQ2AgAgB0EBaiEJQQEhBANAIAQgCUkEQCADIARBAnRqIgEoAgAhACABIAU2AgAgACAEQX9qdCAFaiEFIARBAWohBAwBCwsgB0EBaiEHQQAhBSAGKAIIIQkDQCAFIAlGDQEgAyAFIAxqLQAAIgRBAnRqIgBBASAEdEEBdSILIAAoAgAiAWoiADYCACAHIARrIQhBACEEAkAgC0EDTQRAA0AgBCALRg0CIAogASAEakEBdGoiACAIOgABIAAgBToAACAEQQFqIQQMAAALAAsDQCABIABPDQEgCiABQQF0aiIEIAg6AAEgBCAFOgAAIAQgCDoAAyAEIAU6AAIgBCAIOgAFIAQgBToABCAEIAg6AAcgBCAFOgAGIAFBBGohAQwAAAsACyAFQQFqIQUMAAALAAsgAiEECyAGQRBqJAAgBAutAQECfwJAQYQgKAIAIABHIAAoAgBBAXYiAyABa0F4aiICQXhxQQhHcgR/IAIFIAMQJ0UNASACQQhqC0EQSQ0AIAAgACgCACICQQFxIAAgAWpBD2pBeHEiASAAa0EBdHI2AgAgASAANgIEIAEgASgCAEEBcSAAIAJBAXZqIAFrIgJBAXRyNgIAQYQgIAEgAkH/////B3FqQQRqQYQgKAIAIABGGyABNgIAIAEQJQsLygIBBX8CQAJAAkAgAEEIIABBCEsbZ0EfcyAAaUEBR2oiAUEESSAAIAF2cg0AIAFBAnRB/B5qKAIAIgJFDQADQCACQXhqIgMoAgBBAXZBeGoiBSAATwRAIAIgBUEIIAVBCEsbZ0Efc0ECdEGAH2oiASgCAEYEQCABIAIoAgQ2AgALDAMLIARBHksNASAEQQFqIQQgAigCBCICDQALC0EAIQMgAUEgTw0BA0AgAUECdEGAH2ooAgAiAkUEQCABQR5LIQIgAUEBaiEBIAJFDQEMAwsLIAIgAkF4aiIDKAIAQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgBGBEAgASACKAIENgIACwsgAigCACIBBEAgASACKAIENgIECyACKAIEIgEEQCABIAIoAgA2AgALIAMgAygCAEEBcjYCACADIAAQNwsgAwvhCwINfwV+IwBB8ABrIgckACAHIAAoAvDhASIINgJcIAEgAmohDSAIIAAoAoDiAWohDwJAAkAgBUUEQCABIQQMAQsgACgCxOABIRAgACgCwOABIREgACgCvOABIQ4gAEEBNgKM4QFBACEIA0AgCEEDRwRAIAcgCEECdCICaiAAIAJqQazQAWooAgA2AkQgCEEBaiEIDAELC0FsIQwgB0EYaiADIAQQBhADDQEgB0EsaiAHQRhqIAAoAgAQEyAHQTRqIAdBGGogACgCCBATIAdBPGogB0EYaiAAKAIEEBMgDUFgaiESIAEhBEEAIQwDQCAHKAIwIAcoAixBA3RqKQIAIhRCEIinQf8BcSEIIAcoAkAgBygCPEEDdGopAgAiFUIQiKdB/wFxIQsgBygCOCAHKAI0QQN0aikCACIWQiCIpyEJIBVCIIghFyAUQiCIpyECAkAgFkIQiKdB/wFxIgNBAk8EQAJAIAZFIANBGUlyRQRAIAkgB0EYaiADQSAgBygCHGsiCiAKIANLGyIKEAUgAyAKayIDdGohCSAHQRhqEAQaIANFDQEgB0EYaiADEAUgCWohCQwBCyAHQRhqIAMQBSAJaiEJIAdBGGoQBBoLIAcpAkQhGCAHIAk2AkQgByAYNwNIDAELAkAgA0UEQCACBEAgBygCRCEJDAMLIAcoAkghCQwBCwJAAkAgB0EYakEBEAUgCSACRWpqIgNBA0YEQCAHKAJEQX9qIgMgA0VqIQkMAQsgA0ECdCAHaigCRCIJIAlFaiEJIANBAUYNAQsgByAHKAJINgJMCwsgByAHKAJENgJIIAcgCTYCRAsgF6chAyALBEAgB0EYaiALEAUgA2ohAwsgCCALakEUTwRAIAdBGGoQBBoLIAgEQCAHQRhqIAgQBSACaiECCyAHQRhqEAQaIAcgB0EYaiAUQhiIp0H/AXEQCCAUp0H//wNxajYCLCAHIAdBGGogFUIYiKdB/wFxEAggFadB//8DcWo2AjwgB0EYahAEGiAHIAdBGGogFkIYiKdB/wFxEAggFqdB//8DcWo2AjQgByACNgJgIAcoAlwhCiAHIAk2AmggByADNgJkAkACQAJAIAQgAiADaiILaiASSw0AIAIgCmoiEyAPSw0AIA0gBGsgC0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdBKGogACgCBBATQQAhBCAHQeAAaiEMIAdB5ABqIQoDQCAHQShqEARBAksgBCAXTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEJIAcoAkggBygCREEDdGopAgAiH0IgiKchCCAeQiCIISAgHUIgiKchAgJAIB9CEIinQf8BcSIDQQJPBEACQCAGRSADQRlJckUEQCAIIAdBKGogA0EgIAcoAixrIg0gDSADSxsiDRAFIAMgDWsiA3RqIQggB0EoahAEGiADRQ0BIAdBKGogAxAFIAhqIQgMAQsgB0EoaiADEAUgCGohCCAHQShqEAQaCyAHKQJUISEgByAINgJUIAcgITcDWAwBCwJAIANFBEAgAgRAIAcoAlQhCAwDCyAHKAJYIQgMAQsCQAJAIAdBKGpBARAFIAggAkVqaiIDQQNGBEAgBygCVEF/aiIDIANFaiEIDAELIANBAnQgB2ooAlQiCCAIRWohCCADQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAg2AlQLICCnIQMgCQRAIAdBKGogCRAFIANqIQMLIAkgC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgAmohAgsgB0EoahAEGiAHIAcoAmggAmoiCSADajYCaCAKIAwgCCAJSxsoAgAhDSAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogB0EoaiAfQhiIp0H/AXEQCCEOIAdB8ABqIARBBHRqIgsgCSANaiAIazYCDCALIAg2AgggCyADNgIEIAsgAjYCACAHIA4gH6dB//8DcWo2AkQgBEEBaiEEDAELCyAEIBdIDQEgEkFgaiEYIAdB4ABqIRogB0HkAGohGyABIQMDQCAHQShqEARBAksgBCAFTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEIIAcoAkggBygCREEDdGopAgAiH0IgiKchCSAeQiCIISAgHUIgiKchDAJAIB9CEIinQf8BcSICQQJPBEACQCAGRSACQRlJckUEQCAJIAdBKGogAkEgIAcoAixrIgogCiACSxsiChAFIAIgCmsiAnRqIQkgB0EoahAEGiACRQ0BIAdBKGogAhAFIAlqIQkMAQsgB0EoaiACEAUgCWohCSAHQShqEAQaCyAHKQJUISEgByAJNgJUIAcgITcDWAwBCwJAIAJFBEAgDARAIAcoAlQhCQwDCyAHKAJYIQkMAQsCQAJAIAdBKGpBARAFIAkgDEVqaiICQQNGBEAgBygCVEF/aiICIAJFaiEJDAELIAJBAnQgB2ooAlQiCSAJRWohCSACQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAk2AlQLICCnIRQgCARAIAdBKGogCBAFIBRqIRQLIAggC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgDGohDAsgB0EoahAEGiAHIAcoAmggDGoiGSAUajYCaCAbIBogCSAZSxsoAgAhHCAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogByAHQShqIB9CGIinQf8BcRAIIB+nQf//A3FqNgJEIAcgB0HwAGogBEEDcUEEdGoiDSkDCCIdNwPIASAHIA0pAwAiHjcDwAECQAJAAkAgBygCvAEiDiAepyICaiIWIBNLDQAgAyAHKALEASIKIAJqIgtqIBhLDQAgEiADayALQSBqTw0BCyAHIAcpA8gBNwMQIAcgBykDwAE3AwggAyASIAdBCGogB0G8AWogEyAPIBUgERAeIQsMAQsgAiADaiEIIAMgDhAHIAJBEU8EQCADQRBqIQIDQCACIA5BEGoiDhAHIAJBEGoiAiAISQ0ACwsgCCAdpyIOayECIAcgFjYCvAEgDiAIIA9rSwRAIA4gCCAVa0sEQEFsIQsMAgsgESACIA9rIgJqIhYgCmogEU0EQCAIIBYgChAPGgwCCyAIIBZBACACaxAPIQggByACIApqIgo2AsQBIAggAmshCCAPIQILIA5BEE8EQCAIIApqIQoDQCAIIAIQByACQRBqIQIgCEEQaiIIIApJDQALDAELAkAgDkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgDkECdCIKQcAeaigCAGoiAhAXIAIgCkHgHmooAgBrIQIgBygCxAEhCgwBCyAIIAIQDAsgCkEJSQ0AIAggCmohCiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAKSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAKSQ0ACwsgCxADBEAgCyEQDAQFIA0gDDYCACANIBkgHGogCWs2AgwgDSAJNgIIIA0gFDYCBCAEQQFqIQQgAyALaiEDDAILAAsLIAQgBUgNASAEIBdrIQtBACEEA0AgCyAFSARAIAcgB0HwAGogC0EDcUEEdGoiAikDCCIdNwPIASAHIAIpAwAiHjcDwAECQAJAAkAgBygCvAEiDCAepyICaiIKIBNLDQAgAyAHKALEASIJIAJqIhBqIBhLDQAgEiADayAQQSBqTw0BCyAHIAcpA8gBNwMgIAcgBykDwAE3AxggAyASIAdBGGogB0G8AWogEyAPIBUgERAeIRAMAQsgAiADaiEIIAMgDBAHIAJBEU8EQCADQRBqIQIDQCACIAxBEGoiDBAHIAJBEGoiAiAISQ0ACwsgCCAdpyIGayECIAcgCjYCvAEgBiAIIA9rSwRAIAYgCCAVa0sEQEFsIRAMAgsgESACIA9rIgJqIgwgCWogEU0EQCAIIAwgCRAPGgwCCyAIIAxBACACaxAPIQggByACIAlqIgk2AsQBIAggAmshCCAPIQILIAZBEE8EQCAIIAlqIQYDQCAIIAIQByACQRBqIQIgCEEQaiIIIAZJDQALDAELAkAgBkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgBkECdCIGQcAeaigCAGoiAhAXIAIgBkHgHmooAgBrIQIgBygCxAEhCQwBCyAIIAIQDAsgCUEJSQ0AIAggCWohBiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAGSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAGSQ0ACwsgEBADDQMgC0EBaiELIAMgEGohAwwBCwsDQCAEQQNHBEAgACAEQQJ0IgJqQazQAWogAiAHaigCVDYCACAEQQFqIQQMAQsLIAcoArwBIQgLQbp/IRAgEyAIayIAIBIgA2tLDQAgAwR/IAMgCCAAEAsgAGoFQQALIAFrIRALIAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY0AAQMyIFEAMiBg0AIANBHzYCfCADIANB/ABqIANB+ABqIAQgBCAFaiAGGyIEIAEgAmoiAiAEaxAVIgUQAw0AIAMoAnwiBkEfSw0AIAMoAngiB0EJTw0AIABBiCBqIAMgBkGAC0GADCAHEBggA0E0NgJ8IAMgA0H8AGogA0H4AGogBCAFaiIEIAIgBGsQFSIFEAMNACADKAJ8IgZBNEsNACADKAJ4IgdBCk8NACAAQZAwaiADIAZBgA1B4A4gBxAYIANBIzYCfCADIANB/ABqIANB+ABqIAQgBWoiBCACIARrEBUiBRADDQAgAygCfCIGQSNLDQAgAygCeCIHQQpPDQAgACADIAZBwBBB0BEgBxAYIAQgBWoiBEEMaiIFIAJLDQAgAiAFayEFQQAhAgNAIAJBA0cEQCAEKAAAIgZBf2ogBU8NAiAAIAJBAnRqQZzQAWogBjYCACACQQFqIQIgBEEEaiEEDAELCyAEIAFrIQgLIANBgAFqJAAgCAtGAQN/IABBCGohAyAAKAIEIQJBACEAA0AgACACdkUEQCABIAMgAEEDdGotAAJBFktqIQEgAEEBaiEADAELCyABQQggAmt0C4YDAQV/Qbh/IQcCQCADRQ0AIAItAAAiBEUEQCABQQA2AgBBAUG4fyADQQFGGw8LAn8gAkEBaiIFIARBGHRBGHUiBkF/Sg0AGiAGQX9GBEAgA0EDSA0CIAUvAABBgP4BaiEEIAJBA2oMAQsgA0ECSA0BIAItAAEgBEEIdHJBgIB+aiEEIAJBAmoLIQUgASAENgIAIAVBAWoiASACIANqIgNLDQBBbCEHIABBEGogACAFLQAAIgVBBnZBI0EJIAEgAyABa0HAEEHQEUHwEiAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBmCBqIABBCGogBUEEdkEDcUEfQQggASABIAZqIAgbIgEgAyABa0GAC0GADEGAFyAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBoDBqIABBBGogBUECdkEDcUE0QQkgASABIAZqIAgbIgEgAyABa0GADUHgDkGQGSAAKAKM4QEgACgCnOIBIAQQHyIAEAMNACAAIAFqIAJrIQcLIAcLrQMBCn8jAEGABGsiCCQAAn9BUiACQf8BSw0AGkFUIANBDEsNABogAkEBaiELIABBBGohCUGAgAQgA0F/anRBEHUhCkEAIQJBASEEQQEgA3QiB0F/aiIMIQUDQCACIAtGRQRAAkAgASACQQF0Ig1qLwEAIgZB//8DRgRAIAkgBUECdGogAjoAAiAFQX9qIQVBASEGDAELIARBACAKIAZBEHRBEHVKGyEECyAIIA1qIAY7AQAgAkEBaiECDAELCyAAIAQ7AQIgACADOwEAIAdBA3YgB0EBdmpBA2ohBkEAIQRBACECA0AgBCALRkUEQCABIARBAXRqLgEAIQpBACEAA0AgACAKTkUEQCAJIAJBAnRqIAQ6AAIDQCACIAZqIAxxIgIgBUsNAAsgAEEBaiEADAELCyAEQQFqIQQMAQsLQX8gAg0AGkEAIQIDfyACIAdGBH9BAAUgCCAJIAJBAnRqIgAtAAJBAXRqIgEgAS8BACIBQQFqOwEAIAAgAyABEBRrIgU6AAMgACABIAVB/wFxdCAHazsBACACQQFqIQIMAQsLCyEFIAhBgARqJAAgBQvjBgEIf0FsIQcCQCACQQNJDQACQAJAAkACQCABLQAAIgNBA3EiCUEBaw4DAwEAAgsgACgCiOEBDQBBYg8LIAJBBUkNAkEDIQYgASgAACEFAn8CQAJAIANBAnZBA3EiCEF+aiIEQQFNBEAgBEEBaw0BDAILIAVBDnZB/wdxIQQgBUEEdkH/B3EhAyAIRQwCCyAFQRJ2IQRBBCEGIAVBBHZB//8AcSEDQQAMAQsgBUEEdkH//w9xIgNBgIAISw0DIAEtAARBCnQgBUEWdnIhBEEFIQZBAAshBSAEIAZqIgogAksNAgJAIANBgQZJDQAgACgCnOIBRQ0AQQAhAgNAIAJBg4ABSw0BIAJBQGshAgwAAAsACwJ/IAlBA0YEQCABIAZqIQEgAEHw4gFqIQIgACgCDCEGIAUEQCACIAMgASAEIAYQXwwCCyACIAMgASAEIAYQXQwBCyAAQbjQAWohAiABIAZqIQEgAEHw4gFqIQYgAEGo0ABqIQggBQRAIAggBiADIAEgBCACEF4MAQsgCCAGIAMgASAEIAIQXAsQAw0CIAAgAzYCgOIBIABBATYCiOEBIAAgAEHw4gFqNgLw4QEgCUECRgRAIAAgAEGo0ABqNgIMCyAAIANqIgBBiOMBakIANwAAIABBgOMBakIANwAAIABB+OIBakIANwAAIABB8OIBakIANwAAIAoPCwJ/AkACQAJAIANBAnZBA3FBf2oiBEECSw0AIARBAWsOAgACAQtBASEEIANBA3YMAgtBAiEEIAEvAABBBHYMAQtBAyEEIAEQIUEEdgsiAyAEaiIFQSBqIAJLBEAgBSACSw0CIABB8OIBaiABIARqIAMQCyEBIAAgAzYCgOIBIAAgATYC8OEBIAEgA2oiAEIANwAYIABCADcAECAAQgA3AAggAEIANwAAIAUPCyAAIAM2AoDiASAAIAEgBGo2AvDhASAFDwsCfwJAAkACQCADQQJ2QQNxQX9qIgRBAksNACAEQQFrDgIAAgELQQEhByADQQN2DAILQQIhByABLwAAQQR2DAELIAJBBEkgARAhIgJBj4CAAUtyDQFBAyEHIAJBBHYLIQIgAEHw4gFqIAEgB2otAAAgAkEgahAQIQEgACACNgKA4gEgACABNgLw4QEgB0EBaiEHCyAHC0sAIABC+erQ0OfJoeThADcDICAAQgA3AxggAELP1tO+0ser2UI3AxAgAELW64Lu6v2J9eAANwMIIABCADcDACAAQShqQQBBKBAQGgviAgICfwV+IABBKGoiASAAKAJIaiECAn4gACkDACIDQiBaBEAgACkDECIEQgeJIAApAwgiBUIBiXwgACkDGCIGQgyJfCAAKQMgIgdCEol8IAUQGSAEEBkgBhAZIAcQGQwBCyAAKQMYQsXP2bLx5brqJ3wLIAN8IQMDQCABQQhqIgAgAk0EQEIAIAEpAAAQCSADhUIbiUKHla+vmLbem55/fkLj3MqV/M7y9YV/fCEDIAAhAQwBCwsCQCABQQRqIgAgAksEQCABIQAMAQsgASgAAK1Ch5Wvr5i23puef34gA4VCF4lCz9bTvtLHq9lCfkL5893xmfaZqxZ8IQMLA0AgACACSQRAIAAxAABCxc/ZsvHluuonfiADhUILiUKHla+vmLbem55/fiEDIABBAWohAAwBCwsgA0IhiCADhULP1tO+0ser2UJ+IgNCHYggA4VC+fPd8Zn2masWfiIDQiCIIAOFC+8CAgJ/BH4gACAAKQMAIAKtfDcDAAJAAkAgACgCSCIDIAJqIgRBH00EQCABRQ0BIAAgA2pBKGogASACECAgACgCSCACaiEEDAELIAEgAmohAgJ/IAMEQCAAQShqIgQgA2ogAUEgIANrECAgACAAKQMIIAQpAAAQCTcDCCAAIAApAxAgACkAMBAJNwMQIAAgACkDGCAAKQA4EAk3AxggACAAKQMgIABBQGspAAAQCTcDICAAKAJIIQMgAEEANgJIIAEgA2tBIGohAQsgAUEgaiACTQsEQCACQWBqIQMgACkDICEFIAApAxghBiAAKQMQIQcgACkDCCEIA0AgCCABKQAAEAkhCCAHIAEpAAgQCSEHIAYgASkAEBAJIQYgBSABKQAYEAkhBSABQSBqIgEgA00NAAsgACAFNwMgIAAgBjcDGCAAIAc3AxAgACAINwMICyABIAJPDQEgAEEoaiABIAIgAWsiBBAgCyAAIAQ2AkgLCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQEBogAwVBun8LCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQCxogAwVBun8LC6gCAQZ/IwBBEGsiByQAIABB2OABaikDAEKAgIAQViEIQbh/IQUCQCAEQf//B0sNACAAIAMgBBBCIgUQAyIGDQAgACgCnOIBIQkgACAHQQxqIAMgAyAFaiAGGyIKIARBACAFIAYbayIGEEAiAxADBEAgAyEFDAELIAcoAgwhBCABRQRAQbp/IQUgBEEASg0BCyAGIANrIQUgAyAKaiEDAkAgCQRAIABBADYCnOIBDAELAkACQAJAIARBBUgNACAAQdjgAWopAwBCgICACFgNAAwBCyAAQQA2ApziAQwBCyAAKAIIED8hBiAAQQA2ApziASAGQRRPDQELIAAgASACIAMgBSAEIAgQOSEFDAELIAAgASACIAMgBSAEIAgQOiEFCyAHQRBqJAAgBQtnACAAQdDgAWogASACIAAoAuzhARAuIgEQAwRAIAEPC0G4fyECAkAgAQ0AIABB7OABaigCACIBBEBBYCECIAAoApjiASABRw0BC0EAIQIgAEHw4AFqKAIARQ0AIABBkOEBahBDCyACCycBAX8QVyIERQRAQUAPCyAEIAAgASACIAMgBBBLEE8hACAEEFYgAAs/AQF/AkACQAJAIAAoAqDiAUEBaiIBQQJLDQAgAUEBaw4CAAECCyAAEDBBAA8LIABBADYCoOIBCyAAKAKU4gELvAMCB38BfiMAQRBrIgkkAEG4fyEGAkAgBCgCACIIQQVBCSAAKALs4QEiBRtJDQAgAygCACIHQQFBBSAFGyAFEC8iBRADBEAgBSEGDAELIAggBUEDakkNACAAIAcgBRBJIgYQAw0AIAEgAmohCiAAQZDhAWohCyAIIAVrIQIgBSAHaiEHIAEhBQNAIAcgAiAJECwiBhADDQEgAkF9aiICIAZJBEBBuH8hBgwCCyAJKAIAIghBAksEQEFsIQYMAgsgB0EDaiEHAn8CQAJAAkAgCEEBaw4CAgABCyAAIAUgCiAFayAHIAYQSAwCCyAFIAogBWsgByAGEEcMAQsgBSAKIAVrIActAAAgCSgCCBBGCyIIEAMEQCAIIQYMAgsgACgC8OABBEAgCyAFIAgQRQsgAiAGayECIAYgB2ohByAFIAhqIQUgCSgCBEUNAAsgACkD0OABIgxCf1IEQEFsIQYgDCAFIAFrrFINAQsgACgC8OABBEBBaiEGIAJBBEkNASALEEQhDCAHKAAAIAynRw0BIAdBBGohByACQXxqIQILIAMgBzYCACAEIAI2AgAgBSABayEGCyAJQRBqJAAgBgsuACAAECsCf0EAQQAQAw0AGiABRSACRXJFBEBBYiAAIAEgAhA9EAMNARoLQQALCzcAIAEEQCAAIAAoAsTgASABKAIEIAEoAghqRzYCnOIBCyAAECtBABADIAFFckUEQCAAIAEQWwsL0QIBB38jAEEQayIGJAAgBiAENgIIIAYgAzYCDCAFBEAgBSgCBCEKIAUoAgghCQsgASEIAkACQANAIAAoAuzhARAWIQsCQANAIAQgC0kNASADKAAAQXBxQdDUtMIBRgRAIAMgBBAiIgcQAw0EIAQgB2shBCADIAdqIQMMAQsLIAYgAzYCDCAGIAQ2AggCQCAFBEAgACAFEE5BACEHQQAQA0UNAQwFCyAAIAogCRBNIgcQAw0ECyAAIAgQUCAMQQFHQQAgACAIIAIgBkEMaiAGQQhqEEwiByIDa0EAIAMQAxtBCkdyRQRAQbh/IQcMBAsgBxADDQMgAiAHayECIAcgCGohCEEBIQwgBigCDCEDIAYoAgghBAwBCwsgBiADNgIMIAYgBDYCCEG4fyEHIAQNASAIIAFrIQcMAQsgBiADNgIMIAYgBDYCCAsgBkEQaiQAIAcLRgECfyABIAAoArjgASICRwRAIAAgAjYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEEdCAAbiECCyAAQQh2IgEgAkEYbCIAQYwIaigCAGwgAEGICGooAgBqIgJBA3YgAmogAEGACGooAgAgAEGECGooAgAgAWxqSQs3ACAAIAMgBCAFQYAQEDMiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQMgVBuH8LC78DAQN/IwBBIGsiBSQAIAVBCGogAiADEAYiAhADRQRAIAAgAWoiB0F9aiEGIAUgBBAOIARBBGohAiAFLQACIQMDQEEAIAAgBkkgBUEIahAEGwRAIAAgAiAFQQhqIAMQAkECdGoiBC8BADsAACAFQQhqIAQtAAIQASAAIAQtAANqIgQgAiAFQQhqIAMQAkECdGoiAC8BADsAACAFQQhqIAAtAAIQASAEIAAtAANqIQAMAQUgB0F+aiEEA0AgBUEIahAEIAAgBEtyRQRAIAAgAiAFQQhqIAMQAkECdGoiBi8BADsAACAFQQhqIAYtAAIQASAAIAYtAANqIQAMAQsLA0AgACAES0UEQCAAIAIgBUEIaiADEAJBAnRqIgYvAQA7AAAgBUEIaiAGLQACEAEgACAGLQADaiEADAELCwJAIAAgB08NACAAIAIgBUEIaiADEAIiA0ECdGoiAC0AADoAACAALQADQQFGBEAgBUEIaiAALQACEAEMAQsgBSgCDEEfSw0AIAVBCGogAiADQQJ0ai0AAhABIAUoAgxBIUkNACAFQSA2AgwLIAFBbCAFQQhqEAobIQILCwsgBUEgaiQAIAILkgIBBH8jAEFAaiIJJAAgCSADQTQQCyEDAkAgBEECSA0AIAMgBEECdGooAgAhCSADQTxqIAgQIyADQQE6AD8gAyACOgA+QQAhBCADKAI8IQoDQCAEIAlGDQEgACAEQQJ0aiAKNgEAIARBAWohBAwAAAsAC0EAIQkDQCAGIAlGRQRAIAMgBSAJQQF0aiIKLQABIgtBAnRqIgwoAgAhBCADQTxqIAotAABBCHQgCGpB//8DcRAjIANBAjoAPyADIAcgC2siCiACajoAPiAEQQEgASAKa3RqIQogAygCPCELA0AgACAEQQJ0aiALNgEAIARBAWoiBCAKSQ0ACyAMIAo2AgAgCUEBaiEJDAELCyADQUBrJAALowIBCX8jAEHQAGsiCSQAIAlBEGogBUE0EAsaIAcgBmshDyAHIAFrIRADQAJAIAMgCkcEQEEBIAEgByACIApBAXRqIgYtAAEiDGsiCGsiC3QhDSAGLQAAIQ4gCUEQaiAMQQJ0aiIMKAIAIQYgCyAPTwRAIAAgBkECdGogCyAIIAUgCEE0bGogCCAQaiIIQQEgCEEBShsiCCACIAQgCEECdGooAgAiCEEBdGogAyAIayAHIA4QYyAGIA1qIQgMAgsgCUEMaiAOECMgCUEBOgAPIAkgCDoADiAGIA1qIQggCSgCDCELA0AgBiAITw0CIAAgBkECdGogCzYBACAGQQFqIQYMAAALAAsgCUHQAGokAA8LIAwgCDYCACAKQQFqIQoMAAALAAs0ACAAIAMgBCAFEDYiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQNAVBuH8LCyMAIAA/AEEQdGtB//8DakEQdkAAQX9GBEBBAA8LQQAQAEEBCzsBAX8gAgRAA0AgACABIAJBgCAgAkGAIEkbIgMQCyEAIAFBgCBqIQEgAEGAIGohACACIANrIgINAAsLCwYAIAAQAwsLqBUJAEGICAsNAQAAAAEAAAACAAAAAgBBoAgLswYBAAAAAQAAAAIAAAACAAAAJgAAAIIAAAAhBQAASgAAAGcIAAAmAAAAwAEAAIAAAABJBQAASgAAAL4IAAApAAAALAIAAIAAAABJBQAASgAAAL4IAAAvAAAAygIAAIAAAACKBQAASgAAAIQJAAA1AAAAcwMAAIAAAACdBQAASgAAAKAJAAA9AAAAgQMAAIAAAADrBQAASwAAAD4KAABEAAAAngMAAIAAAABNBgAASwAAAKoKAABLAAAAswMAAIAAAADBBgAATQAAAB8NAABNAAAAUwQAAIAAAAAjCAAAUQAAAKYPAABUAAAAmQQAAIAAAABLCQAAVwAAALESAABYAAAA2gQAAIAAAABvCQAAXQAAACMUAABUAAAARQUAAIAAAABUCgAAagAAAIwUAABqAAAArwUAAIAAAAB2CQAAfAAAAE4QAAB8AAAA0gIAAIAAAABjBwAAkQAAAJAHAACSAAAAAAAAAAEAAAABAAAABQAAAA0AAAAdAAAAPQAAAH0AAAD9AAAA/QEAAP0DAAD9BwAA/Q8AAP0fAAD9PwAA/X8AAP3/AAD9/wEA/f8DAP3/BwD9/w8A/f8fAP3/PwD9/38A/f//AP3//wH9//8D/f//B/3//w/9//8f/f//P/3//38AAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcAAAAYAAAAGQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACUAAAAnAAAAKQAAACsAAAAvAAAAMwAAADsAAABDAAAAUwAAAGMAAACDAAAAAwEAAAMCAAADBAAAAwgAAAMQAAADIAAAA0AAAAOAAAADAAEAQeAPC1EBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAEAAAABQAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAQcQQC4sBAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABIAAAAUAAAAFgAAABgAAAAcAAAAIAAAACgAAAAwAAAAQAAAAIAAAAAAAQAAAAIAAAAEAAAACAAAABAAAAAgAAAAQAAAAIAAAAAAAQBBkBIL5gQBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAAAEAAAAEAAAACAAAAAAAAAABAAEBBgAAAAAAAAQAAAAAEAAABAAAAAAgAAAFAQAAAAAAAAUDAAAAAAAABQQAAAAAAAAFBgAAAAAAAAUHAAAAAAAABQkAAAAAAAAFCgAAAAAAAAUMAAAAAAAABg4AAAAAAAEFEAAAAAAAAQUUAAAAAAABBRYAAAAAAAIFHAAAAAAAAwUgAAAAAAAEBTAAAAAgAAYFQAAAAAAABwWAAAAAAAAIBgABAAAAAAoGAAQAAAAADAYAEAAAIAAABAAAAAAAAAAEAQAAAAAAAAUCAAAAIAAABQQAAAAAAAAFBQAAACAAAAUHAAAAAAAABQgAAAAgAAAFCgAAAAAAAAULAAAAAAAABg0AAAAgAAEFEAAAAAAAAQUSAAAAIAABBRYAAAAAAAIFGAAAACAAAwUgAAAAAAADBSgAAAAAAAYEQAAAABAABgRAAAAAIAAHBYAAAAAAAAkGAAIAAAAACwYACAAAMAAABAAAAAAQAAAEAQAAACAAAAUCAAAAIAAABQMAAAAgAAAFBQAAACAAAAUGAAAAIAAABQgAAAAgAAAFCQAAACAAAAULAAAAIAAABQwAAAAAAAAGDwAAACAAAQUSAAAAIAABBRQAAAAgAAIFGAAAACAAAgUcAAAAIAADBSgAAAAgAAQFMAAAAAAAEAYAAAEAAAAPBgCAAAAAAA4GAEAAAAAADQYAIABBgBcLhwIBAAEBBQAAAAAAAAUAAAAAAAAGBD0AAAAAAAkF/QEAAAAADwX9fwAAAAAVBf3/HwAAAAMFBQAAAAAABwR9AAAAAAAMBf0PAAAAABIF/f8DAAAAFwX9/38AAAAFBR0AAAAAAAgE/QAAAAAADgX9PwAAAAAUBf3/DwAAAAIFAQAAABAABwR9AAAAAAALBf0HAAAAABEF/f8BAAAAFgX9/z8AAAAEBQ0AAAAQAAgE/QAAAAAADQX9HwAAAAATBf3/BwAAAAEFAQAAABAABgQ9AAAAAAAKBf0DAAAAABAF/f8AAAAAHAX9//8PAAAbBf3//wcAABoF/f//AwAAGQX9//8BAAAYBf3//wBBkBkLhgQBAAEBBgAAAAAAAAYDAAAAAAAABAQAAAAgAAAFBQAAAAAAAAUGAAAAAAAABQgAAAAAAAAFCQAAAAAAAAULAAAAAAAABg0AAAAAAAAGEAAAAAAAAAYTAAAAAAAABhYAAAAAAAAGGQAAAAAAAAYcAAAAAAAABh8AAAAAAAAGIgAAAAAAAQYlAAAAAAABBikAAAAAAAIGLwAAAAAAAwY7AAAAAAAEBlMAAAAAAAcGgwAAAAAACQYDAgAAEAAABAQAAAAAAAAEBQAAACAAAAUGAAAAAAAABQcAAAAgAAAFCQAAAAAAAAUKAAAAAAAABgwAAAAAAAAGDwAAAAAAAAYSAAAAAAAABhUAAAAAAAAGGAAAAAAAAAYbAAAAAAAABh4AAAAAAAAGIQAAAAAAAQYjAAAAAAABBicAAAAAAAIGKwAAAAAAAwYzAAAAAAAEBkMAAAAAAAUGYwAAAAAACAYDAQAAIAAABAQAAAAwAAAEBAAAABAAAAQFAAAAIAAABQcAAAAgAAAFCAAAACAAAAUKAAAAIAAABQsAAAAAAAAGDgAAAAAAAAYRAAAAAAAABhQAAAAAAAAGFwAAAAAAAAYaAAAAAAAABh0AAAAAAAAGIAAAAAAAEAYDAAEAAAAPBgOAAAAAAA4GA0AAAAAADQYDIAAAAAAMBgMQAAAAAAsGAwgAAAAACgYDBABBpB0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/AAAA/wAAAP8BAAD/AwAA/wcAAP8PAAD/HwAA/z8AAP9/AAD//wAA//8BAP//AwD//wcA//8PAP//HwD//z8A//9/AP///wD///8B////A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ",
vendor: 7,769 bytes, line 473
473vh=new WeakMap;let Ah,yh=0;class bh extends pl{constructor(e){super(e),this.transcoderPath="",this.transcoderBinary=null,this.transcoderPending=null,this.workerPool=new qd,this.workerSourceURL="",this.workerConfig=null,"undefined"!=typeof MSC_TRANSCODER&&console.warn('THREE.KTX2Loader: Please update to latest "basis_transcoder". "msc_basis_transcoder" is no longer supported in three.js r125+.')}setTranscoderPath(e){return this.transcoderPath=e,this}setWorkerLimit(e){return this.workerPool.setWorkerLimit(e),this}async detectSupportAsync(e){return this.workerConfig={astcSupported:await e.hasFeatureAsync("texture-compression-astc"),etc1Supported:await e.hasFeatureAsync("texture-compression-etc1"),etc2Supported:await e.hasFeatureAsync("texture-compression-etc2"),dxtSupported:await e.hasFeatureAsync("texture-compression-bc"),bptcSupported:await e.hasFeatureAsync("texture-compression-bptc"),pvrtcSupported:await e.hasFeatureAsync("texture-compression-pvrtc")},this}detectSupport(e){return!0===e.isWebGPURenderer?this.workerConfig={astcSupported:e.hasFeature("texture-compression-astc"),etc1Supported:e.hasFeature("texture-compression-etc1"),etc2Supported:e.hasFeature("texture-compression-etc2"),dxtSupported:e.hasFeature("texture-compression-bc"),bptcSupported:e.hasFeature("texture-compression-bptc"),pvrtcSupported:e.hasFeature("texture-compression-pvrtc")}:(this.workerConfig={astcSupported:e.extensions.has("WEBGL_compressed_texture_astc"),etc1Supported:e.extensions.has("WEBGL_compressed_texture_etc1"),etc2Supported:e.extensions.has("WEBGL_compressed_texture_etc"),dxtSupported:e.extensions.has("WEBGL_compressed_texture_s3tc"),bptcSupported:e.extensions.has("EXT_texture_compression_bptc"),pvrtcSupported:e.extensions.has("WEBGL_compressed_texture_pvrtc")||e.extensions.has("WEBKIT_WEBGL_compressed_texture_pvrtc")},this.workerConfig.etc1Supported=!1),this}init(){if(!this.transcoderPending){const e=new gl(this.manager);e.setPath(this.transcoderPath),e.setWithCredentials(this.withCredentials);const t=e.loadAsync("basis_transcoder.js"),n=new gl(this.manager);n.setPath(this.transcoderPath),n.setResponseType("arraybuffer"),n.setWithCredentials(this.withCredentials);const i=n.loadAsync("basis_transcoder.wasm");this.transcoderPending=Promise.all([t,i]).then(([e,t])=>{const n=bh.BasisWorker.toString(),i=["/* constants */","let _EngineFormat = "+JSON.stringify(bh.EngineFormat),"let _TranscoderFormat = "+JSON.stringify(bh.TranscoderFormat),"let _BasisFormat = "+JSON.stringify(bh.BasisFormat),"/* basis_transcoder.js */",e,"/* worker */",n.substring(n.indexOf("{")+1,n.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([i])),this.transcoderBinary=t,this.workerPool.setWorkerCreator(()=>{const e=new Worker(this.workerSourceURL),t=this.transcoderBinary.slice(0);return e.postMessage({type:"init",config:this.workerConfig,transcoderBinary:t},[t]),e})}),yh>0&&console.warn("THREE.KTX2Loader: Multiple active KTX2 loaders may cause performance issues. Use a single KTX2Loader instance, or call .dispose() on old instances."),yh++}return this.transcoderPending}load(e,t,n,i){if(null===this.workerConfig)throw new Error("THREE.KTX2Loader: Missing initialization with `.detectSupport( renderer )`.");const r=new gl(this.manager);r.setResponseType("arraybuffer"),r.setWithCredentials(this.withCredentials),r.load(e,e=>{if(vh.has(e)){return vh.get(e).promise.then(t).catch(i)}this._createTexture(e).then(e=>t?t(e):null).catch(i)},n,i)}_createTextureFrom(e,t){const{faces:n,width:i,height:r,format:a,type:s,error:o,dfdFlags:l}=e;if("error"===s)return Promise.reject(o);let u;if(6===t.faceCount)u=new Qo(n,a,H);else{const e=n[0].mipmaps;u=t.layerCount>1?new zo(e,i,r,t.layerCount,a,H):new Fo(e,i,r,a,H)}return u.minFilter=1===n[0].mipmaps.length?z:V,u.magFilter=z,u.generateMipmaps=!1,u.needsUpdate=!0,u.colorSpace=Sh(t),u.premultiplyAlpha=!!(1&l),u}async _createTexture(e,t={}){const n=function(e){const t=new Uint8Array(e.buffer,e.byteOffset,uh.length);if(t[0]!==uh[0]||t[1]!==uh[1]||t[2]!==uh[2]||t[3]!==uh[3]||t[4]!==uh[4]||t[5]!==uh[5]||t[6]!==uh[6]||t[7]!==uh[7]||t[8]!==uh[8]||t[9]!==uh[9]||t[10]!==uh[10]||t[11]!==uh[11])throw new Error("Missing KTX 2.0 identifier.");const n=new oh,i=17*Uint32Array.BYTES_PER_ELEMENT,r=new lh(e,uh.length,i,!0);n.vkFormat=r._nextUint32(),n.typeSize=r._nextUint32(),n.pixelWidth=r._nextUint32(),n.pixelHeight=r._nextUint32(),n.pixelDepth=r._nextUint32(),n.layerCount=r._nextUint32(),n.faceCount=r._nextUint32();const a=r._nextUint32();n.supercompressionScheme=r._nextUint32();const s=r._nextUint32(),o=r._nextUint32(),l=r._nextUint32(),u=r._nextUint32(),c=r._nextUint64(),d=r._nextUint64(),h=new lh(e,uh.length+i,3*a*8,!0);for(let t=0;t<a;t++)n.levels.push({levelData:new Uint8Array(e.buffer,e.byteOffset+h._nextUint64(),h._nextUint64()),uncompressedByteLength:h._nextUint64()});const p=new lh(e,s,o,!0),f={vendorId:p._skip(4)._nextUint16(),descriptorType:p._nextUint16(),versionNumber:p._nextUint16(),descriptorBlockSize:p._nextUint16(),colorModel:p._nextUint8(),colorPrimaries:p._nextUint8(),transferFunction:p._nextUint8(),flags:p._nextUint8(),texelBlockDimension:[p._nextUint8(),p._nextUint8(),p._nextUint8(),p._nextUint8()],bytesPlane:[p._nextUint8(),p._nextUint8(),p._nextUint8(),p._nextUint8(),p._nextUint8(),p._nextUint8(),p._nextUint8(),p._nextUint8()],samples:[]},m=(f.descriptorBlockSize/4-6)/4;for(let e=0;e<m;e++){const t={bitOffset:p._nextUint16(),bitLength:p._nextUint8(),channelType:p._nextUint8(),samplePosition:[p._nextUint8(),p._nextUint8(),p._nextUint8(),p._nextUint8()],sampleLower:-1/0,sampleUpper:1/0};64&t.channelType?(t.sampleLower=p._nextInt32(),t.sampleUpper=p._nextInt32()):(t.sampleLower=p._nextUint32(),t.sampleUpper=p._nextUint32()),f.samples[e]=t}n.dataFormatDescriptor.length=0,n.dataFormatDescriptor.push(f);const g=new lh(e,l,u,!0);for(;g._offset<u;){const e=g._nextUint32(),t=g._scan(e),i=ch(t),r=g._scan(e-t.byteLength);n.keyValue[i]=i.match(/^ktx/i)?ch(r):r,g._offset%4&&g._skip(4-g._offset%4)}if(d<=0)return n;const v=new lh(e,c,d,!0),A=v._nextUint16(),y=v._nextUint16(),b=v._nextUint32(),_=v._nextUint32(),w=v._nextUint32(),E=v._nextUint32(),S=[];for(let e=0;e<a;e++)S.push({imageFlags:v._nextUint32(),rgbSliceByteOffset:v._nextUint32(),rgbSliceByteLength:v._nextUint32(),alphaSliceByteOffset:v._nextUint32(),alphaSliceByteLength:v._nextUint32()});const T=c+v._offset,x=T+b,C=x+_,I=C+w,M=new Uint8Array(e.buffer,e.byteOffset+T,b),k=new Uint8Array(e.buffer,e.byteOffset+x,_),P=new Uint8Array(e.buffer,e.byteOffset+C,w),R=new Uint8Array(e.buffer,e.byteOffset+I,E);return n.globalData={endpointCount:A,selectorCount:y,imageDescs:S,endpointsData:M,selectorsData:k,tablesData:P,extendedData:R},n}(new Uint8Array(e));if(0!==n.vkFormat)return async function(e){const{vkFormat:t}=e;if(void 0===wh[t])throw new Error("THREE.KTX2Loader: Unsupported vkFormat.");let n;2===e.supercompressionScheme&&(Ah||(Ah=new Promise(async e=>{const t=new mh;await t.init(),e(t)})),n=await Ah);const i=[];for(let r=0;r<e.levels.length;r++){const a=Math.max(1,e.pixelWidth>>r),s=Math.max(1,e.pixelHeight>>r),o=e.pixelDepth?Math.max(1,e.pixelDepth>>r):0,l=e.levels[r];let u,c;if(0===e.supercompressionScheme)u=l.levelData;else{if(2!==e.supercompressionScheme)throw new Error("THREE.KTX2Loader: Unsupported supercompressionScheme.");u=n.decode(l.levelData,l.uncompressedByteLength)}c=Eh[t]===q?new Float32Array(u.buffer,u.byteOffset,u.byteLength/Float32Array.BYTES_PER_ELEMENT):Eh[t]===W?new Uint16Array(u.buffer,u.byteOffset,u.byteLength/Uint16Array.BYTES_PER_ELEMENT):u,i.push({data:c,width:a,height:s,depth:o})}let r;if(_h.has(wh[t]))r=0===e.pixelDepth?new so(i[0].data,e.pixelWidth,e.pixelHeight):new Ct(i[0].data,e.pixelWidth,e.pixelHeight,e.pixelDepth);else{if(e.pixelDepth>
vendor: 21,237 bytes, line 473
4730)throw new Error("THREE.KTX2Loader: Unsupported pixelDepth.");r=new Fo(i,e.pixelWidth,e.pixelHeight)}return r.mipmaps=i,r.type=Eh[t],r.format=wh[t],r.colorSpace=Sh(e),r.needsUpdate=!0,Promise.resolve(r)}(n);const i=t,r=this.init().then(()=>this.workerPool.postMessage({type:"transcode",buffer:e,taskConfig:i},[e])).then(e=>this._createTextureFrom(e.data,n));return vh.set(e,{promise:r}),r}dispose(){return this.workerPool.dispose(),this.workerSourceURL&&URL.revokeObjectURL(this.workerSourceURL),yh--,this}}bh.BasisFormat={ETC1S:0,UASTC_4x4:1},bh.TranscoderFormat={ETC1:0,ETC2:1,BC1:2,BC3:3,BC4:4,BC5:5,BC7_M6_OPAQUE_ONLY:6,BC7_M5:7,PVRTC1_4_RGB:8,PVRTC1_4_RGBA:9,ASTC_4x4:10,ATC_RGB:11,ATC_RGBA_INTERPOLATED_ALPHA:12,RGBA32:13,RGB565:14,BGR565:15,RGBA4444:16},bh.EngineFormat={RGBAFormat:X,RGBA_ASTC_4x4_Format:ue,RGBA_BPTC_Format:de,RGBA_ETC2_EAC_Format:le,RGBA_PVRTC_4BPPV1_Format:ae,RGBA_S3TC_DXT5_Format:ie,RGB_ETC1_Format:se,RGB_ETC2_Format:oe,RGB_PVRTC_4BPPV1_Format:re,RGB_S3TC_DXT1_Format:ee},bh.BasisWorker=function(){let e,t,n;const i=_EngineFormat,r=_TranscoderFormat,a=_BasisFormat;self.addEventListener("message",function(s){const d=s.data;switch(d.type){case"init":e=d.config,h=d.transcoderBinary,t=new Promise(e=>{n={wasmBinary:h,onRuntimeInitialized:e},BASIS(n)}).then(()=>{n.initializeBasis(),void 0===n.KTX2File&&console.warn("THREE.KTX2Loader: Please update Basis Universal transcoder.")});break;case"transcode":t.then(()=>{try{const{faces:t,buffers:s,width:h,height:p,hasAlpha:f,format:m,dfdFlags:g}=function(t){const s=new n.KTX2File(new Uint8Array(t));function d(){s.close(),s.delete()}if(!s.isValid())throw d(),new Error("THREE.KTX2Loader:\tInvalid or unsupported .ktx2 file");const h=s.isUASTC()?a.UASTC_4x4:a.ETC1S,p=s.getWidth(),f=s.getHeight(),m=s.getLayers()||1,g=s.getLevels(),v=s.getFaces(),A=s.getHasAlpha(),y=s.getDFDFlags(),{transcoderFormat:b,engineFormat:_}=function(t,n,s,c){let d,h;const p=t===a.ETC1S?o:l;for(let i=0;i<p.length;i++){const r=p[i];if(e[r.if]&&(r.basisFormat.includes(t)&&!(c&&r.transcoderFormat.length<2)&&(!r.needsPowerOfTwo||u(n)&&u(s))))return d=r.transcoderFormat[c?1:0],h=r.engineFormat[c?1:0],{transcoderFormat:d,engineFormat:h}}return console.warn("THREE.KTX2Loader: No suitable compressed texture format found. Decoding to RGBA32."),d=r.RGBA32,h=i.RGBAFormat,{transcoderFormat:d,engineFormat:h}}(h,p,f,A);if(!p||!f||!g)throw d(),new Error("THREE.KTX2Loader:\tInvalid texture");if(!s.startTranscoding())throw d(),new Error("THREE.KTX2Loader: .startTranscoding failed");const w=[],E=[];for(let e=0;e<v;e++){const t=[];for(let n=0;n<g;n++){const i=[];let r,a;for(let t=0;t<m;t++){const o=s.getImageLevelInfo(n,t,e);0!==e||0!==n||0!==t||o.origWidth%4==0&&o.origHeight%4==0||console.warn("THREE.KTX2Loader: ETC1S and UASTC textures should use multiple-of-four dimensions."),g>1?(r=o.origWidth,a=o.origHeight):(r=o.width,a=o.height);const l=new Uint8Array(s.getImageTranscodedSizeInBytes(n,t,0,b));if(!s.transcodeImage(l,n,t,e,b,0,-1,-1))throw d(),new Error("THREE.KTX2Loader: .transcodeImage failed.");i.push(l)}const o=c(i);t.push({data:o,width:r,height:a}),E.push(o.buffer)}w.push({mipmaps:t,width:p,height:f,format:_})}return d(),{faces:w,buffers:E,width:p,height:f,hasAlpha:A,format:_,dfdFlags:y}}(d.buffer);self.postMessage({type:"transcode",id:d.id,faces:t,width:h,height:p,hasAlpha:f,format:m,dfdFlags:g},s)}catch(e){console.error(e),self.postMessage({type:"error",id:d.id,error:e.message})}})}var h});const s=[{if:"astcSupported",basisFormat:[a.UASTC_4x4],transcoderFormat:[r.ASTC_4x4,r.ASTC_4x4],engineFormat:[i.RGBA_ASTC_4x4_Format,i.RGBA_ASTC_4x4_Format],priorityETC1S:1/0,priorityUASTC:1,needsPowerOfTwo:!1},{if:"bptcSupported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[r.BC7_M5,r.BC7_M5],engineFormat:[i.RGBA_BPTC_Format,i.RGBA_BPTC_Format],priorityETC1S:3,priorityUASTC:2,needsPowerOfTwo:!1},{if:"dxtSupported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[r.BC1,r.BC3],engineFormat:[i.RGB_S3TC_DXT1_Format,i.RGBA_S3TC_DXT5_Format],priorityETC1S:4,priorityUASTC:5,needsPowerOfTwo:!1},{if:"etc2Supported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[r.ETC1,r.ETC2],engineFormat:[i.RGB_ETC2_Format,i.RGBA_ETC2_EAC_Format],priorityETC1S:1,priorityUASTC:3,needsPowerOfTwo:!1},{if:"etc1Supported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[r.ETC1],engineFormat:[i.RGB_ETC1_Format],priorityETC1S:2,priorityUASTC:4,needsPowerOfTwo:!1},{if:"pvrtcSupported",basisFormat:[a.ETC1S,a.UASTC_4x4],transcoderFormat:[r.PVRTC1_4_RGB,r.PVRTC1_4_RGBA],engineFormat:[i.RGB_PVRTC_4BPPV1_Format,i.RGBA_PVRTC_4BPPV1_Format],priorityETC1S:5,priorityUASTC:6,needsPowerOfTwo:!0}],o=s.sort(function(e,t){return e.priorityETC1S-t.priorityETC1S}),l=s.sort(function(e,t){return e.priorityUASTC-t.priorityUASTC});function u(e){return e<=2||!(e&e-1)&&0!==e}function c(e){if(1===e.length)return e[0];let t=0;for(let n=0;n<e.length;n++){t+=e[n].byteLength}const n=new Uint8Array(t);let i=0;for(let t=0;t<e.length;t++){const r=e[t];n.set(r,i),i+=r.byteLength}return n}};const _h=new Set([X,Z,J]),wh={[rh]:X,[th]:X,[$d]:X,[Jd]:X,[ih]:Z,[eh]:Z,[Xd]:Z,[Kd]:Z,[nh]:J,[Zd]:J,[Yd]:J,[Wd]:J,[sh]:ce,[ah]:ce},Eh={[rh]:q,[th]:W,[$d]:H,[Jd]:H,[ih]:q,[eh]:W,[Xd]:H,[Kd]:H,[nh]:q,[Zd]:W,[Yd]:H,[Wd]:H,[sh]:H,[ah]:H};function Sh(e){const t=e.dataFormatDescriptor[0];return 1===t.colorPrimaries?2===t.transferFunction?we:Ee:10===t.colorPrimaries?2===t.transferFunction?Se:Te:(0===t.colorPrimaries||console.warn(`THREE.KTX2Loader: Unsupported color primaries, "${t.colorPrimaries}"`),_e)}var Th,xh;const Ch=Symbol("retainerCount"),Ih=Symbol("recentlyUsed"),Mh=Symbol("evict"),kh=Symbol("evictionThreshold"),Ph=Symbol("cache");class Rh{constructor(e,t=5){this[Th]=new Map,this[xh]=[],this[Ph]=e,this[kh]=t}set evictionThreshold(e){this[kh]=e,this[Mh]()}get evictionThreshold(){return this[kh]}get cache(){return this[Ph]}retainerCount(e){return this[Ch].get(e)||0}reset(){this[Ch].clear(),this[Ih]=[]}retain(e){this[Ch].has(e)||this[Ch].set(e,0),this[Ch].set(e,this[Ch].get(e)+1);const t=this[Ih].indexOf(e);-1!==t&&this[Ih].splice(t,1),this[Ih].unshift(e),this[Mh]()}release(e){this[Ch].has(e)&&this[Ch].set(e,Math.max(this[Ch].get(e)-1,0)),this[Mh]()}[(Th=Ch,xh=Ih,Mh)](){if(!(this[Ih].length<this[kh]))for(let e=this[Ih].length-1;e>=this[kh];--e){const t=this[Ih][e];0===this[Ch].get(t)&&(this[Ph].delete(t),this[Ih].splice(e,1))}}}const Lh=e=>{const t=new Map;for(const n of e.mappings)for(const e of n.variants)t.set(e,{material:null,gltfMaterialIndex:n.material});return t};class Bh{constructor(e){this.parser=e,this.name="KHR_materials_variants"}afterRoot(e){const t=this.parser,n=t.json;if(void 0===n.extensions||void 0===n.extensions[this.name])return null;const i=(e=>{const t=[],n=new Set;for(const i of e){let e=i,r=0;for(;n.has(e);)e=i+"."+ ++r;n.add(e),t.push(e)}return t})((n.extensions[this.name].variants||[]).map(e=>e.name));for(const i of e.scenes)i.traverse(e=>{const i=e;if(!i.material)return;const r=t.associations.get(i);if(null==r||null==r.meshes||null==r.primitives)return;const a=n.meshes[r.meshes].primitives[r.primitives].extensions;a&&a[this.name]&&(i.userData.variantMaterials=Lh(a[this.name]))});return e.userData.variants=i,Promise.resolve()}}var Dh,Nh;wt.DEFAULT_ANISOTROPY=4;const Oh=new Map,Uh=new Map;let Fh;const zh=new class extends pl{constructor(e){super(e),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(e){return this.decoderPath=e,this}setDecoderConfig(e){return this.decoderConfig=e,this}setWorkerLimit(e){return this.workerLimit=e,this}load(e,t,n,i){const r=new gl(this.manager);r.setPath(this.path),r.setResponseType("arraybuffer"),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials),r.load(e,e=>{this.parse(e,t,i)},n,i)}parse(e,t,n=()=>{}){this.decodeDracoFile(e,t,null,null,we).catch(n)}decodeDracoFile(e,t,n,i,r=Ee,a=()=>{}){const s={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:i||this.defaultAttributeTypes,useUniqueIDs:!!n,vertexColorSpace:r};return this.decodeGeometry(e,s).then(t).catch(a)}decodeGeometry(e,t){const n=JSON.stringify(t);if(qc.has(e)){const t=qc.get(e);if(t.key===n)return t.promise;if(0===e.byteLength)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let i;const r=this.workerNextTaskID++,a=e.byteLength,s=this._getWorker(r,a).then(n=>(i=n,new Promise((n,a)=>{i._callbacks[r]={resolve:n,reject:a},i.postMessage({type:"decode",id:r,taskConfig:t,buffer:e},[e])}))).then(e=>this._createGeometry(e.geometry));return s.catch(()=>!0).then(()=>{i&&r&&this._releaseTask(i,r)}),qc.set(e,{key:n,promise:s}),s}_createGeometry(e){const t=new gi;e.index&&t.setIndex(new ai(e.index.array,1));for(let n=0;n<e.attributes.length;n++){const i=e.attributes[n],r=i.name,a=i.array,s=i.itemSize,o=new ai(a,s);"color"===r&&(this._assignVertexColorSpace(o,i.vertexColorSpace),o.normalized=a instanceof Float32Array==!1),t.setAttribute(r,o)}return t}_assignVertexColorSpace(e,t){if(t!==we)return;const n=new Xn;for(let t=0,i=e.count;t<i;t++)n.fromBufferAttribute(e,t).convertSRGBToLinear(),e.setXYZ(t,n.r,n.g,n.b)}_loadLibrary(e,t){const n=new gl(this.manager);return n.setPath(this.decoderPath),n.setResponseType(t),n.setWithCredentials(this.withCredentials),new Promise((t,i)=>{n.load(e,t,void 0,i)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const e="object"!=typeof WebAssembly||"js"===this.decoderConfig.type,t=[];return e?t.push(this._loadLibrary("draco_decoder.js","text")):(t.push(this._loadLibrary("draco_wasm_wrapper.js","text")),t.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(t).then(t=>{const n=t[0];e||(this.decoderConfig.wasmBinary=t[1]);const i=Wc.toString(),r=["/* draco decoder */",n,"","/* worker */",i.substring(i.indexOf("{")+1,i.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([r]))}),this.decoderPending}_getWorker(e,t){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){const e=new Worker(this.workerSourceURL);e._callbacks={},e._taskCosts={},e._taskLoad=0,e.postMessage({type:"init",decoderConfig:this.decoderConfig}),e.onmessage=function(t){const n=t.data;switch(n.type){case"decode":e._callbacks[n.id].resolve(n);break;case"error":e._callbacks[n.id].reject(n);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+n.type+'"')}},this.workerPool.push(e)}else this.workerPool.sort(function(e,t){return e._taskLoad>t._taskLoad?-1:1});const n=this.workerPool[this.workerPool.length-1];return n._taskCosts[e]=t,n._taskLoad+=t,n})}_releaseTask(e,t){e._taskLoad-=e._taskCosts[t],delete e._callbacks[t],delete e._taskCosts[t]}debug(){console.log("Task load: ",this.workerPool.map(e=>e._taskLoad))}dispose(){for(let e=0;e<this.workerPool.length;++e)this.workerPool[e].terminate();return this.workerPool.length=0,""!==this.workerSourceURL&&URL.revokeObjectURL(this.workerSourceURL),this}};let Qh;const Vh=new bh;let Hh,Gh;const jh=Symbol("loader"),qh=Symbol("evictionPolicy"),Wh=Symbol("GLTFInstance");class Yh extends He{constructor(e){super(),this[Nh]=(new Xc).register(e=>new Bh(e)),this[Wh]=e,this[jh].setDRACOLoader(zh),this[jh].setKTX2Loader(Vh)}static setDRACODecoderLocation(e){Fh=e,zh.setDecoderPath(e)}static getDRACODecoderLocation(){return Fh}static setKTX2TranscoderLocation(e){Qh=e,Vh.setTranscoderPath(e)}static getKTX2TranscoderLocation(){return Qh}static setMeshoptDecoderLocation(e){var t;Hh!==e&&(Hh=e,Gh=(t=e,new Promise((e,n)=>{const i=document.createElement("script");document.body.appendChild(i),i.onload=e,i.onerror=n,i.async=!0,i.src=t})).then(()=>MeshoptDecoder.ready).then(()=>MeshoptDecoder))}static getMeshoptDecoderLocation(){return Hh}static initializeKTX2Loader(e){Vh.detectSupport(e)}static get cache(){return Oh}static clearCache(){Oh.forEach((e,t)=>{this.delete(t)}),this[qh].reset()}static has(e){return Oh.has(e)}static async delete(e){if(!this.has(e))return;const t=Oh.get(e);Uh.delete(e),Oh.delete(e);(await t).dispose()}static hasFinishedLoading(e){return!!Uh.get(e)}get[(Dh=qh,Nh=jh,qh)](){return this.constructor[qh]}async preload(e,t,n=()=>{}){if(this[jh].setWithCredentials(Yh.withCredentials),this.dispatchEvent({type:"preload",element:t,src:e}),!Oh.has(e)){null!=Gh&&this[jh].setMeshoptDecoder(await Gh);const t=((e,t,n=()=>{})=>{const i=e=>{const t=e.loaded/e.total;n(Math.max(0,Math.min(1,isFinite(t)?t:1)))};return new Promise((n,r)=>{t.load(e,n,i,r)})})(e,this[jh],e=>{n(.8*e)}),i=this[Wh],r=t.then(e=>i.prepare(e)).then(e=>(n(.9),new i(e))).catch(e=>(console.error(e),new i));Oh.set(e,r)}await Oh.get(e),Uh.set(e,!0),n&&n(1)}async load(e,t,n=()=>{}){await this.preload(e,t,n);const i=await Oh.get(e),r=await i.clone();return this[qh].retain(e),r.dispose=()=>{this[qh].release(e)},r}}Yh[Dh]=new Rh(Yh);class Xh extends Ln{constructor(e=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new tt(.5,.5),this.addEventListener("removed",function(){this.traverse(function(e){e.element instanceof Element&&null!==e.element.parentNode&&e.element.parentNode.removeChild(e.element)})})}copy(e,t){return super.copy(e,t),this.element=e.element.cloneNode(!0),this.center=e.center,this}}const Kh=new Mt,$h=new sn,Jh=new sn,Zh=new Mt,ep=new Mt;class tp{constructor(e={}){const t=this;let n,i,r,a;const s={objects:new WeakMap},o=void 0!==e.element?e.element:document.createElement("div");function l(e,n,i){if(e.isCSS2DObject){Kh.setFromMatrixPosition(e.matrixWorld),Kh.applyMatrix4(Jh);const l=!0===e.visible&&Kh.z>=-1&&Kh.z<=1&&!0===e.layers.test(i.layers);if(e.element.style.display=!0===l?"":"none",!0===l){e.onBeforeRender(t,n,i);const s=e.element;s.style.transform="translate("+-100*e.center.x+"%,"+-100*e.center.y+"%)translate("+(Kh.x*r+r)+"px,"+(-Kh.y*a+a)+"px)",s.parentNode!==o&&o.appendChild(s),e.onAfterRender(t,n,i)}const c={distanceToCameraSquared:u(i,e)};s.objects.set(e,c)}for(let t=0,r=e.children.length;t<r;t++)l(e.children[t],n,i)}function u(e,t){return Zh.setFromMatrixPosition(e.matrixWorld),ep.setFromMatrixPosition(t.matrixWorld),Zh.distanceToSquared(ep)}o.style.overflow="hidden",this.domElement=o,this.getSize=function(){return{width:n,height:i}},this.render=function(e,t){!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),$h.copy(t.matrixWorldInverse),Jh.multiplyMatrices(t.projectionMatrix,$h),l(e,e,t),function(e){const t=function(e){const t=[];return e.traverse(function(e){e.isCSS2DObject&&t.push(e)}),t}(e).sort(function(e,t){if(e.renderOrder!==t.renderOrder)return t.renderOrder-e.renderOrder;return s.objects.get(e).distanceToCameraSquared-s.objects.get(t).distanceToCameraSquared}),n=t.length;for(let e=0,i=t.length;e<i;e++)t[e].element.style.zIndex=n-e}(e)},this.setSize=function(e,t){n=e,i=t,r=n/2,a=i/2,o.style.width=e+"px",o.style.height=t+"px"}}}function np(e,t,n){let i=n;const r=new Mt;return e.updateWorldMatrix(!0,!0),e.traverseVisible(e=>{const{geometry:n}=e;if(void 0!==n){const{position:a}=n.attributes;if(void 0!==a)for(let n=0,s=a.count;n<s;n++)e.isMesh?e.getVertexPosition(n,r):r.fromBufferAttribute(a,n),e.isSkinnedMesh||r.applyMatrix4(e.matrixWorld),i=t(i,r)}}),i}let ip,rp,ap,sp;function op(e,t=1/0,n=null){rp||(rp=new sr(2,2,1,1)),ap||(ap=new Qi({uniforms:{blitTexture:new Xl(e)},vertexShader:"\n\t\t\tvarying vec2 vUv;\n\t\t\tvoid main(){\n\t\t\t\tvUv = uv;\n\t\t\t\tgl_Position = vec4(position.xy * 1.0,0.,.999999);\n\t\t\t}",fragmentShader:"\n\t\t\tuniform sampler2D blitTexture; \n\t\t\tvarying vec2 vUv;\n\n\t\t\tvoid main(){ \n\t\t\t\tgl_FragColor = vec4(vUv.xy, 0, 1);\n\t\t\t\t\n\t\t\t\t#ifdef IS_SRGB\n\t\t\t\tgl_FragColor = LinearTosRGB( texture2D( blitTexture, vUv) );\n\t\t\t\t#else\n\t\t\t\tgl_FragColor = texture2D( blitTexture, vUv);\n\t\t\t\t#endif\n\t\t\t}"})),ap.uniforms.blitTexture.value=e,ap.defines.IS_SRGB=e.colorSpace==we,ap.needsUpdate=!0,sp||(sp=new Bi(rp,ap),sp.frustumCulled=!1);const i=new qi,r=new js;r.add(sp),null===n&&(n=ip=new Gs({antialias:!1}));const a=Math.min(e.image.width,t),s=Math.min(e.image.height,t);n.setSize(a,s),n.clear(),n.render(r,i);const o=document.createElement("canvas"),l=o.getContext("2d");o.width=a,o.height=s,l.drawImage(n.domElement,0,0,a,s);const u=new Vo(o);return u.minFilter=e.minFilter,u.magFilter=e.magFilter,u.wrapS=e.wrapS,u.wrapT=e.wrapT,u.name=e.name,ip&&(ip.forceContextLoss(),ip.dispose(),ip=null),u}const lp={POSITION:["byte","byte normalized","unsigned byte","unsigned byte normalized","short","short normalized","unsigned short","unsigned short normalized"],NORMAL:["byte normalized","short normalized"],TANGENT:["byte normalized","short normalized"],TEXCOORD:["byte","byte normalized","unsigned byte","short","short normalized","unsigned short"]};class up{constructor(){this.pluginCallbacks=[],this.register(function(e){return new Hp(e)}),this.register(function(e){return new Gp(e)}),this.register(function(e){return new Wp(e)}),this.register(function(e){return new Yp(e)}),this.register(function(e){return new Xp(e)}),this.register(function(e){return new Kp(e)}),this.register(function(e){return new jp(e)}),this.register(function(e){return new qp(e)}),this.register(function(e){return new $p(e)}),this.register(function(e){return new Jp(e)}),this.register(function(e){return new Zp(e)}),this.register(function(e){return new ef(e)}),this.register(function(e){return new tf(e)})}register(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}unregister(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,i){const r=new Vp,a=[];for(let e=0,t=this.pluginCallbacks.length;e<t;e++)a.push(this.pluginCallbacks[e](r));r.setPlugins(a),r.write(e,t,i).catch(n)}parseAsync(e,t){const n=this;return new Promise(function(i,r){n.parse(e,i,r,t)})}}const cp=0,dp=1,hp=2,pp=3,fp=4,mp=5120,gp=5121,vp=5122,Ap=5123,yp=5124,bp=5125,_p=5126,wp=34962,Ep=34963,Sp=9728,Tp=9729,xp=9984,Cp=9985,Ip=9986,Mp=9987,kp=33071,Pp=33648,Rp=10497,Lp="KHR_mesh_quantization",Bp={};Bp[O]=Sp,Bp[1004]=xp,Bp[1005]=Ip,Bp[1006]=Tp,Bp[1007]=Cp,Bp[1008]=Mp,Bp[1001]=kp,Bp[1e3]=Rp,Bp[1002]=Pp;const Dp={scale:"scale",position:"translation",quaternion:"rotation",morphTargetInfluences:"weights"},Np=new Xn;function Op(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})}function Up(e){return 4*Math.ceil(e/4)}function Fp(e,t=0){const n=Up(e.byteLength);if(n!==e.byteLength){const i=new Uint8Array(n);if(i.set(new Uint8Array(e)),0!==t)for(let r=e.byteLength;r<n;r++)i[r]=t;return i.buffer}return e}function zp(){return"undefined"==typeof document&&"undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(1,1):document.createElement("canvas")}function Qp(e,t){if(void 0!==e.toBlob)return new Promise(n=>e.toBlob(n,t));let n;return"image/jpeg"===t?n=.92:"image/webp"===t&&(n=.8),e.convertToBlob({type:t,quality:n})}class Vp{constructor(){this.plugins=[],this.options={},this.pending=[],this.buffers=[],this.byteOffset=0,this.buffers=[],this.nodeMap=new Map,this.skins=[],this.extensionsUsed={},this.extensionsRequired={},this.uids=new Map,this.uid=0,this.json={asset:{version:"2.0",generator:"THREE.GLTFExporter"}},this.cache={meshes:new Map,attributes:new Map,attributesNormalized:new Map,materials:new Map,textures:new Map,images:new Map}}setPlugins(e){this.plugins=e}async write(e,t,n={}){this.options=Object.assign({binary:!1,trs:!1,onlyVisible:!0,maxTextureSize:1/0,animations:[],includeCustomExtensions:!1},n),this.options.animations.length>0&&(this.options.trs=!0),this.processInput(e),await Promise.all(this.pending);const i=this,r=i.buffers,a=i.json;n=i.options;const s=i.extensionsUsed,o=i.extensionsRequired,l=new Blob(r,{type:"application/octet-stream"}),u=Object.keys(s),c=Object.keys(o);if(u.length>0&&(a.extensionsUsed=u),c.length>0&&(a.extensionsRequired=c),a.buffers&&a.buffers.length>0&&(a.buffers[0].byteLength=l.size),!0===n.binary){const e=new FileReader;e.readAsArrayBuffer(l),e.onloadend=function(){const n=Fp(e.result),i=new DataView(new ArrayBuffer(8));i.setUint32(0,n.byteLength,!0),i.setUint32(4,5130562,!0);const r=Fp((s=JSON.stringify(a),(new TextEncoder).encode(s).buffer),32);var s;const o=new DataView(new ArrayBuffer(8));o.setUint32(0,r.byteLength,!0),o.setUint32(4,1313821514,!0);const l=new ArrayBuffer(12),u=new DataView(l);u.setUint32(0,1179937895,!0),u.setUint32(4,2,!0);const c=12+o.byteLength+r.byteLength+i.byteLength+n.byteLength;u.setUint32(8,c,!0);const d=new Blob([l,o,r,i,n],{type:"application/octet-stream"}),h=new FileReader;h.readAsArrayBuffer(d),h.onloadend=function(){t(h.result)}}}else if(a.buffers&&a.buffers.length>0){const e=new FileReader;
vendor: 2,503 bytes, line 473
473e.readAsDataURL(l),e.onloadend=function(){const n=e.result;a.buffers[0].uri=n,t(a)}}else t(a)}serializeUserData(e,t){if(0===Object.keys(e.userData).length)return;const n=this.options,i=this.extensionsUsed;try{const r=JSON.parse(JSON.stringify(e.userData));if(n.includeCustomExtensions&&r.gltfExtensions){void 0===t.extensions&&(t.extensions={});for(const e in r.gltfExtensions)t.extensions[e]=r.gltfExtensions[e],i[e]=!0;delete r.gltfExtensions}Object.keys(r).length>0&&(t.extras=r)}catch(t){console.warn("THREE.GLTFExporter: userData of '"+e.name+"' won't be serialized because of JSON.stringify error - "+t.message)}}getUID(e,t=!1){if(!1===this.uids.has(e)){const t=new Map;t.set(!0,this.uid++),t.set(!1,this.uid++),this.uids.set(e,t)}return this.uids.get(e).get(t)}isNormalizedNormalAttribute(e){if(this.cache.attributesNormalized.has(e))return!1;const t=new Mt;for(let n=0,i=e.count;n<i;n++)if(Math.abs(t.fromBufferAttribute(e,n).length()-1)>5e-4)return!1;return!0}createNormalizedNormalAttribute(e){const t=this.cache;if(t.attributesNormalized.has(e))return t.attributesNormalized.get(e);const n=e.clone(),i=new Mt;for(let e=0,t=n.count;e<t;e++)i.fromBufferAttribute(n,e),0===i.x&&0===i.y&&0===i.z?i.setX(1):i.normalize(),n.setXYZ(e,i.x,i.y,i.z);return t.attributesNormalized.set(e,n),n}applyTextureTransform(e,t){let n=!1;const i={};0===t.offset.x&&0===t.offset.y||(i.offset=t.offset.toArray(),n=!0),0!==t.rotation&&(i.rotation=t.rotation,n=!0),1===t.repeat.x&&1===t.repeat.y||(i.scale=t.repeat.toArray(),n=!0),n&&(e.extensions=e.extensions||{},e.extensions.KHR_texture_transform=i,this.extensionsUsed.KHR_texture_transform=!0)}buildMetalRoughTexture(e,t){if(e===t)return e;function n(e){return e.colorSpace===we?function(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}:function(e){return e}}console.warn("THREE.GLTFExporter: Merged metalnessMap and roughnessMap textures."),e instanceof Fo&&(e=op(e)),t instanceof Fo&&(t=op(t));const i=e?e.image:null,r=t?t.image:null,a=Math.max(i?i.width:0,r?r.width:0),s=Math.max(i?i.height:0,r?r.height:0),o=zp();o.width=a,o.height=s;const l=o.getContext("2d");l.fillStyle="#00ffff",l.fillRect(0,0,a,s);const u=l.getImageData(0,0,a,s);if(i){l.drawImage(i,0,0,a,s);const t=n(e),r=l.getImageData(0,0,a,s).data;for(let e=2;e<r.length;e+=4)u.data[e]=256*t(r[e]/256)}if(r){l.drawImage(r,0,0,a,s);const e=n(t),i=l.getImageData(0,0,a,s).data;for(let t=1;t<i.length;t+=4)u.data[t]=256*e(i[t]/256)}l.putImageData(u,0,0);const c=(e||t).clone();
vendor: 8,121 bytes, line 473
473return c.source=new yt(o),c.colorSpace=_e,c.channel=(e||t).channel,e&&t&&e.channel!==t.channel&&console.warn("THREE.GLTFExporter: UV channels for metalnessMap and roughnessMap textures must match."),c}processBuffer(e){const t=this.json,n=this.buffers;return t.buffers||(t.buffers=[{byteLength:0}]),n.push(e),0}processBufferView(e,t,n,i,r){const a=this.json;let s;switch(a.bufferViews||(a.bufferViews=[]),t){case mp:case gp:s=1;break;case vp:case Ap:s=2;break;default:s=4}let o=e.itemSize*s;r===wp&&(o=4*Math.ceil(o/4));const l=Up(i*o),u=new DataView(new ArrayBuffer(l));let c=0;for(let r=n;r<n+i;r++){for(let n=0;n<e.itemSize;n++){let i;e.itemSize>4?i=e.array[r*e.itemSize+n]:(0===n?i=e.getX(r):1===n?i=e.getY(r):2===n?i=e.getZ(r):3===n&&(i=e.getW(r)),!0===e.normalized&&(i=et.normalize(i,e.array))),t===_p?u.setFloat32(c,i,!0):t===yp?u.setInt32(c,i,!0):t===bp?u.setUint32(c,i,!0):t===vp?u.setInt16(c,i,!0):t===Ap?u.setUint16(c,i,!0):t===mp?u.setInt8(c,i):t===gp&&u.setUint8(c,i),c+=s}c%o!==0&&(c+=o-c%o)}const d={buffer:this.processBuffer(u.buffer),byteOffset:this.byteOffset,byteLength:l};void 0!==r&&(d.target=r),r===wp&&(d.byteStride=o),this.byteOffset+=l,a.bufferViews.push(d);return{id:a.bufferViews.length-1,byteLength:0}}processBufferViewImage(e){const t=this,n=t.json;return n.bufferViews||(n.bufferViews=[]),new Promise(function(i){const r=new FileReader;r.readAsArrayBuffer(e),r.onloadend=function(){const e=Fp(r.result),a={buffer:t.processBuffer(e),byteOffset:t.byteOffset,byteLength:e.byteLength};t.byteOffset+=e.byteLength,i(n.bufferViews.push(a)-1)}})}processAccessor(e,t,n,i){const r=this.json;let a;if(e.array.constructor===Float32Array)a=_p;else if(e.array.constructor===Int32Array)a=yp;else if(e.array.constructor===Uint32Array)a=bp;else if(e.array.constructor===Int16Array)a=vp;else if(e.array.constructor===Uint16Array)a=Ap;else if(e.array.constructor===Int8Array)a=mp;else{if(e.array.constructor!==Uint8Array)throw new Error("THREE.GLTFExporter: Unsupported bufferAttribute component type: "+e.array.constructor.name);a=gp}if(void 0===n&&(n=0),void 0!==i&&i!==1/0||(i=e.count),0===i)return null;const s=function(e,t,n){const i={min:new Array(e.itemSize).fill(Number.POSITIVE_INFINITY),max:new Array(e.itemSize).fill(Number.NEGATIVE_INFINITY)};for(let r=t;r<t+n;r++)for(let t=0;t<e.itemSize;t++){let n;e.itemSize>4?n=e.array[r*e.itemSize+t]:(0===t?n=e.getX(r):1===t?n=e.getY(r):2===t?n=e.getZ(r):3===t&&(n=e.getW(r)),!0===e.normalized&&(n=et.normalize(n,e.array))),i.min[t]=Math.min(i.min[t],n),i.max[t]=Math.max(i.max[t],n)}return i}(e,n,i);let o;void 0!==t&&(o=e===t.index?Ep:wp);const l=this.processBufferView(e,a,n,i,o),u={bufferView:l.id,byteOffset:l.byteOffset,componentType:a,count:i,max:s.max,min:s.min,type:{1:"SCALAR",2:"VEC2",3:"VEC3",4:"VEC4",9:"MAT3",16:"MAT4"}[e.itemSize]};return!0===e.normalized&&(u.normalized=!0),r.accessors||(r.accessors=[]),r.accessors.push(u)-1}processImage(e,t,n,i="image/png"){if(null!==e){const r=this,a=r.cache,s=r.json,o=r.options,l=r.pending;a.images.has(e)||a.images.set(e,{});const u=a.images.get(e),c=i+":flipY/"+n.toString();if(void 0!==u[c])return u[c];s.images||(s.images=[]);const d={mimeType:i},h=zp();h.width=Math.min(e.width,o.maxTextureSize),h.height=Math.min(e.height,o.maxTextureSize);const p=h.getContext("2d");if(!0===n&&(p.translate(0,h.height),p.scale(1,-1)),void 0!==e.data){t!==X&&console.error("GLTFExporter: Only RGBAFormat is supported.",t),(e.width>o.maxTextureSize||e.height>o.maxTextureSize)&&console.warn("GLTFExporter: Image size is bigger than maxTextureSize",e);const n=new Uint8ClampedArray(e.height*e.width*4);for(let t=0;t<n.length;t+=4)n[t+0]=e.data[t+0],n[t+1]=e.data[t+1],n[t+2]=e.data[t+2],n[t+3]=e.data[t+3];p.putImageData(new ImageData(n,e.width,e.height),0,0)}else{if(!("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas))throw new Error("THREE.GLTFExporter: Invalid image type. Use HTMLImageElement, HTMLCanvasElement, ImageBitmap or OffscreenCanvas.");p.drawImage(e,0,0,h.width,h.height)}!0===o.binary?l.push(Qp(h,i).then(e=>r.processBufferViewImage(e)).then(e=>{d.bufferView=e})):void 0!==h.toDataURL?d.uri=h.toDataURL(i):l.push(Qp(h,i).then(e=>(new FileReader).readAsDataURL(e)).then(e=>{d.uri=e}));const f=s.images.push(d)-1;return u[c]=f,f}throw new Error("THREE.GLTFExporter: No valid image data found. Unable to process texture.")}processSampler(e){const t=this.json;t.samplers||(t.samplers=[]);const n={magFilter:Bp[e.magFilter],minFilter:Bp[e.minFilter],wrapS:Bp[e.wrapS],wrapT:Bp[e.wrapT]};return t.samplers.push(n)-1}processTexture(e){const t=this.options,n=this.cache,i=this.json;if(n.textures.has(e))return n.textures.get(e);i.textures||(i.textures=[]),e instanceof Fo&&(e=op(e,t.maxTextureSize));let r=e.userData.mimeType;"image/webp"===r&&(r="image/png");const a={sampler:this.processSampler(e),source:this.processImage(e.image,e.format,e.flipY,r)};e.name&&(a.name=e.name),this._invokeAll(function(t){t.writeTexture&&t.writeTexture(e,a)});const s=i.textures.push(a)-1;return n.textures.set(e,s),s}processMaterial(e){const t=this.cache,n=this.json;if(t.materials.has(e))return t.materials.get(e);if(e.isShaderMaterial)return console.warn("GLTFExporter: THREE.ShaderMaterial not supported."),null;n.materials||(n.materials=[]);const i={pbrMetallicRoughness:{}};!0!==e.isMeshStandardMaterial&&!0!==e.isMeshBasicMaterial&&console.warn("GLTFExporter: Use MeshStandardMaterial or MeshBasicMaterial for best results.");const r=e.color.toArray().concat([e.opacity]);if(Op(r,[1,1,1,1])||(i.pbrMetallicRoughness.baseColorFactor=r),e.isMeshStandardMaterial?(i.pbrMetallicRoughness.metallicFactor=e.metalness,i.pbrMetallicRoughness.roughnessFactor=e.roughness):(i.pbrMetallicRoughness.metallicFactor=.5,i.pbrMetallicRoughness.roughnessFactor=.5),e.metalnessMap||e.roughnessMap){const t=this.buildMetalRoughTexture(e.metalnessMap,e.roughnessMap),n={index:this.processTexture(t),channel:t.channel};this.applyTextureTransform(n,t),i.pbrMetallicRoughness.metallicRoughnessTexture=n}if(e.map){const t={index:this.processTexture(e.map),texCoord:e.map.channel};this.applyTextureTransform(t,e.map),i.pbrMetallicRoughness.baseColorTexture=t}if(e.emissive){const t=e.emissive;if(Math.max(t.r,t.g,t.b)>0&&(i.emissiveFactor=e.emissive.toArray()),e.emissiveMap){const t={index:this.processTexture(e.emissiveMap),texCoord:e.emissiveMap.channel};this.applyTextureTransform(t,e.emissiveMap),i.emissiveTexture=t}}if(e.normalMap){const t={index:this.processTexture(e.normalMap),texCoord:e.normalMap.channel};e.normalScale&&1!==e.normalScale.x&&(t.scale=e.normalScale.x),this.applyTextureTransform(t,e.normalMap),i.normalTexture=t}if(e.aoMap){const t={index:this.processTexture(e.aoMap),texCoord:e.aoMap.channel};1!==e.aoMapIntensity&&(t.strength=e.aoMapIntensity),this.applyTextureTransform(t,e.aoMap),i.occlusionTexture=t}e.transparent?i.alphaMode="BLEND":e.alphaTest>0&&(i.alphaMode="MASK",i.alphaCutoff=e.alphaTest),2===e.side&&(i.doubleSided=!0),""!==e.name&&(i.name=e.name),this.serializeUserData(e,i),this._invokeAll(function(t){t.writeMaterial&&t.writeMaterial(e,i)});const a=n.materials.push(i)-1;return t.materials.set(e,a),a}processMesh(e){const t=this.cache,n=this.json,i=[e.geometry.uuid];if(Array.isArray(e.material))for(let t=0,n=e.material.length;t<n;t++)i.push(e.material[t].uuid);else i.push(e.material.uuid);const r=i.join(":");if(t.meshes.has(r))return t.meshes.get(r);const a=e.geometry;let s;s=e.isLineSegments?dp:e.isLineLoop?hp:e.isLine?pp:e.isPoints?cp:e.material.wireframe?dp:fp;const o={},l={},u=[],c=[],d={uv:"TEXCOORD_0",uv1:"TEXCOORD_1",uv2:"TEXCOORD_2",uv3:"TEXCOORD_3",color:"COLOR_0",skinWeight:"WEIGHTS_0",skinIndex:"JOINTS_0"},h=a.getAttribute("normal");void 0===h||this.isNormalizedNormalAttribute(h)||(console.warn("THREE.GLTFExporter: Creating normalized normal attribute from the non-normalized one."),a.setAttribute("normal",this.createNormalizedNormalAttribute(h)));let p=null;
vendor: 5,169 bytes, line 473
473for(let e in a.attributes){if("morph"===e.slice(0,5))continue;const n=a.attributes[e];e=d[e]||e.toUpperCase();if(/^(POSITION|NORMAL|TANGENT|TEXCOORD_\d+|COLOR_\d+|JOINTS_\d+|WEIGHTS_\d+)$/.test(e)||(e="_"+e),t.attributes.has(this.getUID(n))){l[e]=t.attributes.get(this.getUID(n));continue}p=null;const i=n.array;"JOINTS_0"!==e||i instanceof Uint16Array||i instanceof Uint8Array||(console.warn('GLTFExporter: Attribute "skinIndex" converted to type UNSIGNED_SHORT.'),p=new ai(new Uint16Array(i),n.itemSize,n.normalized));const r=this.processAccessor(p||n,a);null!==r&&(e.startsWith("_")||this.detectMeshQuantization(e,n),l[e]=r,t.attributes.set(this.getUID(n),r))}if(void 0!==h&&a.setAttribute("normal",h),0===Object.keys(l).length)return null;if(void 0!==e.morphTargetInfluences&&e.morphTargetInfluences.length>0){const n=[],i=[],r={};if(void 0!==e.morphTargetDictionary)for(const t in e.morphTargetDictionary)r[e.morphTargetDictionary[t]]=t;for(let s=0;s<e.morphTargetInfluences.length;++s){const o={};let l=!1;for(const e in a.morphAttributes){if("position"!==e&&"normal"!==e){l||(console.warn("GLTFExporter: Only POSITION and NORMAL morph are supported."),l=!0);continue}const n=a.morphAttributes[e][s],i=e.toUpperCase(),r=a.attributes[e];if(t.attributes.has(this.getUID(n,!0))){o[i]=t.attributes.get(this.getUID(n,!0));continue}const u=n.clone();if(!a.morphTargetsRelative)for(let e=0,t=n.count;e<t;e++)for(let t=0;t<n.itemSize;t++)0===t&&u.setX(e,n.getX(e)-r.getX(e)),1===t&&u.setY(e,n.getY(e)-r.getY(e)),2===t&&u.setZ(e,n.getZ(e)-r.getZ(e)),3===t&&u.setW(e,n.getW(e)-r.getW(e));o[i]=this.processAccessor(u,a),t.attributes.set(this.getUID(r,!0),o[i])}c.push(o),n.push(e.morphTargetInfluences[s]),void 0!==e.morphTargetDictionary&&i.push(r[s])}o.weights=n,i.length>0&&(o.extras={},o.extras.targetNames=i)}const f=Array.isArray(e.material);if(f&&0===a.groups.length)return null;let m=!1;if(f&&null===a.index){const e=[];for(let t=0,n=a.attributes.position.count;t<n;t++)e[t]=t;a.setIndex(e),m=!0}const g=f?e.material:[e.material],v=f?a.groups:[{materialIndex:0,start:void 0,count:void 0}];for(let e=0,n=v.length;e<n;e++){const n={mode:s,attributes:l};if(this.serializeUserData(a,n),c.length>0&&(n.targets=c),null!==a.index){let i=this.getUID(a.index);void 0===v[e].start&&void 0===v[e].count||(i+=":"+v[e].start+":"+v[e].count),t.attributes.has(i)?n.indices=t.attributes.get(i):(n.indices=this.processAccessor(a.index,a,v[e].start,v[e].count),t.attributes.set(i,n.indices)),null===n.indices&&delete n.indices}const i=this.processMaterial(g[v[e].materialIndex]);null!==i&&(n.material=i),u.push(n)}!0===m&&a.setIndex(null),o.primitives=u,n.meshes||(n.meshes=[]),this._invokeAll(function(t){t.writeMesh&&t.writeMesh(e,o)});const A=n.meshes.push(o)-1;return t.meshes.set(r,A),A}detectMeshQuantization(e,t){if(this.extensionsUsed[Lp])return;let n;switch(t.array.constructor){case Int8Array:n="byte";break;case Uint8Array:n="unsigned byte";break;case Int16Array:n="short";break;case Uint16Array:n="unsigned short";break;default:return}t.normalized&&(n+=" normalized");const i=e.split("_",1)[0];lp[i]&&lp[i].includes(n)&&(this.extensionsUsed[Lp]=!0,this.extensionsRequired[Lp]=!0)}processCamera(e){const t=this.json;t.cameras||(t.cameras=[]);const n=e.isOrthographicCamera,i={type:n?"orthographic":"perspective"};return n?i.orthographic={xmag:2*e.right,ymag:2*e.top,zfar:e.far<=0?.001:e.far,znear:e.near<0?0:e.near}:i.perspective={aspectRatio:e.aspect,yfov:et.degToRad(e.fov),zfar:e.far<=0?.001:e.far,znear:e.near<0?0:e.near},""!==e.name&&(i.name=e.type),t.cameras.push(i)-1}processAnimation(e,t){const n=this.json,i=this.nodeMap;n.animations||(n.animations=[]);const r=(e=up.Utils.mergeMorphTargetTracks(e.clone(),t)).tracks,a=[],s=[];for(let e=0;e<r.length;++e){const n=r[e],o=jl.parseTrackName(n.name);let l=jl.findNode(t,o.nodeName);const u=Dp[o.propertyName];if("bones"===o.objectName&&(l=!0===l.isSkinnedMesh?l.skeleton.getBoneByName(o.objectIndex):void 0),!l||!u)return console.warn('THREE.GLTFExporter: Could not export animation track "%s".',n.name),null;const c=1;let d,h=n.values.length/n.times.length;u===Dp.morphTargetInfluences&&(h/=l.morphTargetInfluences.length),!0===n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline?(d="CUBICSPLINE",h/=3):d=n.getInterpolation()===fe?"STEP":"LINEAR",s.push({input:this.processAccessor(new ai(n.times,c)),output:this.processAccessor(new ai(n.values,h)),interpolation:d}),a.push({sampler:s.length-1,target:{node:i.get(l),path:u}})}return n.animations.push({name:e.name||"clip_"+n.animations.length,samplers:s,channels:a}),n.animations.length-1}processSkin(e){const t=this.json,n=this.nodeMap,i=t.nodes[n.get(e)],r=e.skeleton;if(void 0===r)return null;const a=e.skeleton.bones[0];if(void 0===a)return null;const s=[],o=new Float32Array(16*r.bones.length),l=new sn;for(let t=0;t<r.bones.length;++t)s.push(n.get(r.bones[t])),l.copy(r.boneInverses[t]),l.multiply(e.bindMatrix).toArray(o,16*t);void 0===t.skins&&(t.skins=[]),t.skins.push({inverseBindMatrices:this.processAccessor(new ai(o,16)),joints:s,skeleton:n.get(a)});return i.skin=t.skins.length-1}processNode(e){const t=this.json,n=this.options,i=this.nodeMap;
vendor: 10,238 bytes, line 473
473t.nodes||(t.nodes=[]);const r={};if(n.trs){const t=e.quaternion.toArray(),n=e.position.toArray(),i=e.scale.toArray();Op(t,[0,0,0,1])||(r.rotation=t),Op(n,[0,0,0])||(r.translation=n),Op(i,[1,1,1])||(r.scale=i)}else e.matrixAutoUpdate&&e.updateMatrix(),!1===Op(e.matrix.elements,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])&&(r.matrix=e.matrix.elements);if(""!==e.name&&(r.name=String(e.name)),this.serializeUserData(e,r),e.isMesh||e.isLine||e.isPoints){const t=this.processMesh(e);null!==t&&(r.mesh=t)}else e.isCamera&&(r.camera=this.processCamera(e));if(e.isSkinnedMesh&&this.skins.push(e),e.children.length>0){const t=[];for(let i=0,r=e.children.length;i<r;i++){const r=e.children[i];if(r.visible||!1===n.onlyVisible){const e=this.processNode(r);null!==e&&t.push(e)}}t.length>0&&(r.children=t)}this._invokeAll(function(t){t.writeNode&&t.writeNode(e,r)});const a=t.nodes.push(r)-1;return i.set(e,a),a}processScene(e){const t=this.json,n=this.options;t.scenes||(t.scenes=[],t.scene=0);const i={};""!==e.name&&(i.name=e.name),t.scenes.push(i);const r=[];for(let t=0,i=e.children.length;t<i;t++){const i=e.children[t];if(i.visible||!1===n.onlyVisible){const e=this.processNode(i);null!==e&&r.push(e)}}r.length>0&&(i.nodes=r),this.serializeUserData(e,i)}processObjects(e){const t=new js;t.name="AuxScene";for(let n=0;n<e.length;n++)t.children.push(e[n]);this.processScene(t)}processInput(e){const t=this.options;e=e instanceof Array?e:[e],this._invokeAll(function(t){t.beforeParse&&t.beforeParse(e)});const n=[];for(let t=0;t<e.length;t++)e[t]instanceof js?this.processScene(e[t]):n.push(e[t]);n.length>0&&this.processObjects(n);for(let e=0;e<this.skins.length;++e)this.processSkin(this.skins[e]);for(let n=0;n<t.animations.length;++n)this.processAnimation(t.animations[n],e[0]);this._invokeAll(function(t){t.afterParse&&t.afterParse(e)})}_invokeAll(e){for(let t=0,n=this.plugins.length;t<n;t++)e(this.plugins[t])}}class Hp{constructor(e){this.writer=e,this.name="KHR_lights_punctual"}writeNode(e,t){if(!e.isLight)return;if(!e.isDirectionalLight&&!e.isPointLight&&!e.isSpotLight)return void console.warn("THREE.GLTFExporter: Only directional, point, and spot lights are supported.",e);const n=this.writer,i=n.json,r=n.extensionsUsed,a={};e.name&&(a.name=e.name),a.color=e.color.toArray(),a.intensity=e.intensity,e.isDirectionalLight?a.type="directional":e.isPointLight?(a.type="point",e.distance>0&&(a.range=e.distance)):e.isSpotLight&&(a.type="spot",e.distance>0&&(a.range=e.distance),a.spot={},a.spot.innerConeAngle=(1-e.penumbra)*e.angle,a.spot.outerConeAngle=e.angle),void 0!==e.decay&&2!==e.decay&&console.warn("THREE.GLTFExporter: Light decay may be lost. glTF is physically-based, and expects light.decay=2."),!e.target||e.target.parent===e&&0===e.target.position.x&&0===e.target.position.y&&-1===e.target.position.z||console.warn("THREE.GLTFExporter: Light direction may be lost. For best results, make light.target a child of the light with position 0,0,-1."),r[this.name]||(i.extensions=i.extensions||{},i.extensions[this.name]={lights:[]},r[this.name]=!0);const s=i.extensions[this.name].lights;s.push(a),t.extensions=t.extensions||{},t.extensions[this.name]={light:s.length-1}}}class Gp{constructor(e){this.writer=e,this.name="KHR_materials_unlit"}writeMaterial(e,t){if(!e.isMeshBasicMaterial)return;const n=this.writer.extensionsUsed;t.extensions=t.extensions||{},t.extensions[this.name]={},n[this.name]=!0,t.pbrMetallicRoughness.metallicFactor=0,t.pbrMetallicRoughness.roughnessFactor=.9}}class jp{constructor(e){this.writer=e,this.name="KHR_materials_clearcoat"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0===e.clearcoat)return;const n=this.writer,i=n.extensionsUsed,r={};if(r.clearcoatFactor=e.clearcoat,e.clearcoatMap){const t={index:n.processTexture(e.clearcoatMap),texCoord:e.clearcoatMap.channel};n.applyTextureTransform(t,e.clearcoatMap),r.clearcoatTexture=t}if(r.clearcoatRoughnessFactor=e.clearcoatRoughness,e.clearcoatRoughnessMap){const t={index:n.processTexture(e.clearcoatRoughnessMap),texCoord:e.clearcoatRoughnessMap.channel};n.applyTextureTransform(t,e.clearcoatRoughnessMap),r.clearcoatRoughnessTexture=t}if(e.clearcoatNormalMap){const t={index:n.processTexture(e.clearcoatNormalMap),texCoord:e.clearcoatNormalMap.channel};n.applyTextureTransform(t,e.clearcoatNormalMap),r.clearcoatNormalTexture=t}t.extensions=t.extensions||{},t.extensions[this.name]=r,i[this.name]=!0}}class qp{constructor(e){this.writer=e,this.name="KHR_materials_iridescence"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0===e.iridescence)return;const n=this.writer,i=n.extensionsUsed,r={};if(r.iridescenceFactor=e.iridescence,e.iridescenceMap){const t={index:n.processTexture(e.iridescenceMap),texCoord:e.iridescenceMap.channel};n.applyTextureTransform(t,e.iridescenceMap),r.iridescenceTexture=t}if(r.iridescenceIor=e.iridescenceIOR,r.iridescenceThicknessMinimum=e.iridescenceThicknessRange[0],r.iridescenceThicknessMaximum=e.iridescenceThicknessRange[1],e.iridescenceThicknessMap){const t={index:n.processTexture(e.iridescenceThicknessMap),texCoord:e.iridescenceThicknessMap.channel};n.applyTextureTransform(t,e.iridescenceThicknessMap),r.iridescenceThicknessTexture=t}t.extensions=t.extensions||{},t.extensions[this.name]=r,i[this.name]=!0}}class Wp{constructor(e){this.writer=e,this.name="KHR_materials_transmission"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0===e.transmission)return;const n=this.writer,i=n.extensionsUsed,r={};if(r.transmissionFactor=e.transmission,e.transmissionMap){const t={index:n.processTexture(e.transmissionMap),texCoord:e.transmissionMap.channel};n.applyTextureTransform(t,e.transmissionMap),r.transmissionTexture=t}t.extensions=t.extensions||{},t.extensions[this.name]=r,i[this.name]=!0}}class Yp{constructor(e){this.writer=e,this.name="KHR_materials_volume"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0===e.transmission)return;const n=this.writer,i=n.extensionsUsed,r={};if(r.thicknessFactor=e.thickness,e.thicknessMap){const t={index:n.processTexture(e.thicknessMap),texCoord:e.thicknessMap.channel};n.applyTextureTransform(t,e.thicknessMap),r.thicknessTexture=t}r.attenuationDistance=e.attenuationDistance,r.attenuationColor=e.attenuationColor.toArray(),t.extensions=t.extensions||{},t.extensions[this.name]=r,i[this.name]=!0}}class Xp{constructor(e){this.writer=e,this.name="KHR_materials_ior"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||1.5===e.ior)return;const n=this.writer.extensionsUsed,i={};i.ior=e.ior,t.extensions=t.extensions||{},t.extensions[this.name]=i,n[this.name]=!0}}class Kp{constructor(e){this.writer=e,this.name="KHR_materials_specular"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||1===e.specularIntensity&&e.specularColor.equals(Np)&&!e.specularIntensityMap&&!e.specularColorMap)return;const n=this.writer,i=n.extensionsUsed,r={};if(e.specularIntensityMap){const t={index:n.processTexture(e.specularIntensityMap),texCoord:e.specularIntensityMap.channel};n.applyTextureTransform(t,e.specularIntensityMap),r.specularTexture=t}if(e.specularColorMap){const t={index:n.processTexture(e.specularColorMap),texCoord:e.specularColorMap.channel};n.applyTextureTransform(t,e.specularColorMap),r.specularColorTexture=t}r.specularFactor=e.specularIntensity,r.specularColorFactor=e.specularColor.toArray(),t.extensions=t.extensions||{},t.extensions[this.name]=r,i[this.name]=!0}}class $p{constructor(e){this.writer=e,this.name="KHR_materials_sheen"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0==e.sheen)return;const n=this.writer,i=n.extensionsUsed,r={};if(e.sheenRoughnessMap){const t={index:n.processTexture(e.sheenRoughnessMap),texCoord:e.sheenRoughnessMap.channel};n.applyTextureTransform(t,e.sheenRoughnessMap),r.sheenRoughnessTexture=t}if(e.sheenColorMap){const t={index:n.processTexture(e.sheenColorMap),texCoord:e.sheenColorMap.channel};n.applyTextureTransform(t,e.sheenColorMap),r.sheenColorTexture=t}r.sheenRoughnessFactor=e.sheenRoughness,r.sheenColorFactor=e.sheenColor.toArray(),t.extensions=t.extensions||{},t.extensions[this.name]=r,i[this.name]=!0}}class Jp{constructor(e){this.writer=e,this.name="KHR_materials_anisotropy"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0==e.anisotropy)return;const n=this.writer,i=n.extensionsUsed,r={};if(e.anisotropyMap){const t={index:n.processTexture(e.anisotropyMap)};n.applyTextureTransform(t,e.anisotropyMap),r.anisotropyTexture=t}r.anisotropyStrength=e.anisotropy,r.anisotropyRotation=e.anisotropyRotation,t.extensions=t.extensions||{},t.extensions[this.name]=r,i[this.name]=!0}}class Zp{constructor(e){this.writer=e,this.name="KHR_materials_emissive_strength"}writeMaterial(e,t){if(!e.isMeshStandardMaterial||1===e.emissiveIntensity)return;const n=this.writer.extensionsUsed,i={};i.emissiveStrength=e.emissiveIntensity,t.extensions=t.extensions||{},t.extensions[this.name]=i,n[this.name]=!0}}class ef{constructor(e){this.writer=e,this.name="EXT_materials_bump"}writeMaterial(e,t){if(!e.isMeshStandardMaterial||1===e.bumpScale&&!e.bumpMap)return;const n=this.writer,i=n.extensionsUsed,r={};if(e.bumpMap){const t={index:n.processTexture(e.bumpMap),texCoord:e.bumpMap.channel};n.applyTextureTransform(t,e.bumpMap),r.bumpTexture=t}r.bumpFactor=e.bumpScale,t.extensions=t.extensions||{},t.extensions[this.name]=r,i[this.name]=!0}}class tf{constructor(e){this.writer=e,this.name="EXT_mesh_gpu_instancing"}writeNode(e,t){if(!e.isInstancedMesh)return;const n=this.writer,i=e,r=new Float32Array(3*i.count),a=new Float32Array(4*i.count),s=new Float32Array(3*i.count),o=new sn,l=new Mt,u=new It,c=new Mt;for(let e=0;e<i.count;e++)i.getMatrixAt(e,o),o.decompose(l,u,c),l.toArray(r,3*e),u.toArray(a,4*e),c.toArray(s,3*e);const d={TRANSLATION:n.processAccessor(new ai(r,3)),ROTATION:n.processAccessor(new ai(a,4)),SCALE:n.processAccessor(new ai(s,3))};i.instanceColor&&(d._COLOR_0=n.processAccessor(i.instanceColor)),t.extensions=t.extensions||{},t.extensions[this.name]={attributes:d},n.extensionsUsed[this.name]=!0,n.extensionsRequired[this.name]=!0}}up.Utils={insertKeyframe:function(e,t){const n=.001,i=e.getValueSize(),r=new e.TimeBufferType(e.times.length+1),a=new e.ValueBufferType(e.values.length+i),s=e.createInterpolant(new e.ValueBufferType(i));let o;if(0===e.times.length){r[0]=t;for(let e=0;e<i;e++)a[e]=0;o=0}
vendor: 6,493 bytes, line 473
473else if(t<e.times[0]){if(Math.abs(e.times[0]-t)<n)return 0;r[0]=t,r.set(e.times,1),a.set(s.evaluate(t),0),a.set(e.values,i),o=0}else if(t>e.times[e.times.length-1]){if(Math.abs(e.times[e.times.length-1]-t)<n)return e.times.length-1;r[r.length-1]=t,r.set(e.times,0),a.set(e.values,0),a.set(s.evaluate(t),e.values.length),o=r.length-1}else for(let l=0;l<e.times.length;l++){if(Math.abs(e.times[l]-t)<n)return l;if(e.times[l]<t&&e.times[l+1]>t){r.set(e.times.slice(0,l+1),0),r[l+1]=t,r.set(e.times.slice(l+1),l+2),a.set(e.values.slice(0,(l+1)*i),0),a.set(s.evaluate(t),(l+1)*i),a.set(e.values.slice((l+1)*i),(l+2)*i),o=l+1;break}}return e.times=r,e.values=a,o},mergeMorphTargetTracks:function(e,t){const n=[],i={},r=e.tracks;for(let e=0;e<r.length;++e){let a=r[e];const s=jl.parseTrackName(a.name),o=jl.findNode(t,s.nodeName);if("morphTargetInfluences"!==s.propertyName||void 0===s.propertyIndex){n.push(a);continue}if(a.createInterpolant!==a.InterpolantFactoryMethodDiscrete&&a.createInterpolant!==a.InterpolantFactoryMethodLinear){if(a.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline)throw new Error("THREE.GLTFExporter: Cannot merge tracks with glTF CUBICSPLINE interpolation.");console.warn("THREE.GLTFExporter: Morph target interpolation mode not yet supported. Using LINEAR instead."),a=a.clone(),a.setInterpolation(me)}const l=o.morphTargetInfluences.length,u=o.morphTargetDictionary[s.propertyIndex];if(void 0===u)throw new Error("THREE.GLTFExporter: Morph target name not found: "+s.propertyIndex);let c;if(void 0===i[o.uuid]){c=a.clone();const e=new c.ValueBufferType(l*c.times.length);for(let t=0;t<c.times.length;t++)e[t*l+u]=c.values[t];c.name=(s.nodeName||"")+".morphTargetInfluences",c.values=e,i[o.uuid]=c,n.push(c);continue}const d=a.createInterpolant(new a.ValueBufferType(1));c=i[o.uuid];for(let e=0;e<c.times.length;e++)c.values[e*l+u]=d.evaluate(c.times[e]);for(let e=0;e<a.times.length;e++){const t=this.insertKeyframe(c,a.times[e]);c.values[t*l+u]=a.values[e]}}return e.tracks=n,e}};const nf=e=>void 0!==e.material&&e.userData&&e.userData.variantMaterials&&!!Array.from(e.userData.variantMaterials.values()).filter(e=>rf(e.material)),rf=e=>e&&e.isMaterial&&!Array.isArray(e);class af{constructor(e){this.writer=e,this.name="KHR_materials_variants",this.variantNames=[]}beforeParse(e){const t=new Set;for(const n of e)n.traverse(e=>{if(!nf(e))return;const n=e.userData.variantMaterials,i=e.userData.variantData;for(const[e,r]of i){const i=n.get(r.index);i&&rf(i.material)&&t.add(e)}});t.forEach(e=>this.variantNames.push(e))}writeMesh(e,t){if(!nf(e))return;const n=e.userData,i=n.variantMaterials,r=n.variantData,a=new Map,s=new Map,o=Array.from(r.values()).sort((e,t)=>e.index-t.index);for(const[e,t]of o.entries())s.set(t.index,e);for(const e of r.values()){const t=i.get(e.index);if(!t||!rf(t.material))continue;const n=this.writer.processMaterial(t.material);a.has(n)||a.set(n,{material:n,variants:[]}),a.get(n).variants.push(s.get(e.index))}const l=Array.from(a.values()).map(e=>e.variants.sort((e,t)=>e-t)&&e).sort((e,t)=>e.material-t.material);if(0===l.length)return;const u=rf(n.originalMaterial)?this.writer.processMaterial(n.originalMaterial):-1;for(const e of t.primitives)u>=0&&(e.material=u),e.extensions=e.extensions||{},e.extensions[this.name]={mappings:l}}afterParse(){if(0===this.variantNames.length)return;const e=this.writer.json;e.extensions=e.extensions||{};const t=this.variantNames.map(e=>({name:e}));e.extensions[this.name]={variants:t},this.writer.extensionsUsed[this.name]=!0}}class sf{constructor(e,t,n,i,r){this.xrLight=e,this.renderer=t,this.lightProbe=n,this.xrWebGLBinding=null,this.estimationStartCallback=r,this.frameCallback=this.onXRFrame.bind(this);const a=t.xr.getSession();if(i&&"XRWebGLBinding"in window){const n=new Ki(16);e.environment=n.texture;const i=t.getContext();switch(a.preferredReflectionFormat){case"srgba8":i.getExtension("EXT_sRGB");break;case"rgba16f":i.getExtension("OES_texture_half_float")}this.xrWebGLBinding=new XRWebGLBinding(a,i),this.lightProbe.addEventListener("reflectionchange",()=>{this.updateReflection()})}a.requestAnimationFrame(this.frameCallback)}updateReflection(){const e=this.renderer.properties.get(this.xrLight.environment);if(e){const t=this.xrWebGLBinding.getReflectionCubeMap(this.lightProbe);t&&(e.__webglTexture=t,this.xrLight.environment.needsPMREMUpdate=!0)}}onXRFrame(e,t){if(!this.xrLight)return;t.session.requestAnimationFrame(this.frameCallback);const n=t.getLightEstimate(this.lightProbe);if(n){this.xrLight.lightProbe.sh.fromArray(n.sphericalHarmonicsCoefficients),this.xrLight.lightProbe.intensity=1;const e=Math.max(1,Math.max(n.primaryLightIntensity.x,Math.max(n.primaryLightIntensity.y,n.primaryLightIntensity.z)));this.xrLight.directionalLight.color.setRGB(n.primaryLightIntensity.x/e,n.primaryLightIntensity.y/e,n.primaryLightIntensity.z/e),this.xrLight.directionalLight.intensity=e,this.xrLight.directionalLight.position.copy(n.primaryLightDirection),this.estimationStartCallback&&(this.estimationStartCallback(),this.estimationStartCallback=null)}}dispose(){this.xrLight=null,this.renderer=null,this.lightProbe=null,this.xrWebGLBinding=null}}class of extends Ds{constructor(e,t=!0){super(),this.lightProbe=new Dl,this.lightProbe.intensity=0,this.add(this.lightProbe),this.directionalLight=new Ll,this.directionalLight.intensity=0,this.add(this.directionalLight),this.environment=null;let n=null,i=!1;e.xr.addEventListener("sessionstart",()=>{const r=e.xr.getSession();"requestLightProbe"in r&&r.requestLightProbe({reflectionFormat:r.preferredReflectionFormat}).then(r=>{n=new sf(this,e,r,t,()=>{i=!0,this.dispatchEvent({type:"estimationstart"})})})}),e.xr.addEventListener("sessionend",()=>{n&&(n.dispose(),n=null),i&&this.dispatchEvent({type:"estimationend"})}),this.dispose=()=>{n&&(n.dispose(),n=null),this.remove(this.lightProbe),this.lightProbe=null,this.remove(this.directionalLight),this.directionalLight=null,this.environment=null}}}class lf{constructor(e=50){this.velocity=0,this.naturalFrequency=0,this.setDecayTime(e)}setDecayTime(e){this.naturalFrequency=1/Math.max(.001,e)}update(e,t,n,i){const r=2e-4*this.naturalFrequency;if(null==e||0===i)return t;if(e===t&&0===this.velocity)return t;if(n<0)return e;const a=e-t,s=this.velocity+this.naturalFrequency*a,o=a+n*s,l=Math.exp(-this.naturalFrequency*n),u=(s-this.naturalFrequency*o)*l,c=-this.naturalFrequency*(u+s*l);return Math.abs(u)<r*Math.abs(i)&&c*a>=0?(this.velocity=0,t):(this.velocity=u,t+o*l)}}
vendor: 4,249 bytes, line 473
473const uf=.2,cf=Math.PI/24,df=new tt,hf=(e,t,n)=>{let i=t>0?n>0?0:-Math.PI/2:n>0?Math.PI/2:Math.PI;for(let r=0;r<=12;++r)e.push(t+.17*Math.cos(i),n+.17*Math.sin(i),0,t+uf*Math.cos(i),n+uf*Math.sin(i),0),i+=cf};class pf extends Bi{constructor(e,t){const n=new gi,i=[],r=[],{size:a,boundingBox:s}=e,o=a.x/2,l=("back"===t?a.y:a.z)/2;hf(r,o,l),hf(r,-o,l),hf(r,-o,-l),hf(r,o,-l);const u=r.length/3;for(let e=0;e<u-2;e+=2)i.push(e,e+1,e+3,e,e+3,e+2);const c=u-2;i.push(c,c+1,1,c,1,0),n.setAttribute("position",new li(r,3)),n.setIndex(i),super(n),this.side=t;const d=this.material;switch(d.side=2,d.transparent=!0,d.opacity=0,this.goalOpacity=0,this.opacityDamper=new lf,this.hitPlane=new Bi(new sr(2*(o+uf),2*(l+uf))),this.hitPlane.visible=!1,this.hitPlane.material.side=2,this.add(this.hitPlane),s.getCenter(this.position),t){case"bottom":this.rotateX(-Math.PI/2),this.shadowHeight=s.min.y,this.position.y=this.shadowHeight;break;case"back":this.shadowHeight=s.min.z,this.position.z=this.shadowHeight}e.target.add(this),this.offsetHeight=0}getHit(e,t,n){df.set(t,-n),this.hitPlane.visible=!0;const i=e.positionAndNormalFromPoint(df,this.hitPlane);return this.hitPlane.visible=!1,null==i?null:i.position}getExpandedHit(e,t,n){this.hitPlane.scale.set(1e3,1e3,1e3),this.hitPlane.updateMatrixWorld();const i=this.getHit(e,t,n);return this.hitPlane.scale.set(1,1,1),i}set offsetHeight(e){e-=.001,"back"===this.side?this.position.z=this.shadowHeight+e:this.position.y=this.shadowHeight+e}get offsetHeight(){return"back"===this.side?this.position.z-this.shadowHeight:this.position.y-this.shadowHeight}set show(e){this.goalOpacity=e?.75:0}updateOpacity(e){const t=this.material;t.opacity=this.opacityDamper.update(t.opacity,this.goalOpacity,e,1),this.visible=t.opacity>0}dispose(){var e;const{geometry:t,material:n}=this.hitPlane;t.dispose(),n.dispose(),this.geometry.dispose(),this.material.dispose(),null===(e=this.parent)||void 0===e||e.remove(this)}}const ff=(e,t)=>({type:"number",number:e,unit:t}),mf=(()=>{const e={};return t=>{const n=t;if(n in e)return e[n];const i=[];let r=0;for(;t;){if(++r>1e3){t="";break}const e=gf(t),n=e.nodes[0];if(null==n||0===n.terms.length)break;i.push(n),t=e.remainingInput}return e[n]=i}})(),gf=(()=>{const e=/^(\-\-|[a-z\u0240-\uffff])/i,t=/^([\*\+\/]|[\-]\s)/i,n=/^[\),]/;return i=>{const r=[];for(;i.length&&(i=i.trim(),!n.test(i));)if("("===i[0]){const{nodes:e,remainingInput:t}=bf(i);i=t,r.push({type:"function",name:{type:"ident",value:"calc"},arguments:e})}else if(e.test(i)){const e=vf(i),t=e.nodes[0];if("("===(i=e.remainingInput)[0]){const{nodes:e,remainingInput:n}=bf(i);r.push({type:"function",name:t,arguments:e}),i=n}else r.push(t)}else if(t.test(i))r.push({type:"operator",value:i[0]}),i=i.slice(1);else{const{nodes:e,remainingInput:t}="#"===i[0]?yf(i):Af(i);if(0===e.length)break;r.push(e[0]),i=t}return{nodes:[{type:"expression",terms:r}],remainingInput:i}}})(),vf=(()=>{const e=/[^a-z0-9_\-\u0240-\uffff]/i;return t=>{const n=t.match(e);return{nodes:[{type:"ident",value:null==n?t:t.substr(0,n.index)}],remainingInput:null==n?"":t.substr(n.index)}}})(),Af=(()=>{const e=/[\+\-]?(\d+[\.]\d+|\d+|[\.]\d+)([eE][\+\-]?\d+)?/,t=/^[a-z%]+/i,n=/^(m|mm|cm|rad|deg|[%])$/;return i=>{const r=i.match(e),a=null==r?"0":r[0],s=(i=null==a?i:i.slice(a.length)).match(t);let o=null!=s&&""!==s[0]?s[0]:null;const l=null==s?i:i.slice(o.length);return null==o||n.test(o)||(o=null),{nodes:[{type:"number",number:parseFloat(a)||0,unit:o}],remainingInput:l}}})(),yf=(()=>{const e=/^[a-f0-9]*/i;return t=>{const n=(t=t.slice(1).trim()).match(e);return{nodes:null==n?[]:[{type:"hex",value:n[0]}],remainingInput:null==n?t:t.slice(n[0].length)}}})(),bf=e=>{const t=[];for(e=e.slice(1).trim();e.length;){const n=gf(e);if(t.push(n.nodes[0]),","===(e=n.remainingInput.trim())[0])e=e.slice(1).trim();else if(")"===e[0]){e=e.slice(1);break}}return{nodes:t,remainingInput:e}},_f=Symbol("visitedTypes");class wf{constructor(e){this[_f]=e}walk(e,t){const n=e.slice();for(;n.length;){const e=n.shift();switch(this[_f].indexOf(e.type)>-1&&t(e),e.type){case"expression":n.unshift(...e.terms);break;case"function":n.unshift(e.name,...e.arguments)}}}}const Ef=Object.freeze({type:"number",number:0,unit:null}),Sf=(e,t=0)=>{let{number:n,unit:i}=e;
vendor: 5,899 bytes, line 473
473if(isFinite(n)){if("rad"===e.unit||null==e.unit)return e}else n=t,i="rad";return{type:"number",number:("deg"===i&&null!=n?n:0)*Math.PI/180,unit:"rad"}},Tf=(e,t=0)=>{let n,{number:i,unit:r}=e;if(isFinite(i)){if("m"===e.unit)return e}else i=t,r="m";switch(r){default:n=1;break;case"cm":n=.01;break;case"mm":n=.001}return{type:"number",number:n*i,unit:"m"}},xf=(()=>{const e=e=>e,t={rad:e,deg:Sf,m:e,mm:Tf,cm:Tf};return(e,n=Ef)=>{isFinite(e.number)||(e.number=n.number,e.unit=n.unit);const{unit:i}=e;if(null==i)return e;const r=t[i];return null==r?n:r(e)}})();var Cf,If,Mf;const kf=Symbol("evaluate"),Pf=Symbol("lastValue");class Rf{constructor(){this[Cf]=null}static evaluatableFor(e,t=Ef){if(e instanceof Rf)return e;if("number"===e.type)return"%"===e.unit?new Df(e,t):e;switch(e.name.value){case"calc":return new zf(e,t);case"env":return new Of(e)}return Ef}static evaluate(e){return e instanceof Rf?e.evaluate():e}static isConstant(e){return!(e instanceof Rf)||e.isConstant}static applyIntrinsics(e,t){const{basis:n,keywords:i}=t,{auto:r}=i;return n.map((t,n)=>{const a=null==r[n]?t:r[n];let s=e[n]?e[n]:a;if("ident"===s.type){const e=s.value;e in i&&(s=i[e][n])}return null!=s&&"ident"!==s.type||(s=a),"%"===s.unit?ff(s.number/100*t.number,t.unit):(s=xf(s,t),s.unit!==t.unit?t:s)})}get isConstant(){return!1}evaluate(){return this.isConstant&&null!=this[Pf]||(this[Pf]=this[kf]()),this[Pf]}}Cf=Pf;const Lf=Symbol("percentage"),Bf=Symbol("basis");class Df extends Rf{constructor(e,t){super(),this[Lf]=e,this[Bf]=t}get isConstant(){return!0}[kf](){return ff(this[Lf].number/100*this[Bf].number,this[Bf].unit)}}const Nf=Symbol("identNode");class Of extends Rf{constructor(e){super(),this[If]=null;const t=e.arguments.length?e.arguments[0].terms[0]:null;null!=t&&"ident"===t.type&&(this[Nf]=t)}get isConstant(){return!1}[(If=Nf,kf)](){if(null!=this[Nf]&&"window-scroll-y"===this[Nf].value){return{type:"number",number:window.pageYOffset/(Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)-window.innerHeight)||0,unit:null}}return Ef}}const Uf=/[\*\/]/,Ff=Symbol("evaluator");class zf extends Rf{constructor(e,t=Ef){if(super(),this[Mf]=null,1!==e.arguments.length)return;const n=e.arguments[0].terms.slice(),i=[];for(;n.length;){const e=n.shift();if(i.length>0){const n=i[i.length-1];if("operator"===n.type&&Uf.test(n.value)){const n=i.pop(),r=i.pop();if(null==r)return;i.push(new Gf(n,Rf.evaluatableFor(r,t),Rf.evaluatableFor(e,t)));continue}}i.push("operator"===e.type?e:Rf.evaluatableFor(e,t))}for(;i.length>2;){const[e,n,r]=i.splice(0,3);if("operator"!==n.type)return;i.unshift(new Gf(n,Rf.evaluatableFor(e,t),Rf.evaluatableFor(r,t)))}1===i.length&&(this[Ff]=i[0])}get isConstant(){return null==this[Ff]||Rf.isConstant(this[Ff])}[(Mf=Ff,kf)](){return null!=this[Ff]?Rf.evaluate(this[Ff]):Ef}}const Qf=Symbol("operator"),Vf=Symbol("left"),Hf=Symbol("right");class Gf extends Rf{constructor(e,t,n){super(),this[Qf]=e,this[Vf]=t,this[Hf]=n}get isConstant(){return Rf.isConstant(this[Vf])&&Rf.isConstant(this[Hf])}[kf](){const e=xf(Rf.evaluate(this[Vf])),t=xf(Rf.evaluate(this[Hf])),{number:n,unit:i}=e,{number:r,unit:a}=t;if(null!=a&&null!=i&&a!=i)return Ef;const s=i||a;let o;switch(this[Qf].value){case"+":o=n+r;break;case"-":o=n-r;break;case"/":o=n/r;break;case"*":o=n*r;break;default:return Ef}return{type:"number",number:o,unit:s}}}const jf=Symbol("evaluatables"),qf=Symbol("intrinsics");class Wf extends Rf{constructor(e,t){super(),this[qf]=t;const n=e[0],i=null!=n?n.terms:[];this[jf]=t.basis.map((e,t)=>{const n=i[t];return null==n?{type:"ident",value:"auto"}:"ident"===n.type?n:Rf.evaluatableFor(n,e)})}get isConstant(){for(const e of this[jf])if(!Rf.isConstant(e))return!1;return!0}[kf](){const e=this[jf].map(e=>Rf.evaluate(e));return Rf.applyIntrinsics(e,this[qf]).map(e=>e.number)}}var Yf,Xf,Kf,$f;const Jf=Symbol("instances"),Zf=Symbol("activateListener"),em=Symbol("deactivateListener"),tm=Symbol("notifyInstances"),nm=Symbol("notify"),im=Symbol("callback");class rm{constructor(e){this[im]=e}static[tm](){for(const e of rm[Jf])e[nm]()}static[(Yf=Jf,Zf)](){window.addEventListener("scroll",this[tm],{passive:!0})}static[em](){window.removeEventListener("scroll",this[tm])}observe(){0===rm[Jf].size&&rm[Zf](),rm[Jf].add(this)}disconnect(){rm[Jf].delete(this),0===rm[Jf].size&&rm[em]()}[nm](){this[im]()}}rm[Yf]=new Set;const am=Symbol("computeStyleCallback"),sm=Symbol("astWalker"),om=Symbol("dependencies"),lm=Symbol("onScroll");class um{constructor(e){this[Xf]={},this[Kf]=new wf(["function"]),this[$f]=()=>{this[am]({relatedState:"window-scroll"})},this[am]=e}observeEffectsFor(e){const t={},n=this[om];this[sm].walk(e,e=>{const{name:i}=e,r=e.arguments[0].terms[0];if("env"===i.value&&null!=r&&"ident"===r.type&&"window-scroll-y"===r.value)if(null==t["window-scroll"]){const e="window-scroll"in n?n["window-scroll"]:new rm(this[lm]);e.observe(),delete n["window-scroll"],t["window-scroll"]=e}});for(const e in n){n[e].disconnect()}this[om]=t}dispose(){for(const e in this[om]){this[om][e].disconnect()}}}Xf=om,Kf=sm,$f=lm;const cm=e=>{const t=e.observeEffects||!1,n=e.intrinsics instanceof Function?e.intrinsics:()=>e.intrinsics;return(i,r)=>{const a=i.updated,s=i.connectedCallback,o=i.disconnectedCallback,l=Symbol(`${r}StyleEffector`),u=Symbol(`${r}StyleEvaluator`),c=Symbol(`${r}UpdateEvaluator`),d=Symbol(`${r}EvaluateAndSync`);Object.defineProperties(i,{[l]:{value:null,writable:!0},[u]:{value:null,writable:!0},[c]:{value:function(){const e=mf(this[r]);this[u]=new Wf(e,n(this)),null==this[l]&&t&&(this[l]=new um(()=>this[d]())),null!=this[l]&&this[l].observeEffectsFor(e)}},[d]:{value:function(){if(null==this[u])return;const t=this[u].evaluate();this[e.updateHandler](t)}},updated:{value:function(e){e.has(r)&&(this[c](),this[d]()),a.call(this,e)}}
vendor: 13,913 bytes, line 473
473,connectedCallback:{value:function(){s.call(this),this.requestUpdate(r,this[r])}},disconnectedCallback:{value:function(){o.call(this),null!=this[l]&&(this[l].dispose(),this[l]=null)}}})}},dm=e=>e<.5?2*e*e:(4-2*e)*e-1,hm=(e,t,n=dm)=>i=>e+(t-e)*n(i),pm=e=>{const t=[],n=[];let i=e.initialValue;for(let r=0;r<e.keyframes.length;++r){const a=e.keyframes[r],{value:s,frames:o}=a,l=a.ease||dm,u=hm(i,s,l);t.push(u),n.push(o),i=s}return((e,t)=>{const n=t.map((i=0,e=>i+=e));var i;return t=>{t=Oc(t,0,1),t*=n[n.length-1];const i=n.findIndex(e=>e>=t),r=i<1?0:n[i-1],a=n[i];return e[i]((t-r)/(a-r))}})(t,n)};var fm=function(e,t,n,i){for(var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i,o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};const mm=pm({initialValue:0,keyframes:[{frames:5,value:-1},{frames:1,value:-1},{frames:8,value:1},{frames:1,value:1},{frames:5,value:0},{frames:18,value:0}]}),gm=pm({initialValue:0,keyframes:[{frames:1,value:1},{frames:5,value:1},{frames:1,value:0},{frames:6,value:0}]}),vm="0deg 75deg 105%",Am=["front","right","back","left"],ym=["upper-","","lower-"],bm="auto",_m="basic",wm="wiggle",Em="none",Sm=()=>({basis:[Sf(ff(30,"deg"))],keywords:{auto:[null]}}),Tm=()=>({basis:[Sf(ff(12,"deg"))],keywords:{auto:[null]}}),xm=(()=>{const e=mf(vm)[0].terms,t=xf(e[0]),n=xf(e[1]);return e=>{const i=e[sb].idealCameraDistance();return{basis:[t,n,ff(i,"m")],keywords:{auto:[null,null,ff(105,"%")]}}}})(),Cm=e=>{const t=2.2*e[sb].boundingSphere.radius;return{basis:[ff(-1/0,"rad"),ff(Math.PI/8,"rad"),ff(t,"m")],keywords:{auto:[null,null,null]}}},Im=e=>{const t=xm(e),n=new Wf([],t).evaluate()[2];return{basis:[ff(1/0,"rad"),ff(Math.PI-Math.PI/8,"rad"),ff(n,"m")],keywords:{auto:[null,null,null]}}},Mm=e=>{const t=e[sb].boundingBox.getCenter(new Mt);return{basis:[ff(t.x,"m"),ff(t.y,"m"),ff(t.z,"m")],keywords:{auto:[null,null,null]}}},km=Math.PI/2,Pm=Math.PI/3,Rm=km/2,Lm=2*Math.PI,Bm=Symbol("controls"),Dm=Symbol("panElement"),Nm=Symbol("promptElement"),Om=Symbol("promptAnimatedContainer"),Um=Symbol("fingerAnimatedContainers"),Fm=Symbol("deferInteractionPrompt"),zm=Symbol("updateAria"),Qm=Symbol("a11y"),Vm=Symbol("updateA11y"),Hm=Symbol("updateCameraForRadius"),Gm=Symbol("cancelPrompts"),jm=Symbol("onChange"),qm=Symbol("onPointerChange"),Wm=Symbol("waitingToPromptUser"),Ym=Symbol("userHasInteracted"),Xm=Symbol("promptElementVisibleTime"),Km=Symbol("lastPromptOffset"),$m=Symbol("cancellationSource"),Jm=Symbol("lastSpherical"),Zm=Symbol("jumpCamera"),eg=Symbol("initialized"),tg=Symbol("maintainThetaPhi"),ng=Symbol("syncCameraOrbit"),ig=Symbol("syncFieldOfView"),rg=Symbol("syncCameraTarget"),ag=Symbol("syncMinCameraOrbit"),sg=Symbol("syncMaxCameraOrbit"),og=Symbol("syncMinFieldOfView"),lg=Symbol("syncMaxFieldOfView"),ug=new tt,cg=new Mt,dg=Object.freeze({minimumRadius:0,maximumRadius:1/0,minimumPolarAngle:Math.PI/8,maximumPolarAngle:Math.PI-Math.PI/8,minimumAzimuthalAngle:-1/0,maximumAzimuthalAngle:1/0,minimumFieldOfView:10,maximumFieldOfView:45,touchAction:"none"}),hg=Math.PI/8,pg=.04,fg={USER_INTERACTION:"user-interaction",NONE:"none",AUTOMATIC:"automatic"};class mg extends He{constructor(e,t,n){super(),this.camera=e,this.element=t,this.scene=n,this.orbitSensitivity=1,this.zoomSensitivity=1,this.panSensitivity=1,this.inputSensitivity=1,this.changeSource=fg.NONE,this._interactionEnabled=!1,this._disableZoom=!1,this.isUserPointing=!1,this.enablePan=!0,this.enableTap=!0,this.panProjection=new nt,this.panPerPixel=0,this.spherical=new Zl,this.goalSpherical=new Zl,this.thetaDamper=new lf,this.phiDamper=new lf,this.radiusDamper=new lf,this.logFov=Math.log(dg.maximumFieldOfView),this.goalLogFov=this.logFov,this.fovDamper=new lf,this.touchMode=null,this.pointers=[],this.startTime=0,this.startPointerPosition={clientX:0,clientY:0},this.lastSeparation=0,this.touchDecided=!1,this.onContext=e=>{if(this.enablePan)e.preventDefault();else for(const e of this.pointers)this.onPointerUp(new PointerEvent("pointercancel",Object.assign(Object.assign({},this.startPointerPosition),{pointerId:e.id})))},this.touchModeZoom=(e,t)=>{if(!this._disableZoom){const e=this.twoTouchDistance(this.pointers[0],this.pointers[1]),t=pg*this.zoomSensitivity*(this.lastSeparation-e)*50/this.scene.height;this.lastSeparation=e,this.userAdjustOrbit(0,0,t)}this.panPerPixel>0&&this.movePan(e,t)},this.disableScroll=e=>{e.preventDefault()},this.touchModeRotate=(e,t)=>{const{touchAction:n}=this._options;if(!this.touchDecided&&"none"!==n){this.touchDecided=!0;const i=Math.abs(e),r=Math.abs(t);if(this.changeSource===fg.USER_INTERACTION&&("pan-y"===n&&r>i||"pan-x"===n&&i>r))return void(this.touchMode=null);this.element.addEventListener("touchmove",this.disableScroll,{passive:!1})}this.handleSinglePointerMove(e,t)},this.onPointerDown=e=>{if(this.pointers.length>2)return;const{element:t}=this;0===this.pointers.length&&(t.addEventListener("pointermove",this.onPointerMove),t.addEventListener("pointerup",this.onPointerUp),this.touchMode=null,this.touchDecided=!1,this.startPointerPosition.clientX=e.clientX,this.startPointerPosition.clientY=e.clientY,this.startTime=performance.now());try{t.setPointerCapture(e.pointerId)}catch(e){}this.pointers.push({clientX:e.clientX,clientY:e.clientY,id:e.pointerId}),this.isUserPointing=!1,"touch"===e.pointerType?(this.changeSource=e.altKey?fg.AUTOMATIC:fg.USER_INTERACTION,this.onTouchChange(e)):(this.changeSource=fg.USER_INTERACTION,this.onMouseDown(e)),this.changeSource===fg.USER_INTERACTION&&this.dispatchEvent({type:"user-interaction"})},this.onPointerMove=e=>{const t=this.pointers.find(t=>t.id===e.pointerId);if(null==t)return;if("mouse"===e.pointerType&&0===e.buttons)return void this.onPointerUp(e);const n=this.pointers.length,i=(e.clientX-t.clientX)/n,r=(e.clientY-t.clientY)/n;0===i&&0===r||(t.clientX=e.clientX,t.clientY=e.clientY,"touch"===e.pointerType?(this.changeSource=e.altKey?fg.AUTOMATIC:fg.USER_INTERACTION,null!==this.touchMode&&this.touchMode(i,r)):(this.changeSource=fg.USER_INTERACTION,this.panPerPixel>0?this.movePan(i,r):this.handleSinglePointerMove(i,r)))},this.onPointerUp=e=>{const{element:t}=this,n=this.pointers.findIndex(t=>t.id===e.pointerId);-1!==n&&this.pointers.splice(n,1),this.panPerPixel>0&&!e.altKey&&this.resetRadius(),0===this.pointers.length?(t.removeEventListener("pointermove",this.onPointerMove),t.removeEventListener("pointerup",this.onPointerUp),t.removeEventListener("touchmove",this.disableScroll),this.enablePan&&this.enableTap&&this.recenter(e)):null!==this.touchMode&&this.onTouchChange(e),this.scene.element[Dm].style.opacity=0,t.style.cursor="grab",this.panPerPixel=0,this.isUserPointing&&this.dispatchEvent({type:"pointer-change-end"})},this.onWheel=e=>{this.changeSource=fg.USER_INTERACTION;const t=e.deltaY*(1==e.deltaMode?18:1)*pg*this.zoomSensitivity/30;this.userAdjustOrbit(0,0,t),e.preventDefault(),this.dispatchEvent({type:"user-interaction"})},this.onKeyDown=e=>{const{changeSource:t}=this;this.changeSource=fg.USER_INTERACTION;(e.shiftKey&&this.enablePan?this.panKeyCodeHandler(e):this.orbitZoomKeyCodeHandler(e))?(e.preventDefault(),this.dispatchEvent({type:"user-interaction"})):this.changeSource=t},this._options=Object.assign({},dg),this.setOrbit(0,Math.PI/2,1),this.setFieldOfView(100),this.jumpToGoal()}get interactionEnabled(){return this._interactionEnabled}enableInteraction(){if(!1===this._interactionEnabled){const{element:e}=this;e.addEventListener("pointerdown",this.onPointerDown),e.addEventListener("pointercancel",this.onPointerUp),this._disableZoom||e.addEventListener("wheel",this.onWheel),e.addEventListener("keydown",this.onKeyDown),e.addEventListener("touchmove",()=>{},{passive:!1}),e.addEventListener("contextmenu",this.onContext),this.element.style.cursor="grab",this._interactionEnabled=!0,this.updateTouchActionStyle()}}disableInteraction(){if(!0===this._interactionEnabled){const{element:e}=this;e.removeEventListener("pointerdown",this.onPointerDown),e.removeEventListener("pointermove",this.onPointerMove),e.removeEventListener("pointerup",this.onPointerUp),e.removeEventListener("pointercancel",this.onPointerUp),e.removeEventListener("wheel",this.onWheel),e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("contextmenu",this.onContext),e.style.cursor="",this.touchMode=null,this._interactionEnabled=!1,this.updateTouchActionStyle()}}get options(){return this._options}set disableZoom(e){this._disableZoom!=e&&(this._disableZoom=e,!0===e?this.element.removeEventListener("wheel",this.onWheel):this.element.addEventListener("wheel",this.onWheel),this.updateTouchActionStyle())}getCameraSpherical(e=new Zl){return e.copy(this.spherical)}getFieldOfView(){return this.camera.fov}applyOptions(e){Object.assign(this._options,e),this.setOrbit(),this.setFieldOfView(Math.exp(this.goalLogFov))}updateNearFar(e,t){this.camera.far=0===t?2:t,this.camera.near=Math.max(e,this.camera.far/1e3),this.camera.updateProjectionMatrix()}updateAspect(e){this.camera.aspect=e,this.camera.updateProjectionMatrix()}setOrbit(e=this.goalSpherical.theta,t=this.goalSpherical.phi,n=this.goalSpherical.radius){const{minimumAzimuthalAngle:i,maximumAzimuthalAngle:r,minimumPolarAngle:a,maximumPolarAngle:s,minimumRadius:o,maximumRadius:l}=this._options,{theta:u,phi:c,radius:d}=this.goalSpherical,h=Oc(e,i,r);isFinite(i)||isFinite(r)||(this.spherical.theta=this.wrapAngle(this.spherical.theta-h)+h);const p=Oc(t,a,s),f=Oc(n,o,l);return(h!==u||p!==c||f!==d)&&(!!(isFinite(h)&&isFinite(p)&&isFinite(f))&&(this.goalSpherical.theta=h,this.goalSpherical.phi=p,this.goalSpherical.radius=f,this.goalSpherical.makeSafe(),!0))}setRadius(e){this.goalSpherical.radius=e,this.setOrbit()}setFieldOfView(e){const{minimumFieldOfView:t,maximumFieldOfView:n}=this._options;e=Oc(e,t,n),this.goalLogFov=Math.log(e)}setDamperDecayTime(e){this.thetaDamper.setDecayTime(e),this.phiDamper.setDecayTime(e),this.radiusDamper.setDecayTime(e),this.fovDamper.setDecayTime(e)}adjustOrbit(e,t,n){const{theta:i,phi:r,radius:a}=this.goalSpherical,{minimumRadius:s,maximumRadius:o,minimumFieldOfView:l,maximumFieldOfView:u}=this._options,c=this.spherical.theta-i,d=Math.PI-.001,h=i-Oc(e,-d-c,d-c),p=r-t,f=0===n?0:((n>0?o:s)-a)/(Math.log(n>0?u:l)-this.goalLogFov),m=a+n*(isFinite(f)?f:2*(o-s));if(this.setOrbit(h,p,m),0!==n){const e=this.goalLogFov+n;this.setFieldOfView(Math.exp(e))}}jumpToGoal(){this.update(0,1e4)}update(e,t){if(this.isStationary())return!1;const{maximumPolarAngle:n,maximumRadius:i}=this._options,r=this.spherical.theta-this.goalSpherical.theta;return Math.abs(r)>Math.PI&&!isFinite(this._options.minimumAzimuthalAngle)&&!isFinite(this._options.maximumAzimuthalAngle)&&(this.spherical.theta-=2*Math.sign(r)*Math.PI),this.spherical.theta=this.thetaDamper.update(this.spherical.theta,this.goalSpherical.theta,t,Math.PI),this.spherical.phi=this.phiDamper.update(this.spherical.phi,this.goalSpherical.phi,t,n),this.spherical.radius=this.radiusDamper.update(this.spherical.radius,this.goalSpherical.radius,t,i),this.logFov=this.fovDamper.update(this.logFov,this.goalLogFov,t,1),this.moveCamera(),!0}updateTouchActionStyle(){const{style:e}=this.element;if(this._interactionEnabled){const{touchAction:t}=this._options;this._disableZoom&&"none"!==t?e.touchAction="manipulation":e.touchAction=t}else e.touchAction=""}isStationary(){return this.goalSpherical.theta===this.spherical.theta&&this.goalSpherical.phi===this.spherical.phi&&this.goalSpherical.radius===this.spherical.radius&&this.goalLogFov===this.logFov}moveCamera(){this.spherical.makeSafe(),this.camera.position.setFromSpherical(this.spherical),this.camera.setRotationFromEuler(new gn(this.spherical.phi-Math.PI/2,this.spherical.theta,0,"YXZ")),this.camera.fov!==Math.exp(this.logFov)&&(this.camera.fov=Math.exp(this.logFov),this.camera.updateProjectionMatrix())}userAdjustOrbit(e,t,n){this.adjustOrbit(e*this.orbitSensitivity*this.inputSensitivity,t*this.orbitSensitivity*this.inputSensitivity,n*this.inputSensitivity)}wrapAngle(e){const t=(e+Math.PI)/(2*Math.PI);return 2*(t-Math.floor(t))*Math.PI-Math.PI}pixelLengthToSphericalAngle(e){return 2*Math.PI*e/this.scene.height}twoTouchDistance(e,t){const{clientX:n,clientY:i}=e,{clientX:r,clientY:a}=t,s=r-n,o=a-i;return Math.sqrt(s*s+o*o)}handleSinglePointerMove(e,t){const n=this.pixelLengthToSphericalAngle(e),i=this.pixelLengthToSphericalAngle(t);!1===this.isUserPointing&&(this.isUserPointing=!0,this.dispatchEvent({type:"pointer-change-start"})),this.userAdjustOrbit(n,i,0)}initializePan(){const{theta:e,phi:t}=this.spherical,n=e-this.scene.yaw;this.panPerPixel=.018*this.panSensitivity/this.scene.height,this.panProjection.set(-Math.cos(n),-Math.cos(t)*Math.sin(n),0,0,Math.sin(t),0,Math.sin(n),-Math.cos(t)*Math.cos(n),0)}movePan(e,t){const{scene:n}=this,i=cg.set(e,t,0).multiplyScalar(this.inputSensitivity),r=this.spherical.radius*Math.exp(this.logFov)*this.panPerPixel;i.multiplyScalar(r);const a=n.getTarget();a.add(i.applyMatrix3(this.panProjection)),n.boundingSphere.clampPoint(a,a),n.setTarget(a.x,a.y,a.z)}recenter(e){if(performance.now()>this.startTime+300||Math.abs(e.clientX-this.startPointerPosition.clientX)>2||Math.abs(e.clientY-this.startPointerPosition.clientY)>2)return;const{scene:t}=this,n=t.positionAndNormalFromPoint(t.getNDC(e.clientX,e.clientY));if(null==n){const{cameraTarget:e}=t.element;t.element.cameraTarget="",t.element.cameraTarget=e,this.userAdjustOrbit(0,0,1)}else t.target.worldToLocal(n.position),t.setTarget(n.position.x,n.position.y,n.position.z)}resetRadius(){const{scene:e}=this,t=e.positionAndNormalFromPoint(ug.set(0,0));if(null==t)return;e.target.worldToLocal(t.position);const n=e.getTarget(),{theta:i,phi:r}=this.spherical,a=i-e.yaw,s=cg.set(Math.sin(r)*Math.sin(a),Math.cos(r),Math.sin(r)*Math.cos(a)),o=s.dot(t.position.sub(n));n.add(s.multiplyScalar(o)),e.setTarget(n.x,n.y,n.z),this.setOrbit(void 0,void 0,this.goalSpherical.radiu
vendor: 4,308 bytes, line 473
473s-o)}onTouchChange(e){if(1===this.pointers.length)this.touchMode=this.touchModeRotate;else{if(this._disableZoom)return this.touchMode=null,void this.element.removeEventListener("touchmove",this.disableScroll);this.touchMode=this.touchDecided&&null===this.touchMode?null:this.touchModeZoom,this.touchDecided=!0,this.element.addEventListener("touchmove",this.disableScroll,{passive:!1}),this.lastSeparation=this.twoTouchDistance(this.pointers[0],this.pointers[1]),this.enablePan&&null!=this.touchMode&&(this.initializePan(),e.altKey||(this.scene.element[Dm].style.opacity=1))}}onMouseDown(e){this.panPerPixel=0,this.enablePan&&(2===e.button||e.ctrlKey||e.metaKey||e.shiftKey)&&(this.initializePan(),this.scene.element[Dm].style.opacity=1),this.element.style.cursor="grabbing"}orbitZoomKeyCodeHandler(e){let t=!0;switch(e.key){case"PageUp":this.userAdjustOrbit(0,0,pg*this.zoomSensitivity);break;case"PageDown":this.userAdjustOrbit(0,0,-.04*this.zoomSensitivity);break;case"ArrowUp":this.userAdjustOrbit(0,-hg,0);break;case"ArrowDown":this.userAdjustOrbit(0,hg,0);break;case"ArrowLeft":this.userAdjustOrbit(-hg,0,0);break;case"ArrowRight":this.userAdjustOrbit(hg,0,0);break;default:t=!1}return t}panKeyCodeHandler(e){this.initializePan();let t=!0;switch(e.key){case"ArrowUp":this.movePan(0,-10);break;case"ArrowDown":this.movePan(0,10);break;case"ArrowLeft":this.movePan(-10,0);break;case"ArrowRight":this.movePan(10,0);break;default:t=!1}return t}}const gg=1/1.3,vg="not-presenting",Ag="session-started",yg="object-placed",bg="failed",_g="tracking",wg="not-tracking",Eg=new Mt,Sg=new sn,Tg=new Mt,xg=new qi(45,1,.1,100);class Cg extends He{constructor(e){super(),this.renderer=e,this.currentSession=null,this.placeOnWall=!1,this.placementBox=null,this.lastTick=null,this.turntableRotation=null,this.oldShadowIntensity=null,this.frame=null,this.initialHitSource=null,this.transientHitTestSource=null,this.inputSource=null,this._presentedScene=null,this.resolveCleanup=null,this.exitWebXRButtonContainer=null,this.overlay=null,this.xrLight=null,this.tracking=!0,this.frames=0,this.initialized=!1,this.oldTarget=new Mt,this.placementComplete=!1,this.isTranslating=!1,this.isRotating=!1,this.isTwoFingering=!1,this.lastDragPosition=new Mt,this.firstRatio=0,this.lastAngle=0,this.goalPosition=new Mt,this.goalYaw=0,this.goalScale=1,this.xDamper=new lf,this.yDamper=new lf,this.zDamper=new lf,this.yawDamper=new lf,this.scaleDamper=new lf,this.onExitWebXRButtonContainerClick=()=>this.stopPresenting(),this.onUpdateScene=()=>{null!=this.placementBox&&this.isPresenting&&(this.placementBox.dispose(),this.placementBox=new pf(this.presentedScene,this.placeOnWall?"back":"bottom"))},this.onSelectStart=e=>{const t=this.transientHitTestSource;if(null==t)return;const n=this.frame.getHitTestResultsForTransientInput(t),i=this.presentedScene,r=this.placementBox;if(1===n.length){this.inputSource=e.inputSource;const{axes:t}=this.inputSource.gamepad,n=r.getHit(this.presentedScene,t[0],t[1]);r.show=!0,null!=n?(this.isTranslating=!0,this.lastDragPosition.copy(n)):!1===this.placeOnWall&&(this.isRotating=!0,this.lastAngle=1.5*t[0])}else if(2===n.length){r.show=!0,this.isTwoFingering=!0;const{separation:e}=this.fingerPolar(n);this.firstRatio=e/i.scale.x}},this.onSelectEnd=()=>{this.isTranslating=!1,this.isRotating=!1,this.isTwoFingering=!1,this.inputSource=null,this.goalPosition.y+=this.placementBox.offsetHeight*this.presentedScene.scale.x,this.placementBox.show=!1},this.threeRenderer=e.threeRenderer,this.threeRenderer.xr.enabled=!0}async resolveARSession(){Bc();const e=await navigator.xr.requestSession("immersive-ar",{requiredFeatures:["hit-test"],optionalFeatures:["dom-overlay","light-estimation"],domOverlay:this.overlay?{root:this.overlay}:void 0});return this.threeRenderer.xr.setReferenceSpaceType("local"),await this.threeRenderer.xr.setSession(e),this.threeRenderer.xr.cameraAutoUpdate=!1,e}get presentedScene(){return this._presentedScene}async supportsPresentation(){try{return Bc(),await navigator.xr.isSessionSupported("immersive-ar")}catch(e){return console.warn("Request to present in WebXR denied:"),console.warn(e),console.warn("Falling back to next ar-mode"),!1}}async present(e,t=!1){this.isPresenting&&console.warn("Cannot present while a model is already presenting");let n=new Promise((e,t)=>
473{requestAnimationFrame(()=>e())});e.setHotspotsVisibility(!1),e.queueRender(),await n,this._presentedScene=e,this.overlay=e.element.shadowRoot.querySelector("div.default"),!0===t&&(this.xrLight=new of(this.threeRenderer),this.xrLight.addEventListener("estimationstart",()=>{if(!this.isPresenting||null==this.xrLight)return;const e=this.presentedScene;e.add(this.xrLight),e.environment=this.xrLight.environment}));const i=await this.resolveARSession();i.addEventListener("end",()=>{this.postSessionCleanup()},{once:!0});const r=e.element.shadowRoot.querySelector(".slot.exit-webxr-ar-button");r.classList.add("enabled"),r.addEventListener("click",this.onExitWebXRButtonContainerClick),this.exitWebXRButtonContainer=r;const a=await i.requestReferenceSpace("viewer");this.tracking=!0,this.frames=0,this.initialized=!1,this.turntableRotation=e.yaw,this.goalYaw=e.yaw,this.goalScale=1,e.setBackground(null),this.oldShadowIntensity=e.shadowIntensity,e.setShadowIntensity(.01),this.oldTarget.copy(e.getTarget()),e.element.addEventListener("load",this.onUpdateScene);const s=20*Math.PI/180,o=!0===this.placeOnWall?void 0:new XRRay(new DOMPoint(0,0,0),{x:0,y:-Math.sin(s),z:-Math.cos(s)});i.requestHitTestSource({space:a,offsetRay:o}).then(e=>{this.initialHitSource=e}),this.currentSession=i,this.placementBox=new pf(e,this.placeOnWall?"back":"bottom"),this.placementComplete=!1,this.lastTick=performance.now(),this.dispatchEvent({type:"status",status:Ag})}async stopPresenting(){if(!this.isPresenting)return;const e=new Promise(e=>{this.resolveCleanup=e});try{await this.currentSession.end(),await e}catch(e){console.warn("Error while trying to end WebXR AR session"),console.warn(e),this.postSessionCleanup()}}get isPresenting(){return null!=this.presentedScene}get target(){return this.oldTarget}updateTarget(){const e=this.presentedScene;if(null!=e){const t=e.getTarget();this.oldTarget.copy(t),this.placeOnWall?t.z=e.boundingBox.min.z:t.y=e.boundingBox.min.y,e.setTarget(t.x,t.y,t.z)}}postSessionCleanup(){const e=this.currentSession;null!=e&&(e.removeEventListener("selectstart",this.onSelectStart),e.removeEventListener("selectend",this.onSelectEnd),this.currentSession=null);const t=this.presentedScene;if(this._presentedScene=null,null!=t){const{element:e}=t;null!=this.xrLight&&(t.remove(this.xrLight),this.xrLight.dispose(),this.xrLight=null),t.position.set(0,0,0),t.scale.set(1,1,1),t.setShadowOffset(0);const n=this.turntableRotation;null!=n&&(t.yaw=n);const i=this.oldShadowIntensity;null!=i&&t.setShadowIntensity(i),t.setEnvironmentAndSkybox(e[Qc],e[Vc]);const r=this.oldTarget;t.setTarget(r.x,r.y,r.z),t.xrCamera=null,t.element.removeEventListener("load",this.onUpdateScene),t.orientHotspots(0),e.requestUpdate("cameraTarget"),e.requestUpdate("maxCameraOrbit"),e[cb](e.getBoundingClientRect()),requestAnimationFrame(()=>{t.element.dispatchEvent(new CustomEvent("camera-change",{detail:{source:fg.NONE}}))})}this.renderer.height=0;const n=this.exitWebXRButtonContainer;null!=n&&(n.classList.remove("enabled"),n.removeEventListener("click",this.onExitWebXRButtonContainerClick),this.exitWebXRButtonContainer=null);const i=this.transientHitTestSource;null!=i&&(i.cancel(),this.transientHitTestSource=null);const r=this.initialHitSource;null!=r&&(r.cancel(),this.initialHitSource=null),null!=this.placementBox&&(this.placementBox.dispose(),this.placementBox=null),this.lastTick=null,this.turntableRotation=null,this.oldShadowIntensity=null,this.frame=null,this.inputSource=null,this.overlay=null,null!=this.resolveCleanup&&this.resolveCleanup(),this.dispatchEvent({type:"status",status:vg})}updateView(e){const t=this.presentedScene,n=this.threeRenderer.xr;n.updateCamera(xg),t.xrCamera=n.getCamera();const{elements:i}=t.getCamera().matrixWorld;if(t.orientHotspots(Math.atan2(i[1],i[5])),this.initialized||(this.placeInitially(),this.initialized=!0),e.requestViewportScale&&e.recommendedViewportScale){const t=e.recommendedViewportScale;e.requestViewportScale(Math.max(t,.25))}const r=n.getBaseLayer();if(null!=r){const t=r instanceof XRWebGLLayer?r.getViewport(e):n.getBinding().getViewSubImage(r,e).viewport;this.threeRenderer.setViewport(t.x,t.y,t.width,t.height)}}placeInitially(){const e=this.presentedScene,{position:t,element:n}=e,i=e.getCamera(),{width:r,height:a}=this.overlay.getBoundingClientRect();e.setSize(r,a),i.projectionMatrixInverse.copy(i.projectionMatrix).invert();const{theta:s,radius:o}=n.getCameraOrbit(),l=i.getWorldDirection(Eg);e.yaw=Math.atan2(-l.x,-l.z)-s,this.goalYaw=e.yaw,t.copy(i.position).add(l.multiplyScalar(o)),this.updateTarget();const u=e.getTarget();t.add(u).sub(this.oldTarget),this.goalPosition.copy(t),e.setHotspotsVisibility(!0);const{session:c}=this.frame;c.addEventListener("selectstart",this.onSelectStart),c.addEventListener("selectend",this.onSelectEnd),c.requestHitTestSourceForTransientInput({profile:"generic-touchscreen"}).then(e=>{this.transientHitTestSource=e})}getTouchLocation(){const{axes:e}=this.inputSource.gamepad;let t=this.placementBox.getExpandedHit(this.presentedScene,e[0],e[1]);return null!=t&&(Eg.copy(t).sub(this.presentedScene.getCamera().position),Eg.length()>10)?null:t}getHitPoint(e){const t=this.threeRenderer.xr.getReferenceSpace(),n=e.getPose(t);if(null==n)return null;const i=Sg.fromArray(n.transform.matrix);return!0===this.placeOnWall&&(this.goalYaw=Math.atan2(i.elements[4],i.elements[6])),i.elements[5]>.75!==this.placeOnWall?Tg.setFromMatrixPosition(i):null}moveToFloor(e){const t=this.initialHitSource;if(null==t)return;const n=e.getHitTestResults(t);if(0==n.length)return;const i=n[0],r=this.getHitPoint(i);null!=r&&(this.placementBox.show=!0,this.isTranslating||(this.placeOnWall?this.goalPosition.copy(r):this.goalPosition.y=r.y),t.cancel(),this.initialHitSource=null,this.dispatchEvent({type:"status",status:yg}))}fingerPolar(e){const t=e[0].inputSource.gamepad.axes,n=e[1].inputSource.gamepad.axes,i=n[0]-t[0],r=n[1]-t[1],a=Math.atan2(r,i);let s=this.lastAngle-a;return s>Math.PI?s-=2*Math.PI:s<-Math.PI&&(s+=2*Math.PI),this.lastAngle=a,{separation:Math.sqrt(i*i+r*r),deltaYaw:s}}processInput(e){const t=this.transientHitTestSource;if(null==t)return;if(!this.isTranslating&&!this.isTwoFingering&&!this.isRotating)return;const n=e.getHitTestResultsForTransientInput(t),i=this.presentedScene,r=i.scale.x;if(this.isTwoFingering)if(n.length<2)this.isTwoFingering=!1;else{const{separation:e,deltaYaw:t}=this.fingerPolar(n);if(!1===this.placeOnWall&&(this.goalYaw+=t),i.canScale){const t=e/this.firstRatio;this.goalScale=t<1.3&&t>gg?1:t}}else{if(2===n.length){this.isTranslating=!1,this.isRotating=!1,this.isTwoFingering=!0;const{separation:e}=this.fingerPolar(n);return void(this.firstRatio=e/r)}if(this.isRotating){const e=1.5*this.inputSource.gamepad.axes[0];this.goalYaw+=e-this.lastAngle,this.lastAngle=e}
vendor: 6,564 bytes, line 473
473else this.isTranslating&&n.forEach(e=>{if(e.inputSource!==this.inputSource)return;let t=null;if(e.results.length>0&&(t=this.getHitPoint(e.results[0])),null==t&&(t=this.getTouchLocation()),null!=t){if(this.goalPosition.sub(this.lastDragPosition),!1===this.placeOnWall){const e=t.y-this.lastDragPosition.y;if(e<0){this.placementBox.offsetHeight=e/r,this.presentedScene.setShadowOffset(e);const n=Eg.copy(i.getCamera().position),a=-e/(n.y-t.y);n.multiplyScalar(a),t.multiplyScalar(1-a).add(n)}}this.goalPosition.add(t),this.lastDragPosition.copy(t)}})}}moveScene(e){const t=this.presentedScene,{position:n,yaw:i}=t,r=t.boundingSphere.radius,a=this.goalPosition,s=t.scale.x,o=this.placementBox;let l=fg.NONE;if(!a.equals(n)||this.goalScale!==s){l=fg.USER_INTERACTION;let{x:i,y:u,z:c}=n;i=this.xDamper.update(i,a.x,e,r),u=this.yDamper.update(u,a.y,e,r),c=this.zDamper.update(c,a.z,e,r),n.set(i,u,c);const d=this.scaleDamper.update(s,this.goalScale,e,1);if(t.scale.set(d,d,d),!this.isTranslating){const e=a.y-u;this.placementComplete&&!1===this.placeOnWall?(o.offsetHeight=e/d,t.setShadowOffset(e)):0===e&&(this.placementComplete=!0,o.show=!1,t.setShadowIntensity(.8))}}o.updateOpacity(e),t.updateTarget(e),t.yaw=this.yawDamper.update(i,this.goalYaw,e,Math.PI),t.element.dispatchEvent(new CustomEvent("camera-change",{detail:{source:l}}))}onWebXRFrame(e,t){this.frame=t,++this.frames;const n=this.threeRenderer.xr.getReferenceSpace(),i=t.getViewerPose(n);null==i&&!0===this.tracking&&this.frames>30&&(this.tracking=!1,this.dispatchEvent({type:"tracking",status:wg}));const r=this.presentedScene;if(null==i||null==r||!r.element.loaded)return void this.threeRenderer.clear();!1===this.tracking&&(this.tracking=!0,this.dispatchEvent({type:"tracking",status:_g}));let a=!0;for(const n of i.views){if(this.updateView(n),a){this.moveToFloor(t),this.processInput(t);const n=e-this.lastTick;this.moveScene(n),this.renderer.preRender(r,e,n),this.lastTick=e,r.renderShadow(this.threeRenderer)}this.threeRenderer.render(r,r.getCamera()),a=!1}}}function Ig(e){const t=new Map,n=new Map,i=e.clone();return Mg(e,i,function(e,i){t.set(i,e),n.set(e,i)}),i.traverse(function(e){if(!e.isSkinnedMesh)return;const i=e,r=t.get(e),a=r.skeleton.bones;i.skeleton=r.skeleton.clone(),i.bindMatrix.copy(r.bindMatrix),i.skeleton.bones=a.map(function(e){return n.get(e)}),i.bind(i.skeleton,i.bindMatrix)}),i}function Mg(e,t,n){n(e,t);for(let i=0;i<e.children.length;i++)Mg(e.children[i],t.children[i],n)}const kg=Symbol("prepared"),Pg=Symbol("prepare"),Rg=Symbol("preparedGLTF"),Lg=Symbol("clone");class Bg{constructor(e){this[Rg]=e}static prepare(e){if(null==e.scene)throw new Error("Model does not have a scene");if(e[kg])return e;const t=this[Pg](e);return t[kg]=!0,t}static[Pg](e){const{scene:t}=e,n=[t];return Object.assign(Object.assign({},e),{scene:t,scenes:n})}get parser(){return this[Rg].parser}get animations(){return this[Rg].animations}get scene(){return this[Rg].scene}get scenes(){return this[Rg].scenes}get cameras(){return this[Rg].cameras}get asset(){return this[Rg].asset}get userData(){return this[Rg].userData}clone(){return new(0,this.constructor)(this[Lg]())}dispose(){this.scenes.forEach(e=>{e.traverse(e=>{const t=e;if(!t.material)return;(Array.isArray(t.material)?t.material:[t.material]).forEach(e=>{for(const t in e){const n=e[t];if(n instanceof wt){const e=n.source.data;null!=e.close&&e.close(),n.dispose()}}e.dispose()}),t.geometry.dispose()})})}[Lg](){const e=this[Rg],t=Ig(this.scene);Dg(t,this.scene);const n=[t],i=e.userData?Object.assign({},e.userData):{};return Object.assign(Object.assign({},e),{scene:t,scenes:n,userData:i})}}const Dg=(e,t)=>{Ng(e,t,(e,t)=>{void 0!==t.userData.variantMaterials&&(e.userData.variantMaterials=new Map(t.userData.variantMaterials)),void 0!==t.userData.variantData&&(e.userData.variantData=t.userData.variantData),void 0!==t.userData.originalMaterial&&(e.userData.originalMaterial=t.userData.originalMaterial)})},Ng=(e,t,n)=>{n(e,t);for(let i=0;i<e.children.length;i++)Ng(e.children[i],t.children[i],n)},Og=Symbol("threeGLTF"),Ug=Symbol("gltf"),Fg=Symbol("gltfElementMap"),zg=Symbol("threeObjectMap"),Qg=Symbol("parallelTraverseThreeScene"),Vg=Symbol("correlateOriginalThreeGLTF"),Hg=Symbol("correlateCloneThreeGLTF");class Gg{constructor(e,t,n,i){this[Og]=e,this[Ug]=t,this[Fg]=i,this[zg]=n}static from(e,t){return null!=t?this[Hg](e,t):this[Vg](e)}static[Vg](e){const t=e.parser.json,n=e.parser.associations,i=new Map,r={name:"Default"},a={type:"materials",index:-1};for(const e of n.keys())e instanceof Jn&&null==n.get(e)&&(a.index<0&&(null==t.materials&&(t.materials=[]),a.index=t.materials.length,t.materials.push(r)),e.name=r.name,n.set(e,{materials:a.index}));for(const[e,r]of n){r&&(e.userData=e.userData||{},e.userData.associations=r);for(const n in r)if(null!=n&&"primitives"!==n){const a=n,s=(t[a]||[])[r[a]];if(null==s)continue;let o=i.get(s);null==o&&(o=new Set,i.set(s,o)),o.add(e)}}return new Gg(e,t,n,i)}static[Hg](e,t){const n=t.threeGLTF,i=t.gltf,r=JSON.parse(JSON.stringify(i)),a=new Map,s=new Map;for(let i=0;i<n.scenes.length;i++)this[Qg](n.scenes[i],e.scenes[i],(e,n)=>{const i=t.threeObjectMap.get(e);if(null!=i)for(const e in i)if(null!=e&&"primitives"!==e){const t=e,o=i[t],l=r[t][o],u=a.get(n)||{};u[t]=o,a.set(n,u);const c=s.get(l)||new Set;c.add(n),s.set(l,c)}});return new Gg(e,r,a,s)}static[Qg](e,t,n){const i=(e,t)=>{if(n(e,t),e.isObject3D){const r=e,a=t;if(r.material)if(Array.isArray(r.material))for(let e=0;e<r.material.length;++e)n(r.material[e],a.material[e]);else n(r.material,a.material);for(let n=0;n<e.children.length;++n)i(e.children[n],t.children[n])}};i(e,t)}get threeGLTF(){return this[Og]}get gltf(){return this[Ug]}get gltfElementMap(){return this[Fg]}get threeObjectMap(){return this[zg]}}const jg=Symbol("correlatedSceneGraph");class qg extends Bg{static[Pg](e){const t=super[Pg](e);null==t[jg]&&(t[jg]=Gg.from(t));const{scene:n}=t,i=new Kt(void 0,1/0);return n.traverse(e=>{e.renderOrder=1e3,e.frustumCulled=!1,e.name||(e.name=e.uuid);const n=e;if(n.material){const{geometry:e}=n;n.castShadow=!0,n.isSkinnedMesh&&(e.boundingSphere=i,e.boundingBox=null);const r=n.material;if(!0===r.isMeshBasicMaterial&&(r.toneMapped=!1),r.shadowSide=0,r.aoMap){const{gltf:n,threeObjectMap:i}=t[jg],a=i.get(r);if(null!=n.materials&&null!=a&&null!=a.materials){const t=n.materials[a.materials];t.occlusionTexture&&0===t.occlusionTexture.texCoord&&null!=e.attributes.uv&&e.setAttribute("uv2",e.attributes.uv)}}}}),t}get correlatedSceneGraph(){return this[Rg][jg]}[Lg](){const e=super[Lg](),t=new Map;
473return e.scene.traverse(e=>{const n=e;if(n.material){const e=n.material;if(null!=e){if(t.has(e.uuid))return void(n.material=t.get(e.uuid));n.material=e.clone(),t.set(e.uuid,n.material)}}const i=e;void 0!==i.target&&i.add(i.target)}),e[jg]=Gg.from(e,this.correlatedSceneGraph),e}}const Wg=(e,t,n)=>{let i;switch(e){case H:i=new Uint8ClampedArray(t*n*4);break;case W:i=new Uint16Array(t*n*4);break;case j:i=new Uint32Array(t*n*4);break;case 1010:i=new Int8Array(t*n*4);break;case 1011:i=new Int16Array(t*n*4);break;case G:i=new Int32Array(t*n*4);break;case q:i=new Float32Array(t*n*4);break;default:throw new Error("Unsupported data type")}return i};let Yg;class Xg{constructor(e){var t,n,i,r,a,s,o,l,u,c,d,h,p,f,m,g;this._rendererIsDisposable=!1,this._supportsReadPixels=!0,this.render=()=>{this._renderer.setRenderTarget(this._renderTarget);try{this._renderer.render(this._scene,this._camera)}catch(e){throw this._renderer.setRenderTarget(null),e}this._renderer.setRenderTarget(null)},this._width=e.width,this._height=e.height,this._type=e.type,this._colorSpace
vendor: 4,583 bytes, line 473
473=e.colorSpace;const v={format:X,depthBuffer:!1,stencilBuffer:!1,type:this._type,colorSpace:this._colorSpace,anisotropy:void 0!==(null===(t=e.renderTargetOptions)||void 0===t?void 0:t.anisotropy)?null===(n=e.renderTargetOptions)||void 0===n?void 0:n.anisotropy:1,generateMipmaps:void 0!==(null===(i=e.renderTargetOptions)||void 0===i?void 0:i.generateMipmaps)&&(null===(r=e.renderTargetOptions)||void 0===r?void 0:r.generateMipmaps),magFilter:void 0!==(null===(a=e.renderTargetOptions)||void 0===a?void 0:a.magFilter)?null===(s=e.renderTargetOptions)||void 0===s?void 0:s.magFilter:z,minFilter:void 0!==(null===(o=e.renderTargetOptions)||void 0===o?void 0:o.minFilter)?null===(l=e.renderTargetOptions)||void 0===l?void 0:l.minFilter:z,samples:void 0!==(null===(u=e.renderTargetOptions)||void 0===u?void 0:u.samples)?null===(c=e.renderTargetOptions)||void 0===c?void 0:c.samples:void 0,wrapS:void 0!==(null===(d=e.renderTargetOptions)||void 0===d?void 0:d.wrapS)?null===(h=e.renderTargetOptions)||void 0===h?void 0:h.wrapS:D,wrapT:void 0!==(null===(p=e.renderTargetOptions)||void 0===p?void 0:p.wrapT)?null===(f=e.renderTargetOptions)||void 0===f?void 0:f.wrapT:D};if(this._material=e.material,e.renderer?this._renderer=e.renderer:(this._renderer=Xg.instantiateRenderer(),this._rendererIsDisposable=!0),this._scene=new js,this._camera=new yr,this._camera.position.set(0,0,10),this._camera.left=-.5,this._camera.right=.5,this._camera.top=.5,this._camera.bottom=-.5,this._camera.updateProjectionMatrix(),!((e,t,n,i)=>{if(void 0!==Yg)return Yg;const r=new Tt(1,1,i);t.setRenderTarget(r);const a=new Bi(new sr,new Zn({color:16777215}));t.render(a,n),t.setRenderTarget(null);const s=Wg(e,r.width,r.height);return t.readRenderTargetPixels(r,0,0,r.width,r.height,s),r.dispose(),a.geometry.dispose(),a.material.dispose(),Yg=0!==s[0],Yg})(this._type,this._renderer,this._camera,v)){let e;if(this._type===W)e=this._renderer.extensions.has("EXT_color_buffer_float")?q:void 0;void 0!==e?(console.warn(`This browser does not support reading pixels from ${this._type} RenderTargets, switching to 1015`),this._type=e):(this._supportsReadPixels=!1,console.warn("This browser dos not support toArray or toDataTexture, calls to those methods will result in an error thrown"))}this._quad=new Bi(new sr,this._material),this._quad.geometry.computeBoundingBox(),this._scene.add(this._quad),this._renderTarget=new Tt(this.width,this.height,v),this._renderTarget.texture.mapping=void 0!==(null===(m=e.renderTargetOptions)||void 0===m?void 0:m.mapping)?null===(g=e.renderTargetOptions)||void 0===g?void 0:g.mapping:M}static instantiateRenderer(){const e=new Gs;return e.setSize(128,128),e}toArray(){if(!this._supportsReadPixels)throw new Error("Can't read pixels in this browser");const e=Wg(this._type,this._width,this._height);return this._renderer.readRenderTargetPixels(this._renderTarget,0,0,this._width,this._height,e),e}toDataTexture(e){const t=new so(this.toArray(),this.width,this.height,X,this._type,(null==e?void 0:e.mapping)||M,(null==e?void 0:e.wrapS)||D,(null==e?void 0:e.wrapT)||D,(null==e?void 0:e.magFilter)||z,(null==e?void 0:e.minFilter)||z,(null==e?void 0:e.anisotropy)||1,Ee);return t.generateMipmaps=void 0!==(null==e?void 0:e.generateMipmaps)&&(null==e?void 0:e.generateMipmaps),t}disposeOnDemandRenderer(){this._renderer.setRenderTarget(null),this._rendererIsDisposable&&(this._renderer.dispose(),this._renderer.forceContextLoss())}dispose(e){this.disposeOnDemandRenderer(),e&&this.renderTarget.dispose(),this.material instanceof Qi&&Object.values(this.material.uniforms).forEach(e=>{e.value instanceof wt&&e.value.dispose()}),Object.values(this.material).forEach(e=>{e instanceof wt&&e.dispose()}),this.material.dispose(),this._quad.geometry.dispose()}get width(){return this._width}set width(e){this._width=e,this._renderTarget.setSize(this._width,this._height)}get height(){return this._height}set height(e){this._height=e,this._renderTarget.setSize(this._width,this._height)}get renderer(){return this._renderer}get renderTarget(){return this._renderTarget}set renderTarget(e){this._renderTarget=e,this._width=e.width,this._height=e.height}get material(){return this._material}get type(){return this._type}get colorSpace(){return this._colorSpace}}class Kg extends Qi{constructor({gamma:e,offsetHdr:t,offsetSdr:n,gainMapMin:i,gainMapMax:r,maxDisplayBoost:a,hdrCapacityMin:s,hdrCapacityMax:o,sdr:l,gainMap:u}){super({name:"GainMapDecoderMaterial",vertexShader:"\nvarying vec2 vUv;\n\nvoid main() {\n  vUv = uv;\n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0
473);\n}\n",fragmentShader:"\n// min half float value\n#define HALF_FLOAT_MIN vec3( -65504, -65504, -65504 )\n// max half float value\n#define HALF_FLOAT_MAX vec3( 65504, 65504, 65504 )\n\nuniform sampler2D sdr;\nuniform sampler2D gainMap;\nuniform vec3 gamma;\nuniform vec3 offsetHdr;\nuniform vec3 offsetSdr;\nuniform vec3 gainMapMin;\nuniform vec3 gainMapMax;\nuniform float weightFactor;\n\nvarying vec2 vUv;\n\nvoid main() {\n  vec3 rgb = texture2D( sdr, vUv ).rgb;\n  vec3 recovery = texture2D( gainMap, vUv ).rgb;\n  vec3 logRecovery = pow( recovery, gamma );\n  vec3 logBoost = gainMapMin * ( 1.0 - logRecovery ) + gainMapMax * logRecovery;\n  vec3 hdrColor = (rgb + offsetSdr) * exp2( logBoost * weightFactor ) - offsetHdr;\n  vec3 clampedHdrColor = max( HALF_FLOAT_MIN, min( HALF_FLOAT_MAX, hdrColor ));\n  gl_FragColor = vec4( clampedHdrColor , 1.0 );\n}\n",uniforms:{sdr:{value:l},gainMap:{value:u},gamma:{value:new Mt(1/e[0],1/e[1],1/e[2])},offsetHdr:{value:(new Mt).fromArray(t)},offsetSdr:{value:(new Mt).fromArray(n)},gainMapMin:{value:(new Mt).fromArray(i)},gainMapMax:{value:(new Mt).fromArray(r)},weightFactor:{value:(Math.log2(a)-s)/(o-s)}},blending:0,depthTest:!1,depthWrite:!1}),this._maxDisplayBoost=a,this._hdrCapacityMin=s,this._hdrCapacityMax=o,this.needsUpdate=!0,this.uniformsNeedUpdate=!0}get sdr(){return this.uniforms.sdr.value}set sdr(e){this.uniforms.sdr.value=e}get gainMap(){return this.uniforms.gainMap.value}set gainMap(e){this.uniforms.gainMap.value=e}get offsetHdr(){return this.uniforms.offsetHdr.value.toArray()}set offsetHdr(e){this.uniforms.offsetHdr.value.fromArray(e)}get offsetSdr(){return this.uniforms.offsetSdr.value.toArray()}set offsetSdr(e){this.uniforms.offsetSdr.value.fromArray(e)}get gainMapMin(){return this.uniforms.gainMapMin.value.toArray()}set gainMapMin(e){this.uniforms.gainMapMin.value.fromArray(e)}get gainMapMax(){return this.uniforms.gainMapMax.value.toArray()}set gainMapMax(e){this.uniforms.gainMapMax.value.fromArray(e)}get gamma(){const e=this.uniforms.gamma.value;return[1/e.x,1/e.y,1/e.z]}set gamma(e){const t=this.uniforms.gamma.value;t.x=1/e[0],t.y=1/e[1],t.z=1/e[2]}get hdrCapacityMin(){return this._hdrCapacityMin}set hdrCapacityMin(e){this._hdrCapacityMin=e,this.calculateWeight()}get hdrCapacityMax(){return this._hdrCapacityMax}set hdrCapacityMax(e){this._hdrCapacityMax=e,this.calculateWeight()}get maxDisplayBoost(){return this._maxDisplayBoost}set maxDisplayBoost(e){this._maxDisplayBoost=Math.max(1,Math.min(65504,e)),this.calculateWeight()}calculateWeight(){const e=(Math.log2(this._maxDisplayBoost)-this._hdrCapacityMin)/(this._hdrCapacityMax-this._hdrCapacityMin);this.uniforms.weightFactor.value=Math.max(0,Math.min(1,e))}}class $g extends Error{}class Jg extends Error{}const Zg=(e,t,n)=>{var i;let r;const a=null===(i=e.attributes.getNamedItem(t))||void 0===i?void 0:i.nodeValue;if(a)r=a;else{const i=e.getElementsByTagName(t)[0];if(!i){if(n)return n;throw new Error(`Can't find ${t} in gainmap metadata`)}{const e=i.getElementsByTagName("rdf:li");if(3!==e.length)throw new Error(`Gainmap metadata contains an array of items for ${t} but its length is not 3`);r=Array.from(e).map(e=>e.innerHTML)}}return r};class ev{constructor(e){this.options={debug:!(!e||void 0===e.debug)&&e.debug,extractFII:!e||void 0===e.extractFII||e.extractFII,extractNonFII:!e||void 0===e.extractNonFII||e.extractNonFII}}extract(e){return new Promise((t,n)=>{const i=this.options.debug,r=new DataView(e.buffer);if(65496!==r.getUint16(0))return void n(new Error("Not a valid jpeg"));const a=r.byteLength;let s,o=2,l=0;for(;o<a;){if(++l>250)return void n(new Error(`Found no marker after ${l} loops 😵`));if(255!==r.getUint8(o))return void n(new Error(`Not a valid marker at offset 0x${o.toString(16)}, found: 0x${r.getUint8(o).toString(16)}`));if(s=r.getUint8(o+1),i&&console.log(`Marker: ${s.toString(16)}`),226===s){i&&console.log("Found APP2 marker (0xffe2)");const e=o+4;if(1297106432===r.getUint32(e)){const i=e+4;let a;if(18761===r.getUint16(i))a=!1;else{if(19789!==r.getUint16(i))return void n(new Error("No valid endianness marker found in TIFF header"));a=!0}if(42!==r.getUint16(i+2,!a))return void n(new Error("Not valid TIFF data! (no 0x002A marker)"));const s=r.getUint32(i+4,!a);if(s<8)return void n(new Error("Not valid TIFF data! (First offset less than 8)"));const o=i+s,l=r.getUint16(o,!a),u=o+2;
473let c=0;for(let e=u;e<u+12*l;e+=12)45057===r.getUint16(e,!a)&&(c=r.getUint32(e+8,!a));const d=o+2+12*l+4,h=[];for(let e=d;e<d+16*c;e+=16){const t={MPType:r.getUint32(e,!a),size:r.getUint32(e+4,!a),dataOffset:r.getUint32(e+8,!a),dependantImages:r.getUint32(e+12,!a),start:-1,end:-1,isFII:!1};t.dataOffset?(t.start=i+t.dataOffset,t.isFII=!1):(t.start=0,t.isFII=!0),t.end=t.start+t.size,h.push(t)}if(this.options.extractNonFII&&h.length){const e=new Blob([r]),n=[];for(const t of h){if(t.isFII&&!this.options.extractFII)continue;const i=e.slice(t.start,t.end+1,"image/jpeg");n.push(i)}t(n)}}}o+=2+r.getUint16(o+2)}})}}const tv=async e=>{const t=(e=>{var t,n;let i;i="undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):e.toString();let r=i.indexOf("<x:xmpmeta");const a=new DOMParser;for(;-1!==r;){const e=i.indexOf("x:xmpmeta>",r);i.slice(r,e+10);const s=i.slice(r,e+10);try{const e=a.parseFromString(s,"text/xml").getElementsByTagName("rdf:Description")[0],i=Zg(e,"hdrgm:GainMapMin","0"),r=Zg(e,"hdrgm:GainMapMax"),o=Zg(e,"hdrgm:Gamma","1"),l=Zg(e,"hdrgm:OffsetSDR","0.015625"),u=Zg(e,"hdrgm:OffsetHDR","0.015625");let c=null===(t=e.attributes.getNamedItem("hdrgm:HDRCapacityMin"))||void 0===t?void 0:t.nodeValue;c||(c="0");const d=null===(n=e.attributes.getNamedItem("hdrgm:HDRCapacityMax"))||void 0===n?void 0:n.nodeValue;if(!d)throw new Error("Incomplete gainmap metadata");return{gainMapMin:Array.isArray(i)?i.map(e=>parseFloat(e)):[parseFloat(i),parseFloat(i),parseFloat(i)],gainMapMax:Array.isArray(r)?r.map(e=>parseFloat(e)):[parseFloat(r),parseFloat(r),parseFloat(r)],gamma:Array.isArray(o)?o.map(e=>parseFloat(e)):[parseFloat(o),parseFloat(o),parseFloat(o)],offsetSdr:Array.isArray(l)?l.map(e=>parseFloat(e)):[parseFloat(l),parseFloat(l),parseFloat(l)],offsetHdr:Array.isArray(u)?u.map(e=>parseFloat(e)):[parseFloat(u),parseFloat(u),parseFloat(u)],hdrCapacityMin:parseFloat(c),hdrCapacityMax:parseFloat(d)}}catch(e){}r=i.indexOf("<x:xmpmeta",e)}})(e);if(!t)throw new Jg("Gain map XMP metadata not found");const n=new ev({extractFII:!0,extractNonFII:!0}),i=await n.extract(e);if(2!==i.length)throw new $g("Gain map recovery image not found");return{sdr:new Uint8Array(await i[0].arrayBuffer()),gainMap:new Uint8Array(await i[1].arrayBuffer()),metadata:t}},nv=e=>new Promise((t,n)=>{const i=document.createElement("img");i.onload=()=>{t(i)},i.onerror=e=>{n(e)},i.src=URL.createObjectURL(e)});class iv extends pl{constructor(e,t){super(t),e&&(this._renderer=e),this._internalLoadingManager=new dl}setRenderer(e){return this._renderer=e,this}setRenderTargetOptions(e){return this._renderTargetOptions=e,this}prepareQuadRenderer(){this._renderer||console.warn("WARNING: An existing WebGL Renderer was not passed to this Loader constructor or in setRenderer, the result of this Loader will need to be converted to a Data Texture with toDataTexture() before you can use it in your renderer.");const e=new Kg({gainMapMax:[1,1,1],gainMapMin:[0,0,0],gamma:[1,1,1],offsetHdr:[1,1,1],offsetSdr:[1,1,1],hdrCapacityMax:1,hdrCapacityMin:0,maxDisplayBoost:1,gainMap:new wt,sdr:new wt});return new Xg({width:16,height:16,type:W,colorSpace:Ee,material:e,renderer:this._renderer,renderTargetOptions:this._renderTargetOptions})}async render(e,t,n,i){const r=i?new Blob([i],{type:"image/jpeg"}):void 0,a=new Blob([n],{type:"image/jpeg"});let s,o,l=!1;if("undefined"==typeof createImageBitmap){const e=await Promise.all([r?nv(r):Promise.resolve(void 0),nv(a)]);o=e[0],s=e[1],l=!0}else{const e=await Promise.all([r?createImageBitmap(r,{imageOrientation:"flipY"}):Promise.resolve(void 0),createImageBitmap(a,{imageOrientation:"flipY"})]);o=e[0],s=e[1]}const u=new wt(o||new ImageData(2,2),M,D,D,z,1008,X,H,1,Ee);u.flipY=l,u.needsUpdate=!0;const c=new wt(s,M,D,D,z,1008,X,H,1,we);c.flipY=l,c.needsUpdate=!0,e.width=s.width,e.height=s.height,e.material.gainMap=u,e.material.sdr=c,e.material.gainMapMin=t.gainMapMin,e.material.gainMapMax=t.gainMapMax,e.material.offsetHdr=t.offsetHdr,e.material.offsetSdr=t.offsetSdr,e.material.gamma=t.gamma,e.material.hdrCapacityMin=t.hdrCapacityMin,e.material.hdrCapacityMax=t.hdrCapacityMax,e.material.maxDisplayBoost=Math.pow(2,t.hdrCapacityMax),e.material.needsUpdate=!0,e.render()}}class rv extends iv{load(e,t,n,i){const r=this.prepareQuadRenderer(),a=new gl(this._internalLoadingManager);return a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setPath(this.path),a.setWithCredentials(this.withCredentials),this.manager.itemStart(e),a.load(e,async n=>{if("string"==typeof n)throw new Error("Invalid buffer, received [string], was expecting [ArrayBuffer]");const a=new Uint8Array(n);let s,o,l;try{const e=await tv(a);s=e.sdr,o=e.gainMap,l=e.metadata}catch(t){if(!(t instanceof Jg||t instanceof $g))throw t;console.warn(`Failure to reconstruct an HDR image from ${e}: Gain map metadata not found in the file, HDRJPGLoader will render the SDR jpeg`),l={gainMapMin:[0,0,0],gainMapMax:[1,1,1],gamma:[1,1,1],hdrCapacityMin:0,hdrCapacityMax:1,offsetHdr:[0,0,0],offsetSdr:[0,0,0]},s=a}try{await this.render(r,l,s,o)}catch(t){return this.manager.itemError(e),"function"==typeof i&&i(t),void r.disposeOnDemandRenderer()}"function"==typeof t&&t(r),this.manager.itemEnd(e),r.disposeOnDemandRenderer()},n,t=>{this.manager.itemError(e),"function"==typeof i&&i(t)}),r}}class av extends Al{constructor(e){super(e),this.type=W}parse(e){const t=function(e,t){switch(e){case 1:throw new Error("THREE.RGBELoader: Read Error: "+(t||""));case 2:throw new Error("THREE.RGBELoader: Write Error: "+(t||""));case 3:throw new Error("THREE.RGBELoader: Bad File Format: "+(t||""));default:throw new Error("THREE.RGBELoader: Memory Error: "+(t||""))}},n=function(e,t,n){t=t||1024;let i=e.pos,r=-1,a=0,s="",o=String.fromCharCode.apply(null,new Uint16Array(e.subarray(i,i+128)));for(;0>(r=o.indexOf("\n"))&&a<t&&i<e.byteLength;)s+=o,a+=o.length,i+=128,o+=String.fromCharCode.apply(null,new Uint16Array(e.subarray(i,i+128)));return-1<r&&(!1!==n&&(e.pos+=a+r+1),s+o.slice(0,r))},i=function(e,t,n,i){const r=e[t+3],a=Math.pow(2,r-128)/255;n[i+0]=e[t+0]*a,n[i+1]=e[t+1]*a,n[i+2]=e[t+2]*a,n[i+3]=1},r=function(e,t,n,i){const r=e[t+3],a=Math.pow(2,r-128)/255;n[i+0]=ni.toHalfFloat(Math.min(e[t+0]*a,65504)),n[i+1]=ni.toHalfFloat(Math.min(e[t+1]*a,65504)),n[i+2]=ni.toHalfFloat(Math.min(e[t+2]*a,65504)),n[i+3]=ni.toHalfFloat(1)},a=new Uint8Array(e);a.pos=0;const s=function(e){const i=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,r=/^\s*EXPOSURE\s*=\s
vendor: 5,675 bytes, line 473
473*(\d+(\.\d+)?)\s*$/,a=/^\s*FORMAT=(\S+)\s*$/,s=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,o={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let l,u;for((e.pos>=e.byteLength||!(l=n(e)))&&t(1,"no header found"),(u=l.match(/^#\?(\S+)/))||t(3,"bad initial token"),o.valid|=1,o.programtype=u[1],o.string+=l+"\n";l=n(e),!1!==l;)if(o.string+=l+"\n","#"!==l.charAt(0)){if((u=l.match(i))&&(o.gamma=parseFloat(u[1])),(u=l.match(r))&&(o.exposure=parseFloat(u[1])),(u=l.match(a))&&(o.valid|=2,o.format=u[1]),(u=l.match(s))&&(o.valid|=4,o.height=parseInt(u[1],10),o.width=parseInt(u[2],10)),2&o.valid&&4&o.valid)break}else o.comments+=l+"\n";return 2&o.valid||t(3,"missing format specifier"),4&o.valid||t(3,"missing image size specifier"),o}(a),o=s.width,l=s.height,u=function(e,n,i){const r=n;if(r<8||r>32767||2!==e[0]||2!==e[1]||128&e[2])return new Uint8Array(e);r!==(e[2]<<8|e[3])&&t(3,"wrong scanline width");const a=new Uint8Array(4*n*i);a.length||t(4,"unable to allocate buffer space");let s=0,o=0;const l=4*r,u=new Uint8Array(4),c=new Uint8Array(l);let d=i;for(;d>0&&o<e.byteLength;){o+4>e.byteLength&&t(1),u[0]=e[o++],u[1]=e[o++],u[2]=e[o++],u[3]=e[o++],2==u[0]&&2==u[1]&&(u[2]<<8|u[3])==r||t(3,"bad rgbe scanline format");let n,i=0;for(;i<l&&o<e.byteLength;){n=e[o++];const r=n>128;if(r&&(n-=128),(0===n||i+n>l)&&t(3,"bad scanline data"),r){const t=e[o++];for(let e=0;e<n;e++)c[i++]=t}else c.set(e.subarray(o,o+n),i),i+=n,o+=n}const h=r;for(let e=0;e<h;e++){let t=0;a[s]=c[e+t],t+=r,a[s+1]=c[e+t],t+=r,a[s+2]=c[e+t],t+=r,a[s+3]=c[e+t],s+=4}d--}return a}(a.subarray(a.pos),o,l);let c,d,h;switch(this.type){case q:h=u.length/4;const e=new Float32Array(4*h);for(let t=0;t<h;t++)i(u,4*t,e,4*t);c=e,d=q;break;case W:h=u.length/4;const t=new Uint16Array(4*h);for(let e=0;e<h;e++)r(u,4*e,t,4*e);c=t,d=W;break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:o,height:l,data:c,header:s.string,gamma:s.gamma,exposure:s.exposure,type:d}}setDataType(e){return this.type=e,this}load(e,t,n,i){return super.load(e,function(e,n){switch(e.type){case q:case W:e.colorSpace=Ee,e.minFilter=z,e.magFilter=z,e.generateMipmaps=!1,e.flipY=!0}t&&t(e,n)},n,i)}}const sv={topLight:{intensity:500,position:[.418,16.199,.3]},room:{position:[-.757,13.219,.717],scale:[31.713,28.305,28.591]},boxes:[{position:[-10.906,2.009,1.846],rotation:-.195,scale:[2.328,7.905,4.651]},{position:[-5.607,-.754,-.758],rotation:.994,scale:[1.97,1.534,3.955]},{position:[6.167,.857,7.803],rotation:.561,scale:[3.927,6.285,3.687]},{position:[-2.017,.018,6.124],rotation:.333,scale:[2.002,4.566,2.064]},{position:[2.291,-.756,-2.621],rotation:-.286,scale:[1.546,1.552,1.496]},{position:[-2.193,-.369,-5.547],rotation:.516,scale:[3.875,3.487,2.986]}],lights:[{intensity:50,position:[-16.116,14.37,8.208],scale:[.1,2.428,2.739]},{intensity:50,position:[-16.109,18.021,-8.207],scale:[.1,2.425,2.751]},{intensity:17,position:[14.904,12.198,-1.832],scale:[.15,4.265,6.331]},{intensity:43,position:[-.462,8.89,14.52],scale:[4.38,5.441,.088]},{intensity:20,position:[3.235,11.486,-12.541],scale:[2.5,2,.1]},{intensity:100,position:[0,20,0],scale:[1,.1,1]}]},ov={topLight:{intensity:400,position:[.5,14,.5]},room:{position:[0,13.2,0],scale:[31.5,28.5,31.5]},boxes:[{position:[-10.906,-1,1.846],rotation:-.195,scale:[2.328,7.905,4.651]},{position:[-5.607,-.754,-.758],rotation:.994,scale:[1.97,1.534,3.955]},{position:[6.167,-.16,7.803],rotation:.561,scale:[3.927,6.285,3.687]},{position:[-2.017,.018,6.124],rotation:.333,scale:[2.002,4.566,2.064]},{position:[2.291,-.756,-2.621],rotation:-.286,scale:[1.546,1.552,1.496]},{position:[-2.193,-.369,-5.547],rotation:.516,scale:[3.875,3.487,2.986]}],lights:[{intensity:80,position:[-14,10,8],scale:[.1,2.5,2.5]},{intensity:80,position:[-14,14,-4],scale:[.1,2.5,2.5]},{intensity:23,position:[14,12,0],scale:[.1,5,5]},{intensity:16,position:[0,9,14],scale:[5,5,.1]},{intensity:80,position:[7,8,-14],scale:[2.5,2.5,.1]},{intensity:80,position:[-7,16,-14],scale:[2.5,2.5,.1]},{intensity:1,position:[0,20,0],scale:[.1,.1,.1]}]};class lv extends js{constructor(e){super(),this.position.y=-3.5;const t=new Ni;t.deleteAttribute("uv");const n=new Go({metalness:0,side:1}),i=new Go({metalness:0}),r="legacy"==e?sv:ov,a=new Pl(16777215,r.topLight.intensity,28,2);a.position.set(...r.topLight.position),this.add(a);const s=new Bi(t,n);s.position.set(...r.room.position),s.scale.set(...r.room.scale),this.add(s);for(const e of r.boxes){const n=new Bi(t,i);n.position.set(...e.position),n.rotation.set(0,e.rotation,0),n.scale.set(...e.scale),this.add(n)}for(const e of r.lights){const n=new Bi(t,this.createAreaLightMaterial(e.intensity));n.position.set(...e.position),n.scale.set(...e.scale),this.add(n)}}createAreaLightMaterial(e){const t=new Zn;return t.color.setScalar(e),t}}const uv=20,cv=/\.hdr(\.js)?$/;class dv{constructor(e){this.threeRenderer=e,this.lottieLoaderUrl="",this.withCredentials=!1,this._ldrLoader=null,this._imageLoader=null,this._hdrLoader=null,this._lottieLoader=null,this.generatedEnvironmentMap=null,this.generatedEnvironmentMapAlt=null,this.skyboxCache=new Map,this.blurMaterial=null,this.blurScene=null}get ldrLoader(){return null==this._ldrLoader&&(this._ldrLoader=new yl),this._ldrLoader.setWithCredentials(this.withCredentials),this._ldrLoader}get imageLoader(){return null==this._imageLoader&&(this._imageLoader=new rv(this.threeRenderer)),this._imageLoader.setWithCredentials(this.withCredentials),this._imageLoader}get hdrLoader(){return null==this._hdrLoader&&(this._hdrLoader=new av,this._hdrLoader.setDataType(W)),this._hdrLoader.setWithCredentials(this.withCredentials),this._hdrLoader}
473async getLottieLoader(){if(null==this._lottieLoader){const{LottieLoader:e}=await import(this.lottieLoaderUrl);this._lottieLoader=new e}return this._lottieLoader.setWithCredentials(this.withCredentials),this._lottieLoader}async loadImage(e){const t=await new Promise((t,n)=>this.ldrLoader.load(e,t,()=>{},n));return t.name=e,t.flipY=!1,t}async loadLottie(e,t){const n=await this.getLottieLoader();n.setQuality(t);const i=await new Promise((t,i)=>n.load(e,t,()=>{},i));return i.name=e,i}async loadEquirect(e,t=()=>{}){try{const n=cv.test(e),i=n?this.hdrLoader:this.imageLoader,r=await new Promise((n,r)=>i.load(e,e=>{const{renderTarget:t}=e;if(null!=t){const{texture:i}=t;e.dispose(!1),n(i)}else n(e)},e=>{t(e.loaded/e.total*.9)},r));return t(1),r.name=e,r.mapping=R,n||(r.colorSpace=we),r}finally{t&&t(1)}}async generateEnvironmentMapAndSkybox(e=null,t=null,n=()=>{}){const i="legacy"!==t;"legacy"!==t&&"neutral"!==t||(t=null),t=Lc(t);let r,a=Promise.resolve(null);e&&(a=this.loadEquirectFromUrl(e,n)),r=t?this.loadEquirectFromUrl(t,n):e?this.loadEquirectFromUrl(e,n):i?this.loadGeneratedEnvironmentMapAlt():this.loadGeneratedEnvironmentMap();const[s,o]=await Promise.all([r,a]);if(null==s)throw new Error("Failed to load environment map.");return{environmentMap:s,skybox:o}}async loadEquirectFromUrl(e,t){if(!this.skyboxCache.has(e)){const n=this.loadEquirect(e,t);this.skyboxCache.set(e,n)}return this.skyboxCache.get(e)}async GenerateEnvironmentMap(e,t){await((e=0)=>new Promise(t=>setTimeout(t,e)))();const n=this.threeRenderer,i=new Ki(256,{generateMipmaps:!1,type:W,format:X,colorSpace:Ee,depthBuffer:!0}),r=new Yi(.1,100,i),a=r.renderTarget.texture;a.name=t;const s=n.outputColorSpace,o=n.toneMapping;return n.toneMapping=0,n.outputColorSpace=Ee,r.update(n,e),this.blurCubemap(i,.04),n.toneMapping=o,n.outputColorSpace=s,a}async loadGeneratedEnvironmentMap(){return null==this.generatedEnvironmentMap&&(this.generatedEnvironmentMap=this.GenerateEnvironmentMap(new lv("legacy"),"legacy")),this.generatedEnvironmentMap}async loadGeneratedEnvironmentMapAlt(){return null==this.generatedEnvironmentMapAlt&&(this.generatedEnvironmentMapAlt=this.GenerateEnvironmentMap(new lv("neutral"),"neutral")),this.generatedEnvironmentMapAlt}blurCubemap(e,t){if(null==this.blurMaterial){this.blurMaterial=this.getBlurShader(uv);const e=new Ni,t=new Bi(e,this.blurMaterial);this.blurScene=new js,this.blurScene.add(t)}const n=e.clone();this.halfblur(e,n,t,"latitudinal"),this.halfblur(n,e,t,"longitudinal")}halfblur(e,t,n,i){const r=e.width,a=isFinite(n)?Math.PI/(2*r):2*Math.PI/39,s=n/a,o=isFinite(n)?1+Math.floor(3*s):uv;o>uv&&console.warn(`sigmaRadians, ${n}, is too large and will clip, as it requested ${o} samples when the maximum is set to 20`);const l=[];let u=0;for(let e=0;e<uv;++e){const t=e/s,n=Math.exp(-t*t/2);l.push(n),0==e?u+=n:e<o&&(u+=2*n)}for(let e=0;e<l.length;e++)l[e]=l[e]/u;const c=this.blurMaterial.uniforms;c.envMap.value=e.texture,c.samples.value=o,c.weights.value=l,c.latitudinal.value="latitudinal"===i,c.dTheta.value=a;new Yi(.1,100,t).update(this.threeRenderer,this.blurScene)}getBlurShader(e){const t=new Float32Array(e),n=new Mt(0,1,0);return new Qi({name:"SphericalGaussianBlur",defines:{n:e},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:t},latitudinal:{value:!1},dTheta:{value:0},poleAxis:{value:n}},vertexShader:"\n      \n      varying vec3 vOutputDirection;\n  \n      void main() {\n  \n        vOutputDirection = vec3( position );\n        gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n  \n      }\n    ",fragmentShader:"\n        varying vec3 vOutputDirection;\n  \n        uniform samplerCube envMap;\n        uniform int samples;\n        uniform float weights[ n ];\n        uniform bool latitudinal;\n        uniform float dTheta;\n        uniform vec3 poleAxis;\n  \n        vec3 getSample( float theta, vec3 axis ) {\n  \n          float cosTheta = cos( theta );\n          // Rodrigues' axis-angle rotation\n          vec3 sampleDirection = vOutputDirection * cosTheta\n            + cross( axis, vOutputDirection ) * sin( theta )\n            + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n  \n          return vec3( textureCube( envMap, sampleDirection ) );\n  \n        }\n  \n        void main() {\n  \n          vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n  \n          if ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n  \n            axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n  \n          }\n  \n          axis = normalize( axis );\n  \n          gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n          gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n  \n          for ( int i = 1; i < n; i++ ) {\n  \n            if ( i >= samples ) {\n  \n              break;\n  \n            }\n  \n            float theta = dTheta * float( i );\n            gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n            gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n  \n          }\n        }\n      ",blending:0,depthTest:!1,depthWrite:!1,side:1})}async dispose(){for(const[,e]of this.skyboxCache){(await e).dispose()}null!=this.generatedEnvironmentMap&&((await this.generatedEnvironmentMap).dispose(),this.generatedEnvironmentMap=null),null!=this.generatedEnvironmentMapAlt&&((await this.generatedEnvironmentMapAlt).dispose(),this.generatedEnvironmentMapAlt=null),null!=this.blurMaterial&&this.blurMaterial.dispose()}}const hv=[1,.79,.62,.5,.4,.31,.25],pv="high-performance";class fv extends He{constructor(e){super(),this.loader=new Yh(qg),this.width=0,this.height=0,this.dpr=1,this.scenes=new Set,this.multipleScenesVisible=!1,this.lastTick=performance.now(),this.renderedLastFrame=!1,this.scaleStep=0,this.lastStep=3,this.avgFrameDuration=50,this.onWebGLContextLost=e=>{this.dispatchEvent({type:"contextlost",sourceEvent:e})},this.onWebGLContextRestored=()=>{var e;null===(e=this.textureUtils)||void 0===e||e.dispose(),this.textureUtils=new dv(this.threeRenderer);for(const e of this.scenes)e.element[Hc]()},this.dpr=Uc(),this.canvas3D=document.createElement("canvas"),this.canvas3D.id="webgl-canvas",this.canvas3D.classList.add("show");try{this.threeRenderer=new Gs({canvas:this.canvas3D,alpha:!0,antialias:!0,powerPreference:e.powerPreference,preserveDrawingBuffer:!0}),this.threeRenderer.autoClear=!0,this.threeRenderer.setPixelRatio(1),this.threeRenderer.debug={checkSha
vendor: 6,959 bytes, line 473
473derErrors:!!e.debug,onShaderError:null},this.threeRenderer.toneMapping=4}catch(e){console.warn(e)}this.arRenderer=new Cg(this),this.textureUtils=this.canRender?new dv(this.threeRenderer):null,Yh.initializeKTX2Loader(this.threeRenderer),this.canvas3D.addEventListener("webglcontextlost",this.onWebGLContextLost),this.canvas3D.addEventListener("webglcontextrestored",this.onWebGLContextRestored),this.updateRendererSize()}static get singleton(){return this._singleton||(this._singleton=new fv({powerPreference:(self.ModelViewerElement||{}).powerPreference||pv,debug:Fc()})),this._singleton}static resetSingleton(){const e=this._singleton.dispose();for(const t of e)t.disconnectedCallback();this._singleton=new fv({powerPreference:(self.ModelViewerElement||{}).powerPreference||pv,debug:Fc()});for(const t of e)t.connectedCallback()}get canRender(){return null!=this.threeRenderer}get scaleFactor(){return hv[this.scaleStep]}set minScale(e){let t=1;for(;t<hv.length&&!(hv[t]<e);)++t;this.lastStep=t-1}registerScene(e){this.scenes.add(e),e.forceRescale();const t=new tt;this.threeRenderer.getSize(t),e.canvas.width=t.x,e.canvas.height=t.y,this.canRender&&this.scenes.size>0&&this.threeRenderer.setAnimationLoop((e,t)=>this.render(e,t))}unregisterScene(e){this.scenes.delete(e),this.canvas3D.parentElement===e.canvas.parentElement&&e.canvas.parentElement.removeChild(this.canvas3D),this.canRender&&0===this.scenes.size&&this.threeRenderer.setAnimationLoop(null)}displayCanvas(e){return e.element.modelIsVisible&&!this.multipleScenesVisible?this.canvas3D:e.element[ab]}countVisibleScenes(){const{canvas3D:e}=this;let t=0,n=null;for(const i of this.scenes){const{element:r}=i;r.modelIsVisible&&null==i.externalRenderer&&++t,e.parentElement===i.canvas.parentElement&&(n=i)}const i=t>1;if(null!=n){const t=i&&!this.multipleScenesVisible,r=!n.element.modelIsVisible;if(t||r){const{width:t,height:i}=this.sceneSize(n);this.copyPixels(n,t,i),e.parentElement.removeChild(e)}}this.multipleScenesVisible=i}updateRendererSize(){var e;const t=Uc();if(t!==this.dpr)for(const e of this.scenes){const{element:t}=e;t[qy](t.getBoundingClientRect())}let n=0,i=0;for(const e of this.scenes)n=Math.max(n,e.width),i=Math.max(i,e.height);if(n!==this.width||i!==this.height||t!==this.dpr){this.width=n,this.height=i,this.dpr=t,n=Math.ceil(n*t),i=Math.ceil(i*t),this.canRender&&this.threeRenderer.setSize(n,i,!1);for(const t of this.scenes){const{canvas:r}=t;r.width=n,r.height=i,t.forceRescale(),null===(e=t.effectRenderer)||void 0===e||e.setSize(n,i)}}}updateRendererScale(e){const t=this.scaleStep;this.avgFrameDuration+=Oc(.2*(e-this.avgFrameDuration),-5,5),this.avgFrameDuration>60?++this.scaleStep:this.avgFrameDuration<40&&this.scaleStep>0&&--this.scaleStep,this.scaleStep=Math.min(this.scaleStep,this.lastStep),t!==this.scaleStep&&(this.avgFrameDuration=50)}shouldRender(e){if(e.shouldRender())e.scaleStep!=this.scaleStep&&(e.scaleStep=this.scaleStep,this.rescaleCanvas(e));else{if(0==e.scaleStep)return!1;e.scaleStep=0,this.rescaleCanvas(e)}return!0}rescaleCanvas(e){const t=hv[e.scaleStep],n=Math.ceil(this.width/t),i=Math.ceil(this.height/t),{style:r}=e.canvas;r.width=`${n}px`,r.height=`${i}px`,this.canvas3D.style.width=`${n}px`,this.canvas3D.style.height=`${i}px`;const a=this.dpr*t,s=t<1?"GPU throttling":this.dpr!==window.devicePixelRatio?"No meta viewport tag":"";e.element.dispatchEvent(new CustomEvent("render-scale",{detail:{reportedDpr:window.devicePixelRatio,renderedDpr:a,minimumDpr:this.dpr*hv[this.lastStep],pixelWidth:Math.ceil(e.width*a),pixelHeight:Math.ceil(e.height*a),reason:s}}))}sceneSize(e){const{dpr:t}=this,n=hv[e.scaleStep];return{width:Math.min(Math.ceil(e.width*n*t),this.canvas3D.width),height:Math.min(Math.ceil(e.height*n*t),this.canvas3D.height)}}copyPixels(e,t,n){const i=e.context;null!=i?(i.clearRect(0,0,t,n),i.drawImage(this.canvas3D,0,0,t,n,0,0,t,n),e.canvas.classList.add("show")):console.log("could not acquire 2d context")}orderedScenes(){const e=[];for(const t of[!1,!0])for(const n of this.scenes)n.element.modelIsVisible===t&&e.push(n);return e}get isPresenting(){return this.arRenderer.isPresenting}preRender(e,t,n){const{element:i,exposure:r,toneMapping:a}=e;i[lb](t,n);const s="number"==typeof r&&!Number.isNaN(r),o=i.environmentImage,l=i.skyboxImage,u=7===a&&("neutral"===o||"legacy"===o||!o&&!l);this.threeRenderer.toneMappingExposure=(s?r:1)*(u?1.3:1)}render(e,t){if(null!=t)return void this.arRenderer.onWebXRFrame(e,t);const n=e-this.lastTick;if(this.lastTick=e,!this.canRender||this.isPresenting)return;this.countVisibleScenes(),this.updateRendererSize(),this.renderedLastFrame&&(this.updateRendererScale(n),this.renderedLastFrame=!1);const{canvas3D:i}=this;for(const t of this.orderedScenes()){const{element:r}=t;if(!r.loaded||!r.modelIsVisible&&t.renderCount>0)continue;if(this.preRender(t,e,n),!this.shouldRender(t))continue;if(null!=t.externalRenderer){const e=t.getCamera();e.updateMatrix();const{matrix:n,projectionMatrix:i}=e,r=n.elements.slice(),a=t.getTarget();r[12]+=a.x,r[13]+=a.y,r[14]+=a.z,t.externalRenderer.render({viewMatrix:r,projectionMatrix:i.elements});continue}if(!r.modelIsVisible&&!this.multipleScenesVisible)for(const e of this.scenes)e.element.modelIsVisible&&e.queueRender();const{width:a,height:s}=this.sceneSize(t);t.renderShadow(this.threeRenderer),this.threeRenderer.setRenderTarget(null),this.threeRenderer.setViewport(0,Math.ceil(this.height*this.dpr)-s,a,s),null!=t.effectRenderer?t.effectRenderer.render(n):(this.threeRenderer.autoClear=!0,this.threeRenderer.toneMapping=t.toneMapping,this.threeRenderer.render(t,t.camera)),this.multipleScenesVisible||!t.element.modelIsVisible&&0===t.renderCount?this.copyPixels(t,a,s):i.parentElement!==t.canvas.parentElement&&(t.canvas.parentElement.appendChild(i),t.canvas.classList.remove("show")),t.hasRendered(),++t.renderCount,this.renderedLastFrame=!0}}dispose(){null!=this.textureUtils&&this.textureUtils.dispose(),null!=this.threeRenderer&&this.threeRenderer.dispose(),this.textureUtils=null,this.threeRenderer=null;const e=[];for(const t of this.scenes)e.push(t.element);return this.canvas3D.removeEventListener("webglcontextlost",this.onWebGLContextLost),this.canvas3D.removeEventListener("webglcontextrestored",this.onWebGLContextRestored),e}}const mv=Symbol("correlatedObjects"),gv=Symbol("onUpdate");class vv{constructor(e,t=null){this[gv]=e,this[mv]=t}}const Av=new Zn,yv=new sr(2,2);let bv=0;const _v=Symbol("threeTexture"),wv=Symbol("threeTextures");class Ev extends vv{get[_v](){var e;return null===(e=this[mv])||void 0===e?void 0:e.values().next().value}get[wv](){return this[mv]}constructor(e,t){super(e,new Set(t?[t]:[])),this[_v].image.src||(this[_v].image.src=t.name?t.name:"adhoc_image"+bv++),this[_v].image.name||(this[_v].image.name=t&&t.image&&t.image.src?t.image.src.split("/").pop():"adhoc_image")}get name(){return this[_v].image.name||""}get uri(){return this[_v].image.src}get bufferView(){return this[_v].image.bufferView}
vendor: 9,131 bytes, line 473
473get element(){const e=this[_v];if(e&&(e.isCanvasTexture||e.isVideoTexture))return e.image}get animation(){const e=this[_v];if(e&&e.isCanvasTexture&&e.animation)return e.animation}get type(){return null!=this.uri?"external":"embedded"}set name(e){for(const t of this[wv])t.image.name=e}update(){const e=this[_v];e&&e.isCanvasTexture&&!e.animation&&(this[_v].needsUpdate=!0,this[gv]())}async createThumbnail(e,t){const n=new js;Av.map=this[_v];const i=new Bi(yv,Av);n.add(i);const r=new yr(-1,1,1,-1,0,1),{threeRenderer:a}=fv.singleton,s=new Tt(e,t);a.setRenderTarget(s),a.render(n,r),a.setRenderTarget(null);const o=new Uint8Array(e*t*4);a.readRenderTargetPixels(s,0,0,e,t,o),Ny.width=e,Ny.height=t;const l=Ny.getContext("2d"),u=l.createImageData(e,t);return u.data.set(o),l.putImageData(u,0,0),new Promise(async(e,t)=>{Ny.toBlob(n=>{if(!n)return t("Failed to capture thumbnail.");e(URL.createObjectURL(n))},"image/png")})}}var Sv,Tv;!function(e){e[e.Nearest=9728]="Nearest",e[e.Linear=9729]="Linear",e[e.NearestMipmapNearest=9984]="NearestMipmapNearest",e[e.LinearMipmapNearest=9985]="LinearMipmapNearest",e[e.NearestMipmapLinear=9986]="NearestMipmapLinear",e[e.LinearMipmapLinear=9987]="LinearMipmapLinear"}(Sv||(Sv={})),function(e){e[e.ClampToEdge=33071]="ClampToEdge",e[e.MirroredRepeat=33648]="MirroredRepeat",e[e.Repeat=10497]="Repeat"}(Tv||(Tv={}));const xv=new Map([[Tv.Repeat,B],[Tv.ClampToEdge,D],[Tv.MirroredRepeat,N]]),Cv=new Map([[B,Tv.Repeat],[D,Tv.ClampToEdge],[N,Tv.MirroredRepeat]]),Iv=new Map([[Sv.Nearest,O],[Sv.Linear,z],[Sv.NearestMipmapNearest,U],[Sv.LinearMipmapNearest,Q],[Sv.NearestMipmapLinear,F],[Sv.LinearMipmapLinear,V]]),Mv=new Map([[O,Sv.Nearest],[z,Sv.Linear],[U,Sv.NearestMipmapNearest],[Q,Sv.LinearMipmapNearest],[F,Sv.NearestMipmapLinear],[V,Sv.LinearMipmapLinear]]),kv=new Map([[Sv.Nearest,O],[Sv.Linear,z]]),Pv=new Map([[O,Sv.Nearest],[z,Sv.Linear]]),Rv=e=>Mv.has(e),Lv=e=>Pv.has(e),Bv=e=>Cv.has(e),Dv=Symbol("threeTexture"),Nv=Symbol("threeTextures"),Ov=Symbol("setProperty");class Uv extends vv{get[Dv](){var e;return null===(e=this[mv])||void 0===e?void 0:e.values().next().value}get[Nv](){return this[mv]}constructor(e,t){super(e,new Set(t?[t]:[]))}get name(){return this[Dv].name||""}get minFilter(){return Mv.get(this[Dv].minFilter)}get magFilter(){return Pv.get(this[Dv].magFilter)}get wrapS(){return Cv.get(this[Dv].wrapS)}get wrapT(){return Cv.get(this[Dv].wrapT)}get rotation(){return this[Dv].rotation}get scale(){return vb(this[Dv].repeat)}get offset(){return vb(this[Dv].offset)}setMinFilter(e){this[Ov]("minFilter",Iv.get(e))}setMagFilter(e){this[Ov]("magFilter",kv.get(e))}setWrapS(e){this[Ov]("wrapS",xv.get(e))}setWrapT(e){this[Ov]("wrapT",xv.get(e))}setRotation(e){null==e&&(e=0),this[Ov]("rotation",e)}setScale(e){null==e&&(e={u:1,v:1}),this[Ov]("repeat",new tt(e.u,e.v))}setOffset(e){null==e&&(e={u:0,v:0}),this[Ov]("offset",new tt(e.u,e.v))}[Ov](e,t){if(((e,t)=>{switch(e){case"minFilter":return Rv(t);case"magFilter":return Lv(t);case"wrapS":case"wrapT":return Bv(t);case"rotation":case"repeat":case"offset":return!0;default:throw new Error(`Cannot configure property "${e}" on Sampler`)}})(e,t))for(const n of this[Nv])n[e]=t,n.needsUpdate=!0;this[gv]()}}const Fv=Symbol("image"),zv=Symbol("sampler"),Qv=Symbol("threeTexture");class Vv extends vv{constructor(e,t){super(e,new Set(t?[t]:[])),this[zv]=new Uv(e,t),this[Fv]=new Ev(e,t)}get[Qv](){var e;return null===(e=this[mv])||void 0===e?void 0:e.values().next().value}get name(){return this[Qv].name||""}set name(e){for(const t of this[mv])t.name=e}get sampler(){return this[zv]}get source(){return this[Fv]}}var Hv,Gv,jv;const qv=Symbol("texture"),Wv=Symbol("transform"),Yv=Symbol("materials"),Xv=Symbol("usage"),Kv=Symbol("onUpdate"),$v=Symbol("activeVideo");var Jv;!function(e){e[e.Base=0]="Base",e[e.MetallicRoughness=1]="MetallicRoughness",e[e.Normal=2]="Normal",e[e.Occlusion=3]="Occlusion",e[e.Emissive=4]="Emissive",e[e.Clearcoat=5]="Clearcoat",e[e.ClearcoatRoughness=6]="ClearcoatRoughness",e[e.ClearcoatNormal=7]="ClearcoatNormal",e[e.SheenColor=8]="SheenColor",e[e.SheenRoughness=9]="SheenRoughness",e[e.Transmission=10]="Transmission",e[e.Thickness=11]="Thickness",e[e.Specular=12]="Specular",e[e.SpecularColor=13]="SpecularColor",e[e.Iridescence=14]="Iridescence",e[e.IridescenceThickness=15]="IridescenceThickness",e[e.Anisotropy=16]="Anisotropy"}(Jv||(Jv={}));class Zv{constructor(e,t,n,i){this[Hv]=null,this[Gv]={rotation:0,scale:new tt(1,1),offset:new tt(0,0)},this[jv]=!1,n&&(this[Wv].rotation=n.rotation,this[Wv].scale.copy(n.repeat),this[Wv].offset.copy(n.offset),this[qv]=new Vv(e,n)),this[Kv]=e,this[Yv]=i,this[Xv]=t}get texture(){return this[qv]}setTexture(e){var t,n;const i=null!=e?e.source[_v]:null,r=null===(t=this[qv])||void 0===t?void 0:t.source[_v];if(null!=r&&r.isVideoTexture?this[$v]=!1:(null===(n=this[qv])||void 0===n?void 0:n.source.animation)&&this[qv].source.animation.removeEventListener("enterFrame",this[Kv]),this[qv]=e,null!=i&&i.isVideoTexture){const e=i.image;if(this[$v]=!0,null!=e.requestVideoFrameCallback){const t=()=>{this[$v]&&(this[Kv](),e.requestVideoFrameCallback(t))};e.requestVideoFrameCallback(t)}else{const e=()=>{this[$v]&&(this[Kv](),requestAnimationFrame(e))};requestAnimationFrame(e)}}else null!=(null==e?void 0:e.source.animation)&&e.source.animation.addEventListener("enterFrame",this[Kv]);let a=we;if(this[Yv])for(const e of this[Yv]){switch(this[Xv]){case Jv.Base:e.map=i;break;case Jv.MetallicRoughness:a=Ee,e.metalnessMap=i,e.roughnessMap=i;break;case Jv.Normal:a=Ee,e.normalMap=i;break;case Jv.Occlusion:a=Ee,e.aoMap=i;break;case Jv.Emissive:e.emissiveMap=i;break;case Jv.Clearcoat:e.clearcoatMap=i;break;case Jv.ClearcoatRoughness:e.clearcoatRoughnessMap=i;break;case Jv.ClearcoatNormal:e.clearcoatNormalMap=i;break;case Jv.SheenColor:e.sheenColorMap=i;break;case Jv.SheenRoughness:e.sheenRoughnessMap=i;break;case Jv.Transmission:e.transmissionMap=i;break;case Jv.Thickness:e.thicknessMap=i;break;case Jv.Specular:e.specularIntensityMap=i;break;case Jv.SpecularColor:e.specularColorMap=i;break;case Jv.Iridescence:e.iridescenceMap=i;break;case Jv.IridescenceThickness:e.iridescenceThicknessMap=i;break;case Jv.Anisotropy:e.anisotropyMap=i}e.needsUpdate=!0}i&&(i.colorSpace=a,i.rotation=this[Wv].rotation,i.repeat=this[Wv].scale,i.offset=this[Wv].offset),this[Kv]()}}Hv=qv,Gv=Wv,jv=$v;const eA=Symbol("threeMaterial"),tA=Symbol("threeMaterials"),nA=Symbol("baseColorTexture"),iA=Symbol("metallicRoughnessTexture");class rA extends vv{constructor(e,t){super(e,t);const{map:n,metalnessMap:i}=t.values().next().value;this[nA]=new Zv(e,Jv.Base,n,t),this[iA]=new Zv(e,Jv.MetallicRoughness,i,t)}get[tA](){return this[mv]}get[eA](){var e;return null===(e=this[mv])||void 0===e?void 0:e.values().next().value}get baseColorFactor(){const e=[0,0,0,this[eA].opacity];return this[eA].color.toArray(e),e}get metallicFactor(){return this[eA].metalness}get roughnessFactor(){return this[eA].roughness}get baseColorTexture(){return this[nA]}get metallicRoughnessTexture(){return this[iA]}setBaseColorFactor(e){const t=new Xn;e instanceof Array?t.fromArray(e):t.set(e);for(const n of this[tA])n.color.set(t),e instanceof Array&&e.length>3?n.opacity=e[3]:(e=[0,0,0,n.opacity],t.toArray(e));this[gv]()}setMetallicFactor(e){for(const t of this[tA])t.metalness=e;this[gv]()}setRoughnessFactor(e){for(const t of this[tA])t.roughness=e;this[gv]()}}var aA,sA;const oA=Symbol("pbrMetallicRoughness"),lA=Symbol("normalTexture"),uA=Symbol("occlusionTexture"),cA=Symbol("emissiveTexture"),dA=Symbol("backingThreeMaterial"),hA=Symbol("applyAlphaCutoff"),pA=Symbol("getAlphaMode"),fA=Symbol("lazyLoadGLTFInfo"),mA=Symbol("initialize"),gA=Symbol("getLoadedMaterial"),vA=Symbol("ensureMaterialIsLoaded"),AA=Symbol("gltfIndex"),yA=Symbol("setActive"),bA=Symbol("variantIndices"),_A=Symbol("isActive"),wA=Symbol("variantSet"),EA=Symbol("modelVariants"),SA=Symbol("name"),TA=Symbol("pbrTextures");class xA extends vv{constructor(e,t,n,i,r,a,s=void 0){super(e,r),this[aA]=new Set,this[sA]=new Map,this[AA]=t,this[_A]=n,this[EA]=i,this[SA]=a,null==s?this[mA]():this[fA]=s}get[(aA=wA,sA=TA,dA)](){return this[mv].values().next().value}[mA](){const e=this[gv],t=this[mv];this[oA]=new rA(e,t);const{normalMap:n,aoMap:i,emissiveMap:r}=t.values().next().value;this[lA]=new Zv(e,Jv.Normal,n,t),this[uA]=new Zv(e,Jv.Occlusion,i,t),this[cA]=new Zv(e,Jv.Emissive,r,t);const a=n=>{this[TA].set(n,new Zv(e,n,null,t))};a(Jv.Clearcoat),a(Jv.ClearcoatRoughness),a(Jv.ClearcoatNormal),a(Jv.SheenColor),a(Jv.SheenRoughness),a(Jv.Transmission),a(Jv.Thickness),a(Jv.Specular),a(Jv.SpecularColor),a(Jv.Iridescence),a(Jv.IridescenceThickness),a(Jv.Anisotropy)}async[gA](){if(null!=this[fA]){const{set:e,material:t}=await this[fA].doLazyLoad();return this[mv]=e,this[mA](),this[fA]=void 0,this.ensureLoaded=async()=>{},t}return this[mv].values().next().value}colorFromRgb(e){const t=new Xn;return e instanceof Array?t.fromArray(e):t.set(e),t}[vA](){if(null!=this[fA])throw new Error(`Material "${this.name}" has not been loaded, call 'await\n    myMaterial.ensureLoaded()' before using an unloaded material.`)}
vendor: 5,625 bytes, line 473
473async ensureLoaded(){await this[gA]()}get isLoaded(){return null==this[fA]}get isActive(){return this[_A]}[yA](e){this[_A]=e}get name(){return this[SA]||""}set name(e){if(this[SA]=e,null!=this[mv])for(const t of this[mv])t.name=e}get pbrMetallicRoughness(){return this[vA](),this[oA]}get normalTexture(){return this[vA](),this[lA]}get occlusionTexture(){return this[vA](),this[uA]}get emissiveTexture(){return this[vA](),this[cA]}get emissiveFactor(){return this[vA](),this[dA].emissive.toArray()}get index(){return this[AA]}[bA](){return this[wA]}hasVariant(e){const t=this[EA].get(e);return null!=t&&this[wA].has(t.index)}setEmissiveFactor(e){this[vA]();const t=this.colorFromRgb(e);for(const e of this[mv])e.emissive.set(t);this[gv]()}[pA](){return this[dA].transparent?"BLEND":this[dA].alphaTest>0?"MASK":"OPAQUE"}[hA](){this[vA]();for(const e of this[mv])"MASK"===this[pA]()?null==e.alphaTest&&(e.alphaTest=.5):e.alphaTest=void 0,e.needsUpdate=!0}setAlphaCutoff(e){this[vA]();for(const t of this[mv])t.alphaTest=e,t.needsUpdate=!0;this[hA](),this[gv]()}getAlphaCutoff(){return this[vA](),this[dA].alphaTest}setDoubleSided(e){this[vA]();for(const t of this[mv])t.side=e?2:0,t.needsUpdate=!0;this[gv]()}getDoubleSided(){return this[vA](),2==this[dA].side}setAlphaMode(e){this[vA]();const t=(e,t)=>{e.transparent=t,e.depthWrite=!t};for(const n of this[mv])t(n,"BLEND"===e),n.alphaTest="MASK"===e?.5:void 0,n.needsUpdate=!0;this[gv]()}getAlphaMode(){return this[vA](),this[pA]()}get emissiveStrength(){return this[vA](),this[dA].emissiveIntensity}setEmissiveStrength(e){this[vA]();for(const t of this[mv])t.emissiveIntensity=e;this[gv]()}get clearcoatFactor(){return this[vA](),this[dA].clearcoat}get clearcoatRoughnessFactor(){return this[vA](),this[dA].clearcoatRoughness}get clearcoatTexture(){return this[vA](),this[TA].get(Jv.Clearcoat)}get clearcoatRoughnessTexture(){return this[vA](),this[TA].get(Jv.ClearcoatRoughness)}get clearcoatNormalTexture(){return this[vA](),this[TA].get(Jv.ClearcoatNormal)}get clearcoatNormalScale(){return this[vA](),this[dA].clearcoatNormalScale.x}setClearcoatFactor(e){this[vA]();for(const t of this[mv])t.clearcoat=e;this[gv]()}setClearcoatRoughnessFactor(e){this[vA]();for(const t of this[mv])t.clearcoatRoughness=e;this[gv]()}setClearcoatNormalScale(e){this[vA]();for(const t of this[mv])t.clearcoatNormalScale=new tt(e,e);this[gv]()}get ior(){return this[vA](),this[dA].ior}setIor(e){this[vA]();for(const t of this[mv])t.ior=e;this[gv]()}get sheenColorFactor(){return this[vA](),this[dA].sheenColor.toArray()}get sheenColorTexture(){return this[vA](),this[TA].get(Jv.SheenColor)}get sheenRoughnessFactor(){return this[vA](),this[dA].sheenRoughness}get sheenRoughnessTexture(){return this[vA](),this[TA].get(Jv.SheenRoughness)}setSheenColorFactor(e){this[vA]();const t=this.colorFromRgb(e);for(const e of this[mv])e.sheenColor.set(t),e.sheen=1;this[gv]()}setSheenRoughnessFactor(e){this[vA]();for(const t of this[mv])t.sheenRoughness=e,t.sheen=1;this[gv]()}get transmissionFactor(){return this[vA](),this[dA].transmission}get transmissionTexture(){return this[vA](),this[TA].get(Jv.Transmission)}setTransmissionFactor(e){this[vA]();for(const t of this[mv])t.transmission=e;this[gv]()}get thicknessFactor(){return this[vA](),this[dA].thickness}get thicknessTexture(){return this[vA](),this[TA].get(Jv.Thickness)}get attenuationDistance(){return this[vA](),this[dA].attenuationDistance}get attenuationColor(){return this[vA](),this[dA].attenuationColor.toArray()}setThicknessFactor(e){this[vA]();for(const t of this[mv])t.thickness=e;this[gv]()}setAttenuationDistance(e){this[vA]();for(const t of this[mv])t.attenuationDistance=e;this[gv]()}setAttenuationColor(e){this[vA]();const t=this.colorFromRgb(e);for(const e of this[mv])e.attenuationColor.set(t);this[gv]()}get specularFactor(){return this[vA](),this[dA].specularIntensity}get specularTexture(){return this[vA](),this[TA].get(Jv.Specular)}get specularColorFactor(){return this[vA](),this[dA].specularColor.toArray()}get specularColorTexture(){return this[vA](),this[TA].get(Jv.SheenColor)}setSpecularFactor(e){this[vA]();for(const t of this[mv])t.specularIntensity=e;this[gv]()}setSpecularColorFactor(e){this[vA]();const t=this.colorFromRgb(e);for(const e of this[mv])e.specularColor.set(t);this[gv]()}get iridescenceFactor(){return this[vA](),this[dA].iridescence}get iridescenceTexture(){return this[vA](),this[TA].get(Jv.Iridescence)}get iridescenceIor(){return this[vA](),this[dA].iridescenceIOR}get iridescenceThicknessMinimum(){return this[vA](),this[dA].iridescenceThicknessRange[0]}get iridescenceThicknessMaximum(){return this[vA](),this[dA].iridescenceThicknessRange[1]}get iridescenceThicknessTexture(){return this[vA](),this[TA].get(Jv.IridescenceThickness)}setIridescenceFactor(e){this[vA]();for(const t of this[mv])t.iridescence=e;this[gv]()}setIridescenceIor(e){this[vA]();for(const t of this[mv])t.iridescenceIOR=e;this[gv]()}setIridescenceThicknessMinimum(e){this[vA]();for(const t of this[mv])t.iridescenceThicknessRange[0]=e;this[gv]()}setIridescenceThicknessMaximum(e){this[vA]();for(const t of this[mv])t.iridescenceThicknessRange[1]=e;this[gv]()}get anisotropyStrength(){return this[vA](),this[dA].anisotropy}get anisotropyRotation(){return this[vA](),this[dA].anisotropyRotation}get anisotropyTexture(){return this[vA](),this[TA].get(Jv.Anisotropy)}setAnisotropyStrength(e){this[vA]();for(const t of this[mv])t.anisotropy=e;this[gv]()}setAnisotropyRotation(e){this[vA]();for(const t of this[mv])t.anisotropyRotation=e;this[gv]()}}class CA{constructor(e){this.name="",this.children=new Array,this.name=e}}
vendor: 9,012 bytes, line 473
473class IA extends CA{constructor(e,t,n,i){super(e.name),this.materials=new Map,this.variantToMaterialMap=new Map,this.initialMaterialIdx=0,this.activeMaterialIdx=0,this.mesh=e;const{gltf:r,threeGLTF:a,threeObjectMap:s}=i;this.parser=a.parser,this.modelVariants=n,this.mesh.userData.variantData=n;const o=s.get(e.material);null!=o.materials?this.initialMaterialIdx=this.activeMaterialIdx=o.materials:console.error(`Primitive (${e.name}) missing initial material reference.`);const l=e.userData.associations||{};if(null==l.meshes)return void console.error("Mesh is missing primitive index association");const u=((r.meshes||[])[l.meshes].primitives||[])[l.primitives];if(null!=u){if(null!=u.material)this.materials.set(u.material,t[u.material]);else{const e=t.findIndex(e=>"Default"===e.name);e>=0?this.materials.set(e,t[e]):console.warn("gltfPrimitive has no material!")}if(u.extensions&&u.extensions.KHR_materials_variants){const e=u.extensions.KHR_materials_variants,i=a.parser.json.extensions.KHR_materials_variants.variants;for(const r of e.mappings){const e=t[r.material];this.materials.set(r.material,e);for(const t of r.variants){const{name:r}=i[t];this.variantToMaterialMap.set(t,e),e[bA]().add(t),n.has(r)||n.set(r,{name:r,index:t})}}}}else console.error("Mesh primitive definition is missing.")}async setActiveMaterial(e){const t=this.materials.get(e);if(null!=t&&e!==this.activeMaterialIdx){this.mesh.material=await t[gA]();const{normalScale:n}=this.mesh.material;null!=n&&n.y*n.x<0!=(null==this.mesh.geometry.attributes.tangent)&&this.parser.assignFinalMaterial(this.mesh),this.activeMaterialIdx=e}return this.mesh.material}getActiveMaterial(){return this.materials.get(this.activeMaterialIdx)}getMaterial(e){return this.materials.get(e)}async enableVariant(e){if(null==e)return this.setActiveMaterial(this.initialMaterialIdx);if(null!=this.variantToMaterialMap&&this.modelVariants.has(e)){const t=this.modelVariants.get(e);return this.enableVariantHelper(t.index)}return null}async enableVariantHelper(e){if(null!=this.variantToMaterialMap&&null!=e){const t=this.variantToMaterialMap.get(e);if(null!=t)return this.setActiveMaterial(t.index)}return null}async instantiateVariants(){if(null!=this.variantToMaterialMap)for(const e of this.variantToMaterialMap.keys()){const t=this.mesh.userData.variantMaterials.get(e);if(null!=t.material)continue;const n=await this.enableVariantHelper(e);null!=n&&(t.material=n)}}get variantInfo(){return this.variantToMaterialMap}addVariant(e,t){if(!this.ensureVariantIsUnused(t))return!1;this.modelVariants.has(t)||this.modelVariants.set(t,{name:t,index:this.modelVariants.size});const n=this.modelVariants.get(t).index;return e[bA]().add(n),this.variantToMaterialMap.set(n,e),this.materials.set(e.index,e),this.updateVariantUserData(n,e),!0}deleteVariant(e){if(this.variantInfo.has(e)){this.variantInfo.delete(e);const t=this.mesh.userData.variantMaterials;null!=t&&t.delete(e)}}updateVariantUserData(e,t){t[bA]().add(e),this.mesh.userData.variantData=this.modelVariants,this.mesh.userData.variantMaterials=this.mesh.userData.variantMaterials||new Map;this.mesh.userData.variantMaterials.set(e,{material:t[mv].values().next().value,gltfMaterialIndex:t.index})}ensureVariantIsUnused(e){const t=this.modelVariants.get(e);return null==t||!this.variantInfo.has(t.index)||(console.warn(`Primitive cannot add variant '${e}' for this material, it already exists.`),!1)}}var MA,kA,PA,RA,LA,BA;const DA=Symbol("materials"),NA=Symbol("hierarchy"),OA=Symbol("roots"),UA=Symbol("primitives"),FA=Symbol("prepareVariantsForExport"),zA=Symbol("switchVariant"),QA=Symbol("materialFromPoint"),VA=Symbol("nodeFromPoint"),HA=Symbol("nodeFromIndex"),GA=Symbol("variantData"),jA=Symbol("availableVariants"),qA=Symbol("modelOnUpdate"),WA=Symbol("cloneMaterial");class YA{constructor(e,t,n,i){this.gltf=e,this.gltfElementMap=t,this.mapKey=n,this.doLazyLoad=i}}class XA{constructor(e,t=()=>{}){this[MA]=new Array,this[kA]=new Array,this[PA]=new Array,this[RA]=new Array,this[LA]=()=>{},this[BA]=new Map,this[qA]=t;const{gltf:n,threeGLTF:i,gltfElementMap:r}=e;for(const[e,a]of n.materials.entries()){const s=r.get(a);if(null!=s)this[DA].push(new xA(t,e,!0,this[GA],s,a.name));else{const o=(n.materials||[])[e],l=e,u=async()=>{const e=await i.parser.getDependency("material",l),t=new Set;return r.set(o,t),t.add(e),{set:t,material:e}};this[DA].push(new xA(t,e,!1,this[GA],s,a.name,new YA(n,r,o,u)))}}const a=new Map,s=new Array;for(const e of i.scene.children)s.push(e);for(;s.length>0;){const t=s.pop();let n=null;t instanceof Bi?(n=new IA(t,this.materials,this[GA],e),this[UA].push(n)):n=new CA(t.name);const i=a.get(t);null!=i?i.children.push(n):this[OA].push(n),this[NA].push(n);for(const e of t.children)s.push(e),a.set(t,n)}}get materials(){return this[DA]}[(MA=DA,kA=NA,PA=OA,RA=UA,LA=qA,BA=GA,jA)](){const e=Array.from(this[GA].values());return e.sort((e,t)=>e.index-t.index),e.map(e=>e.name)}getMaterialByName(e){const t=this[DA].filter(t=>t.name===e);return t.length>0?t[0]:null}[HA](e,t){const n=this[NA].find(n=>{if(n instanceof IA){const{meshes:i,primitives:r}=n.mesh.userData.associations;if(i==e&&r==t)return!0}return!1});return null==n?null:n}[VA](e){return this[NA].find(t=>{if(t instanceof IA){if(t.mesh===e.object)return!0}return!1})}[QA](e){return this[VA](e).getActiveMaterial()}async[zA](e){for(const t of this[UA])await t.enableVariant(e);for(const e of this.materials)e[yA](!1);for(const e of this[UA])this.materials[e.getActiveMaterial().index][yA](!0)}async[FA](){const e=new Array;for(const t of this[UA])e.push(t.instantiateVariants());await Promise.all(e)}[WA](e,t){const n=this.materials[e];n.isLoaded||console.error("Cloning an unloaded material,\n           call 'material.ensureLoaded() before cloning the material.");const i=n[mv],r=new Set;for(const[e,n]of i.entries()){const a=n.clone();a.name=t+(i.size>1?"_inst"+e:""),r.add(a)}const a=new xA(this[qA],this[DA].length,!1,this[GA],r,t);return this[DA].push(a),a}createMaterialInstanceForVariant(e,t,n,i=!0){let r=null;for(const i of this[UA]){const a=this[GA].get(n);null!=a&&i.variantInfo.has(a.index)||null!=i.getMaterial(e)&&(this.hasVariant(n)||this.createVariant(n),null==r&&(r=this[WA](e,t)),i.addVariant(r,n))}if(i&&null!=r){r[yA](!0),this.materials[e][yA](!1);for(const e of this[UA])e.enableVariant(n)}return r}createVariant(e){this[GA].has(e)?console.warn(`Variant '${e}'' already exists`):this[GA].set(e,{name:e,index:this[GA].size})}hasVariant(e){return this[GA].has(e)}setMaterialToVariant(e,t){if(null!=this[jA]().find(e=>e===t))if(e<0||e>=this.materials.length)console.error("setMaterialToVariant(): materialIndex is out of bounds.");else for(const n of this[UA]){const i=n.getMaterial(e);null!=i&&n.addVariant(i,t)}else console.warn(`Can't add material to '${t}', the variant does not exist.'`)}updateVariantName(e,t){const n=this[GA].get(e);null!=n&&(n.name=t,this[GA].set(t,n),this[GA].delete(e))}deleteVariant(e){const t=this[GA].get(e);if(null!=t){for(const n of this.materials)n.hasVariant(e)&&n[wA].delete(t.index);for(const e of this[UA])e.deleteVariant(t.index);this[GA].delete(e)}}}var KA=function(e,t,n,i){for(var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i,o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};const $A=Symbol("currentGLTF"),JA=Symbol("originalGltfJson"),ZA=Symbol("model"),ey=Symbol("getOnUpdateMethod"),ty=Symbol("buildTexture");class ny extends Bi{constructor(){super(void 0,new Zn({depthWrite:!1})),this.height=0,this.radius=0,this.resolution=0,this.userData.noHit=!0}get map(){return this.material.map}set map(e){this.material.map=e}isUsable(){return this.height>0&&this.radius>0&&null!=this.geometry&&null!=this.map}updateGeometry(e=this.height,t=this.radius,n=128){e==this.height&&t==this.radius&&n==this.resolution||(this.height=e,this.radius=t,this.resolution=n,e>0&&t>0&&(this.geometry.dispose(),this.geometry=function(e,t,n){const i=new Ho(t,2*n,n);i.scale(1,1,-1);const r=i.getAttribute("position"),a=new Mt;for(let t=0;t<r.count;++t)if(a.fromBufferAttribute(r,t),a.y<0){const n=3*-e/2,i=a.y<n?-e/a.y:1-a.y*a.y/(3*n*n);a.multiplyScalar(i),a.toArray(r.array,3*t)}return r.needsUpdate=!0,i}(e,t,n)))}}const iy=new Mt,ry=new Mt,ay=new Mt,sy=new nt,oy=new Gn,ly=new It;class uy extends Xh{constructor(e){super(document.createElement("div")),this.normal=new Mt(0,1,0),this.initialized=!1,this.referenceCount=1,this.pivot=document.createElement("div"),this.slot=document.createElement("slot"),this.element.classList.add("annotation-wrapper"),this.slot.name=e.name,this.element.appendChild(this.pivot),this.pivot.appendChild(this.slot),this.updatePosition(e.position),this.updateNormal(e.normal),this.surface=e.surface}get facingCamera(){return!this.element.classList.contains("hide")}show(){this.facingCamera&&this.initialized||this.updateVisibility(!0)}hide(){!this.facingCamera&&this.initialized||this.updateVisibility(!1)}increment(){this.referenceCount++}
vendor: 8,256 bytes, line 473
473decrement(){return this.referenceCount>0&&--this.referenceCount,0===this.referenceCount}updatePosition(e){if(null==e)return;const t=mf(e)[0].terms;for(let e=0;e<3;++e)this.position.setComponent(e,xf(t[e]).number);this.updateMatrixWorld()}updateNormal(e){if(null==e)return;const t=mf(e)[0].terms;for(let e=0;e<3;++e)this.normal.setComponent(e,t[e].number)}updateSurface(e){if(!e&&this.initialized)return;const{mesh:t,tri:n,bary:i}=this;if(null==t||null==n||null==i)return;t.getVertexPosition(n.x,iy),t.getVertexPosition(n.y,ry),t.getVertexPosition(n.z,ay),iy.toArray(sy.elements,0),ry.toArray(sy.elements,3),ay.toArray(sy.elements,6),this.position.copy(i).applyMatrix3(sy);const r=this.parent;r.worldToLocal(t.localToWorld(this.position)),oy.set(iy,ry,ay),oy.getNormal(this.normal).transformDirection(t.matrixWorld);const a=r.parent;ly.setFromAxisAngle(iy.set(0,1,0),-a.yaw),this.normal.applyQuaternion(ly)}orient(e){this.pivot.style.transform=`rotate(${e}rad)`}updateVisibility(e){this.element.classList.toggle("hide",!e),this.slot.assignedNodes().forEach(t=>{if(t.nodeType!==Node.ELEMENT_NODE)return;const n=t,i=n.dataset.visibilityAttribute;if(null!=i){const t=`data-${i}`;n.toggleAttribute(t,e)}n.dispatchEvent(new CustomEvent("hotspot-visibility",{detail:{visible:e}}))}),this.initialized=!0}}const cy={name:"HorizontalBlurShader",uniforms:{tDiffuse:{value:null},h:{value:1/512}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform float h;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 sum = vec4( 0.0 );\n\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x - 4.0 * h, vUv.y ) ) * 0.051;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x - 3.0 * h, vUv.y ) ) * 0.0918;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x - 2.0 * h, vUv.y ) ) * 0.12245;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x - 1.0 * h, vUv.y ) ) * 0.1531;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y ) ) * 0.1633;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x + 1.0 * h, vUv.y ) ) * 0.1531;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x + 2.0 * h, vUv.y ) ) * 0.12245;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x + 3.0 * h, vUv.y ) ) * 0.0918;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x + 4.0 * h, vUv.y ) ) * 0.051;\n\n\t\t\tgl_FragColor = sum;\n\n\t\t}"},dy={name:"VerticalBlurShader",uniforms:{tDiffuse:{value:null},v:{value:1/512}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform float v;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 sum = vec4( 0.0 );\n\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 4.0 * v ) ) * 0.051;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 3.0 * v ) ) * 0.0918;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 2.0 * v ) ) * 0.12245;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 1.0 * v ) ) * 0.1531;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y ) ) * 0.1633;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 1.0 * v ) ) * 0.1531;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 2.0 * v ) ) * 0.12245;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 3.0 * v ) ) * 0.0918;\n\t\t\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 4.0 * v ) ) * 0.051;\n\n\t\t\tgl_FragColor = sum;\n\n\t\t}"};function hy(e,t,n){return(1-n)*e+n*t}class py extends Ln{constructor(e,t,n){super(),this.camera=new yr,this.renderTarget=null,this.renderTargetBlur=null,this.depthMaterial=new Is,this.horizontalBlurMaterial=new Qi(cy),this.verticalBlurMaterial=new Qi(dy),this.intensity=0,this.softness=1,this.boundingBox=new Rt,this.size=new Mt,this.maxDimension=0,this.isAnimated=!1,this.needsUpdate=!1;const{camera:i}=this;i.rotation.x=Math.PI/2,i.left=-.5,i.right=.5,i.bottom=-.5,i.top=.5,this.add(i);const r=new sr,a=new Zn({opacity:1,transparent:!0,side:1});this.floor=new Bi(r,a),this.floor.userData.noHit=!0,i.add(this.floor),this.blurPlane=new Bi(r),this.blurPlane.visible=!1,i.add(this.blurPlane),e.target.add(this),this.depthMaterial.onBeforeCompile=function(e){e.fragmentShader=e.fragmentShader.replace("gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );","gl_FragColor = vec4( vec3( 0.0 ), ( 1.0 - fragCoordZ ) * opacity );")},this.horizontalBlurMaterial.depthTest=!1,this.verticalBlurMaterial.depthTest=!1,this.setScene(e,t,n)}setScene(e,t,n){const{boundingBox:i,size:r,rotation:a,position:s}=this;if(this.isAnimated=e.animationNames.length>0,this.boundingBox.copy(e.boundingBox),this.size.copy(e.size),this.maxDimension=Math.max(r.x,r.y,r.z)*(this.isAnimated?2:1),this.boundingBox.getCenter(s),"back"===n){const{min:e,max:t}=i;[e.y,e.z]=[e.z,e.y],[t.y,t.z]=[t.z,t.y],[r.y,r.z]=[r.z,r.y],a.x=Math.PI/2,a.y=Math.PI}else a.x=0,a.y=0;if(this.isAnimated){const e=i.min.y,t=i.max.y;r.y=this.maxDimension,i.expandByVector(r.subScalar(this.maxDimension).multiplyScalar(-.5)),i.min.y=e,i.max.y=t,r.set(this.maxDimension,t-e,this.maxDimension)}"bottom"===n?s.y=i.min.y:s.z=i.min.y,this.setSoftness(t)}setSoftness(e){this.softness=e;const{size:t,camera:n}=this,i=this.isAnimated?2:1,r=i*Math.pow(2,9-3*e);this.setMapSize(r);const a=t.y/2,s=t.y*i;n.near=0,n.far=hy(s,a,e),this.depthMaterial.opacity=1/e,n.updateProjectionMatrix(),this.setIntensity(this.intensity),this.setOffset(0)}setMapSize(e){const{size:t}=this;this.isAnimated&&(e*=2);const n=Math.floor(t.x>t.z?e:e*t.x/t.z),i=Math.floor(t.x>t.z?e*t.z/t.x:e),r=10+n,a=10+i;if(null==this.renderTarget||this.renderTarget.width===r&&this.renderTarget.height===a||(this.renderTarget.dispose(),this.renderTarget=null,this.renderTargetBlur.dispose(),this.renderTargetBlur=null),null==this.renderTarget){const e={format:X};this.renderTarget=new Tt(r,a,e),this.renderTargetBlur=new Tt(r,a,e),this.floor.material.map=this.renderTarget.texture}this.camera.scale.set(t.x*(1+10/n),t.z*(1+10/i),1),this.needsUpdate=!0}setIntensity(e){this.intensity=e,e>0?(this.visible=!0,this.floor.visible=!0,this.floor.material.opacity=e*hy(.3,1,this.softness*this.softness)):(this.visible=!1,this.floor.visible=!1)}getIntensity(){return this.intensity}setOffset(e){this.floor.position.z=-e+this.gap()}gap(){return.001*this.maxDimension}render(e,t){t.overrideMaterial=this.depthMaterial;const n=e.getClearAlpha();e.setClearAlpha(0),this.floor.visible=!1;const i=e.xr.enabled;e.xr.enabled=!1;const r=e.getRenderTarget();e.setRenderTarget(this.renderTarget),e.render(t,this.camera),t.overrideMaterial=null,this.floor.visible=!0,this.blurShadow(e),e.xr.enabled=i,e.setRenderTarget(r),e.setClearAlpha(n)}blurShadow(e){const{camera:t,horizontalBlurMaterial:n,verticalBlurMaterial:i,renderTarget:r,renderTargetBlur:a,blurPlane:s}=this;s.visible=!0,s.material=n,n.uniforms.h.value=1/this.renderTarget.width,n.uniforms.tDiffuse.value=this.renderTarget.texture,e.setRenderTarget(a),e.render(s,t),s.material=i,i.uniforms.v.value=1/this.renderTarget.height,i.uniforms.tDiffuse.value=this.renderTargetBlur.texture,e.setRenderTarget(r),e.render(s,t),s.visible=!1}dispose(){null!=this.renderTarget&&this.renderTarget.dispose(),null!=this.renderTargetBlur&&this.renderTargetBlur.dispose(),this.depthMaterial.dispose(),this.horizontalBlurMaterial.dispose(),this.verticalBlurMaterial.dispose(),this.floor.material.dispose(),this.floor.geometry.dispose(),this.blurPlane.geometry.dispose(),this.removeFromParent()}}const fy=new Mt,my=new Mt,gy=new Mt,vy=new class{constructor(e,t,n=0,i=1/0){this.ray=new an(e,t),this.near=n,this.far=i,this.camera=null,this.layers=new vn,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){this.ray.set(e,t)}setFromCamera(e,t){t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t):console.error("THREE.Raycaster: 
473Unsupported camera type: "+t.type)}setFromXRController(e){return Kl.identity().extractRotation(e.matrixWorld),this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(Kl),this}intersectObject(e,t=!0,n=[]){return Jl(e,this,n,t),n.sort($l),n}intersectObjects(e,t=!0,n=[]){for(let i=0,r=e.length;i<r;i++)Jl(e[i],this,n,t);return n.sort($l),n}},Ay=new Mt,yy=new tt;class by extends js{constructor({canvas:e,element:t,width:n,height:i}){super(),this.annotationRenderer=new tp,this.effectRenderer=null,this.schemaElement=document.createElement("script"),this.width=1,this.height=1,this.aspect=1,this.scaleStep=0,this.renderCount=0,this.externalRenderer=null,this.camera=new qi(45,1,.1,100),this.xrCamera=null,this.url=null,this.target=new Ln,this.animationNames=[],this.boundingBox=new Rt,this.boundingSphere=new Kt,this.size=new Mt,this.idealAspect=0,this.framedFoVDeg=0,this.shadow=null,this.shadowIntensity=0,this.shadowSoftness=1,this.bakedShadows=new Set,this.exposure=1,this.toneMapping=4,this.canScale=!0,this.isDirty=!1,this.goalTarget=new Mt,this.targetDamperX=new lf,this.targetDamperY=new lf,this.targetDamperZ=new lf,this._currentGLTF=null,this._model=null,this.cancelPendingSourceChange=null,this.animationsByName=new Map,this.currentAnimationAction=null,this.groundedSkybox=new ny,this.name="ModelScene",this.element=t,this.canvas=e,this.camera=new qi(45,1,.1,100),this.camera.name="MainCamera",this.add(this.target),this.setSize(n,i),this.target.name="Target",this.mixer=new Yl(this.target);const{domElement:r}=this.annotationRenderer,{style:a}=r;a.display="none",a.pointerEvents="none",a.position="absolute",a.top="0",this.element.shadowRoot.querySelector(".default").appendChild(r),this.schemaElement.setAttribute("type","application/ld+json")}get context(){return this.canvas.getContext("2d")}getCamera(){return null!=this.xrCamera?this.xrCamera:this.camera}queueRender(){this.isDirty=!0}shouldRender(){return this.isDirty}hasRendered(){this.isDirty=!1}forceRescale(){this.scaleStep=-1,this.queueRender()}async setObject(e){this.reset(),this._model=e,this.target.add(e),await this.setupScene()}async setSource(e,t=()=>{}){if(!e||e===this.url)return void t(1);if(this.reset(),this.url=e,null!=this.externalRenderer){const e=await this.externalRenderer.load(t);return this.boundingSphere.radius=e.framedRadius,void(this.idealAspect=e.fieldOfViewAspect)}let n;null!=this.cancelPendingSourceChange&&(this.cancelPendingSourceChange(),this.cancelPendingSourceChange=null);try{n=await new Promise(async(n,i)=>{this.cancelPendingSourceChange=()=>i();try{n(await this.element[db].loader.load(e,this.element,t))}catch(e){i(e)}})}catch(e){if(null==e)return;throw e}this.cancelPendingSourceChange=null,this.reset(),this.url=e,this._currentGLTF=n,null!=n&&(this._model=n.scene,this.target.add(n.scene));const{animations:i}=n,r=new Map,a=[];for(const e of i)r.set(e.name,e),a.push(e.name);this.animations=i,this.animationsByName=r,this.animationNames=a,await this.setupScene()}async setupScene(){this.applyTransform(),this.updateBoundingBox(),await this.updateFraming(),this.updateShadow(),this.setShadowIntensity(this.shadowIntensity),this.setGroundedSkybox()}reset(){this.url=null,this.renderCount=0,this.queueRender(),null!=this.shadow&&this.shadow.setIntensity(0),this.bakedShadows.clear();const{_model:e}=this;null!=e&&(e.removeFromParent(),this._model=null);const t=this._currentGLTF;null!=t&&(t.dispose(),this._currentGLTF=null),null!=this.currentAnimationAction&&(this.currentAnimationAction.stop(),this.currentAnimationAction=null),this.mixer.stopAllAction(),this.mixer.uncacheRoot(this)}dispose(){this.reset(),null!=this.shadow&&(this.shadow.dispose(),this.shadow=null),this.element[$A]=null,this.element[JA]=null,this.element[ZA]=null}get currentGLTF(){return this._currentGLTF}setSize(e,t){if(this.width!==e||this.height!==t){if(this.width=Math.max(e,1),this.height=Math.max(t,1),this.annotationRenderer.setSize(e,t),this.aspect=this.width/this.height,null!=this.externalRenderer){const n=Uc();this.externalRenderer.resize(e*n,t*n)}this.queueRender()}}
vendor: 6,835 bytes, line 473
473markBakedShadow(e){e.userData.noHit=!0,this.bakedShadows.add(e)}unmarkBakedShadow(e){e.userData.noHit=!1,e.visible=!0,this.bakedShadows.delete(e),this.boundingBox.expandByObject(e)}findBakedShadows(e){const t=new Rt;e.traverse(e=>{const n=e;if(!n.material)return;if(!n.material.transparent)return;t.setFromObject(n);const i=t.getSize(Ay),r=Math.min(i.x,i.y,i.z);Math.max(i.x,i.y,i.z)<100*r||this.markBakedShadow(n)})}checkBakedShadows(){const{min:e,max:t}=this.boundingBox,n=new Rt;this.boundingBox.getSize(this.size);for(const i of this.bakedShadows)n.setFromObject(i),n.min.y<e.y+this.size.y/100&&n.min.x<=e.x&&n.max.x>=t.x&&n.min.z<=e.z&&n.max.z>=t.z||n.min.z<e.z+this.size.z/100&&n.min.x<=e.x&&n.max.x>=t.x&&n.min.y<=e.y&&n.max.y>=t.y||this.unmarkBakedShadow(i)}applyTransform(){const{model:e}=this;if(null==e)return;const t=mf(this.element.orientation)[0].terms,n=xf(t[0]).number,i=xf(t[1]).number,r=xf(t[2]).number;e.quaternion.setFromEuler(new gn(i,r,n,"YXZ"));const a=mf(this.element.scale)[0].terms;e.scale.set(a[0].number,a[1].number,a[2].number)}updateBoundingBox(){const{model:e}=this;if(null==e)return;this.target.remove(e),this.findBakedShadows(e);const t=(e,t)=>e.expandByPoint(t);this.setBakedShadowVisibility(!1),this.boundingBox=np(e,t,new Rt),this.boundingBox.isEmpty()&&(this.setBakedShadowVisibility(!0),this.bakedShadows.forEach(e=>this.unmarkBakedShadow(e)),this.boundingBox=np(e,t,new Rt)),this.checkBakedShadows(),this.setBakedShadowVisibility(),this.boundingBox.getSize(this.size),this.target.add(e)}async updateFraming(){const{model:e}=this;if(null==e)return;this.target.remove(e),this.setBakedShadowVisibility(!1);const{center:t}=this.boundingSphere;this.element.requestUpdate("cameraTarget"),await this.element.updateComplete,t.copy(this.getTarget());this.boundingSphere.radius=Math.sqrt(np(e,(e,n)=>Math.max(e,t.distanceToSquared(n)),0));this.idealAspect=np(e,(e,n)=>{n.sub(t);const i=Math.sqrt(n.x*n.x+n.z*n.z);return Math.max(e,i/(this.idealCameraDistance()-Math.abs(n.y)))},0)/Math.tan(this.framedFoVDeg/2*Math.PI/180),this.setBakedShadowVisibility(),this.target.add(e)}setBakedShadowVisibility(e=this.shadowIntensity<=0){for(const t of this.bakedShadows)t.visible=e}idealCameraDistance(){const e=this.framedFoVDeg/2*Math.PI/180;return this.boundingSphere.radius/Math.sin(e)}adjustedFoV(e){const t=Math.tan(e/2*Math.PI/180)*Math.max(1,this.idealAspect/this.aspect);return 2*Math.atan(t)*180/Math.PI}getNDC(e,t){if(null!=this.xrCamera)yy.set(e/window.screen.width,t/window.screen.height);else{const n=this.element.getBoundingClientRect();yy.set((e-n.x)/this.width,(t-n.y)/this.height)}return yy.multiplyScalar(2).subScalar(1),yy.y*=-1,yy}getSize(){return{width:this.width,height:this.height}}setEnvironmentAndSkybox(e,t){this.element[db].arRenderer.presentedScene!==this&&(this.environment=e,this.setBackground(t),this.queueRender())}setBackground(e){this.groundedSkybox.map=e,this.groundedSkybox.isUsable()?(this.target.add(this.groundedSkybox),this.background=null):(this.target.remove(this.groundedSkybox),this.background=e)}farRadius(){return this.boundingSphere.radius*(null!=this.groundedSkybox.parent?10:1)}setGroundedSkybox(){const e=mf(this.element.skyboxHeight)[0].terms[0],t=xf(e).number,n=10*this.boundingSphere.radius;this.groundedSkybox.updateGeometry(t,n),this.groundedSkybox.position.y=t-(this.shadow?2*this.shadow.gap():0),this.setBackground(this.groundedSkybox.map)}setTarget(e,t,n){this.goalTarget.set(-e,-t,-n)}setTargetDamperDecayTime(e){this.targetDamperX.setDecayTime(e),this.targetDamperY.setDecayTime(e),this.targetDamperZ.setDecayTime(e)}getTarget(){return this.goalTarget.clone().multiplyScalar(-1)}jumpToGoal(){this.updateTarget(1e4)}updateTarget(e){const t=this.goalTarget,n=this.target.position;if(t.equals(n))return!1;{const i=this.boundingSphere.radius/10;let{x:r,y:a,z:s}=n;return r=this.targetDamperX.update(r,t.x,e,i),a=this.targetDamperY.update(a,t.y,e,i),s=this.targetDamperZ.update(s,t.z,e,i),this.groundedSkybox.position.x=-r,this.groundedSkybox.position.z=-s,this.target.position.set(r,a,s),this.target.updateMatrixWorld(),this.queueRender(),!0}}pointTowards(e,t){const{x:n,z:i}=this.position;this.yaw=Math.atan2(e-n,t-i)}get model(){return this._model}set yaw(e){this.rotation.y=e,this.groundedSkybox.rotation.y=-e,this.queueRender()}get yaw(){return this.rotation.y}set animationTime(e){this.mixer.setTime(e),this.queueShadowRender()}get animationTime(){if(null!=this.currentAnimationAction){const e=Math.max(this.currentAnimationAction._loopCount,0);return this.currentAnimationAction.loop!==pe||1&~e?this.currentAnimationAction.time:this.duration-this.currentAnimationAction.time}return 0}set animationTimeScale(e){this.mixer.timeScale=e}get animationTimeScale(){return this.mixer.timeScale}get duration(){return null!=this.currentAnimationAction&&this.currentAnimationAction.getClip()?this.currentAnimationAction.getClip().duration:0}get hasActiveAnimation(){return null!=this.currentAnimationAction}playAnimation(e=null,t=0,n=2201,i=1/0){if(null==this._currentGLTF)return;const{animations:r}=this;if(null==r||0===r.length)return;let a=null;if(null!=e&&(a=this.animationsByName.get(e),null==a)){const t=parseInt(e);!isNaN(t)&&t>=0&&t<r.length&&(a=r[t])}null==a&&(a=r[0]);try{const{currentAnimationAction:e}=this,r=this.mixer.clipAction(a,this);this.currentAnimationAction=r,this.element.paused?this.mixer.stopAllAction():(r.paused=!1,null!=e&&r!==e?r.crossFadeFrom(e,t,!1):this.animationTimeScale>0&&this.animationTime==this.duration&&(this.animationTime=0)),r.setLoop(n,i),r.enabled=!0,r.clampWhenFinished=!0,r.play()}catch(e){console.error(e)}}stopAnimation(){this.currentAnimationAction=null,this.mixer.stopAllAction()}updateAnimation(e){this.mixer.update(e),this.queueShadowRender()}subscribeMixerEvent(e,t){this.mixer.addEventListener(e,t)}updateShadow(){const e=this.shadow;if(null!=e){const t="wall"===this.element.arPlacement?"back":"bottom";e.setScene(this,this.shadowSoftness,t),e.needsUpdate=!0}}renderShadow(e){const t=this.shadow;null!=t&&1==t.needsUpdate&&(t.render(e,this),t.needsUpdate=!1)}queueShadowRender(){null!=this.shadow&&(this.shadow.needsUpdate=!0)}setShadowIntensity(e){if(this.shadowIntensity=e,null!=this._currentGLTF&&(this.setBakedShadowVisibility(),!(e<=0&&null==this.shadow))){if(null==this.shadow){const e="wall"===this.element.arPlacement?"back":"bottom";this.shadow=new py(this,this.shadowSoftness,e)}this.shadow.setIntensity(e)}}setShadowSoftness(e){this.shadowSoftness=e;const t=this.shadow;null!=t&&t.setSoftness(e)}setShadowOffset(e){const t=this.shadow;null!=t&&t.setOffset(e)}hitFromPoint(e,t=this){vy.setFromCamera(e,this.getCamera());return vy.intersectObject(t,!0).find(e=>e.object.visible&&!e.object.userData.noHit)}positionAndNormalFromPoint(e,t=this){var n;const i=this.hitFromPoint(e,t);if(null==i)return null;
473return{position:i.point,normal:null!=i.face?i.face.normal.clone().applyNormalMatrix((new nt).getNormalMatrix(i.object.matrixWorld)):vy.ray.direction.clone().multiplyScalar(-1),uv:null!==(n=i.uv)&&void 0!==n?n:null}}surfaceFromPoint(e,t=this){const n=this.element.model;if(null==n)return null;const i=this.hitFromPoint(e,t);if(null==i||null==i.face)return null;const r=n[VA](i),{meshes:a,primitives:s}=r.mesh.userData.associations,o=new Mt,l=new Mt,u=new Mt,{a:c,b:d,c:h}=i.face,p=i.object;p.getVertexPosition(c,o),p.getVertexPosition(d,l),p.getVertexPosition(h,u);const f=new Gn(o,l,u),m=new Mt;return f.getBarycoord(p.worldToLocal(i.point),m),`${a} ${s} ${c} ${d} ${h} ${m.x.toFixed(3)} ${m.y.toFixed(3)} ${m.z.toFixed(3)}`}addHotspot(e){this.target.add(e),this.annotationRenderer.domElement.appendChild(e.element)}removeHotspot(e){this.target.remove(e)}forHotspots(e){const{children:t}=this.target;for(let n=0,i=t.length;n<i;n++){const i=t[n];i instanceof uy&&e(i)}}initializeSurface(e){if(null!=e.surface&&null==e.mesh){const t=mf(e.surface)[0].terms;if(8!=t.length)return void console.warn(e.surface+" does not have exactly 8 numbers.");const n=this.element.model[HA](t[0].number,t[1].number),i=new Mt(t[2].number,t[3].number,t[4].number);if(null==n)return void console.warn(e.surface+" does not match a node/primitive in this glTF! Skipping this hotspot.");const r=n.mesh.geometry.attributes.position.count;if(i.x>=r||i.y>=r||i.z>=r)return void console.warn(e.surface+" vertex indices out of range in this glTF! Skipping this hotspot.");const a=new Mt(t[5].number,t[6].number,t[7].number);e.mesh=n.mesh,e.tri=i,e.bary=a}}updateSurfaceHotspots(){const e=!this.element.paused;this.forHotspots(t=>{this.initializeSurface(t),t.updateSurface(e)})}updateHotspotsVisibility(e){this.forHotspots(t=>{fy.copy(e),my.setFromMatrixPosition(t.matrixWorld),fy.sub(my),gy.copy(t.normal).transformDirection(this.target.matrixWorld),fy.dot(gy)<0?t.hide():t.show()})}orientHotspots(e){this.forHotspots(t=>{t.orient(e)})}setHotspotsVisibility(e){this.forHotspots(t=>{t.visible=e})}updateSchema(e){var t;const{schemaElement:n,element:i}=this,{alt:r,poster:a,iosSrc:s}=i;if(null!=e){const i=[{"@type":"MediaObject",contentUrl:e,encodingFormat:"gltf"===(null===(t=e.split(".").pop())||void 0===t?void 0:t.toLowerCase())?"model/gltf+json":"model/gltf-binary"}];s&&i.push({"@type":"MediaObject",contentUrl:s,encodingFormat:"model/vnd.usdz+zip"});const o={"@context":"http://schema.org/","@type":"3DModel",image:null!=a?a:void 0,name:null!=r?r:void 0,encoding:i};n.textContent=JSON.stringify(o),document.head.appendChild(n)}else null!=n.parentElement&&n.parentElement.removeChild(n)}}class _y extends EventTarget{constructor(){super(...arguments),this.ongoingActivities=new Set,this.totalProgress=0}get ongoingActivityCount(){return this.ongoingActivities.size}beginActivity(e){const t={progress:0,completed:!1};return this.ongoingActivities.add(t),1===this.ongoingActivityCount&&this.announceTotalProgress(t,0,e),n=>{let i;return i=Math.max(Oc(n,0,1),t.progress),i!==t.progress&&this.announceTotalProgress(t,i,e),t.progress}}announceTotalProgress(e,t,n){let i=0,r=0;1==t&&(e.completed=!0);for(const e of this.ongoingActivities){const{progress:t}=e;i+=1-t,e.completed&&r++}const a=e.progress;e.progress=t,this.totalProgress+=(t-a)*(1-this.totalProgress)/i;const s=r===this.ongoingActivityCount?1:this.totalProgress;this.dispatchEvent(new CustomEvent("progress",{detail:{totalProgress:s,reason:n}})),r===this.ongoingActivityCount&&(this.totalProgress=0,this.ongoingActivities.clear())}}var wy,Ey,Sy,Ty,xy,Cy,Iy,My,ky,Py,Ry,Ly,By,Dy=function(e,t,n,i){for(var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i,o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};const Ny=document.createElement("canvas"),Oy=Symbol("fallbackResizeHandler"),Uy=Symbol("defaultAriaLabel"),Fy=Symbol("resizeObserver"),zy=Symbol("clearModelTimeout"),Qy=Symbol("onContextLost"),Vy=Symbol("loaded"),Hy=Symbol("status"),Gy=Symbol("onFocus"),jy=Symbol("onBlur"),qy=Symbol("updateSize"),Wy=Symbol("intersectionObserver"),Yy=Symbol("isElementInViewport"),Xy=Symbol("announceModelVisibility"),Ky=Symbol("ariaLabel"),$y=Symbol("altDefaulted"),Jy=Symbol("statusElement"),Zy=Symbol("updateStatus"),eb=Symbol("loadedT
473ime"),tb=Symbol("updateSource"),nb=Symbol("markLoaded"),ib=Symbol("container"),rb=Symbol("input"),ab=Symbol("canvas"),sb=Symbol("scene"),ob=Symbol("needsRender"),lb=Symbol("tick"),ub=Symbol("onModelLoad"),cb=Symbol("onResize"),db=Symbol("renderer"),hb=Symbol("progressTracker"),pb=Symbol("getLoaded"),fb=Symbol("getModelIsVisible"),mb=Symbol("shouldAttemptPreload"),gb=e=>({x:e.x,y:e.y,z:e.z,toString(){return`${this.x}m ${this.y}m ${this.z}m`}}),vb=e=>({u:e.x,v:e.y,toString(){return`${this.u} ${this.v}`}});class Ab extends gc{constructor(){super(),this.alt=null,this.src=null,this.withCredentials=!1,this.generateSchema=!1,this[wy]=!1,this[Ey]=!1,this[Sy]=0,this[Ty]="",this[xy]=null,this[Cy]=Nc(()=>{const e=this.getBoundingClientRect();this[qy](e)},50),this[Iy]=Nc(e=>{const t=this.modelIsVisible;t!==e&&this.dispatchEvent(new CustomEvent("model-visibility",{detail:{visible:t}}))},0),this[My]=null,this[ky]=null,this[Py]=new _y,this[Ry]=()=>{this[Jy].textContent=this[Hy]},this[Ly]=()=>{this[Jy].textContent=""},this[By]=e=>{this.dispatchEvent(new CustomEvent("error",{detail:{type:"webglcontextlost",sourceError:e.sourceEvent}}))},this.attachShadow({mode:"open"});const e=this.shadowRoot;let t,n;if((e=>{ec(jc,e)})(e),this[ib]=e.querySelector(".container"),this[rb]=e.querySelector(".userIn
473put"),this[ab]=e.querySelector("canvas"),this[Jy]=e.querySelector("#status"),this[Uy]=this[rb].getAttribute("aria-label"),this.isConnected){const e=this.getBoundingClientRect();t=e.width,n=e.height}else t=300,n=150;this[sb]=new by({canvas:this[ab],element:this,width:t,height:n}),Promise.resolve().then(()=>{this[qy](this.getBoundingClientRect())}),Ec&&(this[Fy]=new ResizeObserver(e=>{if(!this[db].isPresenting)for(let t of e)t.target===this&&this[qy](t.contentRect)})),Sc?this[Wy]=new IntersectionObserver(e=>{for(let t of e)if(t.target===this){const e=this.modelIsVisible;this[Yy]=t.isIntersecting,this[Xy](e),this[Yy]&&!this.loaded&&this[tb]()}},{root:null,rootMargin:"0px",threshold:1e-5}):this[Yy]=!0}static get is(){return"model-viewer"}static set modelCacheSize(e){Yh[qh].evictionThreshold=e}static get modelCacheSize(){return Yh[qh].evictionThreshold}static set minimumRenderScale(e){e>1&&console.warn("<model-viewer> minimumRenderScale has been clamped to a maximum value of 1."),e<=0&&console.warn("<model-viewer> minimumRenderScale has been clamped to a minimum value of 0.25."),fv.singleton.minScale=e}static get minimumRenderScale(){return fv.singleton.minScale}get loaded(){return this[pb]()}get[(wy=Yy,Ey=Vy,Sy=eb,Ty=Hy,xy=zy,Cy=Oy,Iy=Xy,My=Fy,ky=Wy,Py=hb,db)](){return fv.singleton}get modelIsVisible(){return this[fb]()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),Ec?this[Fy].observe(this):self.addEventListener("resize",this[Oy]),Sc&&this[Wy].observe(this),this.addEventListener("focus",this[Gy]),this.addEventListener("blur",this[jy]);const e=this[db];e.addEventListener("contextlost",this[Qy]),e.registerScene(this[sb]),null!=this[zy]&&(self.clearTimeout(this[zy]),this[zy]=null,this.requestUpdate("src",null))}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),Ec?this[Fy].unobserve(this):self.removeEventListener("resize",this[Oy]),Sc&&this[Wy].unobserve(this),this.removeEventListener("focus",this[Gy]),this.removeEventListener("blur",this[jy]);const e=this[db];e.removeEventListener("contextlost",this[Qy]),e.unregisterScene(this[sb]),this[zy]=self.setTimeout(()=>{this[sb].dispose(),this[zy]=null},10)}updated(e){super.updated(e),e.has("src")&&(null==this.src?(this[Vy]=!1,this[eb]=0,this[sb].reset()):this.src!==this[sb].url&&(this[Vy]=!1,this[eb]=0,this[tb]())),e.has("alt")&&this[rb].setAttribute("aria-label",this[Ky]),e.has("withCredentials")&&(Yh.withCredentials=this.withCredentials,this[db].textureUtils.withCredentials=this.withCredentials),e.has("generateSchema")&&(this.generateSchema?this[sb].updateSchema(this.src):this[sb].updateSchema(null))}toDataURL(e,t){return this[db].displayCanvas(this[sb]).toDataURL(e,t)}async toBlob(e){const t=e?e.mimeType:void 0,n=e?e.qualityArgument:void 0,i=e?e.idealAspect:void 0,{width:r,height:a,idealAspect:s,aspect:o}=this[sb],{dpr:l,scaleFactor:u}=this[db];let c=r*u*l,d=a*u*l,h=0,p=0;if(!0===i)if(s>o){const e=d;d=Math.round(c/s),p=(e-d)/2}else{const e=c;c=Math.round(d*s),h=(e-c)/2}Ny.width=c,Ny.height=d;try{return new Promise(async(e,i)=>{Ny.getContext("2d").drawImage(this[db].displayCanvas(this[sb]),h,p,c,d,0,0,c,d),Ny.toBlob(t=>{if(!t)return i(new Error("Unable to retrieve canvas blob"));e(t)},t,n)})}finally{this[qy]({width:r,height:a})}}registerEffectComposer(e){e.setRenderer(this[db].threeRenderer),e.setMainCamera(this[sb].getCamera()),e.setMainScene(this[sb]),this[sb].effectRenderer=e}unregisterEffectComposer(){this[sb].effectRenderer=null}registerRenderer(e){this[sb].externalRenderer=e}unregisterRenderer(){this[sb].externalRenderer=null}get[Ky](){return this[$y]}get[$y](){return null==this.alt||"null"===this.alt?this[Uy]:this.alt}[pb](){return this[Vy]}[fb](){return this.loaded&&this[Yy]}[mb](){return!!this.src&&this[Yy]}[qy]({width:e,height:t}){0!==e&&0!==t&&(this[ib].style.width=`${e}px`,this[ib].style.height=`${t}px`,this[cb]({width:e,height:t}))}[lb](e,t){var n;null===(n=this[sb].effectRenderer)||void 0===n||n.beforeRender(e,t)}[nb](){this[Vy]||(this[Vy]=!0,this[eb]=performance.now())}[ob](){this[sb].queueRender()}[ub](){}[Zy](e){this[Hy]=e;const t=this.getRootNode();null!=t&&t.activeElement===this&&this[Jy].textContent!=e&&(this[Jy].textContent=e)}[(Ry=Gy,Ly=jy,cb)](e){this[sb].setSize(e.width,e.height)}async[(By=Qy,tb)](){const e=this[sb];if(this.loaded||!this[mb]()||this.src===e.url)return;this.generateSchema&&e.updateSchema(this.src),this[Zy]("Loading"),e.stopAnimation();const t=this[hb].beginActivity("model-load"),n=this.src;try{const i=e.setSource(n,e=>t(.95*Oc(e,0,1))),r=this[Hc]();await Promise.all([i,r]),this[nb](),this[ub](),this.updateComplete.then(()=>{this.dispatchEvent(new CustomEvent("before-render"))}),await new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:{url:n}})),e()})})})}catch(e){this.dispatchEvent(new CustomEvent("error",{detail:{type:"loadfailure",sourceError:e}}))}finally{t(1)}}}Dy([r({type:String})],Ab.prototype,"alt",void 0),Dy([r({type:String})],Ab.prototype,"src",void 0),Dy([r({type:Boolean,attribute:"with-credentials"})],Ab.prototype,"withCredentials",void 0),Dy([r({type:Boolean,attribute:"generate-schema"})],Ab.prototype,"generateSchema",void 0);var yb=function(e,t,n,i){for(var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i,o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};const bb=Symbol("changeAnimation"),_b=Symbol("paused"),wb={repetitions:1/0,pingpong:!1},Eb=Symbol("hotspotMap"),Sb=Symbol("mutationCallback"),Tb=Symbol("observer"),xb=Symbol("addHotspot"),Cb=Symbol("removeHotspot"),Ib=new sn;var Mb=Uint8Array,kb=Uint16Array,Pb=Int32Array,Rb=new Mb([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Lb=new Mb([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Bb=new Mb([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Db=function(e,t){for(var n=new kb(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Pb(n[30]);for(i=1;i<30;++i)for(var a=n[i];a<n[i+1];++a)r[a]=a-n[i]<<5|i;return{b:n,r}},Nb=Db(Rb,2),Ob=Nb.b,Ub=Nb.r;Ob[28]=258,Ub[258]=28;for(var Fb=Db(Lb,0).r,zb=new kb(32768),Qb=0;Qb<32768;++Qb){var Vb=(43690&Qb)>>1|(21845&Qb)<<1;Vb=(61680&(Vb=(52428&Vb)>>2|(13107&Vb)<<2))>>4|(3855&Vb)<<4,zb[Qb]=((65280&Vb)>>8|(255&Vb)<<8)>>1}var Hb=function(e,t,n){for(var i=e.length,r=0,a=new kb(t);r<i;++r)e[r]&&++a[e[r]-1];var s,o=new kb(t);for(r=1;r<t;++r)o[r]=o[r-1]+a[r-1]<<1;if(n){s=new kb(1<<t);var l=15-t;for(r=0;r<i;++r)if(e[r])for(var u=r<<4|e[r],c=t-e[r],d=o[e[r]-1]++<<c,h=d|(1<<c)-1;d<=h;++d)s[zb[d]>>l]=u}else for(s=new kb(i),r=0;r<i;++r)e[r]&&(s[r]=zb[o[e[r]-1]++]>>15-e[r]);return s},Gb=new Mb(288);for(Qb=0;Qb<144;++Qb)Gb[Qb]=8;for(Qb=144;Qb<256;++Qb)Gb[Qb]=9;for(Qb=256;Qb<280;++Qb)Gb[Qb]=7;for(Qb=280;Qb<288;++Qb)Gb[Qb]=8;var jb=new Mb(32);for(Qb=0;Qb<32;++Qb)jb[Qb]=5;var qb=Hb(Gb,9,0),Wb=Hb(jb,5,0),Yb=function(e){return(e+7)/8|0},Xb=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new Mb(e.subarray(t,n))}
vendor: 6,303 bytes, line 473
473,Kb=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],$b=function(e,t,n){var i=new Error(t||Kb[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,$b),!n)throw i;return i},Jb=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},Zb=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},e_=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,a=n.slice();if(!r)return{t:o_,l:0};if(1==r){var s=new Mb(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var o=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=r-1;)o=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:o.f+l.f,l:o,r:l};var h=a[0].s;for(i=1;i<r;++i)a[i].s>h&&(h=a[i].s);var p=new kb(h+1),f=t_(n[c-1],p,0);if(f>t){i=0;var m=0,g=f-t,v=1<<g;for(a.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});i<r;++i){var A=a[i].s;if(!(p[A]>t))break;m+=v-(1<<f-p[A]),p[A]=t}for(m>>=g;m>0;){var y=a[i].s;p[y]<t?m-=1<<t-p[y]++-1:++i}for(;i>=0&&m;--i){var b=a[i].s;p[b]==t&&(--p[b],++m)}f=t}return{t:new Mb(p),l:f}},t_=function(e,t,n){return-1==e.s?Math.max(t_(e.l,t,n+1),t_(e.r,t,n+1)):t[e.s]=n},n_=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new kb(++t),i=0,r=e[0],a=1,s=function(e){n[i++]=e},o=1;o<=t;++o)if(e[o]==r&&o!=t)++a;else{if(!r&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(r),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(r);a=1,r=e[o]}return{c:n.subarray(0,i),n:t}},i_=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},r_=function(e,t,n){var i=n.length,r=Yb(t+2);e[r]=255&i,e[r+1]=i>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var a=0;a<i;++a)e[r+a+4]=n[a];return 8*(r+4+i)},a_=function(e,t,n,i,r,a,s,o,l,u,c){Jb(t,c++,n),++r[256];for(var d=e_(r,15),h=d.t,p=d.l,f=e_(a,15),m=f.t,g=f.l,v=n_(h),A=v.c,y=v.n,b=n_(m),_=b.c,w=b.n,E=new kb(19),S=0;S<A.length;++S)++E[31&A[S]];for(S=0;S<_.length;++S)++E[31&_[S]];for(var T=e_(E,7),x=T.t,C=T.l,I=19;I>4&&!x[Bb[I-1]];--I);var M,k,P,R,L=u+5<<3,B=i_(r,Gb)+i_(a,jb)+s,D=i_(r,h)+i_(a,m)+s+14+3*I+i_(E,x)+2*E[16]+3*E[17]+7*E[18];if(l>=0&&L<=B&&L<=D)return r_(t,c,e.subarray(l,l+u));if(Jb(t,c,1+(D<B)),c+=2,D<B){M=Hb(h,p,0),k=h,P=Hb(m,g,0),R=m;var N=Hb(x,C,0);Jb(t,c,y-257),Jb(t,c+5,w-1),Jb(t,c+10,I-4),c+=14;for(S=0;S<I;++S)Jb(t,c+3*S,x[Bb[S]]);c+=3*I;for(var O=[A,_],U=0;U<2;++U){var F=O[U];for(S=0;S<F.length;++S){var z=31&F[S];Jb(t,c,N[z]),c+=x[z],z>15&&(Jb(t,c,F[S]>>5&127),c+=F[S]>>12)}}}else M=qb,k=Gb,P=Wb,R=jb;for(S=0;S<o;++S){var Q=i[S];if(Q>255){Zb(t,c,M[(z=Q>>18&31)+257]),c+=k[z+257],z>7&&(Jb(t,c,Q>>23&31),c+=Rb[z]);var V=31&Q;Zb(t,c,P[V]),c+=R[V],V>3&&(Zb(t,c,Q>>5&8191),c+=Lb[V])}else Zb(t,c,M[Q]),c+=k[Q]}return Zb(t,c,M[256]),c+k[256]},s_=new Pb([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),o_=new Mb(0),l_=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),u_=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=l_[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}},c_=function(e,t,n,i,r){if(!r&&(r={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),s=new Mb(a.length+e.length);s.set(a),s.set(e,a.length),e=s,r.w=a.length}return function(e,t,n,i,r,a){var s=a.z||e.length,o=new Mb(i+s+5*(1+Math.ceil(s/7e3))+r),l=o.subarray(i,o.length-r),u=a.l,c=7&(a.r||0);if(t){c&&(l[0]=a.r>>3);for(var d=s_[t-1],h=d>>13,p=8191&d,f=(1<<n)-1,m=a.p||new kb(32768),g=a.h||new kb(f+1),v=Math.ceil(n/3),A=2*v,y=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<A)&f},b=new Pb(25e3),_=new kb(288),w=new kb(32),E=0,S=0,T=a.i||0,x=0,C=a.w||0,I=0;T+2<s;++T){var M=y(T),k=32767&T,P=g[M];if(m[k]=P,g[M]=k,C<=T){var R=s-T;if((E>7e3||x>24576)&&(R>423||!u)){c=a_(e,l,0,b,_,w,S,x,I,T-I,c),x=E=S=0,I=T;for(var L=0;L<286;++L)_[L]=0;for(L=0;L<30;++L)w[L]=0}var B=2,D=0,N=p,O=k-P&32767;if(R>2&&M==y(T-O))for(var U=Math.min(h,R)-1,F=Math.min(32767,T),z=Math.min(258,R);O<=F&&--N&&k!=P;){if(e[T+B]==e[T+B-O]){for(var Q=0;Q<z&&e[T+Q]==e[T+Q-O];++Q);if(Q>B){if(B=Q,D=O,Q>U)break;var V=Math.min(O,Q-2),H=0;for(L=0;L<V;++L){var G=T-O+L&32767,j=G-m[G]&32767;j>H&&(H=j,P=G)}}}O+=(k=P)-(P=m[k])&32767}if(D){b[x++]=268435456|Ub[B]<<18|Fb[D];var q=31&Ub[B],W=31&Fb[D];S+=Rb[q]+Lb[W],++_[257+q],++w[W],C=T+B,++E}else b[x++]=e[T],++_[e[T]]}}for(T=Math.max(T,C);T<s;++T)b[x++]=e[T],++_[e[T]];c=a_(e,l,u,b,_,w,S,x,I,T-I,c),u||(a.r=7&c|l[c/8|0]<<3,c-=7,a.h=g,a.p=m,a.i=T,a.w=C)}else{for(T=a.w||0;T<s+u;T+=65535){var Y=T+65535;Y>=s&&(l[c/8|0]=u,Y=s),c=r_(l,c+1,e.subarray(T,Y))}a.i=s}return Xb(o,0,i+Yb(c)+r)}(e,null==t.level?6:t.level,null==t.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,i,r)},d_=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},h_=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function p_(e,t){return c_(e,t||{},0,0)}var f_=function(e,t,n,i){for(var r in e){var a=e[r],s=t+r,o=i;Array.isArray(a)&&(o=d_(i,a[1]),a=a[0]),a instanceof Mb?n[s]=[a,o]:(n[s+="/"]=[new Mb(0),o],f_(a,s,n,i))}},m_="undefined"!=typeof TextEncoder&&new TextEncoder,g_="undefined"!=typeof TextDecoder&&new TextDecoder;try{g_.decode(o_,{stream:!0})}catch(lc){}function v_(e,t){if(t){for(var n=new Mb(e.length),i=0;i<e.length;++i)n[i]=e.charCodeAt(i);return n}if(m_)return m_.encode(e);var r=e.length,a=new Mb(e.length+(e.length>>1)),s=0,o=function(e){a[s++]=e};for(i=0;i<r;++i){if(s+5>a.length){var l=new Mb(s+8+(r-i<<1));l.set(a),a=l}var u=e.charCodeAt(i);u<128||t?o(u):u<2048?(o(192|u>>6),o(128|63&u)):u>55295&&u<57344?(o(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++i))>>18),o(128|u>>12&63),o(128|u>>6&63),o(128|63&u)):(o(224|u>>12),o(128|u>>6&63),o(128|63&u))}return Xb(a,0,s)}var A_=function(e){var t=0;if(e)for(var n in e){var i=e[n].length;i>65535&&$b(9),t+=i+4}return t},y_=function(e,t,n,i,r,a,s,o){var l=i.length,u=n.extra,c=o&&o.length,d=A_(u);h_(e,t,null!=s?33639248:67324752),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(a<0&&8),e[t++]=r&&8,e[t++]=255&n.compression,e[t++]=n.
473compression>>8;var h=new Date(null==n.mtime?Date.now():n.mtime),p=h.getFullYear()-1980;if((p<0||p>119)&&$b(10),h_(e,t,p<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=a&&(h_(e,t,n.crc),h_(e,t+4,a<0?-a-2:a),h_(e,t+8,n.size)),h_(e,t+12,l),h_(e,t+14,d),t+=16,null!=s&&(h_(e,t,c),h_(e,t+6,n.attrs),h_(e,t+10,s),t+=14),e.set(i,t),t+=l,d)for(var f in u){var m=u[f],g=m.length;h_(e,t,+f),h_(e,t+2,g),e.set(m,t+4),t+=4+g}return c&&(e.set(o,t),t+=c),t};function b_(e,t){t||(t={});var n={},i=[];f_(e,"",n,t);var r=0,a=0;for(var s in n){var o=n[s],l=o[0],u=o[1],c=0==u.level?0:8,d=(E=v_(s)).length,h=u.comment,p=h&&v_(h),f=p&&p.length,m=A_(u.extra);d>65535&&$b(11);var g=c?p_(l,u):l,v=g.length,A=u_();A.p(l),i.push(d_(u,{size:l.length,crc:A.d(),c:g,f:E,m:p,u:d!=s.length||p&&h.length!=f,o:r,compression:c})),r+=30+d+m+v,a+=76+2*(d+m)+(f||0)+v}for(var y=new Mb(a+22),b=r,_=a-r,w=0;w<i.length;++w){var E=i[w];y_(y,E.o,E,E.f,E.u,E.c.length);var S=30+E.f.length+A_(E.extra);y.set(E.c,E.o+S),y_(y,r,E,E.f,E.u,E.c.length,E.o,E.m),r+=16+S+(E.m?E.m.length:0)}return function(e,t,n,i,r){h_(e,t,101010256),h_(e,t+8,n),h_(e,t+10,n),h_(e,t+12,i),h_(e,t+16,r)}(y,r,i.length,_,b),y}class __{async parse(e,t={}){t=Object.assign({ar:{anchoring:{type:"plane"},planeAnchoring:{alignment:"horizontal"}},quickLookCompatible:!1,maxTextureSize:1024},t);const n={},i="model.usda";n[i]=null;let r=S_();r+=function(e){return`def Xform "Root"\n{\n\tdef Scope "Scenes" (\n\t\tkind = "sceneLibrary"\n\t)\n\t{\n\t\tdef Xform "Scene" (\n\t\t\tcustomData = {\n\t\t\t\tbool preliminary_collidesWithEnvironment = 0\n\t\t\t\tstring sceneName = "Scene"\n\t\t\t}\n\t\t\tsceneName = "Scene"\n\t\t)\n\t\t{\n\t\ttoken preliminary:anchoring:type = "${e.ar.anchoring.type}"\n\t\ttoken preliminary:planeAnchoring:alignment = "${e.ar.planeAnchoring.alignment}"\n\n`}(t);const a={},s={};e.traverseVisible(e=>{if(e.isMesh){const t=e.geometry,i=e.material;if(i.isMeshStandardMaterial){const s="geometries/Geometry_"+t.id+".usda";if(!(s in n)){const e=function(e){const t=function(e){const t="Geometry",n=e.attributes,i=n.position.count;return`\n\tdef Mesh "${t}"\n\t{\n\t\tint[] faceVertexCounts = [${function(e){const t=null!==e.index?e.index.count:e.attributes.position.count;return Array(t/3).fill(3).join(", ")}(e)}]\n\t\tint[] faceVertexIndices = [${function(e){const t=e.index,n=[];if(null!==t)for(let e=0;e<t.count;e++)n.push(t.getX(e));else{const t=e.attributes.position.count;for(let e=0;e<t;e++)n.push(e)}return n.join(", ")}(e)}]\n\t\tnormal3f[] normals = [${C_(n.normal,i)}] (\n\t\t\tinterpolation = "vertex"\n\t\t)\n\t\tpoint3f[] points = [${C_(n.position,i)}]\n${function(e){let t="";for(let n=0;n<4;n++){const i=n>0?n:"",r=e["uv"+i];void 0!==r&&(t+=`\n\t\ttexCoord2f[] primvars:st${i} = [${I_(r)}] (\n\t\t\tinterpolation = "vertex"\n\t\t)`)}const n=e.color;if(void 0!==n){t+=`\n\tcolor3f[] primvars:displayColor = [${C_(n,n.count)}] (\n\t\tinterpolation = "vertex"\n\t\t)`}return t}(n)}\n\t\tuniform token subdivisionScheme = "none"\n\t}\n`}(e);return`\ndef "Geometry"\n{\n${t}\n}\n`}(t);n[s]=function(e){let t=S_();return t+=e,v_(t)}(e)}i.uuid in a||(a[i.uuid]=i),r+=function(e,t,n){const i="Object_"+e.id,r=T_(e.matrixWorld);e.matrixWorld.determinant()<0&&console.warn("THREE.USDZExporter: USDZ does not support negative scales",e);return`def Xform "${i}" (\n\tprepend references = @./geometries/Geometry_${t.id}.usda@</Geometry>\n\tprepend apiSchemas = ["MaterialBindingAPI"]\n)\n{\n\tmatrix4d xformOp:transform = ${r}\n\tuniform token[] xformOpOrder = ["xformOp:transform"]\n\n\trel material:binding = </Materials/Material_${n.id}>\n}\n\n`}(e,t,i)}else console.warn("THREE.USDZExporter: Unsupported material type (USDZ only supports MeshStandardMaterial)",e)}else e.isCamera&&(r+=function(e){const t=e.name?e.name:"Camera_"+e.id,n=T_(e.matrixWorld);e.matrixWorld.determinant()<0&&console.warn("THREE.USDZExporter: USDZ does not support negative scales",e);return e.isOrthographicCamera?`def Camera "${t}"\n\t\t{\n\t\t\tmatrix4d xformOp:transform = ${n}\n\t\t\tuniform token[] xformOpOrder = ["xformOp:transform"]\n\n\t\t\tfloat2 clippingRange = (${e.near.toPrecision(E_)}, ${e.far.toPrecision(E_)})\n\t\t\tfloat horizontalAperture = ${(10*(Math.abs(e.left)+Math.abs(e.right))).toPrecision(E_)}\n\t\t\tfloat verticalAperture = ${(10*(Math.abs(e.top)+Math.abs(e.bottom))).toPrecision(E_)}\n\t\t\ttoken projection = "orthographic"\n\t\t}\n\t\n\t`:`def Camera "${t}"\n\t\t{\n\t\t\tmatrix4d xformOp:transform = ${n}\n\t\t\tuniform token[] xformOpOrder = ["xformOp:transform"]\n\n\t\t\tfloat2 clippingRange = (${e.near.toPrecision(E_)}, ${e.far.toPrecision(E_)})\n\t\t\tfloat focalLength = ${e.getFocalLength().toPrecision(E_)}\n\t\t\tfloat focusDistance = ${e.focus.toPrecision(E_)}\n\t\t\tfloat horizontalAperture = ${e.getFilmWidth().toPrecision(E_)}\n\t\t\ttoken projection = "perspective"\n\t\t\tfloat verticalAperture = ${e.getFilmHeight().toPrecision(E_)}\n\t\t}\n\t\n\t`}(e))}),r+="\n\t\t}\n\t}\n}\n\n",r+=function(e,t,n=!1){const i=[];for(const r in e){const a=e[r];i.push(M_(a,t,n))}return`def "Materials"\n{\n${i.join("")}\n}\n\n`}(a,s,t.quickLookCompatible),n[i]=v_(r),r=null;for(const e in s){let i=s[e];!0===i.isCompressedTexture&&(i=op(i));const r=w_(i.image,i.flipY,t.maxTextureSize),a=await new Promise(e=>
vendor: 3,013 bytes, line 473
473r.toBlob(e,"image/png",1));n[`textures/Texture_${e}.png`]=new Uint8Array(await a.arrayBuffer())}let o=0;for(const e in n){const t=n[e];o+=34+e.length;const i=63&o;if(4!==i){const r=new Uint8Array(64-i);n[e]=[t,{extra:{12345:r}}]}o=t.length}return b_(n,{level:0})}}function w_(e,t,n){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const i=n/Math.max(e.width,e.height),r=document.createElement("canvas");r.width=e.width*Math.min(1,i),r.height=e.height*Math.min(1,i);const a=r.getContext("2d");return!0===t&&(a.translate(0,r.height),a.scale(1,-1)),a.drawImage(e,0,0,r.width,r.height),r}throw new Error("THREE.USDZExporter: No valid image data found. Unable to process texture.")}const E_=7;function S_(){return'#usda 1.0\n(\n\tcustomLayerData = {\n\t\tstring creator = "Three.js USDZExporter"\n\t}\n\tdefaultPrim = "Root"\n\tmetersPerUnit = 1\n\tupAxis = "Y"\n)\n\n'}function T_(e){const t=e.elements;return`( ${x_(t,0)}, ${x_(t,4)}, ${x_(t,8)}, ${x_(t,12)} )`}function x_(e,t){return`(${e[t+0]}, ${e[t+1]}, ${e[t+2]}, ${e[t+3]})`}function C_(e,t){if(void 0===e)return console.warn("USDZExporter: Normals missing."),Array(t).fill("(0, 0, 0)").join(", ");const n=[];for(let t=0;t<e.count;t++){const i=e.getX(t),r=e.getY(t),a=e.getZ(t);n.push(`(${i.toPrecision(E_)}, ${r.toPrecision(E_)}, ${a.toPrecision(E_)})`)}return n.join(", ")}function I_(e){const t=[];for(let n=0;n<e.count;n++){const i=e.getX(n),r=e.getY(n);t.push(`(${i.toPrecision(E_)}, ${1-r.toPrecision(E_)})`)}return t.join(", ")}function M_(e,t,n=!1){const i="\t\t\t",r=[],a=[];function s(i,r,a){const s=i.source.id+"_"+i.flipY;t[s]=i;const o=i.channel>0?"st"+i.channel:"st",l={1e3:"repeat",1001:"clamp",1002:"mirror"},u=i.repeat.clone(),c=i.offset.clone(),d=i.rotation,h=Math.sin(d),p=Math.cos(d);return c.y=1-c.y-u.y,n?(c.x=c.x/u.x,c.y=c.y/u.y,c.x+=h/u.x,c.y+=p-1):(c.x+=h*u.x,c.y+=(1-p)*u.y),`\n\t\tdef Shader "PrimvarReader_${r}"\n\t\t{\n\t\t\tuniform token info:id = "UsdPrimvarReader_float2"\n\t\t\tfloat2 inputs:fallback = (0.0, 0.0)\n\t\t\ttoken inputs:varname = "${o}"\n\t\t\tfloat2 outputs:result\n\t\t}\n\n\t\tdef Shader "Transform2d_${r}"\n\t\t{\n\t\t\tuniform token info:id = "UsdTransform2d"\n\t\t\ttoken inputs:in.connect = </Materials/Material_${e.id}/PrimvarReader_${r}.outputs:result>\n\t\t\tfloat inputs:rotation = ${(d*(180/Math.PI)).toFixed(E_)}\n\t\t\tfloat2 inputs:scale = ${P_(u)}\n\t\t\tfloat2 inputs:translation = ${P_(c)}\n\t\t\tfloat2 outputs:result\n\t\t}\n\n\t\tdef Shader "Texture_${i.id}_${r}"\n\t\t{\n\t\t\tuniform token info:id = "UsdUVTexture"\n\t\t\tasset inputs:file = @textures/Texture_${s}.png@\n\t\t\tfloat2 inputs:st.connect = </Materials/Material_${e.id}/Transform2d_${r}.outputs:result>\n\t\t\t${void 0!==a?"float4 inputs:scale = "+function(e){return`(${e.r}, ${e.g}, ${e.b}, 1.0)`}(a):""}
473\n\t\t\ttoken inputs:sourceColorSpace = "${i.colorSpace===_e?"raw":"sRGB"}"\n\t\t\ttoken inputs:wrapS = "${l[i.wrapS]}"\n\t\t\ttoken inputs:wrapT = "${l[i.wrapT]}"\n\t\t\tfloat outputs:r\n\t\t\tfloat outputs:g\n\t\t\tfloat outputs:b\n\t\t\tfloat3 outputs:rgb\n\t\t\t${e.transparent||e.alphaTest>0?"float outputs:a":""}\n\t\t}`}return 2===e.side&&console.warn("THREE.USDZExporter: USDZ does not support double sided materials",e),null!==e.map?(r.push(`${i}color3f inputs:diffuseColor.connect = </Materials/Material_${e.id}/Texture_${e.map.id}_diffuse.outputs:rgb>`),e.transparent?r.push(`${i}float inputs:opacity.connect = </Materials/Material_${e.id}/Texture_${e.map.id}_diffuse.outputs:a>`):e.alphaTest>0&&(r.push(`${i}float inputs:opacity.connect = </Materials/Material_${e.id}/Texture_${e.map.id}_diffuse.outputs:a>`),r.push(`${i}float inputs:opacityThreshold = ${e.alphaTest}`)),a.push(s(e.map,"diffuse",e.color))):r.push(`${i}color3f inputs:diffuseColor = ${k_(e.color)}`),null!==e.emissiveMap?(r.push(`${i}color3f inputs:emissiveColor.connect = </Materials/Material_${e.id}/Texture_${e.emissiveMap.id}_emissive.outputs:rgb>`),a.push(s(e.emissiveMap,"emissive"))):e.emissive.getHex()>0&&r.push(`${i}color3f inputs:emissiveColor = ${k_(e.emissive)}`),null!==e.normalMap&&(r.push(`${i}normal3f inputs:normal.connect = </Materials/Material_${e.id}/Texture_${e.normalMap.id}_normal.outputs:rgb>`),a.push(s(e.normalMap,"normal"))),null!==e.aoMap&&(r.push(`${i}float inputs:occlusion.connect = </Materials/Material_${e.id}/Texture_${e.aoMap.id}_occlusion.outputs:r>`),a.push(s(e.aoMap,"occlusion"))),null!==e.roughnessMap&&1===e.roughness?(r.push(`${i}float inputs:roughness.connect = </Materials/Material_${e.id}/Texture_${e.roughnessMap.id}_roughness.outputs:g>`),a.push(s(e.roughnessMap,"roughness"))):r.push(`${i}float inputs:roughness = ${e.roughness}`),null!==e.metalnessMap&&1===e.metalness?(r.push(`${i}float inputs:metallic.connect = </Materials/Material_${e.id}/Texture_${e.metalnessMap.id}_metallic.outputs:b>`),a.push(s(e.metalnessMap,"metallic"))):r.push(`${i}float inputs:metallic = ${e.metalness}`),null!==e.alphaMap?(r.push(`${i}float inputs:opacity.connect = </Materials/Material_${e.id}/Texture_${e.alphaMap.id}_opacity.outputs:r>`),r.push(`${i}float inputs:opacityThreshold = 0.0001`),a.push(s(e.alphaMap,"opacity"))):r.push(`${i}float inputs:opacity = ${e.opacity}`),e.isMeshPhysicalMaterial&&(r.push(`${i}float inputs:clearcoat = ${e.clearcoat}`),r.push(`${i}float inputs:clearcoatRoughness = ${e.clearcoatRoughness}`),r.push(`${i}float inputs:ior = ${e.ior}`)),`\n\tdef Material "Material_${e.id}"\n\t{\n\t\tdef Shader "PreviewSurface"\n\t\t{\n\t\t\tuniform token info:id = "UsdPreviewSurface"\n${r.join("\n")}\n\t\t\tint inputs:useSpecularWorkflow = 0\n\t\t\ttoken outputs:surface\n\t\t}\n\n\t\ttoken outputs:surface.connect = </Materials/Material_${e.id}/PreviewSurface.outputs:surface>\n\n${a.join("\n")}\n\n\t}\n`}function k_(e){return`(${e.r}, ${e.g}, ${e.b})`}function P_(e){return`(${e.x}, ${e.y})`}var R_=function(e,t,n,i){for(var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i,o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};let L_=!1,B_=!1;const D_="#model-viewer-no-ar-fallback",N_=(O_=["quick-look","scene-viewer","webxr","none"],e=>{try{const t=mf(e),n=(t.length?t[0].terms:[]).filter(e=>e&&"ident"===e.type).map(e=>e.value).filter(e=>O_.indexOf(e)>-1);return new Set(n)}catch(e){}return new Set});var O_;const U_="quick-look",F_="scene-viewer",z_="webxr",Q_="none",V_=Symbol("arButtonContainer"),H_=Symbol("enterARWithWebXR"),G_=Symbol("openSceneViewer"),j_=Symbol("openIOSARQuickLook"),q_=Symbol("canActivateAR"),W_=Symbol("arMode"),Y_=Symbol("arModes"),X_=Symbol("arAnchor"),K_=Symbol("preload"),$_=Symbol("onARButtonContainerClick"),J_=Symbol("onARStatus"),Z_=Symbol("onARTracking"),ew=Symbol("onARTap"),tw=Symbol("selectARMode"),nw=Symbol("triggerLoad");var iw=function(e,t,n,i){for(var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i,o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};const rw="auto",aw="auto",sw="eager",ow=Symbol("defaultProgressBarElement"),lw=Symbol("posterContainerElement"),uw=Symbol("defaultPosterElement"),cw=Symbol("shouldDismissPoster"),dw=Symbol("hidePoster"),hw=Symbol("modelIsRevealed"),pw=Symbol("updateProgressBar"),fw=Symbol("ariaLabelCallToAction"),mw=Symbol("onProgress");var gw=function(e,t,n,i){for(var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i,o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};const vw=Math.PI/32,Aw={basis:[Sf(ff(vw,"rad"))],keywords:{auto:[null]}},yw=Symbol("autoRotateStartTime"),bw=Symbol("radiansPerSecond"),_w=Symbol("syncRotationRate"),ww=Symbol("onCameraChange"),Ew=(e=>{var t,n,i;class r extends e{constructor(){super(...arguments),this[t]=new Map,this[n]=e=>
vendor: 5,690 bytes, line 473
473{e.forEach(e=>{e instanceof MutationRecord&&"childList"!==e.type||(e.addedNodes.forEach(e=>{this[xb](e)}),e.removedNodes.forEach(e=>{this[Cb](e)}),this[ob]())})},this[i]=new MutationObserver(this[Sb])}connectedCallback(){super.connectedCallback();for(let e=0;e<this.children.length;++e)this[xb](this.children[e]);const{ShadyDOM:e}=self;null==e?this[Tb].observe(this,{childList:!0}):this[Tb]=e.observeChildren(this,this[Sb])}disconnectedCallback(){super.disconnectedCallback();const{ShadyDOM:e}=self;null==e?this[Tb].disconnect():e.unobserveChildren(this[Tb])}[(t=Eb,n=Sb,i=Tb,lb)](e,t){super[lb](e,t);const n=this[sb],{annotationRenderer:i}=n,r=n.getCamera();n.shouldRender()&&(n.updateSurfaceHotspots(),n.updateHotspotsVisibility(r.position),i.domElement.style.display="",i.render(n,r))}updateHotspot(e){const t=this[Eb].get(e.name);null!=t&&(t.updatePosition(e.position),t.updateNormal(e.normal),t.surface=e.surface,this[ob]())}queryHotspot(e){const t=this[Eb].get(e);if(null==t)return null;const n=gb(t.position),i=gb(t.normal),r=t.facingCamera,a=this[sb],s=a.getCamera(),o=new Mt;o.setFromMatrixPosition(t.matrixWorld),o.project(s);const l=a.width/2,u=a.height/2;o.x=o.x*l+l,o.y=-o.y*u+u;const c=gb(new Mt(o.x,o.y,o.z));return Number.isFinite(c.x)&&Number.isFinite(c.y)?{position:n,normal:i,canvasPosition:c,facingCamera:r}:null}positionAndNormalFromPoint(e,t){const n=this[sb],i=n.getNDC(e,t),r=n.positionAndNormalFromPoint(i);if(null==r)return null;Ib.copy(n.target.matrixWorld).invert();const a=gb(r.position.applyMatrix4(Ib)),s=gb(r.normal.transformDirection(Ib));let o=null;return null!=r.uv&&(o=vb(r.uv)),{position:a,normal:s,uv:o}}surfaceFromPoint(e,t){const n=this[sb],i=n.getNDC(e,t);return n.surfaceFromPoint(i)}[xb](e){if(!(e instanceof HTMLElement&&0===e.slot.indexOf("hotspot")))return;let t=this[Eb].get(e.slot);null!=t?t.increment():(t=new uy({name:e.slot,position:e.dataset.position,normal:e.dataset.normal,surface:e.dataset.surface}),this[Eb].set(e.slot,t),this[sb].addHotspot(t)),this[sb].queueRender()}[Cb](e){if(!(e instanceof HTMLElement))return;const t=this[Eb].get(e.slot);t&&(t.decrement()&&(this[sb].removeHotspot(t),this[Eb].delete(e.slot)),this[sb].queueRender())}}return r})((e=>{var t,n,i;class a extends e{constructor(){super(...arguments),this[t]=void 0,this[n]=null,this[i]=null,this.variantName=null,this.orientation="0 0 0",this.scale="1 1 1"}get model(){return this[ZA]}get availableVariants(){return this.model?this.model[jA]():[]}get originalGltfJson(){return this[JA]}[(t=ZA,n=$A,i=JA,ey)](){return()=>{this[ob]()}}[ty](e){return e.colorSpace=we,e.wrapS=B,e.wrapT=B,new Vv(this[ey](),e)}async createTexture(e,t="image/png"){const{textureUtils:n}=this[db],i=await n.loadImage(e);return i.userData.mimeType=t,this[ty](i)}async createLottieTexture(e,t=1){const{textureUtils:n}=this[db],i=await n.loadLottie(e,t);return this[ty](i)}createVideoTexture(e){const t=document.createElement("video");t.crossOrigin=this.withCredentials?"use-credentials":"anonymous",t.src=e,t.muted=!0,t.playsInline=!0,t.loop=!0,t.play();const n=new Uo(t);return this[ty](n)}createCanvasTexture(){const e=document.createElement("canvas"),t=new Vo(e);return this[ty](t)}async updated(e){if(super.updated(e),e.has("variantName")){const e=this[hb].beginActivity("variant-update");e(.1);const t=this[ZA],{variantName:n}=this;null!=t&&(await t[zA](n),this[ob](),this.dispatchEvent(new CustomEvent("variant-applied"))),e(1)}if(e.has("orientation")||e.has("scale")){if(!this.loaded)return;const e=this[sb];e.applyTransform(),e.updateBoundingBox(),e.updateShadow(),this[db].arRenderer.onUpdateScene(),this[ob]()}}[ub](){super[ub]();const{currentGLTF:e}=this[sb];if(null!=e){const{correlatedSceneGraph:t}=e;null!=t&&e!==this[$A]&&(this[ZA]=new XA(t,this[ey]()),this[JA]=JSON.parse(JSON.stringify(t.gltf))),"variants"in e.userData&&this.requestUpdate("variantName")}this[$A]=e}async exportScene(e){const t=this[sb];return new Promise(async(n,i)=>{const r={binary:!0,onlyVisible:!0,maxTextureSize:1/0,includeCustomExtensions:!1,forceIndices:!1};Object.assign(r,e),r.animations=t.animations,r.truncateDrawRange=!0;const a=t.shadow;let s=!1;null!=a&&(s=a.visible,a.visible=!1),await this[ZA][FA]();(new up).register(e=>new af(e)).parse(t.model,e=>n(new Blob([r.binary?e:JSON.stringify(e)],{type:r.binary?"application/octet-stream":"application/json"})),()=>i("glTF export failed"),r),null!=a&&(a.visible=s)})}materialFromPoint(e,t){const n=this[ZA];if(null==n)return null;const i=this[sb],r=i.getNDC(e,t),a=i.hitFromPoint(r);return null==a||null==a.face?null:n[QA](a)}}return KA([r({type:String,attribute:"variant-name"})],a.prototype,"variantName",void 0),KA([r({type:String,attribute:"orientation"})],a.prototype,"orientation",void 0),KA([r({type:String,attribute:"scale"})],a.prototype,"scale",void 0),a})((e=>{var t,n,i;class a extends e{constructor(){super(...arguments),this.autoRotate=!1,this.autoRotateDelay=3e3,this.rotationPerSecond="auto",this[t]=performance.now(),this[n]=0,this[i]=e=>{this.autoRotate&&"user-interaction"===e.detail.source&&(this[yw]=performance.now())}}connectedCallback(){super.connectedCallback(),this.addEventListener("camera-change",this[ww]),this[yw]=performance.now()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("camera-change",this[ww]),this[yw]=performance.now()}updated(e){super.updated(e),e.has("autoRotate")&&(this[yw]=performance.now())}[(t=yw,n=bw,_w)](e){this[bw]=e[0]}[lb](e,t){if(super[lb](e,t),!this.autoRotate||!this[fb]()||this[db].isPresenting)return;const n=Math.min(t,e-this[yw]-this.autoRotateDelay);n>0&&(this[sb].yaw=this.turntableRotation+this[bw]*n*.001)}get turntableRotation(){return this[sb].yaw}
vendor: 9,718 bytes, line 473
473resetTurntableRotation(e=0){this[sb].yaw=e}}return i=ww,gw([r({type:Boolean,attribute:"auto-rotate"})],a.prototype,"autoRotate",void 0),gw([r({type:Number,attribute:"auto-rotate-delay"})],a.prototype,"autoRotateDelay",void 0),gw([cm({intrinsics:Aw,updateHandler:_w}),r({type:String,attribute:"rotation-per-second"})],a.prototype,"rotationPerSecond",void 0),a})((e=>{var t,n,i;class a extends e{constructor(){super(...arguments),this.environmentImage=null,this.skyboxImage=null,this.shadowIntensity=0,this.shadowSoftness=1,this.exposure=1,this.toneMapping="auto",this.skyboxHeight="0",this[t]=null,this[n]=null,this[i]=null}updated(e){super.updated(e),e.has("shadowIntensity")&&(this[sb].setShadowIntensity(.5*this.shadowIntensity),this[ob]()),e.has("shadowSoftness")&&(this[sb].setShadowSoftness(this.shadowSoftness),this[ob]()),e.has("exposure")&&(this[sb].exposure=this.exposure,this[ob]()),e.has("toneMapping")&&(this[sb].toneMapping="commerce"===this.toneMapping||"neutral"===this.toneMapping?7:"agx"===this.toneMapping?6:4,this[ob]()),(e.has("environmentImage")||e.has("skyboxImage"))&&this[mb]()&&this[Hc](),e.has("skyboxHeight")&&(this[sb].setGroundedSkybox(),this[ob]())}hasBakedShadow(){return this[sb].bakedShadows.size>0}async[(t=Qc,n=Vc,i=Gc,Hc)](){const{skyboxImage:e,environmentImage:t}=this;null!=this[Gc]&&(this[Gc](),this[Gc]=null);const{textureUtils:n}=this[db];if(null==n)return;const i=this[hb].beginActivity("environment-update");try{const{environmentMap:r,skybox:a}=await n.generateEnvironmentMapAndSkybox(Lc(e),t,e=>i(Oc(e,0,1)));this[Qc]!==r&&(this[Qc]=r,this.dispatchEvent(new CustomEvent("environment-change"))),this[Vc]=null!=a?a.name===r.name?r:a:null,this[sb].setEnvironmentAndSkybox(this[Qc],this[Vc])}catch(e){if(e instanceof Error)throw this[sb].setEnvironmentAndSkybox(null,null),e}finally{i(1)}}}return zc([r({type:String,attribute:"environment-image"})],a.prototype,"environmentImage",void 0),zc([r({type:String,attribute:"skybox-image"})],a.prototype,"skyboxImage",void 0),zc([r({type:Number,attribute:"shadow-intensity"})],a.prototype,"shadowIntensity",void 0),zc([r({type:Number,attribute:"shadow-softness"})],a.prototype,"shadowSoftness",void 0),zc([r({type:Number})],a.prototype,"exposure",void 0),zc([r({type:String,attribute:"tone-mapping"})],a.prototype,"toneMapping",void 0),zc([r({type:String,attribute:"skybox-height"})],a.prototype,"skyboxHeight",void 0),a})((e=>{var t,n,i,a,s,o,l,u,c,d,h,p,f,m,g,v,A,y;class b extends e{constructor(){super(...arguments),this.cameraControls=!1,this.cameraOrbit=vm,this.cameraTarget="auto auto auto",this.fieldOfView="auto",this.minCameraOrbit="auto",this.maxCameraOrbit="auto",this.minFieldOfView="auto",this.maxFieldOfView="auto",this.interactionPromptThreshold=3e3,this.interactionPrompt=bm,this.interactionPromptStyle=wm,this.orbitSensitivity=1,this.zoomSensitivity=1,this.panSensitivity=1,this.touchAction=Em,this.disableZoom=!1,this.disablePan=!1,this.disableTap=!1,this.interpolationDecay=50,this.a11y=null,this[t]=this.shadowRoot.querySelector(".interaction-prompt"),this[n]=this.shadowRoot.querySelector("#prompt"),this[i]=[this.shadowRoot.querySelector("#finger0"),this.shadowRoot.querySelector("#finger1")],this[a]=this.shadowRoot.querySelector(".pan-target"),this[s]=0,this[o]=1/0,this[l]=!1,this[u]=!1,this[c]=fg.AUTOMATIC,this[d]=new mg(this[sb].camera,this[rb],this[sb]),this[h]=new Zl,this[p]=!1,this[f]=!1,this[m]=!1,this[g]={},this[v]=()=>{const e=this[Bm].changeSource;this[$m]=e,e===fg.USER_INTERACTION&&(this[Ym]=!0,this[Fm]())},this[A]=()=>{this[zm](),this[ob]();const e=this[Bm].changeSource;this.dispatchEvent(new CustomEvent("camera-change",{detail:{source:e}}))},this[y]=e=>{this[ib].classList.toggle("pointer-tumbling","pointer-change-start"===e.type)}}get inputSensitivity(){return this[Bm].inputSensitivity}set inputSensitivity(e){this[Bm].inputSensitivity=e}getCameraOrbit(){const{theta:e,phi:t,radius:n}=this[Jm];return{theta:e,phi:t,radius:n,toString(){return`${this.theta}rad ${this.phi}rad ${this.radius}m`}}}getCameraTarget(){return gb(this[db].isPresenting?this[db].arRenderer.target:this[sb].getTarget())}getFieldOfView(){return this[Bm].getFieldOfView()}getMinimumFieldOfView(){return this[Bm].options.minimumFieldOfView}getMaximumFieldOfView(){return this[Bm].options.maximumFieldOfView}getIdealAspect(){return this[sb].idealAspect}jumpCameraToGoal(){this[Zm]=!0,this.requestUpdate(Zm,!1)}resetInteractionPrompt(){this[Km]=0,this[Xm]=1/0,this[Ym]=!1,this[Wm]=this.interactionPrompt===bm&&this.cameraControls}zoom(e){const t=new WheelEvent("wheel",{deltaY:-30*e});this[rb].dispatchEvent(t)}connectedCallback(){super.connectedCallback(),this[Bm].addEventListener("user-interaction",this[Gm]),this[Bm].addEventListener("pointer-change-start",this[qm]),this[Bm].addEventListener("pointer-change-end",this[qm])}disconnectedCallback(){super.disconnectedCallback(),this[Bm].removeEventListener("user-interaction",this[Gm]),this[Bm].removeEventListener("pointer-change-start",this[qm]),this[Bm].removeEventListener("pointer-change-end",this[qm])}updated(e){super.updated(e);const t=this[Bm],n=this[sb];if(e.has("cameraControls")&&(this.cameraControls?(t.enableInteraction(),this.interactionPrompt===bm&&(this[Wm]=!0)):(t.disableInteraction(),this[Fm]()),this[rb].setAttribute("aria-label",this[Ky])),e.has("disableZoom")&&(t.disableZoom=this.disableZoom),e.has("disablePan")&&(t.enablePan=!this.disablePan),e.has("disableTap")&&(t.enableTap=!this.disableTap),(e.has("interactionPrompt")||e.has("cameraControls")||e.has("src"))&&(this.interactionPrompt===bm&&this.cameraControls&&!this[Ym]?this[Wm]=!0:this[Fm]()),e.has("interactionPromptStyle")&&(this[Om].style.opacity=this.interactionPromptStyle==_m?"1":"0"),e.has("touchAction")){const e=this.touchAction;t.applyOptions({touchAction:e}),t.updateTouchActionStyle()}e.has("orbitSensitivity")&&(t.orbitSensitivity=this.orbitSensitivity),e.has("zoomSensitivity")&&(t.zoomSensitivity=this.zoomSensitivity),e.has("panSensitivity")&&(t.panSensitivity=this.panSensitivity),e.has("interpolationDecay")&&(t.setDamperDecayTime(this.interpolationDecay),n.setTargetDamperDecayTime(this.interpolationDecay)),e.has("a11y")&&this[Vm](),!0===this[Zm]&&Promise.resolve().then(()=>{t.jumpToGoal(),n.jumpToGoal(),this[jm](),this[Zm]=!1})}async updateFraming(){const e=this[sb],t=e.adjustedFoV(e.framedFoVDeg);await e.updateFraming();const n=e.adjustedFoV(e.framedFoVDeg),i=this[Bm].getFieldOfView()/t;this[Bm].setFieldOfView(n*i),this[tg]=!0,this.requestUpdate("maxFieldOfView"),this.requestUpdate("fieldOfView"),this.requestUpdate("minCameraOrbit"),this.requestUpdate("maxCameraOrbit"),this.requestUpdate("cameraOrbit"),await this.updateComplete}interact(e,t,n){const i=this[rb],r=this[Um];if("1"===r[0].style.opacity)return void console.warn("interact() failed because an existing interaction is running.");const a=new Array;a.push({x:pm(t.x),y:pm(t.y)});const s=[{x:a[0].x(0),y:a[0].y(0)}];null!=n&&(a.push({x:pm(n.x),y:pm(n.y)}),s.push({x:a[1].x(0),y:a[1].y(0)}));let o=performance.now();const{width:l,height:u}=this[sb],c=this.getBoundingClientRect(),d=e=>{for(const[t,n]of s.entries()){const{style:a}=r[t];a.transform=`translateX(${l*n.x}px) translateY(${u*n.y}px)`,"pointerdown"===e?a.opacity="1":"pointerup"===e&&(a.opacity="0");const s={pointerId:t-5678,pointerType:"touch",target:i,clientX:l*n.x+c.x,clientY:u*n.y+c.y,altKey:!0};i.dispatchEvent(new PointerEvent(e,s))}},h=()=>{const t=this[$m];if(t!==fg.AUTOMATIC||!i.isConnected){for(const e of this[Um])e.style.opacity="0";return d("pointercancel"),this.dispatchEvent(new CustomEvent("interact-stopped",{detail:{source:t}})),void document.removeEventListener("visibilitychange",p)}const n=Math.min(1,(performance.now()-o)/e);for(const[e,t]of s.entries())t.x=a[e].x(n),t.y=a[e].y(n);d("pointermove"),n<1?requestAnimationFrame(h):(d("pointerup"),this.dispatchEvent(new CustomEvent("interact-stopped",{detail:{source:fg.AUTOMATIC}})),document.removeEventListener("visibilitychange",p))},p=()=>{let e=0;"hidden"===document.visibilityState?e=performance.now()-o:o=performance.now()-e};document.addEventListener("visibilitychange",p),d("pointerdown"),this[$m]=fg.AUTOMATIC,requestAnimationFrame(h)}[(t=Nm,n=Om,i=Um,a=Dm,s=Km,o=Xm,l=Ym,u=Wm,c=$m,d=Bm,h=Jm,p=Zm,f=eg,m=tg,g=Qm,ig)](e){const t=this[Bm],n=this[sb];n.framedFoVDeg=180*e[0]/Math.PI,t.changeSource=fg.NONE,t.setFieldOfView(n.adjustedFoV(n.framedFoVDeg)),this[Gm]()}[ng](e){const t=this[Bm];if(this[tg]){const{theta:t,phi:n}=this.getCameraOrbit();e[0]=t,e[1]=n,this[tg]=!1}t.changeSource=fg.NONE,t.setOrbit(e[0],e[1],e[2]),this[Gm]()}[ag](e){this[Bm].applyOptions({minimumAzimuthalAngle:e[0],minimumPolarAngle:e[1],minimumRadius:e[2]}),this.jumpCameraToGoal()}[sg](e){this[Bm].applyOptions({maximumAzimuthalAngle:e[0],maximumPolarAngle:e[1],maximumRadius:e[2]}),this[Hm](e[2]),this.jumpCameraToGoal()}[og](e){this[Bm].applyOptions({minimumFieldOfView:180*e[0]/Math.PI}),this.jumpCameraToGoal()}[lg](e){const t=this[sb].adjustedFoV(180*e[0]/Math.PI);this[Bm].applyOptions({maximumFieldOfView:t}),this.jumpCameraToGoal()}[rg](e){const[t,n,i]=e;this[db].arRenderer.isPresenting||this[sb].setTarget(t,n,i),this[Bm].changeSource=fg.NONE,this[db].arRenderer.updateTarget(),this[Gm]()}[lb](e,t){if(super[lb](e,t),this[db].isPresenting||!this[fb]())return;const n=this[Bm],i=this[sb],r=performance.now();if(this[Wm]&&this.loaded&&r>this[eb]+this.interactionPromptThreshold&&(this[Wm]=!1,this[Xm]=r,this[Nm].classList.add("visible")),isFinite(this[Xm])&&this.interactionPromptStyle===wm){const e=(r-this[Xm])/5e3%1,t=mm(e),a=gm(e);if(this[Om].style.opacity=`${a}`,t!==this[Km]){const e=t*i.width*.05,r=(t-this[Km])*Math.PI/16;this[Om].style.transform=`translateX(${e}
473px)`,n.changeSource=fg.AUTOMATIC,n.adjustOrbit(r,0,0),this[Km]=t}}const a=n.update(e,t),s=i.updateTarget(t);(a||s)&&this[jm]()}[Fm](){this[Wm]=!1,this[Nm].classList.remove("visible"),this[Xm]=1/0}[Hm](e){const t=Math.max(this[sb].farRadius(),e),n=Math.abs(2*t);this[Bm].updateNearFar(0,n)}[zm](){const{theta:e,phi:t}=this[Bm].getCameraSpherical(this[Jm]),n=(4+Math.floor((e%Lm+Rm)/km))%4,i=Math.floor(t/Pm),r=`${ym[i]}${Am[n]}`,a=r;a in this[Qm]?this[Zy](this[Qm][a]):this[Zy](`View from stage ${r}`)}get[Ky](){let e='. Use mouse, touch, arrow keys, or Shift + Alt + arrow keys to move. iOS VoiceOver users, proceed with "View in your space" button.';return"interaction-prompt"in this[Qm]&&(e=`. ${this[Qm]["interaction-prompt"]}`),super[Ky].replace(/\.$/,"")+(this.cameraControls?e:"")}async[cb](e){const t=this[Bm],n=this[sb],i=n.adjustedFoV(n.framedFoVDeg);super[cb](e);const r=n.adjustedFoV(n.framedFoVDeg)/i,a=t.getFieldOfView()*(isFinite(r)?r:1);t.updateAspect(this[sb].aspect),this.requestUpdate("maxFieldOfView",this.maxFieldOfView),await this.updateComplete,this[Bm].setFieldOfView(a),this.jumpCameraToGoal()}[ub](){super[ub](),this[eg]?this[tg]=!0:this[eg]=!0,this.requestUpdate("maxFieldOfView",this.maxFieldOfView),this.requestUpdate("fieldOfView",this.fieldOfView),this.requestUpdate("minCameraOrbit",this.minCameraOrbit),this.requestUpdate("maxCameraOrbit",this.maxCameraOrbit),this.requestUpdate("cameraOrbit",this.cameraOrbit),this.requestUpdate("cameraTarget",this.cameraTarget),this.jumpCameraToGoal()}[(v=Gm,A=jm,y=qm,Vm)](){if("string"==typeof this.a11y)if(this.a11y.startsWith("{"))try{this[Qm]=JSON.parse(this.a11y)}catch(e){console.warn("Error parsing a11y JSON:",e)}else this.a11y.length>0?console.warn("Error not supported format, should be a JSON string:",this.a11y):this[Qm]={};else"object"==typeof this.a11y&&null!=this.a11y?this[Qm]=Object.assign({},this.a11y):this[Qm]={};this[rb].setAttribute("aria-label",this[Ky])}}return fm([r({type:Boolean,attribute:"camera-controls"})],b.prototype,"cameraControls",void 0),fm([cm({intrinsics:xm,observeEffects:!0,updateHandler:ng}),r({type:String,attribute:"camera-orbit",hasChanged:()=>!0})],b.prototype,"cameraOrbit",void 0),fm([cm({intrinsics:Mm,observeEffects:!0,updateHandler:rg}),r({type:String,attribute:"camera-target",hasChanged:()=>!0})],b.prototype,"cameraTarget",void 0),fm([cm({intrinsics:Sm,observeEffects:!0,updateHandler:ig}),r({type:String,attribute:"field-of-view",hasChanged:()=>!0})],b.prototype,"fieldOfView",void 0),fm([cm({intrinsics:Cm,updateHandler:ag}),r({type:String,attribute:"min-camera-orbit",hasChanged:()=>!0})],b.prototype,"minCameraOrbit",void 0),fm([cm({intrinsics:Im,updateHandler:sg}),r({type:String,attribute:"max-camera-orbit",hasChanged:()=>!0})],b.prototype,"maxCameraOrbit",void 0),fm([cm({intrinsics:Tm,updateHandler:og}),r({type:String,attribute:"min-field-of-view",hasChanged:()=>!0})],b.prototype,"minFieldOfView",void 0),fm([cm({intrinsics:Sm,updateHandler:lg}),r({type:String,attribute:"max-field-of-view",hasChanged:()=>!0})],b.prototype,"maxFieldOfView",void 0),fm([r({type:Number,attribute:"interaction-prompt-threshold"})],b.prototype,"interactionPromptThreshold",void 0),fm([r({type:String,attribute:"interaction-prompt"})],b.prototype,"interactionPrompt",void 0),fm([r({type:String,attribute:"interaction-prompt-style"})],b.prototype,"interactionPromptStyle",void 0),fm([r({type:Number,attribute:"orbit-sensitivity"})],b.prototype,"orbitSensitivity",void 0),fm([r({type:Number,attribute:"zoom-sensitivity"})],b.prototype,"zoomSensitivity",void 0),fm([r({type:Number,attribute:"pan-sensitivity"})],b.prototype,"panSensitivity",void 0),fm([r({type:String,attribute:"touch-action"})],b.prototype,"touchAction",void 0),fm([r({type:Boolean,attribute:"disable-zoom"})],b.prototype,"disableZoom",void 0),fm([r({type:Boolean,attribute:"disable-pan"})],b.prototype,"disablePan",void 0),fm([r({type:Boolean,attribute:"disable-tap"})],b.prototype,"disableTap",void 0),fm([r({type:Number,attribute:"interpolation-decay"})],b.prototype,"interpolationDecay",void 0),fm([r()],b.prototype,"a11y",void 0),b})((e=>{var t,n,i,a,s,o,l,u,c,d;class h extends e{constructor(){super(...arguments),this.ar=!1,this.arScale="auto",this.arPlacement="floor",this.arModes="webxr scene-viewer quick-look",this.iosSrc=null,this.xrEnvironment=!1,this[t]=!1,this[n]=this.shadowRoot.querySelector(".ar-button"),this[i]=document.createElement("a"),this[a]=new Set,this[s]=Q_,this[o]=!1,this[l]=e=>{e.preventDefault(),this.activateAR()},this[u]=({status:e})=>{e!==vg&&this[db].arRenderer.presentedScene!==this[sb]||(this.setAttribute("ar-status",e),this.dispatchEvent(new CustomEvent("ar-status",{detail:{status:e}})),e===vg?this.removeAttribute("ar-tracking"):e===Ag&&this.setAttribute("ar-tracking",_g))},this[c]=({status:e})=>{this.setAttribute("ar-tracking",e),this.dispatchEvent(new CustomEvent("ar-tracking",{detail:{status:e}}))},this[d]=e=>{"_apple_ar_quicklook_button_tapped"==e.data&&this.dispatchEvent(new CustomEvent("quick-look-button-tapped"))}}get canActivateAR(){return this[W_]!==Q_}connectedCallback(){super.connectedCallback(),this[db].arRenderer.addEventListener("status",this[J_]),this.setAttribute("ar-status",vg),this[db].arRenderer.addEventListener("tracking",this[Z_]),this[X_].addEventListener("message",this[ew])}disconnectedCallback(){super.disconnectedCallback(),this[db].arRenderer.removeEventListener("status",this[J_]),this[db].arRenderer.removeEventListener("tracking",this[Z_]),this[X_].removeEventListener("message",this[ew])}update(e){super.update(e),e.has("arScale")&&(this[sb].canScale="fixed"!==this.arScale),e.has("arPlacement")&&(this[sb].updateShadow(),this[ob]()),e.has("arModes")&&(this[Y_]=N_(this.arModes)),(e.has("ar")||e.has("arModes")||e.has("src")||e.has("iosSrc"))&&this[tw]()}async activateAR(){switch(this[W_]){case U_:await this[j_]();break;case z_:await this[H_]();break;case F_:this[G_]();break;default:console.warn("No AR Mode can be activated. This is probably due to missing configuration or device capabilities")}}async[(t=q_,n=V_,i=X_,a=Y_,s=W_,o=K_,l=$_,u=J_,c=Z_,d=ew,tw)](){var e;let t=Q_;if(this.ar){if(null!=this.src)for(const n of this[Y_]){if("webxr"===n&&Tc&&!L_&&await this[db].arRenderer.supportsPresentation()){t=z_;break}if("scene-viewer"===n&&!B_&&(kc||navigator.userAgentData&&navigator.userAgentData.getHighEntropyValues&&(null===(e=(await navigator.userAgentData.getHighEntropyValues(["formFactor"])).formFactor)||void 0===e?void 0:e.includes("XR")))){t=F_;break}if("quick-look"===n&&Rc){t=U_;break}}t===Q_&&null!=this.iosSrc&&Rc&&(t=U_)}if(t!==Q_)this[V_].classList.add("enabled"),this[V_].addEventListener("click",this[$_]);else if(this[V_].classList.contains("enabled")){this[V_].removeEventListener("click",this[$_]),this[V_].classList.remove("enabled");const e=bg;this.setAttribute("ar-status",e),this.dispatchEvent(new CustomEvent("ar-status",{detail:{status:e}}))}this[W_]=t}async[H_](){console.log("Attempting to present in AR with WebXR..."),await this[nw]();try{this[V_].removeEventListener("click",this[$_]);const{arRenderer:e}=this[db];e.placeOnWall="wall"===this.arPlacement,await e.present(this[sb],this.xrEnvironment)}catch(e){console.warn("Error while trying to present in AR with WebXR"),console.error(e),await this[db].arRenderer.stopPresenting(),L_=!0,console.warn("Falling back to next ar-mode"),await this[tw](),this.activateAR()}finally{this[tw]()}}async[nw](){this.loaded||(this[K_]=!0,this[tb](),await((e,t,n=null)=>new Promise(i=>
vendor: 8,150 bytes, line 473
473{e.addEventListener(t,function r(a){n&&!n(a)||(i(a),e.removeEventListener(t,r))})}))(this,"load"),this[K_]=!1)}[mb](){return super[mb]()||this[K_]}[G_](){const e=self.location.toString(),t=new URL(e),n=new URL(this.src,e);n.hash&&(n.hash="");const i=new URLSearchParams(n.search);if(t.hash=D_,i.set("mode","ar_preferred"),i.has("disable_occlusion")||i.set("disable_occlusion","true"),"fixed"===this.arScale&&i.set("resizable","false"),"wall"===this.arPlacement&&i.set("enable_vertical_placement","true"),i.has("sound")){const t=new URL(i.get("sound"),e);i.set("sound",t.toString())}if(i.has("link")){const t=new URL(i.get("link"),e);i.set("link",t.toString())}const r=`intent://arvr.google.com/scene-viewer/1.2?${i.toString()+"&file="+encodeURIComponent(n.toString())}#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=${encodeURIComponent(t.toString())};end;`;self.addEventListener("hashchange",()=>{self.location.hash===D_&&(B_=!0,self.history.back(),console.warn("Error while trying to present in AR with Scene Viewer"),console.warn("Falling back to next ar-mode"),this[tw]())},{once:!0}),this[X_].setAttribute("href",r),console.log("Attempting to present in AR with Scene Viewer..."),this[X_].click()}async[j_](){const e=!this.iosSrc;this[V_].classList.remove("enabled");const t=e?await this.prepareUSDZ():this.iosSrc,n=new URL(t,self.location.toString());if(e){const e=self.location.toString(),t=new URL(e),i=new URL(this.src,t);i.hash&&(n.hash=i.hash)}"fixed"===this.arScale&&(n.hash&&(n.hash+="&"),n.hash+="allowsContentScaling=0");const i=this[X_];i.setAttribute("rel","ar");const r=document.createElement("img");i.appendChild(r),i.setAttribute("href",n.toString()),e&&i.setAttribute("download","model.usdz"),i.style.display="none",i.isConnected||this.shadowRoot.appendChild(i),console.log("Attempting to present in AR with Quick Look..."),i.click(),i.removeChild(r),e&&URL.revokeObjectURL(t),this[V_].classList.add("enabled")}async prepareUSDZ(){const e=this[hb].beginActivity("usdz-conversion");await this[nw]();const{model:t,shadow:n,target:i}=this[sb];if(null==t)return"";let r=!1;null!=n&&(r=n.visible,n.visible=!1),e(.2);const a=new __;i.remove(t),t.position.copy(i.position),t.updateWorldMatrix(!1,!0);const s=await a.parse(t);t.position.set(0,0,0),i.add(t);const o=new Blob([s],{type:"model/vnd.usdz+zip"}),l=URL.createObjectURL(o);return e(1),null!=n&&(n.visible=r),l}}return R_([r({type:Boolean,attribute:"ar"})],h.prototype,"ar",void 0),R_([r({type:String,attribute:"ar-scale"})],h.prototype,"arScale",void 0),R_([r({type:String,attribute:"ar-placement"})],h.prototype,"arPlacement",void 0),R_([r({type:String,attribute:"ar-modes"})],h.prototype,"arModes",void 0),R_([r({type:String,attribute:"ios-src"})],h.prototype,"iosSrc",void 0),R_([r({type:Boolean,attribute:"xr-environment"})],h.prototype,"xrEnvironment",void 0),h})((e=>{var t,n,i,a,s,o,l,u;class c extends e{constructor(...e){super(...e),this.poster=null,this.reveal=rw,this.loading=aw,this[t]=!1,this[n]=!1,this[i]=this.shadowRoot.querySelector(".slot.poster"),this[a]=this.shadowRoot.querySelector("#default-poster"),this[s]=this.shadowRoot.querySelector("#default-progress-bar > .bar"),this[o]=this[uw].getAttribute("aria-label"),this[l]=((e,t)=>{let n=null;const i=(...i)=>{null==n&&(e(...i),n=self.setTimeout(()=>n=null,t))};return i.flush=()=>{null!=n&&(self.clearTimeout(n),n=null)},i})(e=>{const t=this[ow].parentNode;requestAnimationFrame(()=>{this[ow].style.transform=`scaleX(${e})`,0===e&&(t.removeChild(this[ow]),t.appendChild(this[ow])),this[ow].classList.toggle("hide",1===e)})},100),this[u]=e=>{const t=e.detail.totalProgress,n=e.detail.reason;1===t&&(this[pw].flush(),this.loaded&&(this[cw]||this.reveal===rw)&&this[dw]()),this[pw](t),this.dispatchEvent(new CustomEvent("progress",{detail:{totalProgress:t,reason:n}}))};const r=self.ModelViewerElement||{},c=r.dracoDecoderLocation||"https://www.gstatic.com/draco/versioned/decoders/1.5.6/";Yh.setDRACODecoderLocation(c);const d=r.ktx2TranscoderLocation||"https://www.gstatic.com/basis-universal/versioned/2021-04-15-ba1c3e4/";Yh.setKTX2TranscoderLocation(d),r.meshoptDecoderLocation&&Yh.setMeshoptDecoderLocation(r.meshoptDecoderLocation);const h=r.lottieLoaderLocation||"https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/loaders/LottieLoader.js";fv.singleton.textureUtils.lottieLoaderUrl=h}static set dracoDecoderLocation(e){Yh.setDRACODecoderLocation(e)}static get dracoDecoderLocation(){return Yh.getDRACODecoderLocation()}static set ktx2TranscoderLocation(e){Yh.setKTX2TranscoderLocation(e)}static get ktx2TranscoderLocation(){return Yh.getKTX2TranscoderLocation()}static set meshoptDecoderLocation(e){Yh.setMeshoptDecoderLocation(e)}static get meshoptDecoderLocation(){return Yh.getMeshoptDecoderLocation()}static set lottieLoaderLocation(e){fv.singleton.textureUtils.lottieLoaderUrl=e}static get lottieLoaderLocation(){return fv.singleton.textureUtils.lottieLoaderUrl}static mapURLs(e){fv.singleton.loader[jh].manager.setURLModifier(e)}dismissPoster(){this.loaded?this[dw]():(this[cw]=!0,this[tb]())}showPoster(){const e=this[lw];if(e.classList.contains("show"))return;e.classList.add("show"),this[rb].classList.remove("show");const t=this[uw];t.removeAttribute("tabindex"),t.removeAttribute("aria-hidden");const n=this.modelIsVisible;this[hw]=!1,this[Xy](n)}getDimensions(){return gb(this[sb].size)}getBoundingBoxCenter(){return gb(this[sb].boundingBox.getCenter(new Mt))}connectedCallback(){super.connectedCallback(),this.loaded||this.showPoster(),this[hb].addEventListener("progress",this[mw])}disconnectedCallback(){super.disconnectedCallback(),this[hb].removeEventListener("progress",this[mw])}async updated(e){super.updated(e),e.has("poster")&&null!=this.poster&&(this[uw].style.backgroundImage=`url(${this.poster})`),e.has("alt")&&this[uw].setAttribute("aria-label",this[$y]),(e.has("reveal")||e.has("loading"))&&this[tb]()}[(t=hw,n=cw,i=lw,a=uw,s=ow,o=fw,l=pw,u=mw,mb)](){return!!this.src&&(this[cw]||this.loading===sw||this.reveal===rw&&this[Yy])}[dw](){this[cw]=!1;const e=this[lw];if(!e.classList.contains("show"))return;e.classList.remove("show"),this[rb].classList.add("show");const t=this.modelIsVisible;this[hw]=!0,this[Xy](t);const n=this.getRootNode();n&&n.activeElement===this&&this[rb].focus();const i=this[uw];i.setAttribute("aria-hidden","true"),i.tabIndex=-1,this.dispatchEvent(new CustomEvent("poster-dismissed"))}[fb](){return super[fb]()&&this[hw]}}return iw([r({type:String})],c.prototype,"poster",void 0),iw([r({type:String})],c.prototype,"reveal",void 0),iw([r({type:String})],c.prototype,"loading",void 0),c})((e=>{var t;class n extends e{constructor(...e){super(e),this.autoplay=!1,this.animationName=void 0,this.animationCrossfadeDuration=300,this[t]=!0,this[sb].subscribeMixerEvent("loop",e=>{const t=e.action._loopCount;this.dispatchEvent(new CustomEvent("loop",{detail:{count:t}}))}),this[sb].subscribeMixerEvent("finished",()=>{this[_b]=!0,this.dispatchEvent(new CustomEvent("finished"))})}get availableAnimations(){return this.loaded?this[sb].animationNames:[]}get duration(){return this[sb].duration}get paused(){return this[_b]}get currentTime(){return this[sb].animationTime}set currentTime(e){this[sb].animationTime=e,this[ob]()}get timeScale(){return this[sb].animationTimeScale}set timeScale(e){this[sb].animationTimeScale=e}pause(){this[_b]||(this[_b]=!0,this.dispatchEvent(new CustomEvent("pause")))}play(e){this.availableAnimations.length>0&&(this[_b]=!1,this[bb](e),this.dispatchEvent(new CustomEvent("play")))}[(t=_b,ub)](){super[ub](),this[_b]=!0,null!=this.animationName&&this[bb](),this.autoplay&&this.play()}[lb](e,t){super[lb](e,t),this[_b]||!this[fb]()&&!this[db].isPresenting||(this[sb].updateAnimation(t/1e3),this[ob]())}updated(e){super.updated(e),e.has("autoplay")&&this.autoplay&&this.play(),e.has("animationName")&&this[bb]()}[bb](e=wb){var t;const n=null!==(t=e.repetitions)&&void 0!==t?t:1/0,i=e.pingpong?pe:1===n?2200:he;this[sb].playAnimation(this.animationName,this.animationCrossfadeDuration/1e3,i,n),this[_b]&&(this[sb].updateAnimation(0),this[ob]())}}
473return yb([r({type:Boolean})],n.prototype,"autoplay",void 0),yb([r({type:String,attribute:"animation-name"})],n.prototype,"animationName",void 0),yb([r({type:Number,attribute:"animation-crossfade-duration"})],n.prototype,"animationCrossfadeDuration",void 0),n})(Ab))))))));customElements.define("model-viewer",Ew)},8787:(e,t,n)=>{const i=n(4730),r=n(9235);var{cycleTabs:a}=n(7754);const s={create:e=>{let t=document.createElement("div");t.setAttribute("class","beats-modal"),t.style.zIndex=i.maxZIndexPlus1000();let n=document.createElement("div");n.setAttribute("tabindex","-1"),n.setAttribute("class","beats-modal-focus"),t.appendChild(n);let a=document.createElement("div");a.setAttribute("class","beats-modal-content"),n.appendChild(a);let o=document.createElement("a");return o.setAttribute("class","beats-modal-close"),o.setAttribute("href","#"),o.setAttribute("aria-label","Close Modal"),o.setAttribute("role","button"),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12.02 12">\n        <path d="M7,6l4.84-4.83a0.68,0.68,0,0,0-1-1L6,5,1.17,0.2a0.68,0.68,0,0,0-1,1L5,6,0.2,10.83a0.68,0.68,0,1,0,1,1L6,7l4.83,4.83a0.68,0.68,0,1,0,1-1Z" fill="#fff" stroke="#fff" stroke-width="1"></path>\n        </svg>',n.appendChild(o),o.style.zIndex=i.maxZIndexPlus1000(1e3),o.addEventListener("click",n=>{s.destroy(t,e),n.preventDefault()}),o.addEventListener("keydown",n=>{if(" "===n.key)s.destroy(t,e),n.preventDefault()}),r.disableScrollTrack(),t.addEventListener("keydown",e=>{s.keyDown(t,e)}),requestAnimationFrame(()=>{setTimeout(()=>{document.querySelector("html").classList.add("beats-modal-open")},500),requestAnimationFrame(()=>{window.scrollTo(0,0)})}),t},keyDown:(e,t)=>{},destroy:(e,t,n=!1,i=!0)=>{i&&document.querySelector("html").classList.remove("beats-modal-open","beats-modal-minimize","beats-modal-pip"),e.remove(),t&&!n&&r.setPreservedScrollTop(),setTimeout(()=>{r.enableScrollTrack()},5),requestAnimationFrame(()=>{window.lastActiveElement&&window.lastActiveElement.focus()})},minimize:()=>{document.querySelector("html").classList.add("beats-modal-minimize"),r.enableScrollTrack()},maximize:()=>{r.disableScrollTrack(),document.querySelector("html").classList.remove("beats-modal-minimize")}};e.exports=s},1602:(e,t,n)=>{const i=n(7545),r=n(820),a=n(3452),s=n(991),o=n(2497),l=n(289),u=n(9179),c=n(4730),d=n(8787),h=n(9235),p=n(722),f=n(9061),m=n(8652);var{getLocalized:g}=n(2050);const{debounce:v}=n(3569);let A=0;const y=e=>{let t,y=[];const b=i.log;let _={},w=f;const E=[];let S=i.browser;const T=!0===S.TOUCH_ENABLED&&S.IS_SAFARI,x=!0===S.TOUCH_ENABLED&&S.IS_IPAD,C=!0===S.TOUCH_ENABLED&&S.IS_IPHONE,I=!0===S.TOUCH_ENABLED&&S.IS_ANDROID,M=r.browser.version.string||"",k=c.getDeviceFeatures(),P=k.colorModuleSupport&&k.pixelDepth>30||I,R={USER_PLAYBACK:"user-playback",LOOPING:"looping",PLAY_ONCE:"play-once",INLINE_USER_PLAYBACK:"inline-user-playback"},L="btn-color-dark",B="#FFF",D="#000",N="0.5";let O="",U=!1;window.activeBeatsVideoPlayers=[],window.activeBeatsVideoPlayersIds=[];const F=(window.locale||"en").toLowerCase(),z=F.split("_")[0],Q=e=>{c.getNodeArrayFromQuerySelector(".video-block:not([data-video-initialized]), .ctaPlayBack:not([data-video-initialized])",e).forEach(function(e){if(e.querySelector("beats-video"))return void V(e.querySelector("beats-video"));e.setAttribute("data-video-initialized",!0);let t=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.target&&e.intersectionRatio>.1&&e.target.getAttribute("data-video-type")!==R.USER_PLAYBACK&&V(e.target.querySelector("beats-video"))})},{rootMargin:"0px 0px 500px 0px",threshold:[.1]});if(e.classList.contains("video-block")&&!e.classList.contains("ctaPlayBack"))t.observe(e);else if(e.classList.contains("ctaPlayBack")){let t;e.addEventListener("click",function(t){t.preventDefault(),window.lastActiveElement=e,n(e)}),e.addEventListener("keydown",function(t){if(" "===t.key)t.preventDefault(),window.lastActiveElement=e,n(e)}),e.classList.forEach(function(e){if(e&&e.startsWith("video-cta")){let n=e.split("video-cta-")[1];t=document.querySelector(".transcript-id-"+n)}});const i=e.getAttribute("data-analytics-label"),r=e.classList.contains("has-transcript-event");t&&!r&&(e.classList.add("has-transcript-event"),t.addEventListener("click",()=>{w.track({type:"videoTranscriptDownload",data:{videoName:i}})}))}const n=function(e){const t={videoType:e.dataset.videoType,fallbackImageSrc:e.dataset.fallbackImageSrc,fallbackImageAlt:e.dataset.fallbackImageAlt||"",transparent:e.dataset.transparent||"",lastFrame:e.dataset.lastFrame,videoSrc:e.dataset.videoSrc,btnColor:e.dataset.btnColor,imageFileExtension:e.dataset.imageFileExtension,srcElement:e,videoName:e.dataset.analyticsLabel||"",videoTrack:e.querySelector("beats-video-track")||"",ariaLabel:e.dataset.ariaLabel,videoLe
473ngth:e.dataset.videoLength};t.videoType&&t.lastFrame&&t.videoSrc&&t.srcElement&&t.fallbackImageSrc&&t.imageFileExtension&&V(t)}})};document.addEventListener("at-content-rendering-succeeded",e=>{let t=Array.from(document.querySelectorAll(".root"));t.length>0&&t.map(e=>{Array.from(e.querySelectorAll(".video-block, .ctaPlayBack")).map(e=>{Q(e.parentElement)})})}),document.addEventListener("DOMContentLoaded",()=>{Q()}),window.initBeatsVideo=function(e){Q(e)},window.addEventListener("orientationchange",e=>{window.activeBeatsVideoPlayers&&window.activeBeatsVideoPlayers.length>0&&window.activeBeatsVideoPlayers.map(e=>Ce(e))});const V=e=>{if(e)if("BEATS-VIDEO"===e.tagName)G(e);else if("object"==typeof e){const t=H(e);t&&G(t.querySelector("beats-video"),e.srcElement,e)}else{c.getNodeArrayFromQuerySelector("beats-video",e).forEach(e=>{G(e)})}},H=e=>{let t;if(e){const i=`<picture-element>\n            <source media="(min-width: 1069px)" srcset="${e.fallbackImageSrc}.large.2x${e.imageFileExtension} 2x">\n            <source media="(min-width: 735px) and (max-width: 1068px)" srcset="${e.fallbackImageSrc}.medium.2x${e.imageFileExtension} 2x">\n            <source media="(max-width: 734px)" srcset="${e.fallbackImageSrc}.small.2x${e.imageFileExtension} 2x">\n            <fallback-img class="bbd-media-image" src="${e.fallbackImageSrc}.large.2x${e.imageFileExtension}" \n                srcset="${e.fallbackImageSrc}.large.2x${e.imageFileExtension} 2x" alt="${e.fallbackImageAlt}">\n        </picture-element>\n        <beats-video controls="true" playsInline="" data-video-type="${e.videoType}" data-last-frame="${e.lastFrame}"\n          data-btn-color="${e.btnColor}" fallback-img-src="${e.fallbackImageSrc}" data-analytics-label="${e.videoName}" data-aria-label="${e.ariaLabel}
473"\n          data-video-length="${e.videoLength}">\n          <source src="${e.videoSrc}.rendition.mp4" type="${"true"==e.transparent?"video/mp4; codecs=hvc1":"video/mp4"}" />\n          <source src="${e.videoSrc}.rendition.webm" type="video/webm" />\n          <div class="preload-svg">\n            <img src="/assets/resources/images/captions-bubble.svg" alt="" role="presentation" />\n            <img src="/assets/resources/images/captions-bubble-fill.svg" alt="" role="presentation" />\n          </div>\n        </beats-video>`;if(t=document.createElement("div"),t.setAttribute("class","video-block video-block--transparent video-ratio-parent"),t.innerHTML=i,e.videoTrack){var n=e.videoTrack.cloneNode(!0);t.querySelector("beats-video").appendChild(n)}}return t},G=(e,t="",n="")=>{if(!c.hasAttributeCheck(e,"data-lazy")||"loaded"!==c.getAttributeValue(e,"data-lazy")&&!e.classList.contains("video-source-error")){let i=c.getAttributeValue(e,"data-video-type");j(e,i,t,n)}},j=(e,n,i,r)=>{let a,s,o,l=c.hasAttributeCheck(e,"data-last-frame")?c.getAttributeValue(e,"data-last-frame"):"",u=e.closest(".video-block");if(s=u?u.querySelector("picture"):"",u){if(R.USER_PLAYBACK===n){let e=document.querySelector(".modal"),n=e?document.querySelector(".modal video-js")?.player:"";if(!e){if(e||n)return t=e,q(e,r),!0;if(a=Y(i).modal,t=a,a){let e=a.querySelector(".modal-content"),t=document.createElement("div");t.classList.add("modal-content__inner");let n=document.createElement("div");n.classList.add("modal-video-container");let i=document.createElement("div");i.classList.add("modal-video-container__inner"),i.appendChild(u),n.appendChild(i),t.appendChild(n),e.appendChild(t)}}}te(e,n,s,l),o=R.USER_PLAYBACK===n?document.querySelector(".modal").querySelector("video-js"):e.parentNode.querySelector("video-js"),J(n,o),K(o,_,n,e,i)}},q=(e,t)=>{let n=e.querySelector(".video-block"),i=e.querySelector("video-js").player,r=e.querySelector("picture"),a=e.querySelector("video-js .vjs-loading-spinner");if(i&&r){i.src([{type:"video/mp4",src:t.videoSrc+".rendition.mp4"},{type:"video/webm",src:t.videoSrc+".rendition.webm"}]);let e=W(t);n.replaceChild(e,r)}a.style.display="none",i.play().catch(e=>{b(e)})},W=e=>{const t=`\n        <source media="(min-width: 1069px)" srcset="${e.fallbackImageSrc}.large.2x${e.imageFileExtension} 2x">\n        <source media="(min-width: 735px) and (max-width: 1068px)" srcset="${e.fallbackImageSrc}.medium.2x${e.imageFileExtension} 2x">\n        <source media="(max-width: 734px)" srcset="${e.fallbackImageSrc}.small.2x${e.imageFileExtension} 2x">\n        <img class="bbd-media-image" src="${e.fallbackImageSrc}.large.2x${e.imageFileExtension}" \n            srcset="${e.fallbackImageSrc}.large.2x${e.imageFileExtension} 2x"\n            alt="${e.fallbackImageAlt}" />\n        `;return element=document.createElement("picture"),element.setAttribute("class","beats-picture"),element.innerHTML=t,element},Y=e=>{let t=new m.default(e,null," ");return t.open(),t},X=(e,t)=>{let n=!1;document.querySelector("html").classList.contains("beats-modal-minimize")&&(n=!0),e&&(ae(e.querySelector("video-js").id),e.dispatchEvent(new CustomEvent("close")),c.removeListeners(E))},K=(e,t,n,r,s)=>{t.retryOnError=!0,U=!1;let o=i(e,t,function(){this.video=e,this.isLooping=t.loop,this.isAutoPlay=t.autoplay,this.isMuted=t.muted,this.isPausedByUser=!1,this.isInViewPort=!1,this.pausedByOffScreen=!1,this.captionAnalyticsFlag=!1,this.hasLoaded=!1,y[this.id_]=this;const i=new CustomEvent("video-ready");document.dispatchEvent(i),this.on("play",e=>se(e,n,s)),this.on("pause",e=>oe(e,n,s)),this.on("ended",e=>ce(e,n,s)),this.on("error",e=>de(e,r,n)),this.on("resize",e=>ue(e,this.el())),this.on("loadeddata",he),this.on("loadedmetadata",Ae),this.on("timeupdate",e=>ye(e,n,s)),this.on("useractive",e=>be(e,n)),this.on("userinactive",e=>_e(e,n)),this.on("volumechange",we),this.on("dispose",e=>pe(e,r,n)),this.on("fullscreenchange",e=>me(e,s)),this.on("seeking",Ee),this.on("seeked",Se),this.on("enterpictureinpicture",Te),this.on("leavepictureinpicture",xe),this.on("contextmenu",e=>e.preventDefault()),this.el().children.item("video").addEventListener("webkitendfullscreen",e=>{let t=document.querySelector(".modal");
473x||!C||e.target.attributes["data-video-type"].value!==R.USER_PLAYBACK||document.querySelector("html").classList.contains("beats-modal-minimize")||X(t)});const o=v(e=>le(e),150);window.addEventListener("resize",()=>{o(this)}),this.el().children.item("video").addEventListener("webkitpresentationmodechanged",e=>{let t=e.target.closest(".modal"),n=t?t.querySelector("video-js").player:"";n&&e.target&&(n.isFullscreen()&&("picture-in-picture"===e.target.webkitPresentationMode&&Te(e),"fullscreen"===e.target.webkitPresentationMode&&d.maximize()),"inline"===e.target.webkitPresentationMode&&"hidden"==t.style.visibility&&(n.ended()&&document.querySelector("html").classList.contains("beats-modal-minimize")?(n.exitPictureInPicture(),X(t)):(n.ended()||!n.ended()&&document.querySelector("html").classList.contains("beats-modal-open"))&&(t.style.visibility="visible")))}),ee(this,s),n===R.USER_PLAYBACK&&this.ready(()=>{const e=document.querySelector(".modal");if(e){const t=e.querySelector(".modal-content picture");t&&(t.style.display="none")}this.play().catch(e=>{b(e)})}),Ie.observe(e.closest(".video-block, .beats-video-block")),Me.observe(e.closest(".video-block, .beats-video-block"));a(function(t){["blur","resize"].includes(t.type)||function(e){let t=e.player;t&&y[t.id()]&&fe(t)&&t.isInViewPort&&!t.isInPictureInPicture()&&(t.pausedByOffScreen=!0,t.pause())}(e)},function(){const t="true"===getComputedStyle(e).getPropertyValue("--animation-disabled");n==R.INLINE_USER_PLAYBACK||"false"===e.getAttribute("data-autoplay-override")&&!t||window.matchMedia("(prefers-reduced-motion: reduce)").matches||function(e){let t=e.player;t&&y[t.id()]&&!t.isPausedByUser&&t.isInViewPort&&(n==R.USER_PLAYBACK&&!t.ended()&&t.pausedByOffScreen||n==R.PLAY_ONCE&&!t.ended()||n==R.LOOPING||n==R.INLINE_USER_PLAYBACK)&&setTimeout(()=>{t.play().catch(e=>{b(e)}),t.pausedByOffScreen=!1},400)}(e)})});if(o){r.getAttribute("data-aria-label")&&o.setAttribute("aria-label",`${r.getAttribute("data-aria-label")} ${g("videoPlayer","video player")}`),r.setAttribute("data-lazy","loaded"),r.setAttribute("data-video-guid",o.id()),o.removeChild("bigPlayButton"),o.on("error",e=>de(e,r,n));let e=r.querySelector("beats-video-track");if(n===R.INLINE_USER_PLAYBACK&&(e=r.parentElement.querySelector("beats-video-track")),(n===R.USER_PLAYBACK||R.INLINE_USER_PLAYBACK)&&e){o.getChild("ControlBar").removeChild("SubsCapsButton");let t=e.getAttribute("caption-path");t&&o.ready(function(){let n="true"===e.getAttribute("auto-enable-caption");o.addRemoteTextTrack({src:t,kind:"subtitles",default:n,srclang:e.getAttribute("caption-lang-code")||"en",label:e.getAttribute("caption-label")||"English"},!1);const i=new u(o,{className:"custom-toggle",showing:n});o.getChild("controlBar").addChild(i,{});let r=o.video.querySelector(".vjs-control-bar"),a=o.video.querySelector(".vjs-fullscreen-control");r.insertBefore(i.el_,a),o.textTrackSettings.setValues({color:B,backgroundColor:D,backgroundOpacity:N}),o.video.querySelector("video").textTracks.onchange=function(e){if(!o.captionAnalyticsFlag){let t,n=e.target[0]?e.target[0].mode:"";n&&("showing"===n?t="videoCaptionOn":"disabled"===n&&(t="videoCaptionOff"),p("analytics-track-video",{eventType:t,data:o}))}}});let n=e.getAttribute("transcript-path"),i=e.getAttribute("transcript-label")||"Download transcript";if(n&&i){let e=s.closest(".media-carousel__item.active"),t=e?e.querySelector(".media-carousel__title"):null,a=t?t.innerHTML:"",l=e?e.querySelector(".media-carousel__description"):null,u=e?e.querySelector(".media-carousel__description-long"):null,c=u?u.innerHTML:l?l.innerHTML:"",d=`<a href="${n}" role="button" class="transcript-link" onKeyDown="if (event.key == ' ') {event.preventDefault();this.click()}" download>${i}</a>`;element=document.createElement("div"),element.setAttribute("class","transcript-container"),element.innerHTML=`\n            ${a?`<div class="transcript-title">${a}</div>`:""}\n            ${c?`<div class="transcript-desc"> ${c} </div>`:""} \n            ${d}\n          `;let h=r.closest(".video-block");(h.closest(".modal-content__inner")||h.parentElement).appendChild(element),element.querySelector("a.transcript-link").addEventListener("click",()=>{p("analytics-track-video",{eventType:"videoTranscriptDownload",data:o})})}}}},$=e=>{try{return n(2313)(`./${e}.json`)}catch(e){return null}},J=(e,t)=>
473{let n={language:(()=>{let e=$(F),t=F;return e||z===F||(e=$(z),t=z),e||(e=$("en"),t="en"),e&&i.addLanguage(t,e),t})(),errorDisplay:!1,id:Math.floor(1e4*Math.random())+1};switch(e){case R.LOOPING:{const e={loop:!0,autoplay:!0,muted:"muted",playsinline:!0,preload:"auto"};_=Object.assign(e,n)}break;case R.USER_PLAYBACK:{const e={controls:!0,inactivityTimeout:1e3,playsinline:!0,controlBar:{pictureInPictureToggle:!1,remainingTimeDisplay:!0},nativeControlsForTouch:!I,html5:{nativeTextTracks:!0}};_=Object.assign(e,n)}break;case R.PLAY_ONCE:{const e={muted:"muted",playsinline:!0,autoplay:!0,preload:"auto"};_=Object.assign(e,n)}break;case R.INLINE_USER_PLAYBACK:{const e={controls:!0,playsinline:!0,preload:"auto",autoplay:!0,inactivityTimeout:1e3,controlBar:{pictureInPictureToggle:!1,remainingTimeDisplay:!0},nativeControlsForTouch:!I,html5:{nativeTextTracks:!0}};_=Object.assign(e,n)}}},Z=(e,t,n)=>{let i=c.getAttributeValue(t,"data-btn-color"),r=i&&"undefined"!==i?i:L,a=n.closest(".video-block, .beats-video-block");if(null==a.querySelector(".vjs-controls-container"))switch(e){case R.LOOPING:{const e=new o(t,{className:R.LOOPING,videoName:c.getAttributeValue(t,"data-aria-label")});a.appendChild(e.el()),a.querySelector(".vjs-controls-container.looping").classList.add(r)}break;case R.USER_PLAYBACK:{const e=new s(t,{className:R.USER_PLAYBACK,videoName:c.getAttributeValue(t,"data-aria-label")});let n=t.usingNativeControls_?"native-controls":"videojs-controls";a.appendChild(e.el()),a.querySelector(".vjs-controls-container.user-playback").classList.add(r,n)}break;case R.PLAY_ONCE:{const e=new l(t,{className:R.PLAY_ONCE,videoName:c.getAttributeValue(t,"data-aria-label")});a.appendChild(e.el()),a.querySelector(".vjs-controls-container.play-once").classList.add(r)}break;case R.INLINE_USER_PLAYBACK:{const e=new s(t,{className:R.INLINE_USER_PLAYBACK,videoName:c.getAttributeValue(t,"data-aria-label")});let n=t.usingNativeControls_?"native-controls":"videojs-controls";a.appendChild(e.el()),a.querySelector(".vjs-controls-container.inline-user-playback").classList.add(r,n),a.querySelector(".vjs-controls-container.inline-user-playback button.play-btn").style.display="block"}}},ee=(e,t)=>{e.setAttribute("data-video-id",e.id()),t&&(t.setAttribute("data-video-id",e.id()),e.removeAttribute("aria-label"),t.getAttribute("data-aria-label")?e.video.querySelector("video").setAttribute("aria-label",t.getAttribute("data-aria-label")):e.video.querySelector("video").setAttribute("aria-label",t.getAttribute("aria-label")))},te=(e,t,n)=>{let i=document.createElement("video-js");i.setAttribute("id",`video-js-${A}`),A++;let r=e.closest(".video-block");if(n=r?r.querySelector("picture"):"",R.USER_PLAYBACK===t){let t=document.querySelector(".modal-content .video-block, .modal-content .beats-video-block"),n=ne(e);t.appendChild(n),t.querySelector("picture").classList.remove("position-relative"),t.appendChild(i)}else r.appendChild(i);return R.INLINE_USER_PLAYBACK===t&&(r.querySelector("video-js").style.display="none"),R.LOOPING!==t&&R.PLAY_ONCE!==t||!n||(n.style.display="none"),i.setAttribute("class","video-js vjs-fluid"),[...e.attributes].filter(e=>e.name.match("data-")).map(({name:e,value:t})=>{i.setAttribute(e,t)}),R.USER_PLAYBACK!=t&&(e.hasAttribute("data-mobile-video")&&window.matchMedia("(max-width: 734px)").matches&&!e.hasAttribute("data-mobile-forced-fallback-disable-video")?e.querySelectorAll("SOURCE").forEach(e=>{e.removeAttribute("src"),e.hasAttribute("data-mobile-src")&&e.setAttribute("src",e.getAttribute("data-mobile-src")),e.hasAttribute("data-mobile-mp4-src")&&e.setAttribute("src",e.getAttribute("data-mobile-mp4-src")),e.hasAttribute("data-mobile-webm-src")&&e.setAttribute("src",e.getAttribute("data-mobile-webm-src"))}):e.querySelectorAll("SOURCE").forEach(e=>{e.removeAttribute("src"),e.hasAttribute("data-desktop-src")&&e.setAttribute("src",e.getAttribute("data-desktop-src")),e.hasAttribute("data-desktop-mp4-src")&&e.setAttribute("src",e.getAttribute("data-desktop-mp4-src")),e.hasAttribute("data-desktop-webm-src")&&e.setAttribute("src",e.getAttribute("data-desktop-webm-src"))})),i=c.copyChildNode(e,i),e},ne=e=>{let t,n,i=e.closest(".video-block"),r=i?i.querySelector("picture"):"",a=i?i.querySelector("picture-element"):"";if(r)n=r.querySelector("img");else{let e=document.createElement("picture");e.setAttribute("class","beats-picture"),e.style.display="none",t=c.copyChildNode(a,e),n=document.createElement("img"),e.appendChild(n),n.setAttribute("src",c.getAttributeValue(a.querySelector("fallback-img"),"src")),n.setAttribute("alt",c.getAttributeValue(a.querySelector("fallback-img"),"alt"))}return n.addEventListener("error",elemErrorHandler=e=>{e.target.classList.add("fallback-image-error"),e.preventDefault()}),E.push({elem:n,event:"error",funcHandler:elemErrorHandler}),t},ie=(e,t="VideoEvents")=>{let n=new CustomEvent(t,{detail:{videoEvent:e,videoEventType:e.type,videoId:e.target.id,videoElement:e.target}});(e.target.parentElement.querySelector("beats-video")?e.target.parentElement.querySelector("beats-video"):document).dispatchEvent(n)},re=e=>i.getPlayer(e),ae=e=>{re(e).dispose(),e in y&&delete y[e]},se=(e,t,n)=>{if((R.LOOPING===t||R.PLAY_ONCE===t)&&e?.target&&e.target?.childElementCount>0){let t=Array.from(e.target.children);
473t?.forEach(e=>{e&&e.setAttribute("aria-hidden",!0)})}ge(e),ie(e);let i=e.target.closest(".video-block");if(R.USER_PLAYBACK===t){i=e.target.closest(".modal-content");let t=i.querySelector(".vjs-controls-container");t&&t.classList.contains("video-ended")&&t.classList.remove("video-ended")}let r=i?i.querySelector("picture"):"";r&&(r.style.display="none",r.style.zIndex=0),i.querySelector("video-js").style.display="block";const a={eventType:"videoPlay",data:e.target};U||(i.querySelector("beats-video").hasAttribute("data-video-length")&&(a.videoLength=i.querySelector("beats-video").getAttribute("data-video-length")),n&&(a.videoLength=n.getAttribute("data-video-length"))),R.INLINE_USER_PLAYBACK===t&&i.hasAttribute("data-analytics-video")&&(i.querySelector("video").style.display="block",p("analytics-track-video",a),U=!0),R.USER_PLAYBACK===t&&n.hasAttribute("data-analytics-video")&&(p("analytics-track-video",a),U=!0)},oe=(e,t,n)=>{let i;O&&O>e.target.player.currentTime()&&(i=O),O=e.target.player.currentTime().toFixed(0),ie(e),R.USER_PLAYBACK===t&&n.hasAttribute("data-analytics-video")&&(p("analytics-track-video",{eventType:"videoStop",data:e.target,maxPlayedTime:i||e.target.player.currentTime().toFixed(0)}),n.setAttribute("data-video-played","")),R.INLINE_USER_PLAYBACK===t&&e.target.closest(".video-block").hasAttribute("data-analytics-video")&&(p("analytics-track-video",{eventType:"videoStop",data:e.target,maxPlayedTime:i||e.target.player.currentTime().toFixed(0)}),e.target.closest(".video-block").setAttribute("data-video-played",""))},le=e=>{const t="true"===getComputedStyle(e.video).getPropertyValue("--animation-disabled"),n="false"===e.getAttribute("data-autoplay-override");if(e.isAutoPlay&&n){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void e.pause();if(t)return void(e.isPausedByUser||e.play());e.pause()}},ue=(e,t)=>
473{requestAnimationFrame(()=>{if(!t)return;parseInt(getComputedStyle(t).width.replace("px","")),parseInt(getComputedStyle(t).height.replace("px","")),t.closest(".video-block"),t.closest(".modal")})},ce=(e,t,n)=>{ie(e),R.USER_PLAYBACK===t&&n.hasAttribute("data-analytics-video")&&p("analytics-track-video",{eventType:"videoComplete",data:e.target}),R.INLINE_USER_PLAYBACK===t&&e.target.closest(".video-block").hasAttribute("data-analytics-video")&&p("analytics-track-video",{eventType:"videoComplete",data:e.target});const r=c.hasAttributeCheck(e.target,"data-last-frame")?c.getAttributeValue(e.target,"data-last-frame"):"";let a=e.target.closest(".video-block");if(e.target.player&&e.target.player.isInPictureInPicture()){const{IOS_VERSION:t}=i.browser;return(M&&parseInt(M)>=14||t>="14")&&e.target.player.exitPictureInPicture(),X(document.querySelector(".modal")),!0}if(R.USER_PLAYBACK===t&&(a=e.target.closest(".modal-content"),a.querySelector(".vjs-controls-container").classList.add("video-ended")),a&&R.LOOPING!=t&&"asset"===r&&(a.querySelector("picture img").style.opacity=1,a.querySelector("picture").style.display="block",a.querySelector("video-js").style.display="none",ve(e)),e.target.player.isFullscreen()){const t=e.target.querySelector(".vjs-controls-container .play-btn");e.target.player.exitFullscreen(),T&&e.target.querySelector("video")&&e.target.querySelector("video").webkitExitFullscreen(),t&&t.focus()}},de=(e,t,n)=>{if(!t.classList.contains("video-source-error")){ie(e);let i=e.target.closest(".modal"),r=e.target.classList.contains("vjs-error");e.target.player;if(r){e.target.player&&e.target.player.isInPictureInPicture()&&e.target.player.exitPictureInPicture();let r=R.USER_PLAYBACK===n?e.target.closest(".modal-content"):e.target.closest(".video-block");r&&(R.USER_PLAYBACK===n&&i&&r.classList.add("video-error"),r.querySelector("picture img").style.opacity=1,r.querySelector("video-js").style.zIndex=-1,r.querySelector("picture").style.display="block",r.querySelector("video-js").style.display="none",ve(e)),t.classList.add("video-source-error")}}},he=e=>{let t=c.getAttributeValue(e.target,"data-video-type");if(t!=R.INLINE_USER_PLAYBACK&&(Z(t,e.target.player,e.target),ie(e),!1===e.target.player.hasStarted_&&!0===e.target.player.isAutoPlay&&("false"!==e.target.player.tagAttributes["data-autoplay-override"]||document.body.classList.contains("low-battery")))){let t=e.target.closest(".video-block");t.querySelector("picture img").style.opacity=1,t.querySelector("picture").style.display="block",t.querySelector("video-js").style.display="none",ve(e)}},pe=(e,t,n)=>{e.target.id in y&&delete y[e.target.id],ie(e);let i=R.USER_PLAYBACK===n?e.target.closest(".modal-content"):e.target.closest(".video-block");i&&i.querySelector("picture").classList.add("position-relative"),t.setAttribute("data-lazy","loading")},fe=e=>e.hasStarted_&&!e.paused(),me=(e,t)=>{let n=e.target.player;setTimeout(()=>{e.target.player&&!e.target.player.isFullscreen_&&fe(e.target.player)&&!n.isInPictureInPicture()&&e.target.player.pause()})},ge=e=>{let t=e.target.closest(".video-ratio-parent");if(t){let n=e.target.querySelector("video"),i=t.querySelector("video-js"),r=n.videoWidth,a=n.videoHeight;0!=r&&0!=a&&(t.style.aspectRatio=`${r} / ${a}`,i.style.aspectRatio=`${r} / ${a}`,i.style.height="auto",i.style.paddingTop="0px",i.style.maxHeight="100%")}},ve=e=>{let t=e.target.closest(".video-ratio-parent");t&&t.style.removeProperty("aspect-ratio")},Ae=e=>{ge(e);let t=e.target.closest(".video-block, .beats-video-block");t.querySelector("video-js").classList.add("is-active");let n=c.getAttributeValue(e.target,"data-video-type");n===R.INLINE_USER_PLAYBACK&&(t.querySelector("picture img").style.opacity=1,t.querySelector("picture").style.display="block",t.querySelector("video-js").style.display="none",Z(n,e.target.player,e.target));let i=e.target.player.video.closest(".bbd-full-width-container");[R.LOOPING,R.PLAY_ONCE].includes(c.getAttributeValue(e.target,"data-video-type"))&&P&&"true"===c.getAttributeValue(e.target,"data-bg-match")&&i&&c.isValidColorHex(i.getAttribute("data-desktop-bg-color"))&&setTimeout(()=>{ke(e.target.player,i)},500);let r=e.target.player;if(r){let e=r.video.querySelector(".beats-video-captions"),t=r.video.querySelector("video").textTracks;t&&t.length>0&&("showing"===t[0].mode&&e.classList.add("beats-video-captions-off"),"hidden"===t[0].mode&&e.classList.remove("beats-video-captions-off"))}setTimeout(()=>{if(n===R.INLINE_USER_PLAYBACK){e.target.closest(".video-block").querySelector(".vjs-controls-container.inline-user-playback button.play-btn").click()}},300)},ye=(e,t,n)=>{R.USER_PLAYBACK===t&&n.hasAttribute("data-analytics-video")&&!n.hasAttribute("data-video-played")&&p("analytics-track-video",{eventType:"videoMilestone",data:e.target}),R.INLINE_USER_PLAYBACK===t&&e.target.closest(".video-block").hasAttribute("data-analytics-video")&&!e.target.closest(".video-block").hasAttribute("data-video-played")&&p("analytics-track-video",{eventType:"videoMilestone",data:e.target})},be=(e,t)=>
473{let n=e.target.querySelector(".vjs-control-bar"),i=e.target.player?e.target.player:"";n&&i&&(t!==R.USER_PLAYBACK||i.ended()||i.isInPictureInPicture()||(n.style.opacity=1))},_e=(e,t)=>{let n=e.target.querySelector(".vjs-control-bar");n&&t===R.USER_PLAYBACK&&document.body.classList.contains("using-mouse")&&(n.style.opacity=0)},we=e=>{},Ee=e=>{let t=e.target.querySelector(".vjs-controls-container.user-playback");t&&(e.target.classList.contains("vjs-seeking")?t.style.display="none":t.style.display="block")},Se=e=>{let t=e.target.querySelector(".vjs-controls-container.user-playback");t&&e.target.player.isPausedByUser&&(t.style.display="block")},Te=e=>{let t=e.target.closest(".modal");t.style.visibility="hidden",t.querySelector("video.vjs-tech").style.visibility="visible",d.minimize(),h.setPreservedScrollTop()},xe=e=>{e.target.closest(".modal").style.visibility="visible",d.maximize()},Ce=e=>{const t="true"===getComputedStyle(e.video).getPropertyValue("--animation-disabled");if(window.matchMedia("(max-width: 734px)").matches&&!e.el_.hasAttribute("active-mobile")&&e.el_.hasAttribute("data-mobile-video")&&!e.el_.hasAttribute("data-mobile-forced-fallback-disable-video")){let n=[];e.el_.querySelectorAll("source").forEach(e=>{let t={};e.hasAttribute("data-mobile-src")&&(t.src=e.getAttribute("data-mobile-src")),e.hasAttribute("data-mobile-mp4-src")&&(t.src=e.getAttribute("data-mobile-mp4-src")),e.hasAttribute("data-mobile-webm-src")&&(t.src=e.getAttribute("data-mobile-webm-src")),e.type&&t.src&&(t.type=e.type),Object.keys(t).length&&n.push(t)}),n.length&&(n.map(e=>e.src).includes(e.currentSrc())||(e.src(n),e.updateSourceCaches_(n)),window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===e.el_.getAttribute("data-autoplay-override")&&!e.isAutoPlay||!t?e.pause():e.play().then(e=>{}).catch(e=>{})),e.removeAttribute("data-active-desktop-source"),e.el_.setAttribute("active-mobile","true")}else if(!window.matchMedia("(max-width: 734px)").matches&&!e.el_.hasAttribute("data-active-desktop-source")){let n=[];Array.from(e.el_.querySelectorAll("source")).forEach(e=>{let t={};e.hasAttribute("data-desktop-src")&&(t.src=e.getAttribute("data-desktop-src")),e.hasAttribute("data-desktop-mp4-src")&&(t.src=e.getAttribute("data-desktop-mp4-src")),e.hasAttribute("data-desktop-webm-src")&&(t.src=e.getAttribute("data-desktop-webm-src")),e.type&&t.src&&(t.type=e.type),Object.keys(t).length&&n.push(t)}),n.length&&(n.map(e=>e.src).includes(e.currentSrc())||(e.src(n),e.updateSourceCaches_(n)),window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===e.el_.getAttribute("data-autoplay-override")&&!e.isAutoPlay||!t?e.pause():e.play().then(e=>{}).catch(e=>{})),e.el_.removeAttribute("active-mobile"),e.el_.setAttribute("data-active-desktop-source","true")}};let Ie=new IntersectionObserver((e,t)=>{e.forEach(e=>{let t;if(e.target.querySelector("video-js")&&(t=e.target.querySelector("video-js").player),t){let n=c.getAttributeValue(e.target.querySelector("video-js"),"data-video-type");const i=e.intersectionRatio,r="true"===getComputedStyle(t.video).getPropertyValue("--animation-disabled");i>.2&&i>=.3&&(t.isInViewPort=!0,t.isPausedByUser||(n!==R.LOOPING||window.matchMedia("(prefers-reduced-motion: reduce)").matches)&&(n!==R.PLAY_ONCE||window.matchMedia("(prefers-reduced-motion: reduce)").matches||t.ended())||((t.el_.hasAttribute("mobile-forced-fallback-disable-video")&&window.matchMedia("(max-width: 734px)").matches||"false"===c.getAttributeValue(e.target.querySelector("video-js"),"data-autoplay-override"))&&!r?t.pause():(document.activeElement.classList.contains("play-btn")&&t.video?.parentElement?.querySelector(".pause-btn")&&requestAnimationFrame(()=>{t.video.parentElement.querySelector(".pause-btn").focus()}),"false"!==c.getAttributeValue(e.target.querySelector("video-js"),"data-autoplay-override")&&t.play().then(e=>{t.hasLoaded=!0}).catch(e=>{})))),i<.1&&(t.isInViewPort=!1,1!=t.hasStarted_||t.isPausedByUser||n!==R.LOOPING&&(n!==R.PLAY_ONCE||t.ended())||!t.hasLoaded||t.pause())}})},{rootMargin:"0px 0px 0px 0px",threshold:[.1,.3]}),Me=new IntersectionObserver((e,t)=>
473{e.forEach(e=>{let t;if(e.target.querySelector("video-js")&&(t=e.target.querySelector("video-js").player),t){let n=c.getAttributeValue(e.target.querySelector("video-js"),"data-video-type");const i=e.intersectionRatio;i>.1&&([R.USER_PLAYBACK,R.INLINE_USER_PLAYBACK].includes(n)||(window.activeBeatsVideoPlayersIds.includes(t.id_)||(window.activeBeatsVideoPlayersIds.push(t.id_),window.activeBeatsVideoPlayers.push(t)),Ce(t))),i<.1&&(window.activeBeatsVideoPlayers=window.activeBeatsVideoPlayers.filter(e=>e.id_!=t.id_),window.activeBeatsVideoPlayersIds=window.activeBeatsVideoPlayersIds.filter(e=>e!=t.id_))}})},{rootMargin:"0px 0px 0px 0px",threshold:[.1,.9]}),ke=async(e,t)=>{let n=document.createElement("canvas");n.width=8,n.height=8;let i={};(k.p3Gamut||k.srgbBGamut)&&(i={colorSpace:"srgb"}),ctx=n.getContext("2d",i),await ctx.drawImage(e.video.getElementsByTagName("video")[0],0,0,10,10);let r=await ctx.getImageData(0,0,8,8,i);if(null!=r.data){let i=r.data.slice(0,3),a=t.getAttribute("data-desktop-bg-color");(a?["transparent","#000000",""].includes(a)?null:a:null)&&("#000000"!=c.rgbToHex(i)?requestAnimationFrame(()=>{let e=c.rgbToHex(i);""!=e&&(t.style.background=e,t.classList.add("bg-color-match-enabled")),n=i=null}):(n=i=null,setTimeout(()=>{ke(e,t)},200)))}};return{getPlayerInstance:e=>{let t;const n="Player not found!";return t=!!re(e),{play:()=>{t&&re(e).ready(re(e).play())},pause:()=>{t&&re(e).ready(re(e).pause())},mute:()=>{if(!t)return n;{let t=re(e).muted();re(e).muted(!t)}},dispose:()=>{t&&re(e).dispose()}}},getModalInstance:()=>t,playerinstances:y,initializeVideo:V,initialize:Q,disposeVideo:ae,removeSupportElements:e=>{e.querySelector(".vjs-controls-container")&&e.querySelector(".vjs-controls-container").remove(),e.querySelector(".transcript-container")&&e.querySelector(".transcript-container").remove(),e.querySelector("beats-video")&&e.querySelector("beats-video").removeAttribute("class"),e.querySelector("picture")&&e.querySelector("picture").removeAttribute("style")}}};window.beatsVideoManager||(window.beatsVideoManager=y()),e.exports=window.beatsVideoManager},2497:(e,t,n)=>{var{getLocalized:i}=n(2050);const r=`\n  <div class="loader-container loader" style="display: block; opacity: 1; visibility: visible;"></div>\n  <button class="play-btn control-btn" role="button" aria-label="${i("playVideo","Play Video")}"\n        style="display: none;"></button>\n  <button class="pause-btn control-btn" role="button" aria-label="${i("pauseVideo","Pause Video")}"\n        style="display: none;"></button>\n  `,a=n(7545);let s=a.getComponent("Component"),o=a.extend(s,{constructor:function(e,t){s.apply(this,arguments),this.player=e,this.playBtn=this.el_.querySelector(".play-btn"),this.pauseBtn=this.el_.querySelector(".pause-btn"),this.loader=this.el_.querySelector(".loader-container"),this.updateClassName(t.className),this.updateAriaLabel(t.videoName),this.addEvents()},createEl:function(){return a.dom.createEl("div",{className:"vjs-controls-container",innerHTML:r})},updateClassName:function(e){e&&("string"!=typeof e&&(e=""),a.dom.addClass(this.el(),e))},updateAriaLabel:function(e){e&&"undefined"!==e&&("string"!=typeof e&&(e=""),this.playBtn.setAttribute("aria-label",i("playVideo","Play Video")+" - "+e),this.pauseBtn.setAttribute("aria-label",i("pauseVideo","Pause Video")+" - "+e))},addEvents:function(){this.playBtn.addEventListener("click",e=>this.playVideo(e)),this.pauseBtn.addEventListener("click",e=>this.pauseVideo(e)),this.player.ready(this.loadeddata()),this.player.on("playing",()=>this.onPlay()),this.player.on("pause",()=>this.onPause()),document.addEventListener("visibilitychange",()=>{(window.matchMedia("(prefers-reduced-motion: reduce)").matches||!0===window.lowBatteryMode)&&this.player.pause()})},playVideo:function(e){e.stopPropagation(),this.player.play(),this.player.isPausedByUser=!1,this.playBtn.style.display="none",this.loader.style.display="none",this.pauseBtn.style.display="block",this.pauseBtn.focus()},pauseVideo:function(e){e.stopPropagation(),this.player.pause(),this.player.isPausedByUser=!0,this.pauseBtn.style.display="none",this.loader.style.display="none",this.playBtn.style.display="block",this.playBtn.focus()},loadeddata:function(){const e=new CustomEvent("video-loaded");document.dispatchEvent(e),this.loader.style.display="none",this.pauseBtn.style.display="block";const t="true"===getComputedStyle(this.player.video).getPropertyValue("--animation-disabled");window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===this.player.tagAttributes["data-autoplay-override"]&&!t||!0===window.lowBatteryMode?this.player.pause():this.player.play(),window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===this.player.tagAttributes["data-autoplay-override"]||!0===window.lowBatteryMode||!1===this.player.hasStarted_&&!0===this.player.isLooping&&!0===this.player.isAutoPlay?(this.playBtn.style.display="block",this.pauseBtn.style.display="none"):(this.playBtn.style.display="none",this.pauseBtn.style.display="block")},onPlay:function(){this.playBtn.style.display="none",this.pauseBtn.style.display="block"},onPause:function(){this.pauseBtn.style.display="none",this.playBtn.style.display="block"}});e.exports=o}
473,289:(e,t,n)=>{var{getLocalized:i}=n(2050);const r=`\n  <div class="loader-container loader" style="display: none; opacity: 1; visibility: visible;"></div>\n  <button class="play-btn control-btn" role="button" aria-label="${i("playVideo","Play Video")}"\n            style="display: none;"></button>\n  <button class="pause-btn control-btn" role="button" aria-label="${i("pauseVideo","Pause Video")}"\n            style="display: none;"></button>\n  <button class="replay-btn control-btn" role="button" aria-label="${i("replayVideo","Replay Video")}"\n        style="display: none;"></button>`,a=n(7545);let s=a.getComponent("Component"),o=a.extend(s,{constructor:function(e,t){s.apply(this,arguments),this.player=e,this.playBtn=this.el_.querySelector(".play-btn"),this.pauseBtn=this.el_.querySelector(".pause-btn"),this.replayBtn=this.el_.querySelector(".replay-btn"),this.loader=this.el_.querySelector(".loader-container"),this.updateClassName(t.className),this.updateAriaLabel(t.videoName),this.addEvents()},createEl:function(){return a.dom.createEl("div",{className:"vjs-controls-container",innerHTML:r})},updateClassName:function(e){e&&("string"!=typeof e&&(e=""),a.dom.addClass(this.el(),e))},updateAriaLabel:function(e){e&&"undefined"!==e&&("string"!=typeof e&&(e=""),this.replayBtn.setAttribute("aria-label",i("replayVideo","Replay Video")+" - "+e),this.playBtn.setAttribute("aria-label",i("playVideo","Play Video")+" - "+e),this.pauseBtn.setAttribute("aria-label",i("pauseVideo","Pause Video")+" - "+e))},addEvents:function(){this.replayBtn.addEventListener("click",()=>this.playVideo()),this.playBtn.addEventListener("click",()=>this.playVideo()),this.pauseBtn.addEventListener("click",()=>this.pauseVideo()),this.player.ready(this.loadedVideo()),this.player.on("playing",()=>this.onPlay()),this.player.on("pause",()=>this.onPause()),this.player.on("ended",()=>this.onEnd()),document.addEventListener("visibilitychange",()=>{(window.matchMedia("(prefers-reduced-motion: reduce)").matches||!0===window.lowBatteryMode)&&this.player.pause()})},playVideo:function(){this.player.play(),this.player.isPausedByUser=!1,this.replayBtn.style.display="none",this.playBtn.style.display="none",this.pauseBtn.style.display="block",this.pauseBtn.focus()},pauseVideo:function(){this.player.pause(),this.player.isPausedByUser=!0,this.pauseBtn.style.display="none",this.playBtn.style.display="block",this.playBtn.focus()},loadedVideo:function(){const e=new CustomEvent("video-loaded");document.dispatchEvent(e),this.loader.style.display="none";const t=getComputedStyle(this.player.video).getPropertyValue("--animation-disabled");window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===this.player.tagAttributes["data-autoplay-override"]&&!t||!0===window.lowBatteryMode?this.player.pause():this.player.play(),!1===this.player.hasStarted_||window.matchMedia("(prefers-reduced-motion: reduce)").matches||!0===window.lowBatteryMode?(this.playBtn.style.display="block",this.pauseBtn.style.display="none"):(this.playBtn.style.display="none",this.pauseBtn.style.display="block")},onPlay:function(){this.replayBtn.style.display="none",this.playBtn.style.display="none",this.pauseBtn.style.display="block"},onPause:function(){this.replayBtn.style.display="none",this.pauseBtn.style.display="none",this.playBtn.style.display="block"},onEnd:function(){this.replayBtn.style.display="block",this.pauseBtn.style.display="none",this.playBtn.style.display="none",this.pauseBtn===document.activeElement&&this.replayBtn.focus()}});e.exports=o},9179:(e,t,n)=>{const i=n(7545),r=n(722);let a=i.getComponent("Component");var{getLocalized:s}=n(2050);let o=i.extend(a,{constructor:function(e,t){a.apply(this,arguments),this.player=e,this.captionsButton=this.el_,this.addEvents(),t&&1==t.showing&&(this.captionsButton.classList.add("beats-video-captions-off"),this.captionsButton.setAttribute("aria-pressed",!0))},createEl:function(){return i.dom.createEl("button",{className:"beats-video-captions",title:s("captions","Captions"),"aria-pressed":"false"})},addEvents:function(){this.captionsButton.addEventListener("click",()=>this.handleClick())},handleClick:function(){this.player.captionAnalyticsFlag=!0;const e=this.player.textTracks();for(let t=0;t<e.length;t++){let n,i=this.captionsButton.getAttribute("aria-pressed"),a="true";"showing"===e[t].mode?(e[t].mode="hidden",n="videoCaptionOff"):(e[t].mode="showing",n="videoCaptionOn"),this.captionsButton.classList.toggle("beats-video-captions-off"),"true"===i&&(a="false"),this.captionsButton.setAttribute("aria-pressed",a),r("analytics-track-video",{eventType:n,data:this.player})}}});e.exports=o},991:(e,t,n)=>{var{getLocalized:i}=n(2050);const r=`\n  <div class="loader-container loader" style="display: none; opacity: 1; visibility: visible;"></div>\n  <button class="play-btn control-btn" role="button" aria-label="${i("playVideo","Play Video")}" aria-hidden="true" style="display: none;">\n    <div class="focus-outline-overwrite-for-click" tabindex="-1"></div>\n  </button>
473\n  <button class="pause-btn control-btn" role="button" aria-label="${i("pauseVideo","Pause Video")}" aria-hidden="true" style="display: none;">\n    <div class="focus-outline-overwrite-for-click" tabindex="-1"></div>\n  </button>`,a=n(7545);var s=a.getComponent("Component");let o=a.extend(s,{constructor:function(e,t){s.apply(this,arguments),this.player=e,this.playBtn=this.el_.querySelector(".play-btn"),this.pauseBtn=this.el_.querySelector(".pause-btn"),this.loader=this.el_.querySelector(".loader-container"),this.updateClassName(t.className),this.updateAriaLabel(t.videoName),this.addEvents()},createEl:function(){return a.dom.createEl("div",{className:"vjs-controls-container",innerHTML:r},{"aria-hidden":!0})},updateClassName:function(e){e&&("string"!=typeof e&&(e=""),a.dom.addClass(this.el(),e))},updateAriaLabel:function(e){e&&"undefined"!==e&&("string"!=typeof e&&(e=""),this.playBtn.setAttribute("aria-label",i("playVideo","Play Video")+" - "+e),this.pauseBtn.setAttribute("aria-label",i("pauseVideo","Pause Video")+" - "+e))},addEvents:function(){this.playBtn.addEventListener("click",()=>this.playVideo()),this.player.on("pause",()=>this.onPause()),this.player.on("playing",()=>this.onPlay()),this.player.on("ended",()=>this.onEnded())},playVideo:function(){this.player.isPausedByUser=!1,this.player.play()},onPause:function(){this.el_.style.display="block",this.playBtn.style.display="block"},onPlay:function(){this.el_.style.display="none"},onEnded:function(){this.el_.style.display="block",this.playBtn.style.display="block"}});e.exports=o},3897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports.default=e.exports},5372:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3405:(e,t,n)=>{var i=n(3897);e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6115:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},9728:(e,t,n)=>{var i=n(4062);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},8416:(e,t,n)=>{var i=n(4062);e.exports=function(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3808:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:(e,t,n)=>{var i=n(6015);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},9498:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8872:e=>{e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,s,o=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){u=!0,r=e}
473finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},2218:e=>{e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},2281:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},4993:(e,t,n)=>{var i=n(8698).default,r=n(6115);e.exports=function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:e=>{function t(n,i){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7424:(e,t,n)=>{var i=n(5372),r=n(8872),a=n(6116),s=n(2218);e.exports=function(e,t){return i(e)||r(e,t)||a(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},861:(e,t,n)=>{var i=n(3405),r=n(9498),a=n(6116),s=n(2281);e.exports=function(e){return i(e)||r(e)||a(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},5036:(e,t,n)=>{var i=n(8698).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:(e,t,n)=>{var i=n(8698).default,r=n(5036);e.exports=function(e){var t=r(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:(e,t,n)=>{var i=n(3897);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},8593:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.
4730","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},4886:e=>{"use strict";e.exports=JSON.parse('{"Play":"تشغيل","Pause":"إيقاف","Current Time":"الوقت الحالي","Duration":"مدة","Remaining Time":"الوقت المتبقي","Stream Type":"نوع التيار","LIVE":"مباشر","Loaded":"تم التحميل","Progress":"التقدم","Fullscreen":"ملء الشاشة","Non-Fullscreen":"تعطيل ملء الشاشة","Mute":"صامت","Unmute":"غير الصامت","Playback Rate":"معدل التشغيل","Subtitles":"الترجمة","subtitles off":"إيقاف الترجمة","Captions":"التعليقات","captions off":"إيقاف التعليقات","Chapters":"فصول","You aborted the media playback":"لقد ألغيت تشغيل الفيديو","A network error caused the media download to fail part-way.":"تسبب خطأ في الشبكة بفشل تحميل الفيديو بالكامل.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"لا يمكن تحميل الفيديو بسبب فشل في الخادوم أو الشبكة ، أو فشل بسبب عدم إمكانية قراءة تنسيق الفيديو.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"تم إيقاف تشغيل الفيديو بسبب مشكلة فساد أو لأن الفيديو المستخدم يستخدم ميزات غير مدعومة من متصفحك.","No compatible source was found for this media.":"فشل العثور على أي مصدر متوافق مع هذا الفيديو.","Play Video":"تشغيل الفيديو","Close":"أغلق","Modal Window":"نافذة مشروطة","This is a modal window":"هذه نافذة مشروطة","This modal can be closed by pressing the Escape key or activating the close button.":"يمكن غلق هذه النافذة المشروطة عن طريق الضغط على زر الخروج أو تفعيل زر الإغلاق",", opens captions settings dialog":", تفتح نافذة  خيارات التعليقات",", opens subtitles settings dialog":", تفتح نافذة  خيارات الترجمة",", selected":", مختار","Audio Player":"مشغل الصوت","Video Player":"مشغل الفيديو","Replay":"إعادة التشغيل","Seek to live, currently behind live":"ذهاب إلى نقطة البث المباشر، متأخر عن البث المباشر حاليًا","Seek to live, currently playing live":"ذهاب إلى نقطة البث المباشر، البث المباشر قيد التشغيل حاليًا","Progress Bar":"شريط التقدم","Descriptions":"الأوصاف","descriptions off":"إخفاء الأوصاف","Audio Track":"المسار الصوتي","Volume Level":"مستوى الصوت","The media is encrypted and we do not have the keys to decrypt it.":"الوسائط مشفرة وليس لدينا الرموز اللازمة لفك شفرتها.","Close Modal Dialog":"إغلاق مربع الحوار المشروط",", opens descriptions settings dialog":"، يفتح مربع حوار إعدادات الأوصاف","captions settings":"إعدادات التعليقات التوضيحية","subtitles settings":"إعدادات الترجمات","descriptions settings":"إعدادات الأوصاف","Text":"النص","White":"أبيض","Black":"أسود","Red":"أحمر","Green":"أخضر","Blue":"أزرق","Yellow":"أصفر","Magenta":"أرجواني","Cyan":"أزرق سماوي","Background":"الخلفية","Window":"نافذة","Transparent":"شفاف","Semi-Transparent":"نصف شفاف","Opaque":"معتم","Font Size":"حجم الخط","Text Edge Style":"نمط حواف النص","None":"لا شيء","Raised":"بارز","Depressed":"منخفض","Uniform":"منتظم","Dropshadow":"ظل خلفي","Font Family":"عائلة الخطوط","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"إعادة الضبط","restore all settings to the default values":"استعادة كل الإعدادات إلى القيم الافتراضية","Done":"تم","Caption Settings Dialog":"مربع حوار إعدادات التعليقات التوضيحية","Beginning of dialog window. Escape will cancel and close the window.":"بداية نافذة مربع حوار. الضغط على زر \\"Escape\\" سيؤدي إلى الإلغاء وإغلاق النافذة.","End of dialog window.":"نهاية نافذة مربع حوار.","{1} is loading.":"{1} قيد التحميل."}')},4506:e=>{"use strict";e.exports=JSON.parse('{"Play":"Pusti","Pause":"Pauza","Current Time":"Trenutno vrijeme","Duration":"Vrijeme trajanja","Remaining Time":"Preostalo vrijeme","Stream Type":"Način strimovanja","LIVE":"UŽIVO","Loaded":"Učitan","Progress":"Progres","Fullscreen":"Puni ekran","Non-Fullscreen":"Mali ekran","Mute":"Prigušen","Unmute":"Ne-prigušen","Playback Rate":"Stopa reprodukcije","Subt
473itles":"Podnaslov","subtitles off":"Podnaslov deaktiviran","Captions":"Titlovi","captions off":"Titlovi deaktivirani","Chapters":"Poglavlja","You aborted the media playback":"Isključili ste reprodukciju videa.","A network error caused the media download to fail part-way.":"Video se prestao preuzimati zbog greške na mreži.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video se ne može reproducirati zbog servera, greške u mreži ili je format ne podržan.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Reprodukcija videa je zaustavljenja zbog greške u formatu ili zbog verzije vašeg pretraživača.","No compatible source was found for this media.":"Nije nađen nijedan kompatibilan izvor ovog videa."}')},2316:e=>{"use strict";e.exports=JSON.parse('{"Play":"Възпроизвеждане","Pause":"Пауза","Current Time":"Текущо време","Duration":"Продължителност","Remaining Time":"Оставащо време","Stream Type":"Тип на потока","LIVE":"НА ЖИВО","Loaded":"Заредено","Progress":"Прогрес","Fullscreen":"Цял екран","Non-Fullscreen":"Спиране на цял екран","Mute":"Без звук","Unmute":"Със звук","Playback Rate":"Скорост на възпроизвеждане","Subtitles":"Субтитри","subtitles off":"Спряни субтитри","Captions":"Аудио надписи","captions off":"Спряни аудио надписи","Chapters":"Глави","You aborted the media playback":"Спряхте възпроизвеждането на видеото","A network error caused the media download to fail part-way.":"Грешка в мрежата провали изтеглянето на видеото.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Видеото не може да бъде заредено заради проблем със сървъра или мрежата или защото този формат не е поддържан.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Възпроизвеждането на видеото беше прекъснато заради проблем с файла или защото видеото използва опции които браузърът Ви не поддържа.","No compatible source was found for this media.":"Не беше намерен съвместим източник за това видео."}')},2342:e=>{"use strict";e.exports=JSON.parse('{"Play":"Reproducció","Pause":"Pausa","Current Time":"Temps reproduït","Duration":"Durada total","Remaining Time":"Temps restant","Stream Type":"Tipus de seqüència","LIVE":"EN DIRECTE","Loaded":"Carregat","Progress":"Progrés","Fullscreen":"Pantalla completa","Non-Fullscreen":"Pantalla no completa","Mute":"Silencia","Unmute":"Amb so","Playback Rate":"Velocitat de reproducció","Subtitles":"Subtítols","subtitles off":"Subtítols desactivats","Captions":"Llegendes","captions off":"Llegendes desactivades","Chapters":"Capítols","You aborted the media playback":"Heu interromput la reproducció del vídeo.","A network error caused the media download to fail part-way.":"Un error de la xarxa ha interromput la baixada del vídeo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"No s\'ha pogut carregar el vídeo perquè el servidor o la xarxa han fallat, o bé perquè el seu format no és compatible.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La reproducció de vídeo s\'ha interrumput per un problema de corrupció de dades o bé perquè el vídeo demanava funcions que el vostre navegador no ofereix.","No compatible source was found for this media.":"No s\'ha trobat cap font compatible amb el vídeo."}')},5710:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Audio Přehravač","Video Player":"
473Video Přehravač","Play":"Přehrát","Pause":"Pauza","Replay":"Spustit znovu","Current Time":"Aktuální čas","Duration":"Doba trvání","Remaining Time":"Zbývající čas","Stream Type":"Typ streamu","LIVE":"ŽIVĚ","Loaded":"Načteno","Progress":"Stav","Progress Bar":"Ukazatel průběhu","progress bar timing: currentTime={1} duration={2}":"{1} z {2}","Fullscreen":"Celá obrazovka","Non-Fullscreen":"Běžné zobrazení","Mute":"Ztlumit zvuk","Unmute":"Zapnout zvuk","Playback Rate":"Rychlost přehrávání","Subtitles":"Titulky","subtitles off":"Bez titulků","Captions":"Popisky","captions off":"Popisky vypnuty","Chapters":"Kapitoly","Descriptions":"Popisy","descriptions off":"Bez popisů","Audio Track":"Zvuková stopa","Volume Level":"Hlasitost","You aborted the media playback":"Přehrávání videa bylo přerušeno.","A network error caused the media download to fail part-way.":"Video nemohlo být načteno kvůli chybě v síti.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video nemohlo být načteno, buď kvůli chybě serveru, sítě nebo proto, že daný formát není podporován.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Váš prohlížeč nepodporuje tento formát videa.","No compatible source was found for this media.":"Nevalidní zadaný zdroj videa.","The media is encrypted and we do not have the keys to decrypt it.":"Chyba při dešifrování videa.","Play Video":"Přehrát video","Close":"Zavřit","Close Modal Dialog":"Zavřít okno","Modal Window":"Modální okno","This is a modal window":"Toto je modální okno","This modal can be closed by pressing the Escape key or activating the close button.":"Toto okno se dá zavřít křížkem nebo klávesou Esc.",", opens captions settings dialog":", otevřít okno pro nastavení popisků",", opens subtitles settings dialog":", otevřít okno pro nastavení titulků",", opens descriptions settings dialog":", otevře okno pro nastavení popisků pro nevidomé",", selected":", vybráno","captions settings":"nastavení popisků","subtitles settings":"nastavení titulků","descriptions settings":"nastavení popisků pro nevidomé","Text":"Titulky","White":"Bílé","Black":"Černé","Red":"Červené","Green":"Zelené","Blue":"Modré","Yellow":"Žluté","Magenta":"Fialové","Cyan":"Azurové","Background":"Pozadí titulků","Window":"Okno","Transparent":"Průhledné","Semi-Transparent":"Poloprůhledné","Opaque":"Neprůhledné","Font Size":"Velikost písma","Text Edge Style":"Okraje písma","None":"Bez okraje","Raised":"Zvýšený","Depressed":"Propadlý","Uniform":"Rovnoměrný","Dropshadow":"Stínovaný","Font Family":"Rodina písma","Proportional Sans-Serif":"Proporcionální bezpatkové","Monospace Sans-Serif":"Monospace bezpatkové","Proportional Serif":"Proporcionální patkové","Monospace Serif":"Monospace patkové","Casual":"Hravé","Script":"Ručně psané","Small Caps":"Malé kapitálky","Reset":"Obnovit","restore all settings to the default values":"Vrátit nastavení do výchozího stavu","Done":"Hotovo","Caption Settings Dialog":"Okno s nastavením titulků","Beginning of dialog window. Escape will cancel and close the window.":"Začátek dialogového okna. Klávesa Esc okno zavře.","End of dialog window.":"Konec dialogového okna.","{1} is loading.":"{1} se načítá."}')},4019:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Chwaraewr sain","Video Player":"Chwaraewr fideo","Play":"Chwarae","Pause":"Oedi","Replay":"Ailchwarae","Current Time":"Amser Cyfredol","Duration":"Parhad","Remaining Time":"Amser ar ôl","Stream Type":"Math o Ffrwd","LIVE":"YN FYW","Loaded":"Llwythwyd","Progress":"Cynnydd","Progress Bar":"Bar Cynnydd","progress bar timing: currentTime={1} duration={2}":"{1} o {2}","Fullscreen":"Sgrîn Lawn","Non-Fullscreen":"Ffenestr","Mute":"Pylu","Unmute":"Dad-bylu","Playback Rate":"Cyfradd Chwarae","Subtitles":"Isdeitlau","subtitles off":"Isdeitlau i ffwrdd","Captions":"Capsiynau","captions off":"Capsiynau i ffwrdd","Chapters":"Penodau","Descriptions":"Disgrifiadau","descriptions off":"disgrifiadau i ffwrdd","Audio Track":"Trac Sain","Volume Level":"Lefel Sain","You aborted the media playback":"Atalwyd y fideo gennych","A network error caused the media download to fail part-way.":"Mae gwall rhwydwaith wedi achosi methiant lawrlwytho.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Ni lwythodd y fideo, oherwydd methiant gweinydd neu rwydwaith, neu achos nid yw\'r system yn cefnogi\'r fformat.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Atalwyd y fideo oherwydd problem llygredd data neu oherwydd nid yw\'ch porwr yn cefnogi nodweddion penodol o\'r fideo.","No compatible source was found for this media.":"Nid oedd modd canfod ffynhonnell cytûn am y fideo hwn.","The media is encrypted and we do not have the keys to decrypt it."
473:"Mae\'r fideo wedi ei amgryptio ac nid oes allweddion gennym.","Play Video":"Chwarae Fideo","Close":"Cau","Close Modal Dialog":"Cau Blwch Deialog Moddol","Modal Window":"Ffenestr Foddol","This is a modal window":"Mae hon yn ffenestr foddol","This modal can be closed by pressing the Escape key or activating the close button.":"Gallech chi gau\'r ffenestr foddol hon trwy wasgu Escape neu glicio\'r botwm cau.",", opens captions settings dialog":", yn agor gosodiadau capsiynau",", opens subtitles settings dialog":", yn agor gosodiadau isdeitlau",", opens descriptions settings dialog":", yn agor gosodiadau disgrifiadau",", selected":", detholwyd","captions settings":"gosodiadau capsiynau","subtitles settings":"gosodiadau isdeitlau","descriptions settings":"gosodiadau disgrifiadau","Text":"Testun","White":"Gwyn","Black":"Du","Red":"Coch","Green":"Gwyrdd","Blue":"Glas","Yellow":"Melyn","Magenta":"Piws","Cyan":"Cyan","Background":"Cefndir","Window":"Ffenestr","Transparent":"Tryloyw","Semi-Transparent":"Hanner-dryloyw","Opaque":"Di-draidd","Font Size":"Maint y Ffont","Text Edge Style":"Arddull Ymylon Testun","None":"Dim","Raised":"Uwch","Depressed":"Is","Uniform":"Unffurf","Dropshadow":"Cysgod cefn","Font Family":"Teulu y Ffont","Proportional Sans-Serif":"Heb-Seriff Cyfraneddol","Monospace Sans-Serif":"Heb-Seriff Unlled","Proportional Serif":"Seriff Gyfraneddol","Monospace Serif":"Seriff Unlled","Casual":"Llawysgrif","Script":"Sgript","Small Caps":"Prif Lythyrennau Bychain","Reset":"Ailosod","restore all settings to the default values":"Adfer yr holl osodiadau diofyn","Done":"Gorffenwyd","Caption Settings Dialog":"Blwch Gosodiadau Capsiynau","Beginning of dialog window. Escape will cancel and close the window.":"Dechrau ffenestr deialog. Bydd Escape yn canslo a chau\'r ffenestr.","End of dialog window.":"Diwedd ffenestr deialog.","{1} is loading.":"{1} yn llwytho."}')},3424:e=>{"use strict";e.exports=JSON.parse('{"Play":"Afspil","Pause":"Pause","Current Time":"Aktuel tid","Duration":"Varighed","Remaining Time":"Resterende tid","Stream Type":"Stream-type","LIVE":"LIVE","Loaded":"Indlæst","Progress":"Status","Fullscreen":"Fuldskærm","Non-Fullscreen":"Luk fuldskærm","Mute":"Uden lyd","Unmute":"Med lyd","Playback Rate":"Afspilningsrate","Subtitles":"Undertekster","subtitles off":"Uden undertekster","Captions":"Undertekster for hørehæmmede","captions off":"Uden undertekster for hørehæmmede","Chapters":"Kapitler","You aborted the media playback":"Du afbrød videoafspilningen.","A network error caused the media download to fail part-way.":"En netværksfejl fik download af videoen til at fejle.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Videoen kunne ikke indlæses, enten fordi serveren eller netværket fejlede, eller fordi formatet ikke er understøttet.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Videoafspilningen blev afbrudt på grund af ødelagte data eller fordi videoen benyttede faciliteter som din browser ikke understøtter.","No compatible source was found for this media.":"Fandt ikke en kompatibel kilde for denne media."}')},88:e=>{"use strict";e.exports=JSON.parse('{"Play":"Wiedergabe","Pause":"Pause","Replay":"Erneut abspielen","Current Time":"Aktueller Zeitpunkt","Duration":"Dauer","Remaining Time":"Verbleibende Zeit","Stream Type":"Streamtyp","LIVE":"LIVE","Loaded":"Geladen","Progress":"Status","Fullscreen":"Vollbild","Non-Fullscreen":"Vollbildmodus beenden","Mute":"Ton aus","Unmute":"Ton ein","Playback Rate":"Wiedergabegeschwindigkeit","Subtitles":"Untertitel","subtitles off":"Untertitel aus","Captions":"Untertitel","captions off":"Untertitel aus","Chapters":"Kapitel","You aborted the media playback":"Sie haben die Videowiedergabe abgebrochen.","A network error caused the media download to fail part-way.":"Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterstützt wird.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Die Videowiedergabe wurde entweder wegen eines Problems mit einem beschädigten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterstützt werden, abgebrochen.","No compatible source was found for this media.":"Für dieses Video wurde keine kompatible Quelle gefunden.","Play Video":"Video abspielen","Close":"Schließen","Modal Window":"Modales Fenster","This is a modal window":"Dies ist ein modales Fenster","This modal can be closed by pressing the Escape key or activating the close button.":"Durch Drücken der Esc-Taste bzw. Betätigung der Schaltfläche \\"Schließen\\" wird dieses modale Fenster geschlossen.",", opens captions settings dialog":", öffnet Einstellungen für Untertitel",", opens subtitles settings dialog":", öffnet Einstellungen für Untertitel",", selected":", ausgewählt","captions settings":"Untertiteleinstellungen","subtitles settings":"Untertiteleinstellungen","de
473scriptions settings":"Einstellungen für Beschreibungen","Close Modal Dialog":"Modales Fenster schließen","Descriptions":"Beschreibungen","descriptions off":"Beschreibungen aus","The media is encrypted and we do not have the keys to decrypt it.":"Die Entschlüsselungsschlüssel für den verschlüsselten Medieninhalt sind nicht verfügbar.",", opens descriptions settings dialog":", öffnet Einstellungen für Beschreibungen","Audio Track":"Tonspur","Text":"Schrift","White":"Weiß","Black":"Schwarz","Red":"Rot","Green":"Grün","Blue":"Blau","Yellow":"Gelb","Magenta":"Magenta","Cyan":"Türkis","Background":"Hintergrund","Window":"Fenster","Transparent":"Durchsichtig","Semi-Transparent":"Halbdurchsichtig","Opaque":"Undurchsichtig","Font Size":"Schriftgröße","Text Edge Style":"Textkantenstil","None":"Kein","Raised":"Erhoben","Depressed":"Gedrückt","Uniform":"Uniform","Dropshadow":"Schlagschatten","Font Family":"Schriftfamilie","Proportional Sans-Serif":"Proportionale Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportionale Serif","Monospace Serif":"Monospace Serif","Casual":"Zwanglos","Script":"Schreibschrift","Small Caps":"Small-Caps","Reset":"Zurücksetzen","restore all settings to the default values":"Alle Einstellungen auf die Standardwerte zurücksetzen","Done":"Fertig","Caption Settings Dialog":"Einstellungsdialog für Untertitel","Beginning of dialog window. Escape will cancel and close the window.":"Anfang des Dialogfensters. Esc bricht ab und schließt das Fenster.","End of dialog window.":"Ende des Dialogfensters.","Audio Player":"Audio-Player","Video Player":"Video-Player","Progress Bar":"Fortschrittsbalken","progress bar timing: currentTime={1} duration={2}":"{1} von {2}","Volume Level":"Lautstärke","{1} is loading.":"{1} wird geladen.","Seek to live, currently behind live":"Zur Live-Übertragung wechseln. Aktuell wird es nicht live abgespielt.","Seek to live, currently playing live":"Zur Live-Übertragung wechseln. Es wird aktuell live abgespielt.","Exit Picture-in-Picture":"Bild-im-Bild-Modus beenden","Picture-in-Picture":"Bild-im-Bild-Modus"}')},4670:e=>{"use strict";e.exports=JSON.parse('{"Play":"Aναπαραγωγή","Pause":"Παύση","Current Time":"Τρέχων χρόνος","Duration":"Συνολικός χρόνος","Remaining Time":"Υπολοιπόμενος χρόνος","Stream Type":"Τύπος ροής","LIVE":"ΖΩΝΤΑΝΑ","Loaded":"Φόρτωση επιτυχής","Progress":"Πρόοδος","Fullscreen":"Πλήρης οθόνη","Non-Fullscreen":"Έξοδος από πλήρη οθόνη","Mute":"Σίγαση","Unmute":"Kατάργηση σίγασης","Playback Rate":"Ρυθμός αναπαραγωγής","Subtitles":"Υπότιτλοι","subtitles off":"απόκρυψη υπότιτλων","Captions":"Λεζάντες","captions off":"απόκρυψη λεζάντων","Chapters":"Κεφάλαια","Close Modal Dialog":"Κλείσιμο παραθύρου","Descriptions":"Περιγραφές","descriptions off":"απόκρυψη περιγραφών","Audio Track":"Ροή ήχου","You aborted the media playback":"Ακυρώσατε την αναπαραγωγή","A network error caused the media download to fail part-way.":"Ένα σφάλμα δικτύου προκάλεσε την αποτυχία μεταφόρτωσης του αρχείου προς αναπαραγωγή.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Το αρχείο προς αναπαραγωγή δεν ήταν δυνατό να φορτωθεί είτε γιατί υπήρξε σφάλμα στον διακομιστή ή το δίκτυο, είτε γιατί ο τύπος του αρχείου δεν υποστηρίζεται.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Η αναπαραγωγή ακυρώθηκε είτε λόγω κατεστραμμένου αρχείου, είτε γιατί το αρχείο απαιτεί λειτουργίες που δεν υποστηρίζονται από το πρόγραμμα περιήγησης που χρησιμοποιείτε.","No compatible source was found for this media.":"Δεν βρέθηκε συμβατή πηγή αναπαραγωγής για το συγκεκριμένο αρχείο.","The media is encrypted and we do not have the keys to decrypt it."
473:"Το αρχείο προς αναπαραγωγή είναι κρυπτογραφημένo και δεν υπάρχουν τα απαραίτητα κλειδιά αποκρυπτογράφησης.","Play Video":"Αναπαραγωγή βίντεο","Close":"Κλείσιμο","Modal Window":"Aναδυόμενο παράθυρο","This is a modal window":"Το παρών είναι ένα αναδυόμενο παράθυρο","This modal can be closed by pressing the Escape key or activating the close button.":"Αυτό το παράθυρο μπορεί να εξαφανιστεί πατώντας το πλήκτρο Escape ή πατώντας το κουμπί κλεισίματος.",", opens captions settings dialog":", εμφανίζει τις ρυθμίσεις για τις λεζάντες",", opens subtitles settings dialog":", εμφανίζει τις ρυθμίσεις για τους υπότιτλους",", opens descriptions settings dialog":", εμφανίζει τις ρυθμίσεις για τις περιγραφές",", selected":", επιλεγμένο"}')},877:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Audio Player","Video Player":"Video Player","Play":"Play","Pause":"Pause","Replay":"Replay","Current Time":"Current Time","Duration":"Duration","Remaining Time":"Remaining Time","Stream Type":"Stream Type","LIVE":"LIVE","Seek to live, currently behind live":"Seek to live, currently behind live","Seek to live, currently playing live":"Seek to live, currently playing live","Loaded":"Loaded","Progress":"Progress","Progress Bar":"Progress Bar","progress bar timing: currentTime={1} duration={2}":"{1} of {2}","Fullscreen":"Fullscreen","Non-Fullscreen":"Exit Fullscreen","Mute":"Mute","Unmute":"Unmute","Playback Rate":"Playback Rate","Subtitles":"Subtitles","subtitles off":"subtitles off","Captions":"Captions","captions off":"captions off","Chapters":"Chapters","Descriptions":"Descriptions","descriptions off":"descriptions off","Audio Track":"Audio Track","Volume Level":"Volume Level","You aborted the media playback":"You aborted the media playback","A network error caused the media download to fail part-way.":"A network error caused the media download to fail part-way.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"The media could not be loaded, either because the server or network failed or because the format is not supported.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.","No compatible source was found for this media.":"No compatible source was found for this media.","The media is encrypted and we do not have the keys to decrypt it.":"The media is encrypted and we do not have the keys to decrypt it.","Play Video":"Play Video","Close":"Close","Close Modal Dialog":"Close Modal Dialog","Modal Window":"Modal Window","This is a modal window":"This is a modal window","This modal can be closed by pressing the Escape key or activating the close button.":"This modal can be closed by pressing the Escape key or activating the close button.",", opens captions settings dialog":", opens captions settings dialog",", opens subtitles settings dialog":", opens subtitles settings dialog",", opens descriptions settings dialog":", opens descriptions settings dialog",", selected":", selected","captions settings":"captions settings","subtitles settings":"subtitles settings","descriptions settings":"descriptions settings","Text":"Text","White":"White","Black":"Black","Red":"Red","Green":"Green","Blue":"Blue","Yellow":"Yellow","Magenta":"Magenta","Cyan":"Cyan","Background":"Background","Window":"Window","Transparent":"Transparent","Semi-Transparent":"Semi-Transparent","Opaque":"Opaque","Font Size":"Font Size","Text Edge Style":"Text Edge Style","None":"None","Raised":"Raised","Depressed":"Depressed","Uniform":"Uniform","Dropshadow":"Dropshadow","Font Family":"Font Family","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"Reset","restore all settings to the default values":"restore all settings to the default values","Done":"Done","Caption Settings Dialog":"Caption Settings Dialog","Beginning of dialog window. Escape will cancel and close the window.":"Beginning of dialog window. Escape will cancel and close the window.","End of dialog window.":"End of dialog window.","{1} is loading.":"{1} is loading.","Exit Picture-in-Picture":"Exit Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture"}')},2038:e=>{"use strict";e.exports=JSON.parse('{"Play":"Reproducir","Play Video":"Reproducir Vídeo","Pause":"Pausa","Current Time":"Tiempo reproducido","Duration":"Duración total","Remaining Time":"Tiempo restante","Stream Type":"Tipo de secuencia","LIVE":"DIRECTO","Loaded":"Cargado","Progress":"Progreso","Fullscreen":"Pantalla completa","Non-Fullscreen":"Pantalla no completa","Mute":"Silenciar","Unmute":"No silenciado","Playback Rate":"Velocidad de reproducción","Subtitles":"Subtítulos","subtitles off":"Subtítulos desactivados","Captions":"Subtítulos especiales","captions off":"Subtítulos especiales desactivados","Chapters":"Capítulos","You aborted the media playback":"Ha interrumpido la reproducción del vídeo.","A network error caused the media download to fail part-way.":"Un error de red ha interrumpido la descarga del vídeo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.","No compatible source was found for this media.":"No se ha encontrado ninguna fuente compatible con este vídeo.","Audio Player":"Reproductor de audio","Video Player":"Reproductor de video","Replay":"Volver a reproducir","Seek to live, currently behind live":"Buscar en vivo, actualmente demorado con respecto a la transmisión en vivo","Seek to live, currently playing live":"Buscar en vivo, actualmente reproduciendo en vivo","Progress Bar":"Barra de progreso","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Descriptions":"Descripciones","descriptions off":"descripciones desactivadas","Audio Track":"Pista de audio","Volume Level":"Nivel de volumen","The media is encrypted and we do not have the keys to decrypt it."
473:"El material audiovisual está cifrado y no tenemos las claves para descifrarlo.","Close":"Cerrar","Modal Window":"Ventana modal","This is a modal window":"Esta es una ventana modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta ventana modal puede cerrarse presionando la tecla Escape o activando el botón de cierre.",", opens captions settings dialog":", abre el diálogo de configuración de leyendas",", opens subtitles settings dialog":", abre el diálogo de configuración de subtítulos",", selected":", seleccionado","Close Modal Dialog":"Cierra cuadro de diálogo modal",", opens descriptions settings dialog":", abre el diálogo de configuración de las descripciones","captions settings":"configuración de leyendas","subtitles settings":"configuración de subtítulos","descriptions settings":"configuración de descripciones","Text":"Texto","White":"Blanco","Black":"Negro","Red":"Rojo","Green":"Verde","Blue":"Azul","Yellow":"Amarillo","Magenta":"Magenta","Cyan":"Cian","Background":"Fondo","Window":"Ventana","Transparent":"Transparente","Semi-Transparent":"Semitransparente","Opaque":"Opaca","Font Size":"Tamaño de fuente","Text Edge Style":"Estilo de borde del texto","None":"Ninguno","Raised":"En relieve","Depressed":"Hundido","Uniform":"Uniforme","Dropshadow":"Sombra paralela","Font Family":"Familia de fuente","Proportional Sans-Serif":"Sans-Serif proporcional","Monospace Sans-Serif":"Sans-Serif monoespacio","Proportional Serif":"Serif proporcional","Monospace Serif":"Serif monoespacio","Casual":"Informal","Script":"Cursiva","Small Caps":"Minúsculas","Reset":"Restablecer","restore all settings to the default values":"restablece todas las configuraciones a los valores predeterminados","Done":"Listo","Caption Settings Dialog":"Diálogo de configuración de leyendas","Beginning of dialog window. Escape will cancel and close the window.":"Comienzo de la ventana de diálogo. La tecla Escape cancelará la operación y cerrará la ventana.","End of dialog window.":"Final de la ventana de diálogo.","{1} is loading.":"{1} se está cargando.","Exit Picture-in-Picture":"Salir de imagen sobre imagen","Picture-in-Picture":"Imagen sobre imagen"}')},5570:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"پخش کننده صوت","Video Player":"پخش کننده ویدیو","Play":"پخش","Pause":"توقف","Replay":"پخش مجدد","Current Time":"زمان فعلی","Duration":"مدت","Remaining Time":"زمان باقی‌مانده","Stream Type":"نوع استریم","LIVE":"زنده","Seek to live, currently behind live":"پخش زنده، هم اکنون عقب تر از پخش زنده","Seek to live, currently playing live":"پخش زنده، در حال پخش زنده","Loaded":"بارگیری شده","Progress":"پیشرفت","Progress Bar":"نوار پیشرفت","progress bar timing: currentTime={1} duration={2}":"{1} از {2}","Fullscreen":"تمام‌صفحه","Non-Fullscreen":"غیر تمام‌صفحه","Mute":"بی صدا","Unmute":"صدادار","Playback Rate":"سرعت پخش","Subtitles":"زیرنویس ها","subtitles off":"بدون زیرنویس","Captions":"توضیحات","captions off":"بدون توضیحات","Chapters":"بخش‌ها","Descriptions":"توصیفات","descriptions off":"بدون توصیفات","Audio Track":"ترَک صوتی","Volume Level":"سطح صدا","You aborted the media playback":"شما پخش رسانه را قطع نمودید","A network error caused the media download to fail part-way.":"وقوع مشکلی در شبکه باعث اختلال در دانلود رسانه شد.","The media could not be loaded, either because the server or network failed or because the format is not supported.":".رسانه قابل بارگیری نیست. ممکن است مشکلی در شبکه یا سرور رخ داده باشد یا فرمت رسانه در دستگاه شما پشتیبانی نشود","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"پخش  رسانه به علت اشکال در آن یا عدم پشتیبانی مرورگر شما قطع شد.","No compatible source was found for this media.":"هیچ منبع سازگاری برای پخش این رسانه پیدا نشد.","The media is encrypted and we do not have the keys to decrypt it."
473:"این رسانه رمزنگاری شده است و کلیدهای رمزگشایی آن موجود نیست.","Play Video":"پخش ویدیو","Close":"بستن","Close Modal Dialog":"بستن پنجره","Modal Window":"پنجره محاوره","This is a modal window":"این پنجره قابل بستن است","This modal can be closed by pressing the Escape key or activating the close button.":"این پنجره با کلید Escape یا دکمه بستن قابل بسته شدن میباشد.",", opens captions settings dialog":", تنظیمات توضیجات را باز میکند",", opens subtitles settings dialog":", تنظیمات زیرنویس را باز میکند",", opens descriptions settings dialog":", تنظیمات توصیفات را باز میکند",", selected":"، انتخاب شد","captions settings":"تنظیمات توضیحات","subtitles settings":"تنظیمات زیرنویس","descriptions settings":"تنظیمات توصیفات","Text":"متن","White":"سفید","Black":"سیاه","Red":"قرمز","Green":"سبز","Blue":"آبی","Yellow":"زرد","Magenta":"ارغوانی","Cyan":"فیروزه‌ای","Background":"پس زمینه","Window":"پنجره","Transparent":"شفاف","Semi-Transparent":"نیمه شفاف","Opaque":"مات","Font Size":"اندازه قلم","Text Edge Style":"سبک لبه متن","None":"هیچ","Raised":"برجسته","Depressed":"فرورفته","Uniform":"یکنواخت","Dropshadow":"سایه دار","Font Family":"نوع قلم","Proportional Sans-Serif":"Sans-Serif متناسب","Monospace Sans-Serif":"Sans-Serif هم عرض","Proportional Serif":"Serif متناسب","Monospace Serif":"Serif هم عرض","Casual":"فانتزی","Script":"دست خط","Small Caps":"حروف بزرگ کوچک","Reset":"تنظیم مجدد","restore all settings to the default values":"بازنشانی همه تنظیمات به مقادیر پیش‌فرض","Done":"انجام","Caption Settings Dialog":"پنجره تنظیمات توضیحات","Beginning of dialog window. Escape will cancel and close the window.":"شروع پنجره محاوره‌ای. دکمه Escape عملیات را لغو کرده و پنجره را میبندد.","End of dialog window.":"پایان پنجره محاوره‌ای.","{1} is loading.":"{1} در حال بارگیری است.","Exit Picture-in-Picture":"خروج از حالت تصویر در تصویر","Picture-in-Picture":"تصویر در تصویر"}')},8585:e=>{"use strict";e.exports=JSON.parse('{"Play":"Toisto","Pause":"Tauko","Current Time":"Tämänhetkinen aika","Duration":"Kokonaisaika","Remaining Time":"Jäljellä oleva aika","Stream Type":"Lähetystyyppi","LIVE":"LIVE","Loaded":"Ladattu","Progress":"Edistyminen","Fullscreen":"Koko näyttö","Non-Fullscreen":"Koko näyttö pois","Mute":"Ääni pois","Unmute":"Ääni päällä","Playback Rate":"Toistonopeus","Subtitles":"Tekstitys","subtitles off":"Tekstitys pois","Captions":"Tekstitys","captions off":"Tekstitys pois","Chapters":"Kappaleet","You aborted the media playback":"Olet keskeyttänyt videotoiston.","A network error caused the media download to fail part-way.":"Verkkovirhe keskeytti videon latauksen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Videon lataus ei onnistunut joko palvelin- tai verkkovirheestä tai väärästä formaatista johtuen.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Videon toisto keskeytyi, koska media on vaurioitunut tai käyttää käyttää toimintoja, joita selaimesi ei tue.","No compatible source was found for this media.":"Tälle videolle ei löytynyt yhteensopivaa lähdettä."}')},2773:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lecteur audio","Video Player":"Lecteur vidéo","Play":"Lecture","Pause":"Pause","Replay":"Revoir","Current Time":"Temps actuel","Duration":"Durée","Remaining Time":"Temps restant","Stream Type":"Type de flux","LIVE":"EN DIRECT","Loaded":"Chargé","Progress":"Progression","Progress Bar":"Barre de progression","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Plein écran","Non-Fullscreen":"Fenêtré","Mute":"Sourdine","Unmute":"Son activé","Playback Rate":"Vitesse de lecture","Subtitles":"Sous-titres","subtitles off":"Sous-titres désactivés","Captions":"Sous-titres transcrits","captions off":"Sous-titres transcrits désactivés","Chapters":"Chapitres","Descriptions":"Descriptions","descriptions off":"descriptions désactivées","Audio Track":"Piste audio","Volume Level":"Niveau de volume","You aborted the media playback":"Vous avez interrompu la lecture de la vidéo.","A network error caused the media download to fail part-way.":"Une erreur de réseau a interrompu le téléchargement de la vidéo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Cette vidéo 
473n\'a pas pu être chargée, soit parce que le serveur ou le réseau a échoué ou parce que le format n\'est pas reconnu.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La lecture de la vidéo a été interrompue à cause d\'un problème de corruption ou parce que la vidéo utilise des fonctionnalités non prises en charge par votre navigateur.","No compatible source was found for this media.":"Aucune source compatible n\'a été trouvée pour cette vidéo.","The media is encrypted and we do not have the keys to decrypt it.":"Le média est chiffré et nous n\'avons pas les clés pour le déchiffrer.","Play Video":"Lire la vidéo","Close":"Fermer","Close Modal Dialog":"Fermer la boîte de dialogue modale","Modal Window":"Fenêtre modale","This is a modal window":"Ceci est une fenêtre modale","This modal can be closed by pressing the Escape key or activating the close button.":"Ce modal peut être fermé en appuyant sur la touche Échap ou activer le bouton de fermeture.",", opens captions settings dialog":", ouvrir les paramètres des sous-titres transcrits",", opens subtitles settings dialog":", ouvrir les paramètres des sous-titres",", opens descriptions settings dialog":", ouvrir les paramètres des descriptions",", selected":", sélectionné","captions settings":"Paramètres des sous-titres transcrits","subtitles settings":"Paramètres des sous-titres","descriptions settings":"Paramètres des descriptions","Text":"Texte","White":"Blanc","Black":"Noir","Red":"Rouge","Green":"Vert","Blue":"Bleu","Yellow":"Jaune","Magenta":"Magenta","Cyan":"Cyan","Background":"Arrière-plan","Window":"Fenêtre","Transparent":"Transparent","Semi-Transparent":"Semi-transparent","Opaque":"Opaque","Font Size":"Taille des caractères","Text Edge Style":"Style des contours du texte","None":"Aucun","Raised":"Élevé","Depressed":"Enfoncé","Uniform":"Uniforme","Dropshadow":"Ombre portée","Font Family":"Famille de polices","Proportional Sans-Serif":"Polices à chasse variable sans empattement (Proportional Sans-Serif)","Monospace Sans-Serif":"Polices à chasse fixe sans empattement (Monospace Sans-Serif)","Proportional Serif":"Polices à chasse variable avec empattement (Proportional Serif)","Monospace Serif":"Polices à chasse fixe avec empattement (Monospace Serif)","Casual":"Manuscrite","Script":"Scripte","Small Caps":"Petites capitales","Reset":"Réinitialiser","restore all settings to the default values":"Restaurer tous les paramètres aux valeurs par défaut","Done":"Terminé","Caption Settings Dialog":"Boîte de dialogue des paramètres des sous-titres transcrits","Beginning of dialog window. Escape will cancel and close the window.":"Début de la fenêtre de dialogue. La touche d\'échappement annulera et fermera la fenêtre.","End of dialog window.":"Fin de la fenêtre de dialogue.","Exit Picture-in-Picture ":"Quitter le mode image dans l\'image","Picture-in-Picture ":"Image dans l\'image","{1} is loading.":"{1} en cours de chargement."}')},1858:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Cluicheadair fuaime","Video Player":"Cluicheadair video","Play":"Cluich","Pause":"Cuir ’na stad","Replay":"Cluich a-rithist","Current Time":"An ùine làithreach","Duration":"Faide","Remaining Time":"An ùine air fhàgail","Stream Type":"Seòrsa an t-sruthaidh","LIVE":"BEÒ","Seek to live, currently behind live":"A’ sireadh sruth beò ’s air dheireadh","Seek to live, currently playing live":"A’ sireadh sruth beò ’s ‘ga chluich","Loaded":"Air a luchdadh","Progress":"Adhartas","Progress Bar":"Bàr adhartais","progress bar timing: currentTime={1} duration={2}":"{1} à {2}","Fullscreen":"Làn-sgrìn","Non-Fullscreen":"Fàg modh làn-sgrìn","Mute":"Mùch","Unmute":"Dì-mhùch","Playback Rate":"Reat na cluiche","Subtitles":"Fo-thiotalan","subtitles off":"fo-thiotalan dheth","Captions":"Caipseanan","captions off":"caipseanan dheth","Chapters":"Caibideil","Descriptions":"Tuairisgeulan","descriptions off":"tuairisgeulan dheth","Audio Track":"Traca fuaime","Volume Level":"Àirde na fuaime","You aborted the media playback":"Sguir thu de chluich a’ mheadhain","A network error caused the media download to fail part-way.":"Cha deach leinn an còrr dhen mheadhan a luchdadh a-nuas ri linn mearachd lìonraidh.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Cha b’ urrainn dhuinn am meadhan a luchdadh – dh’fhaoidte gun do dh’fhàillig leis an fhrithealaiche no an lìonra no nach cuir sinn taic ris an fhòrmat.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Sguir sinn de chluich a’ mheadhain – dh’fhaoidte gu bheil e coirbte no gu bhe
473il gleus aig a’ mheadhan nach cuir am brabhsair taic ris.","No compatible source was found for this media.":"Cha ceach tùs co-chòrdail a lorg airson a’ mheadhain seo.","The media is encrypted and we do not have the keys to decrypt it.":"Tha am meadhan crioptaichte ’s chan eil iuchair dì-chrioptachaidh againn dha.","Play Video":"Cluich video","Close":"Dùin","Close Modal Dialog":"Dùin an còmhradh","Modal Window":"Uinneag mòdach","This is a modal window":"Seo uinneag mòdach","This modal can be closed by pressing the Escape key or activating the close button.":"’S urrainn dhut seo a dhùnadh leis an iuchair Escape no leis a’ phutan dùnaidh.",", opens captions settings dialog":", fosglaidh e còmhradh nan roghainnean",", opens subtitles settings dialog":", fosglaidh e còmhradh nam fo-thiotalan",", opens descriptions settings dialog":", fosglaidh e còmhradh roghainnean nan tuairisgeulan",", selected":", air a thaghadh","captions settings":"roghainnean nan caipseanan","subtitles settings":"roghainnean nam fo-thiotalan","descriptions settings":"roghainnean 
473nan tuairisgeulan","Text":"Teacsa","White":"Geal","Black":"Dubh","Red":"Dearg","Green":"Uaine","Blue":"Gorm","Yellow":"Buidhe","Magenta":"Magenta","Cyan":"Saidhean","Background":"Cùlaibh","Window":"Uinneag","Transparent":"Trìd-shoilleir","Semi-Transparent":"Leth-thrìd-shoilleir","Opaque":"Trìd-dhoilleir","Font Size":"Meud a’ chrutha-chlò","Text Edge Style":"Stoidhle oir an teacsa","None":"Chan eil gin","Raised":"Àrdaichte","Depressed":"Air a bhrùthadh","Uniform":"Cunbhalach","Dropshadow":"Sgàil","Font Family":"Teaghlach a’ chrutha-chlò","Proportional Sans-Serif":"Sans-serif co-rèireach","Monospace Sans-Serif":"Sans-serif aon-leud","Proportional Serif":"Serif co-rèireach","Monospace Serif":"Serif aon-leud","Casual":"Fuasgailte","Script":"Sgriobt","Small Caps":"Ceann-litrichean beaga","Reset":"Ath-shuidhich","restore all settings to the default values":"till dhan a h-uile bun-roghainn","Done":"Deiseil","Caption Settings Dialog":"Còmhradh roghainnean nan caipseanan","Beginning of dialog window. Escape will cancel and close the window.":"Toiseach uinneag còmhraidh. Sguiridh Escape dheth ’s dùinidh e an uinneag","End of dialog window.":"Deireadh uinneag còmhraidh.","{1} is loading.":"Tha {1} ’ga luchdadh."}')},5193:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Reprodutor de son","Video Player":"Reprodutor de vídeo","Play":"Reproducir","Pause":"Pausa","Replay":"Repetir","Current Time":"Tempo reproducido","Duration":"Duración","Remaining Time":"Tempo restante","Stream Type":"Tipo de fluxo","LIVE":"EN DIRECTO","Seek to live, currently behind live":"Buscando directo, actualmente tras en directo","Seek to live, currently playing live":"Buscando directo, actualmente reproducindo en directo","Loaded":"Cargado","Progress":"Progresión","Progress Bar":"Barra de progreso","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Pantalla completa","Non-Fullscreen":"Xanela","Mute":"Silenciar","Unmute":"Son activado","Playback Rate":"Velocidade de reprodución","Subtitles":"Subtítulos","subtitles off":"subtítulos desactivados","Captions":"Subtítulos para xordos","captions off":"subtítulos para xordos desactivados","Chapters":"Capítulos","Descriptions":"Descricións","descriptions off":"descricións desactivadas","Audio Track":"Pista de son","Volume Level":"Nivel do volume","You aborted the media playback":"Vostede interrompeu a reprodución do medio.","A network error caused the media download to fail part-way.":"Un erro de rede interrompeu a descarga do medio.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Non foi posíbel cargar o medio por mor dun fallo de rede ou do servidor ou porque o formato non é compatíbel.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Interrompeuse a reprodución do medio por mor dun problema de estragamento dos datos ou porque o medio precisa funcións que o seu navegador non ofrece.","No compatible source was found for this media.":"Non se atopou ningunha orixe compatíbel con este vídeo.","The media is encrypted and we do not have the keys to decrypt it.":"O medio está cifrado e non temos as chaves para descifralo .","Play Video":"Reproducir vídeo","Close":"Pechar","Close Modal Dialog":"Pechar a caixa de diálogo modal","Modal Window":"Xanela modal","This is a modal window":"Esta é unha xanela modal","This modal can be closed by pressing the Escape key or activating the close button.":"Este diálogo modal pódese pechar premendo a tecla Escape ou activando o botón de pechar.",", opens captions settings dialog":", abre o diálogo de axustes dos subtítulos para xordos",", opens subtitles settings dialog":", abre o diálogo de axustes dos subtítulos",", opens descriptions settings dialog":", abre o diálogo de axustes das descricións",", selected":", séleccionado","captions settings":"axustes dos subtítulos para xordos","subtitles settings":"axustes dos subtítulos","descriptions settings":"axustes das descricións","Text":"Texto","White":"Branco","Black":"Negro","Red":"Vermello","Green":"Verde","Blue":"Azul","Yellow":"Marelo","Magenta":"Maxenta","Cyan":"Cian","Backgroun
473d":"Fondo","Window":"Xanela","Transparent":"Transparente","Semi-Transparent":"Semi-transparente","Opaque":"Opaca","Font Size":"Tamaño das letras","Text Edge Style":"Estilo do bordos do texto","None":"Ningún","Raised":"Érguida","Depressed":"Caída","Uniform":"Uniforme","Dropshadow":"Sombra caída","Font Family":"Familia de letras","Proportional Sans-Serif":"Sans-Serif proporcional","Monospace Sans-Serif":"Sans-Serif monoespazo (caixa fixa)","Proportional Serif":"Serif proporcional","Monospace Serif":"Serif monoespazo (caixa fixa)","Casual":"Manuscrito","Script":"Itálica","Small Caps":"Pequenas maiúsculas","Reset":"Reiniciar","restore all settings to the default values":"restaurar todos os axustes aos valores predeterminados","Done":"Feito","Caption Settings Dialog":"Diálogo de axustes dos subtítulos para xordos","Beginning of dialog window. Escape will cancel and close the window.":"Inicio da xanela de diálogo. A tecla Escape cancelará e pechará a xanela.","End of dialog window.":"Fin da xanela de diálogo.","{1} is loading.":"{1} está a cargar."}')},5097:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"נַגָּן שמע","Video Player":"נַגָּן וידאו","Play":"נַגֵּן","Pause":"השהה","Replay":"נַגֵּן שוב","Current Time":"זמן נוכחי","Duration":"זמן כולל","Remaining Time":"זמן נותר","Stream Type":"סוג Stream","LIVE":"שידור חי","Loaded":"נטען","Progress":"התקדמות","Progress Bar":"סרגל התקדמות","progress bar timing: currentTime={1} duration={2}":"{1} מתוך {2}","Fullscreen":"מסך מלא","Non-Fullscreen":"מסך לא מלא","Mute":"השתק","Unmute":"בטל השתקה","Playback Rate":"קצב ניגון","Subtitles":"כתוביות","
473subtitles off":"כתוביות כבויות","Captions":"כיתובים","captions off":"כיתובים כבויים","Chapters":"פרקים","Descriptions":"תיאורים","descriptions off":"תיאורים כבויים","Audio Track":"רצועת שמע","Volume Level":"רמת ווליום","You aborted the media playback":"ביטלת את השמעת המדיה","A network error caused the media download to fail part-way.":"שגיאת רשת גרמה להורדת המדיה להיכשל באמצע.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"לא ניתן לטעון את המדיה, או מכיוון שהרשת או השרת כשלו או מכיוון שהפורמט אינו נתמך.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"השמעת המדיה בוטלה בשל בעית השחטת מידע או מכיוון שהמדיה עשתה שימוש בתכונות שהדפדפן שלך לא תמך בהן.","No compatible source was found for this media.":"לא נמצא מקור תואם עבור מדיה זו.","The media is encrypted and we do not have the keys to decrypt it.":"המדיה מוצפנת ואין בידינו את המפתח כדי לפענח אותה.","Play Video":"נַגֵּן וידאו","Close":"סְגוֹר","Close Modal Dialog":"סְגוֹר דו-שיח מודאלי","Modal Window":"חלון מודאלי","This is a modal window":"זהו חלון מודאלי","This modal can be closed by pressing the Escape key or activating the close button.":"ניתן לסגור חלון מודאלי זה ×¢\\"י לחיצה על כפתור ה-Escape או הפעלת כפתור הסגירה.",", opens captions settings dialog":", פותח חלון הגדרות כיתובים",", opens subtitles settings dialog":", פותח חלון הגדרות כתוביות",", opens descriptions settings dialog":", פותח חלון הגדרות תיאורים",", selected":", נבחר/ו","captions settings":"הגדרות כיתובים","subtitles settings":"הגדרות כתוביות","descriptions settings":"הגדרות תיאורים","Text":"טקסט","White":"לבן","Black":"שחור","Red":"אדום","Green":"ירוק","Blue":"כחול","Yellow":"צהוב","Magenta":"מַגֶ\'נטָה","Cyan":"טורקיז","Background":"רקע","Window":"חלון","Transparent":"שקוף","Semi-Transparent":"שקוף למחצה","Opaque":"אָטוּם","Font Size":"גודל גופן","Text Edge Style":"סגנון קצוות טקסט","None":"ללא","Raised":"מורם","Depressed":"מורד","Uniform":"אחיד","Dropshadow":"הטלת צל","Font Family":"משפחת גופן","Proportional Sans-Serif":"פרופורציוני וללא תגיות (Proportional Sans-Serif)","Monospace Sans-Serif":"ברוחב אחיד וללא תגיות (Monospace Sans-Serif)","Proportional Serif":"פרופורציוני ועם תגיות (Proportional Serif)","Monospace Serif":"ברוחב אחיד ועם תגיות (Monospace Serif)","Casual":"אַגָבִי","Script":"תסריט","Small Caps":"אותיות קטנות","Reset":"אִפּוּס","restore all settings to the default values":"שחזר את כל ההגדרות לערכי ברירת המחדל","Done":"בוצע","Caption Settings Dialog":"דו-שיח הגדרות כיתובים","Beginning of dialog window. Escape will cancel and close the window.":"תחילת חלון דו-שיח. Escape יבטל ויסגור את החלון","End of dialog window.":"סוף חלון דו-שיח."}')},2264:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"ऑडियो प्लेयर","Video Player":"वीडियो प्लेयर","Play":"चलाएँ","Pause":"रोके","Replay":"फिर से चलाएँ","Current Time":"वर्तमान समय","Duration":"अवधि","Remaining Time":"शेष समय","Stream Type":"स्ट्रीम प्रकार","LIVE":"लाइव","Seek to live, currently behind live":"छोड़कर लाइव प्रसारण पर आगे बढ़ें, अभी लाइव प्रसारण से पीछे हैं","Seek to live, currently playing live":"छोड़कर लाइव प्रसारण पर आगे बढ़ें, अभी लाइव चल रहा है","Loaded":"लोड हुआ","Progress":"प्रगति","Progress Bar":"प्रोगेस बार","progress bar timing: currentTime={1} duration={2}":"{2} में से {1}","Fullscreen":"फ़ुल स्क्रीन","Non-Fullscreen":"फ़ुल स्क्रीन से बाहर निकलें","Mute":"म्यूट करें","Unmute":"अनम्यूट करें","Playback Rate":"चलाने की दर","Subtitles":"उपशीर्षक","subtitles off":"उपशीर्षक बंद","Captions":"कैप्शन","captions off":"कैप्शन बंद","Chapters":"अध्याय","Descriptions":"विवरण","descriptions off":"विवरण बंद","Audio Track":"ऑडियो ट्रैक","Volume Level":"वॉल्यूम स्तर","You aborted the media playback":"आपने मीडिया प्लेबैक को रोक दिया","A network error caused the media download to fail part-way.":"एक नेटवर्क त्à
473¤°à¥à¤Ÿà¤¿ के कारण मीडिया डाउनलोड आंशिक रूप से विफल हो गया।","The media could not be loaded, either because the server or network failed or because the format is not supported.":"मीडिया लोड नहीं किया जा सका, या तो सर्वर या नेटवर्क विफल होने के कारण या प्रारूप समर्थित नहीं होने के कारण।","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"मीडिया प्लेबैक निरस्त कर दिया गया, कारण: दूषण की समस्या या मीडिया ने उन सुविधाओं का उपयोग किया था जिनका आपके ब्राउज़र ने समर्थन नहीं किया।","No compatible source was found for this media.":"इस मीडिया के लिए कोई अनुकूल स्रोत नहीं मिला।.","The media is encrypted and we do not have the keys to decrypt it.":"मीडिया एन्क्रिप्टेड है और हमारे पास इसे डिक्रिप्ट करने की चाबी नहीं है।","Play Video":"वीडियो चलाएं","Close":"बंद करे","Close Modal Dialog":"मोडल डायलॉग बंद करें","Modal Window":"मोडल विंडो","This is a modal window":"यह एक मोडल विंडो है","This modal can be closed by pressing the Escape key or activating the close button.":"इस मोडल को एस्केप कुंजी दबाकर या बंद करें बटन को सक्रिय करके बंद किया जा सकता है।",", opens captions settings dialog":", कैप्शन सेटिंग डायलॉग खोलता है",", opens subtitles settings dialog":", उपशीर्षक सेटिंग्स संवाद खोलता है",", opens descriptions settings dialog":", विवरण सेटिंग संवाद खोलता है",", selected":", चुना गया","captions settings":"कैप्शन सेटिंग","subtitles settings":"उपशीर्षक सेटिंग","descriptions settings":"विवरण सेटिंग","Text":"टेक्स्ट","White":"सफेद","Black":"काला","Red":"लाल","Green":"हरा","Blue":"नीला","Yellow":"पीला","Magenta":"मैजेंटा","Cyan":"सियान","Background":"बैकग्राउंड","Window":"विंडो","Transparent":"पारदर्शी","Semi-Transparent":"अर्द्ध पारदर्शी","Opaque":"अपारदर्शी","Font Size":"फ़ॉन्ट आकार","Text Edge Style":"टेक्स्ट एज स्टाइल","None":"कोई नहीं","Raised":"उठा हुआ","Depressed":"उदास","Uniform":"वर्दी","Dropshadow":"परछाई","Font Family":"फॉण्ट परिवार","Proportional Sans-Serif":"प्रोपोरशनल साँस-सेरिफ","Monospace Sans-Serif":"मोनोस्पास साँस-सेरिफ","Proportional Serif":"प्रोपोरशनल सेरिफ","Monospace Serif":"मोनोस्पास सेरिफ","Casual":"आकस्मिक","Script":"स्क्रिप्ट","Small Caps":"छोटे अक्षर","Reset":"रीसेट करें","restore all settings to the default values":"सभी सेटिंग्स को डिफ़ॉल्ट मानों पर पुनर्स्थापित करें","Done":"पूर्ण","Caption Settings Dialog":"कैप्शन सेटिंग्स डायलॉग","Beginning of dialog window. Escape will cancel and close the window.":"डायलॉग विंडो की शुरुआत। एस्केप विंडो को रद्द और बंद कर देगा।","End of dialog window.":"संवाद विंडो का अंत।","{1} is loading.":"{1} लोड हो रहा है।","Exit Picture-in-Picture":"पिक्चर-इन-पिक्चर से बाहर निकलें","Picture-in-Picture":"पिक्चर-इन-पिक्चर"}')},5522:e=>{"use strict";e.exports=JSON.parse('{"Play":"Pusti","Pause":"Pauza","Current Time":"Trenutno vrijeme","Duration":"Vrijeme trajanja","Remaining Time":"Preostalo vrijeme","Stream Type":"Način strimovanja","LIVE":"UŽIVO","Loaded":"Učitan","Progress":"Progres","Fullscreen":"Puni ekran","Non-Fullscreen":"Mali ekran","Mute":"PriguÅ¡en","Unmute":"Ne-priguÅ¡en","Playback Rate":"Stopa reprodukcije","Subt
473itles":"Podnaslov","subtitles off":"Podnaslov deaktiviran","Captions":"Titlovi","captions off":"Titlovi deaktivirani","Chapters":"Poglavlja","You aborted the media playback":"Isključili ste reprodukciju videa.","A network error caused the media download to fail part-way.":"Video se prestao preuzimati zbog greške na mreži.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video se ne može reproducirati zbog servera, greške u mreži ili je format ne podržan.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Reprodukcija videa je zaustavljenja zbog greške u formatu ili zbog verzije vašeg pretraživača.","No compatible source was found for this media.":"Nije nađen nijedan kompatibilan izvor ovog videa."}')},8609:e=>{"use strict";e.exports=JSON.parse('{"Play":"Lejátszás","Pause":"Szünet","Current Time":"Aktuális időpont","Duration":"Hossz","Remaining Time":"Hátralévő idő","Stream Type":"Adatfolyam típusa","LIVE":"ÉLŐ","Loaded":"Betöltve","Progress":"Állapot","Fullscreen":"Teljes képernyő","Non-Fullscreen":"Normál méret","Mute":"Némítás","Unmute":"Némítás kikapcsolva","Playback Rate":"Lejátszási sebesség","Subt
473itles":"Feliratok","subtitles off":"Feliratok kikapcsolva","Captions":"Magyarázó szöveg","captions off":"Magyarázó szöveg kikapcsolva","Chapters":"Fejezetek","You aborted the media playback":"Leállította a lejátszást","A network error caused the media download to fail part-way.":"Hálózati hiba miatt a videó részlegesen töltődött le.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"A videó nem tölthető be hálózati vagy kiszolgálói hiba miatt, vagy a formátuma nem támogatott.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A lejátszás adatsérülés miatt leállt, vagy a videó egyes tulajdonságait a böngészője nem támogatja.","No compatible source was found for this media.":"Nincs kompatibilis forrás ehhez a videóhoz.","Audio Player":"Audio lejátszó","Video Player":"Videó lejátszó","Replay":"Visszajátszás","Descriptions":"Leírások","descriptions off":"leírások kikapcsolva","Audio Track":"Hangsáv","Volume Level":"Hangerő","Play Video":"Videó lejátszása","Close":"Bezárás","Text":"Szöveg","White":"Fehér","Black":"Fekete","Red":"Piros","Green":"Zöld","Blue":"Kék","Yellow":"Sárga","Background":"Háttér","Window":"Ablak","Transparent":"Átlátszó","Semi-Transparent":"Félig átlátszó","Opaque":"Áttetsző","Font Size":"Betűméret","Font Family":"Betűtípus","Done":"Kész","Picture-in-Picture":"Kép a képben","Exit Picture-in-Picture":"Kilépés kép a képben módból","{1} is loading.":"{1} betöltése.","Reset":"Visszaállítás","restore all settings to the default values":"összes beállítás visszaállítása az alapértelmezett értékekre","The media is encrypted and we do not have the keys to decrypt it.":"A média titkosítva van és nincsenek kulcsok a visszafejtéshez.","Close Modal Dialog":"Felugró ablak bezárása","Modal Window":"Felugró ablak","This modal can be closed by pressing the Escape key or activating the close button.":"Ezt a felugró ablakot az Escape gomb megnyomásával vagy a bezáró gomb aktiválásával lehet bezárni.",", selected":", kiválasztva","descriptions settings":"leírások beállítása","Text Edge Style":"Szövegél stílus","This is a modal window":"Ez egy felugró ablak","Cyan":"Cián","Dropshadow":"Árnyék","End of dialog window.":"Párbeszédablak vége.","Progress Bar":"Folyamatjelző sáv","Beginning of dialog window. Escape will cancel and close the window.":"Párbeszédablak eleje. Az Escape gomb befejezi és bezárja az ablakot.","Caption Settings Dialog":"Feliratbeállítások párbeszédablak",", opens descriptions settings dialog":", megnyitja a leírások beállításainak párbeszédablakját",", opens captions settings dialog":", megnyitja a magyarázó szövegek beállításainak párbeszédablakját",", opens subtitles settings dialog":", megnyitja a feliratok beállításainak párbeszédablakját","Seek to live, currently behind live":"Élő adáshoz tekerés, jelenleg az élő adás mögött van","Seek to live, currently playing live":"Élő adáshoz tekerés, jelenleg az élő adásnál van","progress bar timing: currentTime={1} duration={2}":"{1} / {2}","Magenta":"Lila","Script":"Script","Casual":"Casual","Monospace Serif":"Monospace Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Sans-Serif":"Proportional Sans-Serif","Proportional Serif":"Proportional Serif","Uniform":"Uniform","Small Caps":"Kiskapitális","None":"Egyik sem","captions settings":"magyarázó szövegek beállításai","subtitles settings":"feliratok beállításai","Raised":"Emelt","Depressed":"Nyomott"}')},8222:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lettore audio","Video Player":"Lettore video","Play":"Play","Pause":"Pausa","Replay":"Replay","Current Time":"Orario attuale","Duration":"Durata","Remaining Time":"Tempo rimanente","Stream Type":"Tipo del Streaming","LIVE":"LIVE","Loaded":"Caricato","Progress":"Stato","Progress Bar":"Barra di avanzamento","progress bar timing: currentTime={1} duration={2}":"{1} di {2}","Fullscreen":"Schermo intero","Non-Fullscreen":"Chiudi Schermo intero","Mute":"Muto","Unmute":"Audio","Playback Rate":"Tasso di riproduzione","Subt
473itles":"Sottotitoli","subtitles off":"Senza sottotitoli","Captions":"Sottotitoli non udenti","captions off":"Senza sottotitoli non udenti","Chapters":"Capitolo","Descriptions":"Descrizioni","descriptions off":"Descrizioni disattivate","Audio Track":"Traccia audio","Volume Level":"Livello del volume","You aborted the media playback":"La riproduzione del filmato è stata interrotta.","A network error caused the media download to fail part-way.":"Il download del filmato è stato interrotto a causa di un problema rete.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.","No compatible source was found for this media.":"Non ci sono fonti compatibili per questo filmato.","The media is encrypted and we do not have the keys to decrypt it.":"Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.","Play Video":"Riprodurre il video","Close":"Chiudere","Close Modal Dialog":"Chiudere la finestra di dialogo","Modal Window":"Finestra di dialogo","This is a modal window":"Questa è una finestra di dialogo","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",", opens captions settings dialog":", aprire i parametri della trascrizione dei sottotitoli",", opens subtitles settings dialog":", aprire i parametri dei sottotitoli",", opens descriptions settings dialog":", aprire i parametri delle descrizioni",", selected":", selezionato","captions settings":"Parametri della trascrizione dei sottotitoli","subtitles settings":"Parametri dei sottotitoli","descriptions settings":"Parametri delle descrizioni","Text":"Testo","White":"Bianco","Black":"Nero","Red":"Rosso","Green":"Verde","Blue":"Blu","Yellow":"Giallo","Magenta":"Magenta","Cyan":"Ciano","Background":"Sfondo","Window":"Finestra","Transparent":"Trasparente","Semi-Transparent":"Semi-Trasparente","Opaque":"Opaco","Font Size":"Dimensione dei caratteri","Text Edge Style":"Stile dei bordi del testo","None":"Nessuno","Uniform":"Uniforme","Dropshadow":"Ombreggiatura","Font Family":"Famiglia di caratteri","Proportional Sans-Serif":"Carattere a spaziatura variabile senza grazie (Proportional Sans-Serif)","Monospace Sans-Serif":"Carattere a spaziatura fissa senza grazie (Monospace Sans-Serif)","Proportional Serif":"Carattere a spaziatura variabile con grazie (Proportional Serif)","Monospace Serif":"Carattere a spaziatura fissa con grazie (Monospace Serif)","Small Caps":"Maiuscoletto","Reset":"Reinizializzare","restore all settings to the default values":"Ripristinare i valori predefiniti per tutti i parametri","Done":"Operazione completata","Caption Settings Dialog":"Finestra di dialogo dei parametri della trascrizione dei sottotitoli","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.","End of dialog window.":"Fine della finestra di dialogo.","{1} is loading.":"{1} in fase di caricamento.","Exit Picture-in-Picture":"Uscire dalla modalità Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture"}')},1492:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"オーディオプレイヤー","Video Player":"ビデオプレイヤー","Play":"再生","Pause":"一時停止","Replay":"もう一度見る","Current Time":"現在の時間","Duration":"長さ","Remaining Time":"残りの時間","Stream Type":"ストリームの種類","LIVE":"ライブ","Loaded":"ロード済み","Progress":"進行状況","Progress Bar":"シークバー","progress bar timing: currentTime={1} duration={2}":"{2}の{1}","Fullscreen":"フルスクリーン","Non-Fullscreen":"フルスクリーン以外","Mute":"ミュート","Unmute":"ミュート解除","Playback Rate":"再生レート","Subtitles":"サブタイトル","subtitles off":"サブタイトル オフ","Captions":"キャプション","captions off":"キャプション オフ","Chapters":"チャプター","Descriptions":"ディスクリプション","descriptions off":"ディスクリプションオフ","Audio Track":"音声トラック","Volume Level":"ボリュームレベル","You aborted the media playback":"動画再生を中止しました","A network error caused the media download to fail part-way.":"ネットワーク エラーにより動画のダウンロードが途中で失敗しました","The media could not be loaded, either because the server or network failed or because the format is not supported.":"サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました","No compatible source was found for this media.":"この
473動画に対して互換性のあるソースが見つかりませんでした","The media is encrypted and we do not have the keys to decrypt it.":"メディアは暗号化されており、解読するためのキーがありません。","Play Video":"ビデオを再生する","Close":"閉じる","Close Modal Dialog":"ダイアログボックスを閉じる","Modal Window":"ダイアログボックス","This is a modal window":"これはダイアログボックスです","This modal can be closed by pressing the Escape key or activating the close button.":"このダイアログボックスは、Escキーを押すか、閉じるボタンを押して閉じることができま",", opens captions settings dialog":", 書き起こし字幕の設定を開く",", opens subtitles settings dialog":", 字幕の設定を開く",", opens descriptions settings dialog":", ディスクリプションの設定を開く",", selected":", 選択済み","captions settings":"書き起こし字幕の設定","subtitles settings":"字幕の設定","descriptions settings":"ディスクリプションの設定","Text":"テキスト","White":"白","Black":"黒","Red":"赤","Green":"緑","Blue":"青","Yellow":"黄","Magenta":"赤紫","Cyan":"シアン","Background":"背景","Window":"ウィンドウ","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"文字サイズ","Text Edge Style":"テキストのアウトラインのスタイル","None":"なし","Uniform":"均一","Dropshadow":"影付き","Font Family":"フォントの種類","Proportional Sans-Serif":"セリフなし可変幅フォント","Monospace Sans-Serif":"セリフなし等幅フォント","Proportional Serif":"セリフあり可変幅フォント","Monospace Serif":"セリフあり等幅フォント","Small Caps":"スモールキャピタル","Reset":"リセット","restore all settings to the default values":"すべての設定をデフォルト値に戻す","Done":"終了","Caption Settings Dialog":"書き起こし字幕設定ダイアログ","Beginning of dialog window. Escape will cancel and close the window.":"ダイアログボックスの開始。Escキーでキャンセルしてウィンドウを閉じます。","End of dialog window.":"ダイアログボックスの終了","{1} is loading.":"{1}は読み込み中です。","Exit Picture-in-Picture":"ピクチャーインピクチャー機能の終了","Picture-in-Picture":"ピクチャーインピクチャー"}')},1298:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"오디오 플레이어","Video Player":"비디오 플레이어","Play":"재생","Pause":"일시중지","Replay":"다시 재생","Current Time":"현재 시간","Duration":"지정 기간","Remaining Time":"남은 시간","Stream Type":"스트리밍 유형","LIVE":"라이브","Loaded":"로드됨","Progress":"진행","Progress Bar":"진행 표시줄","progress bar timing: currentTime={1} duration={2}":"{2} 중 {1}","Fullscreen":"전체 화면","Non-Fullscreen":"전체 화면 해제","Mute":"음소거","Unmute":"음소거 해제","Playback Rate":"재생 비율","Subtitles":"서브타이틀","subtitles off":"서브타이틀 끄기","Captions":"자막","captions off":"자막 끄기","Chapters":"챕터","Descriptions":"제품 설명","de
473scriptions off":"제품 설명 끄기","Audio Track":"오디오 트랙","Volume Level":"볼륨 레벨","You aborted the media playback":"비디오 재생을 취소했습니다.","A network error caused the media download to fail part-way.":"네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.","No compatible source was found for this media.":"비디오에 호환되지 않는 소스가 있습니다.","The media is encrypted and we do not have the keys to decrypt it.":"미디어는 암호화되어 있으며 이를 해독할 키를 갖고 있지 않습니다.","Play Video":"영상 재생","Close":"닫기","Close Modal Dialog":"대화 상자 닫기","Modal Window":"모달 창","This is a modal window":"모달 창입니다","This modal can be closed by pressing the Escape key or activating the close button.":"이 모달은 Esc 키를 누르거나 닫기 버튼을 활성화하여 닫을 수 있습니다.",", opens captions settings dialog":", 캡션 설정 대화 상자가 열립니다",", opens subtitles settings dialog":", 자막 설정 대화 상자가 열립니다",", opens descriptions settings dialog":", 설명 설정 대화 상자가 열립니다",", selected":", 선택됨","captions settings":"캡션 설정","subtitles settings":"자막 설정","descriptions settings":"설명 설정","Text":"텍스트","White":"화이트","Black":"블랙","Red":"레드","Green":"그린","Blue":"블루","Yellow":"옐로우","Magenta":"마젠타","Cyan":"씨엉","Background":"배경","Window":"창","Transparent":"투명","Semi-Transparent":"반투명","Opaque":"불투명","Font Size":"폰트 크기","Text Edge Style":"텍스트 가장자리 스타일","None":"없음","Uniform":"균일","Font Family":"폰트 모음","Proportional Sans-Serif":"비례 산세리프체","Monospace Sans-Serif":"고정폭 산세리프체","Proportional Serif":"비례 세리프체","Monospace Serif":"고정폭 세리프체","Small Caps":"소문자","Reset":"리셋","restore all settings to the default values":"모든 설정을 기본값으로 복원","Done":"완료","Caption Settings Dialog":"캡션 설정 대화 상자","Beginning of dialog window. Escape will cancel and close the window.":"대화창 시작. Esc 키를 누르면 취소되고 창이 닫힙니다.","End of dialog window.":"대화창 종료","{1} is loading.":"{1}이(가) 로딩 중입니다.","Exit Picture-in-Picture":"Picture-in-Picture 종료","Picture-in-Picture":"Picture-in-Picture"}')},7456:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Audio atskaņotājs","Video Player":"Video atskaņotājs","Play":"Atskaņot","Pause":"Pauzēt","Replay":"Atkārtot","Current Time":"Esošais laiks","Duration":"Ilgums","Remaining Time":"Atlikušais laiks","Stream Type":"Straumes veids","LIVE":"LIVE","Seek to live, currently behind live":"Pāriet uz tiešraidi","Seek to live, currently playing live":"Pāriet uz tiešraidi","Loa
473ded":"Ielādēts","Progress":"Progress","Progress Bar":"Progresa josla","progress bar timing: currentTime={1} duration={2}":"{1} no {2}","Fullscreen":"Pilnekrāna režīms","Non-Fullscreen":"Iziet no pilnekrāna režīma","Mute":"Izslēgt skaņu","Unmute":"Ieslēgt skaņu","Playback Rate":"Atskaņošanas ātrums","Subtitles":"Subtitri","subtitles off":"Izslēgt subtitrus","Captions":"Paraksti","captions off":"Izslēgt parakstus","Chapters":"Temati","Descriptions":"Apraksti","descriptions off":"Izslēgt aprakstus","Audio Track":"Audio celiņš","Volume Level":"Skaļums","You aborted the media playback":"Atskaņošana atcelta","A network error caused the media download to fail part-way.":"Tīkla kļūdas dēļ, multivides lejupielāde neizdevās.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Neizdevās ielādēt multividi, iespējams severa, vai tīkla kļūmes dēļ, vai neatbalstīta formāta dēļ.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Atskaņošana tika pārtraukta tīkla kļūmes dēļ vai pārlūkprogrammas iespēju trūkuma dēļ.","No compatible source was found for this media.":"Netika atrasts atbilstošs multivides avots.","The media is encrypted and we do not have the keys to decrypt it.":"Multividi nevar atskaņot, jo tas ir kriptēts un nav pieejama dekriptēšanas atslēga.","Play Video":"Atskaņot video","Close":"Aizvērt","Close Modal Dialog":"Aizvērt logu","Modal Window":"Logs","This is a modal window":"Logs","This modal can be closed by pressing the Escape key or activating the close button.":"Šo logu var aizvērt, nospiežot uz aizvēršanas pogas vai taustiņa ESC.",", opens captions settings dialog":", atvērs parakstu logu",", opens subtitles settings dialog":", atvērs subtitru logu",", opens descriptions settings dialog":", atvērs aprakstu logu",", selected":", izvēlēts","captions settings":"parakstu iestatījumi","subtitles settings":"subtitru iestatījumi","descriptions settings":"aprakstu iestatījumi","Text":"Teksts","White":"Balts","Black":"Melns","Red":"Sarkans","Green":"Zaļš","Blue":"Zils","Yellow":"Dzeltens","Magenta":"Purpursarkana","Cyan":"Ciāna","Background":"Fons","Window":"Logs","Transparent":"Caurspīdīgs","Semi-Transparent":"Daļēji caurspīdīgs","Opaque":"Necaurspīdīgs","Font Size":"Šrifta izmērs","Text Edge Style":"Teksta ēnas stils","None":"Neviens","Raised":"Izvirzīts","Depressed":"Samazināts","Uniform":"Vienmērīgs","Dropshadow":"Ēnots","Font Family":"Šrifts","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"Atiestatīt","restore all settings to the default values":"atiestatīt iestatījumu uz noklusējumu","Done":"Gatavs","Caption Settings Dialog":"Parakstu iestatījumi","Beginning of dialog window. Escape will cancel and close the window.":"Paraksta iestatījumu sākums. Lai aizvērtu, spiediet ESC taustiņu.","End of dialog window.":"Parakstu iestatījumu loga beigas","{1} is loading.":"{1} ielādē.","Exit Picture-in-Picture":"Iziet no Attēls attēlā","Picture-in-Picture":"Attēls attēlā"}')},570:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lydspiller","Video Player":"Videospiller","Play":"Spill","Pause":"Pause","Replay":"Spill om igjen","Current Time":"Aktuell tid","Duration":"Varighet","Remaining Time":"Gjenstående tid","Stream Type":"Type strøm","LIVE":"DIREKTE","Seek to live, currently behind live":"Hopp til live, spiller tidligere i sendingen nå","Seek to live, currently playing live":"Hopp til live, spiller live nå","Loaded":"Lastet inn","Progress":"Framdrift","Progress Bar":"Framdriftsviser","progress bar timing: currentTime={1} duration={2}":"{1} av {2}","Fullscreen":"Fullskjerm","Non-Fullscreen":"Lukk fullskjerm","Mute":"Lyd av","Unmute":"Lyd på","Playback Rate":"Avspillingshastighet","Subt
473itles":"Teksting på","subtitles off":"Teksting av","Captions":"Teksting for hørselshemmede på","captions off":"Teksting for hørselshemmede av","Chapters":"Kapitler","Descriptions":"Beskrivelser","descriptions off":"beskrivelser av","Audio Track":"Lydspor","Volume Level":"Volumnivå","You aborted the media playback":"Du avbrøt avspillingen.","A network error caused the media download to fail part-way.":"En nettverksfeil avbrøt nedlasting av videoen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Videoen kunne ikke lastes ned, på grunn av nettverksfeil eller serverfeil, eller fordi formatet ikke er støttet.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Videoavspillingen ble avbrudt på grunn av ødelagte data eller fordi videoen ville gjøre noe som nettleseren din ikke har støtte for.","No compatible source was found for this media.":"Fant ikke en kompatibel kilde for dette mediainnholdet.","The media is encrypted and we do not have the keys to decrypt it.":"Mediefilen er kryptert og vi mangler nøkler for å dekryptere den.","Play Video":"Spill av video","Close":"Lukk","Close Modal Dialog":"Lukk dialogvinduet","Modal Window":"Dialogvindu","This is a modal window":"Dette er et dialogvindu","This modal can be closed by pressing the Escape key or activating the close button.":"Vinduet kan lukkes ved å trykke på Escape-tasten eller lukkeknappen.",", opens captions settings dialog":", åpner innstillinger for teksting for hørselshemmede",", opens subtitles settings dialog":", åpner innstillinger for teksting",", opens descriptions settings dialog":", åpner innstillinger for beskrivelser",", selected":", valgt","captions settings":"innstillinger for teksting","subtitles settings":"innstillinger for teksting","descriptions settings":"innstillinger for beskrivelser","Text":"Tekst","White":"Hvit","Black":"Svart","Red":"Rød","Green":"Grønn","Blue":"Blå","Yellow":"Gul","Magenta":"Magenta","Cyan":"Turkis","Background":"Bakgrunn","Window":"Vindu","Transparent":"Gjennomsiktig","Semi-Transparent":"Delvis gjennomsiktig","Opaque":"Ugjennomsiktig","Font Size":"Tekststørrelse","Text Edge Style":"Tekstkant","None":"Ingen","Raised":"Uthevet","Depressed":"Nedtrykt","Uniform":"Enkel","Dropshadow":"Skygge","Font Family":"Skrifttype","Proportional Sans-Serif":"Proporsjonal skrift uten seriffer","Monospace Sans-Serif":"Fastbreddeskrift uten seriffer","Proportional Serif":"Proporsjonal skrift med seriffer","Monospace Serif":"Fastbreddeskrift med seriffer","Casual":"Uformell","Script":"Skråskrift","Small Caps":"Kapitéler","Reset":"Tilbakestill","restore all settings to the default values":"tilbakestill alle innstillinger til standardverdiene","Done":"Ferdig","Caption Settings Dialog":"Innstillingsvindu for teksting for hørselshemmede","Beginning of dialog window. Escape will cancel and close the window.":"Begynnelse på dialogvindu. Trykk Escape for å avbryte og lukke vinduet.","End of dialog window.":"Avslutning på dialogvindu.","{1} is loading.":"{1} laster."}')},5168:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Audiospeler","Video Player":"Videospeler","Play":"Afspelen","Pause":"Pauzeren","Replay":"Opnieuw afspelen","Current Time":"Huidige tijd","Duration":"Tijdsduur","Remaining Time":"Resterende tijd","Stream Type":"Streamtype","LIVE":"LIVE","Loaded":"Geladen","Progress":"Voortgang","Progress Bar":"Voortgangsbalk","progress bar timing: currentTime={1} duration={2}":"{1} van {2}","Fullscreen":"Volledig scherm","Non-Fullscreen":"Geen volledig scherm","Mute":"Dempen","Unmute":"Niet dempen","Playback Rate":"Afspeelsnelheid","Subtitles":"Ondertiteling","subtitles off":"ondertiteling uit","Captions":"Bijschriften","captions off":"bijschriften uit","Chapters":"Hoofdstukken","Descriptions":"Beschrijvingen","de
473scriptions off":"beschrijvingen uit","Audio Track":"Audiospoor","Volume Level":"Geluidsniveau","You aborted the media playback":"U heeft het afspelen van de media afgebroken","A network error caused the media download to fail part-way.":"Een netwerkfout heeft ervoor gezorgd dat het downloaden van de media halverwege is mislukt.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"De media kon niet worden geladen, dit komt doordat of de server of het netwerk mislukt of doordat het formaat niet wordt ondersteund.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Het afspelen van de media is afgebroken door een probleem met beschadeigde gegevens of doordat de media functies gebruikt die uw browser niet ondersteund.","No compatible source was found for this media.":"Er is geen geschikte bron voor deze media gevonden.","The media is encrypted and we do not have the keys to decrypt it.":"De media is versleuteld en we hebben de sleutels niet om deze te ontsleutelen.","Play Video":"Video afspelen","Close":"Sluiten","Close Modal Dialog":"Extra venster sluiten","Modal Window":"Extra venster","This is a modal window":"Dit is een extra venster","This modal can be closed by pressing the Escape key or activating the close button.":"Dit venster kan worden gesloten door op de Escape-toets te drukken of door de sluiten-knop te activeren.",", opens captions settings dialog":", opent instellingen-venster voor bijschriften",", opens subtitles settings dialog":", opent instellingen-venster voor ondertitelingen",", opens descriptions settings dialog":", opent instellingen-venster voor beschrijvingen",", selected":", geselecteerd","captions settings":"bijschriften-instellingen","subtitles settings":"ondertiteling-instellingen","descriptions settings":"beschrijvingen-instellingen","Text":"Tekst","White":"Wit","Black":"Zwart","Red":"Rood","Green":"Groen","Blue":"Blauw","Yellow":"Geel","Magenta":"Magenta","Cyan":"Cyaan","Background":"Achtergrond","Window":"Venster","Transparent":"Transparant","Semi-Transparent":"Semi-transparant","Opaque":"Ondoorzichtig","Font Size":"Lettergrootte","Text Edge Style":"Stijl tekstrand","None":"Geen","Raised":"Verhoogd","Depressed":"Ingedrukt","Uniform":"Uniform","Dropshadow":"Schaduw","Font Family":"Lettertype","Proportional Sans-Serif":"Proportioneel sans-serif","Monospace Sans-Serif":"Monospace sans-serif","Proportional Serif":"Proportioneel serif","Monospace Serif":"Monospace serif","Casual":"Luchtig","Script":"Script","Small Caps":"Kleine hoofdletters","Reset":"Herstellen","restore all settings to the default values":"alle instellingen naar de standaardwaarden herstellen","Done":"Klaar","Caption Settings Dialog":"Venster voor bijschriften-instellingen","Beginning of dialog window. Escape will cancel and close the window.":"Begin van dialoogvenster. Escape zal annuleren en het venster sluiten.","End of dialog window.":"Einde van dialoogvenster."}')},6997:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lydspelar","Video Player":"Videospelar","Play":"Spel","Pause":"Pause","Replay":"Spel om att","Current Time":"Aktuell tid","Duration":"Varigheit","Remaining Time":"Tid attende","Stream Type":"Type straum","LIVE":"DIREKTE","Seek to live, currently behind live":"Hopp til live, spelar tidlegare i sendinga no","Seek to live, currently playing live":"Hopp til live, speler live no","Loaded":"Lasta inn","Progress":"Framdrift","Progress Bar":"Framdriftsvisar","progress bar timing: currentTime={1} duration={2}":"{1} av {2}","Fullscreen":"Fullskjerm","Non-Fullscreen":"Stenga fullskjerm","Mute":"Lyd av","Unmute":"Lyd på","Playback Rate":"Avspelingshastigheit","Subtitles":"Teksting på","subtitles off":"Teksting av","Captions":"Teksting for høyrselshemma på","captions off":"Teksting for høyrselshemma av","Chapters":"Kapitel","Descriptions":"Beskrivingar","descriptions off":"beskrivingar av","Audio Track":"Lydspor","Volume Level":"Volumnivå","You aborted the media playback":"Du avbraut avspelinga.","A network error caused the media download to fail part-way.":"Ein nettverksfeil avbraut nedlasting av videoen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Videoen kunne ikkje lastas ned, på grunn av ein nettverksfeil eller serverfeil, eller av di formatet ikkje er stoda.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Videoavspelinga blei broten på grunn av øydelagde data eller av di videoen ville gjera noe som nettlesaren din ikkje stodar.","No compatible source was found for this media.":"Fant ikke en kompatibel kilde for dette mediainnholdet.","The media is encrypted and we do not have the keys to decrypt it."
473:"Mediefila er kryptert og vi manglar nyklar for å dekryptere ho.","Play Video":"Spel av video","Close":"Lukk","Close Modal Dialog":"Lukk dialogvindauge","Modal Window":"Dialogvindauge","This is a modal window":"Dette er eit dialogvindauge","This modal can be closed by pressing the Escape key or activating the close button.":"Vindauget kan lukkast ved å trykke på Escape-tasten eller lukkeknappen.",", opens captions settings dialog":", opnar innstillingar for teksting for høyrselshemma",", opens subtitles settings dialog":", opnar innstillingar for teksting",", opens descriptions settings dialog":", opnar innstillingar for beskrivingar",", selected":", vald","captions settings":"innstillingar for teksting","subtitles settings":"innstillingar for teksting","descriptions settings":"innstillingar for skildringar","Text":"Tekst","White":"Kvit","Black":"Svart","Red":"Raud","Green":"Grøn","Blue":"Blå","Yellow":"Gul","Magenta":"Magenta","Cyan":"Turkis","Background":"Bakgrunn","Window":"Vindauge","Transparent":"Gjennomsiktig","Semi-Transparent":"Delvis gjennomsiktig","Opaque":"Ugjennomsiktig","Font Size":"Tekststorleik","Text Edge Style":"Tekstkant","None":"Ingen","Raised":"Utheva","Depressed":"Nedtrykt","Uniform":"Enkel","Dropshadow":"Skugge","Font Family":"Skrifttype","Proportional Sans-Serif":"Proporsjonal skrift utan seriffar","Monospace Sans-Serif":"Fastbreddeskrift utan seriffar","Proportional Serif":"Proporsjonal skrift med seriffar","Monospace Serif":"Fastbreddeskrift med seriffar","Casual":"Uformell","Script":"Skråskrift","Small Caps":"Kapitéler","Reset":"Tilbakestell","restore all settings to the default values":"tilbakestell alle innstillingar til standardverdiane","Done":"Ferdig","Caption Settings Dialog":"Innstillingsvindauge for teksting for høyrselshemma","Beginning of dialog window. Escape will cancel and close the window.":"Byrjing på dialogvindauge. Trykk Escape for å avbryte og lukke vindauget.","End of dialog window.":"Avslutning på dialogvindauge.","{1} is loading.":"{1} lastar."}')},7315:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lector àudio","Video Player":"Lector vidèo","Play":"Lectura","Pause":"Pausa","Replay":"Tornar legir","Current Time":"Durada passada","Duration":"Durada","Remaining Time":"Temps restant","Stream Type":"Tipe de difusion","LIVE":"DIRÈCTE","Seek to live, currently behind live":"Trapar lo dirècte, actualament darrièr lo dirècte","Seek to live, currently playing live":"Trapar lo dirècte, actualament lo dirècte es en lectura","Loaded":"Cargat","Progress":"Progression","Progress Bar":"Barra de progression","progress bar timing: currentTime={1} duration={2}":"{1} sus {2}","Fullscreen":"Ecran complèt","Non-Fullscreen":"Pas en ecran complèt","Mute":"Copar lo son","Unmute":"Restablir lo son","Playback Rate":"Velocitat de lectura","Subtitles":"Sostítols","subtitles off":"Sostítols desactivats","Captions":"Legendas","captions off":"Legendas desactivadas","Chapters":"Capítols","Descriptions":"Descripcions","descriptions off":"descripcions desactivadas","Audio Track":"Pista àudio","Volume Level":"Nivèl del volum","You aborted the media playback":"Avètz copat la lectura del mèdia.","A network error caused the media download to fail part-way.":"Una error de ret a provocat un fracàs del telecargament.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Lo mèdia a pas pogut èsser cargat, siá perque lo servidor o lo ret a fracassat siá perque lo format es pas compatible.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La lectura del mèdia es copada a causa d’un problèma de corrupcion o perque lo mèdia utiliza de foncionalitats pas suportadas pel navigador.","No compatible source was found for this media.":"Cap de font compatiblas pas trobada per aqueste mèdia.","The media is encrypted and we do not have the keys to decrypt it.":"Lo mèdia es chifrat e avèm pas las claus per lo deschifrar.","Play Video":"Legir la vidèo","Close":"Tampar","Close Mod
473al Dialog":"Tampar la fenèstra","Modal Window":"Fenèstra","This is a modal window":"Aquò es una fenèstra","This modal can be closed by pressing the Escape key or activating the close button.":"Aquesta fenèstra pòt èsser tampada en quichar Escapar sul clavièr o en activar lo boton de tampadura.",", opens captions settings dialog":", dobrís la fenèstra de paramètres de legendas",", opens subtitles settings dialog":", dobrís la fenèstra de paramètres de sostítols",", opens descriptions settings dialog":", dobrís la fenèstra de paramètres de descripcions",", selected":", seleccionat","captions settings":"paramètres de legendas","subtitles settings":"paramètres de sostítols","descriptions settings":"paramètres de descripcions","Text":"Tèxte","White":"Blanc","Black":"Negre","Red":"Roge","Green":"Verd","Blue":"Blau","Yellow":"Jaune","Magenta":"Magenta","Cyan":"Cian","Background":"Rèireplan","Window":"Fenèstra","Transparent":"Transparent","Semi-Transparent":"Semitransparent","Opaque":"Opac","Font Size":"Talha de la polissa","Text Edge Style":"Estil dels contorns del tèxte","None":"Cap","Raised":"Naut","Depressed":"Enfonsat","Uniform":"Unifòrme","Dropshadow":"Ombrat","Font Family":"Familha de polissa","Proportional Sans-Serif":"Sans-Serif proporcionala","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Serif proporcionala","Monospace Serif":"Serif proporcionala","Casual":"Manuscrita","Script":"Script","Small Caps":"Pichonas majusculas","Reset":"Reïnicializar","restore all settings to the default values":"O restablir tot a las valors per defaut","Done":"Acabat","Caption Settings Dialog":"Fenèstra de paramètres de legenda","Beginning of dialog window. Escape will cancel and close the window.":"Debuta de la fenèstra. Escapar anullarà e tamparà la fenèstra","End of dialog window.":"Fin de la fenèstra.","{1} is loading.":"{1} es a cargar."}')},8040:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Odtwarzacz audio","Video Player":"Odtwarzacz wideo","Play":"Odtwarzaj","Pause":"Pauza","Replay":"Odtwórz ponownie","Current Time":"Aktualny czas","Duration":"Czas trwania","Remaining Time":"Pozostały czas","Stream Type":"Typ strumienia","LIVE":"NA ŻYWO","Loaded":"Załadowany","Progress":"Status","Progress Bar":"Pasek stanu","Fullscreen":"Pełny ekran","Non-Fullscreen":"Pełny ekran niedostępny","Mute":"Wyłącz dźwięk","Unmute":"Włącz dźwięk","Playback Rate":"Szybkość odtwarzania","Subtitles":"Napisy","subtitles off":"Napisy wyłączone","Captions":"Transkrypcja","captions off":"Transkrypcja wyłączona","Chapters":"Rozdziały","Descriptions":"Opisy","descriptions off":"Opisy wyłączone","Audio Track":"Ścieżka audio","Volume Level":"Poziom głośności","You aborted the media playback":"Odtwarzanie zostało przerwane","A network error caused the media download to fail part-way.":"Problemy z siecią spowodowały błąd przy pobieraniu materiału wideo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Materiał wideo nie może być załadowany, ponieważ wystąpił problem z siecią lub format nie jest obsługiwany","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Odtwarzanie materiału wideo zostało przerwane z powodu uszkodzonego pliku wideo lub z powodu błędu funkcji, które nie są wspierane przez przeglądarkę.","No compatible source was found for this media.":"Dla tego materiału wideo nie znaleziono kompatybilnego źródła.","The media is encrypted and we do not have the keys to decrypt it.":"Źródło jest zaszyfrowane i nie mamy kluczy do jego odszyfrowania.","Play Video":"Odtwarzaj wideo","Close":"Zamknij","Close Modal Dialog":"Zamknij okno modala","Modal Window":"Okno modala","This is a modal window":"To jest okno modala","This modal can be closed by pressing the Escape key or activating the close button.":"Ten modal możesz zamknąć naciskając przycisk Escape albo wybierając przycisk Zamknij.",", opens captions settings dialog":", otwiera okno dialogowe ustawień transkrypcji",", opens subtitles settings dialog":", otwiera okno dialogowe napisów",", opens descriptions settings dialog":", otwiera okno dialogowe opisów",", selected":", zaznaczone","captions settings":"ustawienia transkrypcji","subtitles settings":"ustawienia napisów","descriptions settings":"ustawienia opisów","Text":"Tekst","White":"Biały","Black":"Czarny","Red":"Czerwony","Green":"Zielony","Blue":"Niebieski","Yellow":"Żółty","Magenta":"Magenta","Cyan":"Cyjan","Backgroun
473d":"Tło","Window":"Okno","Transparent":"Przezroczysty","Semi-Transparent":"Półprzezroczysty","Opaque":"Nieprzezroczysty","Font Size":"Rozmiar czcionki","Text Edge Style":"Styl krawędzi tekstu","None":"Brak","Raised":"Podniesiony","Depressed":"Obniżony","Uniform":"Równomierny","Dropshadow":"Cień","Font Family":"Czcionka","Reset":"Ustawienia domyślne","restore all settings to the default values":"zresetuj wszystkie ustawienia do domyślnych wartości","Done":"Gotowe","Caption Settings Dialog":"Okno dialogowe ustawień transkrypcji","Beginning of dialog window. Escape will cancel and close the window.":"Początek okna dialogowego. Escape anuluje i zamknie okno.","End of dialog window.":"Koniec okna dialogowego.","Exit Picture-in-Picture":"Wyjdź z trybu obraz w obrazie","Picture-in-Picture":"Obraz w obrazie"}')},5166:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Reprodutor de áudio","Video Player":"Reprodutor de vídeo","Play":"Tocar","Pause":"Pausar","Replay":"Tocar novamente","Current Time":"Tempo","Duration":"Duração","Remaining Time":"Tempo Restante","Stream Type":"Tipo de Stream","LIVE":"AO VIVO","Loaded":"Carregado","Progress":"Progresso","Progress Bar":"Barra de progresso","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Tela Cheia","Non-Fullscreen":"Tela Normal","Mute":"Mudo","Unmute":"Habilitar Som","Playback Rate":"Velocidade","Subtitles":"Legendas","subtitles off":"Sem Legendas","Captions":"Anotações","captions off":"Sem Anotações","Chapters":"Capítulos","Descriptions":"Descrições","descriptions off":"sem descrições","Audio Track":"Faixa de áudio","Volume Level":"Nível de volume","You aborted the media playback":"Você parou a execução do vídeo.","A network error caused the media download to fail part-way.":"Um erro na rede causou falha durante o download da mídia.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"A mídia não pode ser carregada, por uma falha de rede ou servidor ou o formato não é suportado.","No compatible source was found for this media.":"Nenhuma fonte foi encontrada para esta mídia.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A reprodução foi interrompida devido à um problema de mídia corrompida ou porque a mídia utiliza funções que seu navegador não suporta.","The media is encrypted and we do not have the keys to decrypt it.":"A mídia está criptografada e não temos as chaves para descriptografar.","Play Video":"Tocar Vídeo","Close":"Fechar","Close Modal Dialog":"Fechar Diálogo Modal","Modal Window":"Janela Modal","This is a modal window":"Isso é uma janela-modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta janela pode ser fechada pressionando a tecla de Escape.",", opens captions settings dialog":", abre as configurações de legendas de comentários",", opens subtitles settings dialog":", abre as configurações de legendas",", opens descriptions settings dialog":", abre as configurações",", selected":", selecionada","captions settings":"configurações de legendas de comentários","subtitles settings":"configurações de legendas","descriptions settings":"configurações das descrições","Text":"Texto","White":"Branco","Black":"Preto","Red":"Vermelho","Green":"Verde","Blue":"Azul","Yellow":"Amarelo","Magenta":"Magenta","Cyan":"Ciano","Background":"Plano-de-Fundo","Window":"Janela","Transparent":"Transparente","Semi-Transparent":"Semi-Transparente","Opaque":"Opaco","Font Size":"Tamanho da Fonte","Text Edge Style":"Estilo da Borda","None":"Nenhum","Raised":"Elevado","Depressed":"Acachapado","Uniform":"Uniforme","Dropshadow":"Sombra de projeção","Font Family":"Família da Fonte","Proportional Sans-Serif":"Sans-Serif(Sem serifa) Proporcional","Monospace Sans-Serif":"Sans-Serif(Sem serifa) Monoespaçada","Proportional Serif":"Serifa Proporcional","Monospace Serif":"Serifa Monoespaçada","Casual":"Casual","Script":"Script","Small Caps":"Maiúsculas Pequenas","Reset":"Redefinir","restore all settings to the default values":"restaurar todas as configurações aos valores padrão","Done":"Salvar","Caption Settings Dialog":"Caíxa-de-Diálogo das configurações de Legendas","Beginning of dialog window. Escape will cancel and close the window.":"Iniciando a Janela-de-Diálogo. Pressionar Escape irá cancelar e fechar a janela.","End of dialog window.":"Fim da Janela-de-Diálogo","{1} is loading.":"{1} está carregando.","Exit Picture-in-Picture":"Sair de Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture"}')},3129:e=>{"use strict";e.exports=JSON.parse('{"Play":"Reproduzir","Pause":"Parar","Replay":"Reiniciar","Current Time":"Tempo Atual","Duration":"Duração","Remaining Time":"Tempo Restante","Stream Type":"Tipo de Stream","LIVE":"EM DIRETO","Loaded":"Carregado","Progress":"Progresso","Fullscreen":"Ecrã inteiro","Non-Fullscreen":"Ecrã normal","Mute":"Desativar som","Unmute":"Ativar som","Playback Rate":"Velocidade de reprodução","Subtitles":"Legendas","subtitles off":"desativar legendas","Captions":"Anotações","captions off":"desativar anotações","Chapters":"Capítulos","Close Mod
473al Dialog":"Fechar Janela Modal","Descriptions":"Descrições","descriptions off":"desativar descrições","Audio Track":"Faixa Áudio","You aborted the media playback":"Parou a reprodução do vídeo.","A network error caused the media download to fail part-way.":"Um erro na rede fez o vídeo falhar parcialmente.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"O vídeo não pode ser carregado, ou porque houve um problema na rede ou no servidor, ou porque formato do vídeo não é compatível.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A reprodução foi interrompida por um problema com o vídeo ou porque o formato não é compatível com o seu navegador.","No compatible source was found for this media.":"Não foi encontrada uma fonte de vídeo compatível.","The media is encrypted and we do not have the keys to decrypt it.":"O vídeo está encriptado e não há uma chave para o desencriptar.","Play Video":"Reproduzir Vídeo","Close":"Fechar","Modal Window":"Janela Modal","This is a modal window":"Isto é uma janela modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta modal pode ser fechada pressionando a tecla ESC ou ativando o botão de fechar.",", opens captions settings dialog":", abre janela com definições de legendas",", opens subtitles settings dialog":", abre janela com definições de legendas",", opens descriptions settings dialog":", abre janela com definições de descrições",", selected":", seleccionado"}')},9056:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Player audio","Video Player":"Player video","Play":"Piesă","Pause":"Pauză","Replay":"Reluare","Current Time":"Ora curentă","Duration":"Durată","Remaining Time":"Timp rămas","Stream Type":"Tip flux","LIVE":"ÎN DIRECT","Seek to live, currently behind live":"Căutare în direct; în prezent, sunteți în urmă","Seek to live, currently playing live":"Căutare în direct; în prezent, se redă în direct","Loaded":"Încărcat","Progress":"Progres","Progress Bar":"Bară de progres","progress bar timing: currentTime={1} duration={2}":"{1} din {2}","Fullscreen":"Ecran complet","Non-Fullscreen":"Ecran parțial","Mute":"Suprimare sunet","Unmute":"Activare sunet","Playback Rate":"Rată de redare","Subtitles":"Subtitrări","subtitles off":"subtitrări dezactivate","Captions":"Indicații scrise","captions off":"indicații scrise dezactivate","Chapters":"Capitole","Descriptions":"Descrieri","descriptions off":"descrieri dezactivate","Audio Track":"Pistă audio","Volume Level":"Nivel volum","You aborted the media playback":"Ați abandonat redarea media","A network error caused the media download to fail part-way.":"O eroare de rețea a provocat eșecul descărcării conținutului media în timpul procesului.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Conținutul media nu a putut fi încărcat, fie pentru că serverul sau rețeaua a eșuat, fie pentru că formatul nu este acceptat.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Redarea media a fost întreruptă din cauza conținutului corupt sau din cauza faptului că acest conținut media folosește funcții pe care browserul dvs. nu le acceptă.","No compatible source was found for this media.":"Nu au fost găsite surse compatibile pentru acest conținut media.","The media is encrypted and we do not have the keys to decrypt it.":"Conținutul media este criptată și nu avem cheile pentru decriptare.","Play Video":"Redare video","Close":"Închidere","Close Modal Dialog":"Închidere dialog modal","Modal Window":"Fereastră modală","This is a modal window":"Aceasta este o fereastră modală","This modal can be closed by pressing the Escape key or activating the close button.":"Această fereastră modală poate fi închisă cu tasta Escape sau butonul de închidere.",", opens captions settings dialog":", deschide dialogul de setări pentru indicații scrise",", opens subtitles settings dialog":", deschide dialogul de setări pentru subtitrări",", opens descriptions settings dialog":", deschide dialogul de setări pentru descrieri",", selected":", selectat","captions settings":"setări indicații scrise","subtitles settings":"setări subtitrări","descriptions settings":"setări descrieri","Text":"Text","White":"Alb","Black":"Negru","Red":"Roșu","Green":"Verde","Blue":"Albastru","Yellow":"Galben","Magenta":"Magenta","Cyan":"Cyan","Backgroun
473d":"Fundal","Window":"Fereastră","Transparent":"Transparent","Semi-Transparent":"Semitransparent","Opaque":"Opac","Font Size":"Mărime font","Text Edge Style":"Stil margine text","None":"Fără","Raised":"Ridicat","Depressed":"Apăsat","Uniform":"Uniformă","Dropshadow":"Umbră","Font Family":"Familie fonturi","Proportional Sans-Serif":"Sans-serif proporțional","Monospace Sans-Serif":"Sans-serif monospațiu","Proportional Serif":"Serif proporțional","Monospace Serif":"Serif monospațiu","Casual":"Informal","Script":"Script","Small Caps":"Majuscule mici","Reset":"Resetare","restore all settings to the default values":"readuceți toate setările la valorile implicite","Done":"Terminat","Caption Settings Dialog":"Dialog setări indicații scrise","Beginning of dialog window. Escape will cancel and close the window.":"Începutul ferestrei de dialog. Tasta Escape va anula și va închide fereastra.","End of dialog window.":"Sfârșitul ferestrei de dialog.","{1} is loading.":"{1} se încarcă.","Exit Picture-in-Picture":"Închidere imagine în imagine","Picture-in-Picture":"Imagine în imagine"}')},3178:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Аудио проигрыватель","Video Player":"Видео проигрыватель","Play":"Воспроизвести","Pause":"Приостановить","Replay":"Воспроизвести снова","Current Time":"Текущее время","Duration":"Продолжительность","Remaining Time":"Оставшееся время","Stream Type":"Тип потока","LIVE":"ОНЛАЙН","Loaded":"Загрузка","Progress":"Прогресс","Progress Bar":"Индикатор загрузки","progress bar timing: currentTime={1} duration={2}":"{1} из {2}","Fullscreen":"Полноэкранный режим","Non-Fullscreen":"Неполноэкранный режим","Mute":"Без звука","Unmute":"Со звуком","Playback Rate":"Скорость воспроизведения","Subtitles":"Субтитры","subtitles off":"Субтитры выкл.","Captions":"Подписи","captions off":"Подписи выкл.","Chapters":"Главы","Descriptions":"Описания","descriptions off":"Отключить описания","Audio Track":"Звуковая дорожка","Volume Level":"Уровень громкости","You aborted the media playback":"Вы прервали воспроизведение видео","A network error caused the media download to fail part-way.":"Ошибка сети вызвала сбой во время загрузки видео.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Невозможно загрузить видео из-за сетевого или серверного сбоя либо формат не поддерживается.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Воспроизведение видео было приостановлено из-за повреждения либо в связи с тем, что видео использует функции, неподдерживаемые вашим браузером.","No compatible source was found for this media.":"Совместимые источники для этого видео отсутствуют.","The media is encrypted and we do not have the keys to decrypt it.":"Видео в зашифрованном виде, и у нас нет ключей для расшифровки.","Play Video":"Воспроизвести видео","Close":"Закрыть","Close Modal Dialog":"Закрыть модальное окно","Modal Window":"Модальное окно","This is a modal window":"Это модальное окно","This modal can be closed by pressing the Escape key or activating the close button.":"Модальное окно можно закрыть нажав Esc или кнопку закрытия окна.",", opens captions settings dialog":", откроется диалог настройки подписей",", opens subtitles settings dialog":", откроется диалог настройки субтитров",", opens descriptions settings dialog":", откроется диалог настройки описаний",", selected":", выбрано","captions settings":"настройки подписей","subtitles settings":"настройки субтитров","descriptions settings":"настройки описаний","Text":"Текст","White":"Белый","Black":"Черный","Red":"Красный","Green":"Зеленый","Blue":"Синий","Yellow":"Желтый","Magenta":"Пурпурный","Cyan":"Голубой","Backgroun
473d":"Фон","Window":"Окно","Transparent":"Прозрачный","Semi-Transparent":"Полупрозрачный","Opaque":"Прозрачность","Font Size":"Размер шрифта","Text Edge Style":"Стиль края текста","None":"Ничего","Raised":"Поднятый","Depressed":"Пониженный","Uniform":"Одинаковый","Dropshadow":"Тень","Font Family":"Шрифт","Proportional Sans-Serif":"Пропорциональный без засечек","Monospace Sans-Serif":"Моноширинный без засечек","Proportional Serif":"Пропорциональный с засечками","Monospace Serif":"Моноширинный с засечками","Casual":"Случайный","Script":"Письменный","Small Caps":"Малые прописные","Reset":"Сбросить","restore all settings to the default values":"сбросить все найстройки по умолчанию","Done":"Готово","Caption Settings Dialog":"Диалог настроек подписи","Beginning of dialog window. Escape will cancel and close the window.":"Начало диалоговго окна. Кнопка Escape закроет или отменит окно","End of dialog window.":"Конец диалогового окна.","{1} is loading.":"{1} загружается."}')},6225:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Zvukový prehrávač","Video Player":"Video prehrávač","Play":"Prehrať","Pause":"Pozastaviť","Replay":"Prehrať znova","Current Time":"Aktuálny čas","Duration":"Čas trvania","Remaining Time":"Zostávajúci čas","Stream Type":"Typ stopy","LIVE":"NAŽIVO","Loaded":"Načítané","Progress":"Priebeh","Progress Bar":"Ukazovateľ priebehu","progress bar timing: currentTime={1} duration={2}":"časovanie ukazovateľa priebehu: currentTime={1} duration={2}","Fullscreen":"Režim celej obrazovky","Non-Fullscreen":"Režim normálnej obrazovky","Mute":"Stlmiť","Unmute":"Zrušiť stlmenie","Playback Rate":"Rýchlosť prehrávania","Subtitles":"Titulky","subtitles off":"titulky vypnuté","Captions":"Popisky","captions off":"popisky vypnuté","Chapters":"Kapitoly","Descriptions":"Opisy","descriptions off":"opisy vypnuté","Audio Track":"Zvuková stopa","Volume Level":"Úroveň hlasitosti","You aborted the media playback":"Prerušili ste prehrávanie","A network error caused the media download to fail part-way.":"Sťahovanie súboru bolo zrušené pre chybu na sieti.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Súbor sa nepodarilo načítať pre chybu servera, sieťového pripojenia, alebo je formát súboru nepodporovaný.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Prehrávanie súboru bolo prerušené pre poškodené dáta, alebo súbor používa vlastnosti, ktoré váš prehliadač nepodporuje.","No compatible source was found for this media.":"Nebol nájdený žiaden kompatibilný zdroj pre tento súbor.","The media is encrypted and we do not have the keys to decrypt it.":"Súbor je zašifrovaný a nie je k dispozícii kľúč na rozšifrovanie.","Play Video":"Prehrať video","Close":"Zatvoriť","Close Modal Dialog":"Zatvoriť modálne okno","Modal Window":"Modálne okno","This is a modal window":"Toto je modálne okno","This modal can be closed by pressing the Escape key or activating the close button.":"Toto modálne okno je možné zatvoriť stlačením klávesy Escape, alebo aktivovaním tlačidla na zatvorenie.",", opens captions settings dialog":", otvorí okno nastavení popiskov",", opens subtitles settings dialog":", otvorí okno nastavení titulkov",", opens descriptions settings dialog":", otvorí okno nastavení opisov",", selected":", označené","captions settings":"nastavenia popiskov","subtitles settings":"nastavenia titulkov","descriptions settings":"nastavenia opisov","Text":"Text","White":"Biela","Black":"Čierna","Red":"Červená","Green":"Zelená","Blue":"Modrá","Yellow":"Žltá","Magenta":"Ružová","Cyan":"Tyrkysová","Backgroun
473d":"Pozadie","Window":"Okno","Transparent":"Priesvitné","Semi-Transparent":"Polopriesvitné","Opaque":"Plné","Font Size":"Veľkosť písma","Text Edge Style":"Typ okrajov písma","None":"Žiadne","Raised":"Zvýšené","Depressed":"Znížené","Uniform":"Pravidelné","Dropshadow":"S tieňom","Font Family":"Typ písma","Proportional Sans-Serif":"Proporčné bezpätkové","Monospace Sans-Serif":"Pravidelné, bezpätkové","Proportional Serif":"Proporčné pätkové","Monospace Serif":"Pravidelné pätkové","Casual":"Bežné","Script":"Písané","Small Caps":"Malé kapitálky","Reset":"Resetovať","restore all settings to the default values":"všetky nastavenia na základné hodnoty","Done":"Hotovo","Caption Settings Dialog":"Okno nastavení popiskov","Beginning of dialog window. Escape will cancel and close the window.":"Začiatok okna. Klávesa Escape zruší a zavrie okno.","End of dialog window.":"Koniec okna.","{1} is loading.":"{1} sa načíta."}')},8565:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Avdio predvajalnik","Video Player":"Video predvajalnik","Play":"Predvajaj","Pause":"Začasno ustavi","Replay":"Predvajaj ponovno","Current Time":"Trenutni čas","Duration":"Trajanje","Remaining Time":"Preostali čas","Stream Type":"Vrsta podatkovnega toka","LIVE":"V ŽIVO","Seek to live, currently behind live":"Spremljaj v živo (trenutno v zaostanku)","Seek to live, currently playing live":"Spremljaj v živo (trenutno v živo)","Loaded":"Naloženo","Progress":"Napredek","Progress Bar":"Vrstica napredka","progress bar timing: currentTime={1} duration={2}":"{1} od {2}","Fullscreen":"Celozaslonski prikaz","Non-Fullscreen":"Prikaz na delu zaslona","Mute":"Izključi zvok","Unmute":"Vključi zvok","Playback Rate":"Hitrost predvajanja","Subtitles":"Podnapisi","subtitles off":"podnapisi izklopljeni","Captions":"Zvočni zapis","captions off":"zvočni zapis izklopljen","Chapters":"Poglavja","Descriptions":"Opisi","descriptions off":"opisi izklopljeni","Audio Track":"Zvočni posnetek","Volume Level":"Raven glasnosti","You aborted the media playback":"Prekinili ste predvajanje.","A network error caused the media download to fail part-way.":"Prenos multimedijske datoteke ni uspel zaradi napake v omrežju.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Multimedijske datoteke ni bilo mogoče naložiti zaradi napake na strežniku oziroma omrežju ali ker ta oblika ni podprta.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Predvajanje datoteke je bilo prekinjeno zaradi napak v datoteki ali ker uporablja funkcije, ki jih brskalnik ne podpira.","No compatible source was found for this media.":"Za to datoteko ni bil najden noben združljiv vir.","The media is encrypted and we do not have the keys to decrypt it.":"Datoteka je šifrirana in predvajalnik nima ključev za njeno dešifriranje.","Play Video":"Predvajaj","Close":"Zapri","Close Modal Dialog":"Zapri modalno okno","Modal Window":"Modalno okno","This is a modal window":"To je modalno okno","This modal can be closed by pressing the Escape key or activating the close button.":"To okno lahko zaprete s pritiskom na tipko Escape ali z aktiviranjem gumba za zapiranje.",", opens captions settings dialog":", odpre nastavitve za zvočni zapis",", opens subtitles settings dialog":", odpre nastavitve za podnapise",", opens descriptions settings dialog":", odpre nastavitve za opis",", selected":", izbrano","captions settings":"nastavitve zvočnega zapisa","subtitles settings":"nastavitve podnapisov","descriptions settings":"nastavitve opisa","Text":"Tekst","White":"Bela","Black":"Črna","Red":"Rdeča","Green":"Zelena","Blue":"Modra","Yellow":"Rumena","Magenta":"Magenta","Cyan":"Cian","Background":"Ozadje","Window":"Okno","Transparent":"Prozorno","Semi-Transparent":"Delno prozorno","Opaque":"Neprozorno","Font Size":"Velikost pisave","Text Edge Style":"Slog roba besedila","None":"Brez","Raised":"Dvignjeno","Depressed":"Vtisnjeno","Uniform":"Enakomerno","Dropshadow":"S senco","Font Family":"Družina pisave","Small Caps":"Male črke","Reset":"Ponastavi","restore all settings to the default values":"obnovi vse nastav
473itve na privzete vrednosti","Done":"Končano","Caption Settings Dialog":"Pogovorno okno za nastavitve zvočnega zapisa","Beginning of dialog window. Escape will cancel and close the window.":"Začetek pogovornega okna. Escape bo preklical in zaprl okno.","End of dialog window.":"Konec pogovornega okna.","{1} is loading.":"{1} se nalaga.","Exit Picture-in-Picture":"Izhod iz slike v sliki","Picture-in-Picture":"Slika v sliki"}')},9275:e=>{"use strict";e.exports=JSON.parse('{"Play":"Pusti","Pause":"Pauza","Current Time":"Trenutno vreme","Duration":"Vreme trajanja","Remaining Time":"Preostalo vreme","Stream Type":"Način strimovanja","LIVE":"UŽIVO","Loaded":"Učitan","Progress":"Progres","Fullscreen":"Pun ekran","Non-Fullscreen":"Mali ekran","Mute":"Prigušen","Unmute":"Ne-prigušen","Playback Rate":"Stopa reprodukcije","Subtitles":"Podnaslov","subtitles off":"Podnaslov deaktiviran","Captions":"Titlovi","captions off":"Titlovi deaktivirani","Chapters":"Poglavlja","You aborted the media playback":"Isključili ste reprodukciju videa.","A network error caused the media download to fail part-way.":"Video se prestao preuzimati zbog greške na mreži.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video se ne može reproducirati zbog servera, greške u mreži ili format nije podržan.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Reprodukcija videa je zaustavljenja zbog greške u formatu ili zbog verzije vašeg pretraživača.","No compatible source was found for this media.":"Nije nađen nijedan kompatibilan izvor ovog videa."}')},7046:e=>{"use strict";e.exports=JSON.parse('{", opens captions settings dialog":", öppnar dialogruta för textning",", opens descriptions settings dialog":", öppnar dialogruta för inställningar",", opens subtitles settings dialog":", öppnar dialogruta för undertexter",", selected":", vald","A network error caused the media download to fail part-way.":"Ett nätverksfel gjorde att nedladdningen av videon avbröts.","Audio Player":"Ljudspelare","Audio Track":"Ljudspår","Background":"Bakgrund","Beginning of dialog window. Escape will cancel and close the window.":"Början av dialogfönster. Escape avbryter och stänger fönstret.","Black":"Svart","Blue":"Blå","Caption Settings Dialog":"Dialogruta för textningsinställningar","Captions":"Text på","Casual":"Casual","Chapters":"Kapitel","Close":"Stäng","Close Modal Dialog":"Stäng dialogruta","Current Time":"Aktuell tid","Cyan":"Cyan","Depressed":"Deprimerad","Descriptions":"Beskrivningar","Done":"Klar","Dropshadow":"DropSkugga","Duration":"Total tid","End of dialog window.":"Slutet av dialogfönster.","Font Family":"Typsnittsfamilj","Font Size":"Textstorlek","Fullscreen":"Fullskärm","Green":"Grön","LIVE":"LIVE","Loaded":"Laddad","Magenta":"Magenta","Modal Window":"dialogruta","Monospace Sans-Serif":"Monospace Sans-Serif","Monospace Serif":"Monospace Serif","Mute":"Ljud av","No compatible source was found for this media.":"Det gick inte att hitta någon kompatibel källa för den här videon.","Non-Fullscreen":"Ej fullskärm","None":"Ingen","Opaque":"Opak","Pause":"Pausa","Play":"Spela","Play Video":"Spela upp video","Playback Rate":"Uppspelningshastighet","Progress":"Förlopp","Progress Bar":"förloppsmätare","Proportional Sans-Serif":"Proportionell Sans-Serif","Proportional Serif":"Proportionell Serif","Raised":"Raised","Red":"Röd","Remaining Time":"Återstående tid","Replay":"Spela upp igen","Reset":"Återställ","Script":"Manus","Seek to live, currently behind live":"Återgå till live, uppspelningen är inte live","Seek to live, currently playing live":"Återgå till live, uppspelningen är live","Semi-Transparent":"Semi-transparent","Small Caps":"Small-Caps","Stream Type":"Strömningstyp","Subtitles":"Text på","Text":"Text","Text Edge Style":"Textkantstil","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Det gick inte att ladda videon, antingen på grund av ett server- eller nätverksfel, eller för att formatet inte stöds.","The media is encrypted and we do not have the keys to decrypt it."
473:"Mediat är krypterat och vi har inte nycklarna för att dekryptera det.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Uppspelningen avbröts på grund av att videon är skadad, eller också för att videon använder funktioner som din webbläsare inte stöder.","This is a modal window":"Det här är ett dialogruta","This modal can be closed by pressing the Escape key or activating the close button.":"Den här dialogrutan kan stängas genom att trycka på Escape-tangenten eller stäng knappen.","Transparent":"Transparent","Uniform":"Uniform","Unmute":"Ljud på","Video Player":"Videospelare","Volume Level":"Volymnivå","White":"Vit","Window":"Fönster","Yellow":"Gul","You aborted the media playback":"Du har avbrutit videouppspelningen.","captions off":"Text av","captions settings":"textningsinställningar","descriptions off":"beskrivningar av","descriptions settings":"beskrivningsinställningar","progress bar timing: currentTime={1} duration={2}":"{1} av {2}","restore all settings to the default values":"återställ alla inställningar till standardvärden","subtitles off":"Text av","subtitles settings":"undertextsinställningar","{1} is loading.":"{1} laddar."}')},4653:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"ఆడియో ప్లేయర్","Video Player":"వీడియో ప్లేయర్","Play":"ప్లే","Pause":"పాజ్","Replay":"రీప్లే","Current Time":"ప్రస్తుత సమయం","Duration":"వ్యవధి","Remaining Time":"మిగిలిన సమయం","Stream Type":"స్ట్రీమ్ రకం","LIVE":"లైవ్","Seek to live, currently behind live":"ప్రత్యక్ష ప్రసారానికి వెళ్ళండి, ప్రస్తుతం ప్రత్యక్ష ప్రసారానికి వెనుకబడి ఉంది","Seek to live, currently playing live":"ప్రత్యక్ష ప్రసారానికి వెళ్ళండి, ప్రస్తుతం ప్రత్యక్ష ప్రసారం అవుతోంది","Loaded":"లోడ్ చేయబడింది","Progress":"పురోగతి","Progress Bar":"ప్రోగ్రెస్ బార్","progress bar timing: currentTime={1} duration={2}":"{1} యొక్క {2}","Fullscreen":"పూర్తి స్క్రీన్","Non-Fullscreen":"పూర్తి స్క్రీన్ నుండి నిష్క్రమించండి","Mute":"మ్యూట్","Unmute":"అన్మ్యూట్ చేయండి","Playback Rate":"ప్లేబ్యాక్ రేట్","Subtitles":"ఉపశీర్షికలు","
473subtitles off":"ఉపశీర్షికలు ఆఫ్ చేయండి","Captions":"శీర్షికలు","captions off":"శీర్షికలు ఆఫ్ చేయండి","Chapters":"అధ్యాయాలు","Descriptions":"వివరణలు","descriptions off":"వివరణలు ఆఫ్ చేయండి","Audio Track":"ఆడియో ట్రాక్","Volume Level":"వాల్యూమ్ స్థాయి","You aborted the media playback":"మీరు మీడియా ప్లేబ్యాక్‌ను రద్దు చేశారు","A network error caused the media download to fail part-way.":"నెట్‌వర్క్ లోపం వలన మీడియా డౌన్‌లోడ్ విఫలమైంది.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"సర్వర్ లేదా నెట్‌వర్క్ విఫలమైనందున లేదా ఫార్మాట్‌కు మద్దతు లేనందున మీడియాను లోడ్ చేయడం సాధ్యం కాలేదు.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"అవినీతి సమస్య కారణంగా లేదా మీ బ్రౌజర్ మద్దతు ఇవ్వని లక్షణాలను మీడియా ఉపయోగించినందున మీడియా ప్లేబ్యాక్ నిలిపివేయబడింది.","No compatible source was found for this media.":"ఈ మీడియాకు అనుకూలమైన మూలం కనుగొనబడలేదు.","The media is encrypted and we do not have the keys to decrypt it.":"మీడియా గుప్తీకరించబడింది మరియు దానిని డీక్రిప్ట్ చేయడానికి మాకు కీలు లేవు.","Play Video":"వీడియో ప్లే చేయండి","Close":"మూసివేయండి","Close Modal Dialog":"మోడల్ డైలాగ్‌ను మూసివేయండి","Modal Window":"మోడల్ విండో","This is a modal window":"ఇది మోడల్ విండో","This modal can be closed by pressing the Escape key or activating the close button.":"ఎస్కేప్ కీని నొక్కడం ద్వారా లేదా క్లోజ్ బటన్‌ను యాక్టివేట్ చేయడం ద్వారా ఈ మోడల్‌ను మూసివేయవచ్చు.",", opens captions settings dialog":", శీర్షికల సెట్టింగ్‌ల డైలాగ్‌ను తెరుస్తుంది",", opens subtitles settings dialog":", ఉపశీర్షికల సెట్టింగుల డైలాగ్‌ను తెరుస్తుంది",", opens descriptions settings dialog":", వివరణల సెట్టింగుల డైలాగ్‌ను తెరుస్తుంది",", selected":", ఎంచుకోబడింది","captions settings":"శీర్షికల సెట్టింగులు","subtitles settings":"ఉపశీర్షికల సెట్టింగులు","descriptions settings":"వివరణల సెట్టింగులు","Text":"వచనం","White":"తెలుపు","Black":"నలుపు","Red":"ఎరుపు","Green":"ఆకుపచ్చ","Blue":"నీలం","Yellow":"పసుపు","Magenta":"మెజెంటా","Cyan":"సియాన్","Background":"నేపధ్యం","Window":"కిటికీ","Transparent":"పారదర్శక","Semi-Transparent":"సెమీ-పారదర్శక","Opaque":"అపారదర్శక","Font Size":"ఫాంట్ పరిమాణం","Text Edge Style":"టెక్స్ట్ ఎడ్జ్ శైలి","None":"ఏదీ లేదు","Raised":"పెంచబడింది","Depressed":"అణగారిన","Uniform":"ఏకరీతి","Dropshadow":"డ్రాప్‌షాడో","Font Family":"à°«à°¾à°
473‚ట్ కుటుంబం","Proportional Sans-Serif":"ప్రొపోర్షన్ సాన్స్-సెరిఫ్","Monospace Sans-Serif":"మోనోస్పేస్ సాన్స్-సెరిఫ్","Proportional Serif":"ప్రొపోర్షన్ సెరిఫ్","Monospace Serif":"మోనోస్పేస్ సెరిఫ్","Casual":"సాధారణ","Script":"స్క్రిప్ట్","Small Caps":"చిన్న క్యాప్స్","Reset":"రీసెట్ చేయండి","restore all settings to the default values":"అన్ని సెట్టింగులను డిఫాల్ట్ విలువలకు పునరుద్ధరించండి","Done":"పూర్తయింది","Caption Settings Dialog":"శీర్షిక సెట్టింగ్‌ల డైలాగ్","Beginning of dialog window. Escape will cancel and close the window.":"డైలాగ్ విండో ప్రారంభం. ఎస్కేప్ విండోను రద్దు చేస్తుంది మరియు మూసివేస్తుంది.","End of dialog window.":"డైలాగ్ విండో ముగింపు.","{1} is loading.":"{1} లోడ్ అవుతోంది.","Exit Picture-in-Picture":"పిక్చర్-ఇన్-పిక్చర్ నుండి నిష్క్రమించండి","Picture-in-Picture":"పిక్చర్-ఇన్-పిక్చర్"}')},5708:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"โปรแกรมเล่นเสียง","Video Player":"โปรแกรมเล่นวิดีโอ","Play":"เล่น","Pause":"หยุดชั่วคราว","Replay":"เล่นซ้ำ","Current Time":"เวลาปัจจุบัน","Duration":"ระยะเวลา","Remaining Time":"เวลาที่เหลือ","Stream Type":"ประเภทของสตรีม","LIVE":"ถ่ายทอดสด","Seek to live, currently behind live":"หาโอกาสที่จะถ่ายทอดสด กำลังอยู่เบื้องหลังการถ่ายทอดสดในขณะนี้","Seek to live, currently playing live":"หาโอกาสที่จะถ่ายทอดสด กำลังเล่นแบบสดในขณะนี้","Loaded":"โหลดแล้ว","Progress":"ความคืบหน้า","Progress Bar":"แถบแสดงความคืบหน้า","progress bar timing: currentTime={1} duration={2}":"{1} ของ {2}","Fullscreen":"แบบเต็มหน้าจอ","Non-Fullscreen":"ไม่ใช่แบบเต็มหน้าจอ","Mute":"ปิดเสียง","Unmute":"ยกเลิกการปิดเสียง","Playback Rate":"อัตราการเล่น","Subtitles":"คำบรรยาย","subtitles off":"ปิดคำบรรยาย","Captions":"คำอธิบายภาพ","captions off":"ปิดคำอธิบายภาพ","Chapters":"บท","Descriptions":"คำอธิบาย","descriptions off":"ปิดคำอธิบาย","Audio Track":"แทร็กเสียง","Volume Level":"ระดับเสียง","You aborted the media playback":"คุณยกเลิกการเล่นสื่อแล้ว","A network error caused the media download to fail part-way.":"ข้อผิดพลาดของเครือข่ายทำให้การดาวน์โหลดสื่อไม่สำเร็จเป็นบางส่วน","The media could not be loaded, either because the server or network failed or because the format is not supported.":"ไม่สามารถโหลดสื่อได้ โดยอาจเป็นเพราะเซิร์ฟเวอร์หรือเครือข่ายล้มเหลว หรือเพราะรูปแบบไม่ได้รับการรองรับ","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"การเล่นสื่อถูกยกเลิกเนื่องจากปัญหาเà¸
473à¸µà¹ˆà¸¢à¸§à¸à¸±à¸šà¸„วามเสียหาย หรือเนื่องจากสื่อใช้ฟีเจอร์ที่เบราว์เซอร์ของคุณไม่รองรับ","No compatible source was found for this media.":"ไม่พบแหล่งที่เข้ากันได้สำหรับสื่อนี้","The media is encrypted and we do not have the keys to decrypt it.":"สื่อถูกเข้ารหัสลับแล้ว และเราไม่มีคีย์ที่จะถอดรหัสลับดังกล่าว","Play Video":"เล่นวิดีโอ","Close":"ปิด","Close Modal Dialog":"ปิดกล่องโต้ตอบโมดอล","Modal Window":"หน้าต่างโมดอล","This is a modal window":"รายการนี้เป็นหน้าต่างโมดอล","This modal can be closed by pressing the Escape key or activating the close button.":"คุณสามารถปิดโมดอลนี้โดยกดปุ่ม Escape หรือเปิดใช้งานปุ่มปิด",", opens captions settings dialog":", เปิดกล่องโต้ตอบการตั้งค่าคำอธิบายภาพ",", opens subtitles settings dialog":", เปิดกล่องโต้ตอบการตั้งค่าคำบรรยาย",", opens descriptions settings dialog":", เปิดกล่องโต้ตอบการตั้งค่าคำอธิบาย",", selected":", เลือกแล้ว","captions settings":"การตั้งค่าคำอธิบายภาพ","subtitles settings":"การตั้งค่าคำบรรยาย","descriptions settings":"การตั้งค่าคำอธิบาย","Text":"ข้อความ","White":"สีขาว","Black":"สีดำ","Red":"สีแดง","Green":"สีเขียว","Blue":"สีน้ำเงิน","Yellow":"สีเหลือง","Magenta":"สีม่วงแดง","Cyan":"สีน้ำเงินอมเขียว","Background":"พื้นหลัง","Window":"หน้าต่าง","Transparent":"โปร่งใส","Semi-Transparent":"กึ่งโปร่งใส","Opaque":"ทึบ","Font Size":"ขนาดแบบอักษร","Text Edge Style":"ลักษณะขอบข้อความ","None":"ไม่มี","Raised":"ยกขึ้น","Depressed":"ปล่อยออก","Uniform":"รูปแบบ","Dropshadow":"เพิ่มเงา","Font Family":"ตระกูลแบบอักษร","Proportional Sans-Serif":"Sans-Serif ตามสัดส่วน","Monospace Sans-Serif":"Sans-Serif ช่องว่างเดี่ยว","Proportional Serif":"Serif ตามสัดส่วน","Monospace Serif":"Serif ช่องว่างเดี่ยว","Casual":"ไม่เป็นทางการ","Script":"สคริปต์","Small Caps":"ตัวพิมพ์ใหญ่ขนาดเล็ก","Reset":"รีเซ็ต","restore all settings to the default values":"คืนค่าการตั้งค่าท้้งหมดให้เป็นค่าเริ่มต้น","Done":"เสร็จสิ้น","Caption Settings Dialog":"กล่องโต้ตอบการตั้งค่าคำอธิบายภาพ","Beginning of dialog window. Escape will cancel and close the window.":"การเริ่มต้นหน้าต่างกล่องโต้ตอบ Escape จะยกเลิกและปิดหน้าต่าง","End of dialog window.":"สิ้นสุดหน้าต่างกล่องโต้ตอบ","{1} is loading.":"กำลังโหลด {1}","Exit Picture-in-Picture":"ออกจากการเล่นภาพควบคู่","Picture-in-Picture":"การเล่นภาพควบคู่"}')},3832:e=>{"use strict";e.exports=JSON.parse('{"Play":"Oynat","Pause":"Duraklat","Replay":"Yeniden Oynat","Current Time":"Süre","Duration":"Toplam Süre","Remaining Time":"Kalan Süre","Stream Type":"Yayın Tipi","LIVE":"CANLI","Loaded":"Yüklendi","Progress":"Yükleniyor","Fullscreen":"Tam Ekran","Non-Fullscreen":"Küçük Ekran","Mute":"Ses Kapa","Unmute":"Ses Aç","Playback Rate":"Oynatma Hızı","Subtitles":"Altyazı","subtitles off":"Altyazı Kapalı","Captions":"Altyazı","captions off":"Altyazı Kapalı","Chapters":"Bölümler","Close Mod
473al Dialog":"Dialogu Kapat","Descriptions":"Açıklamalar","descriptions off":"Açıklamalar kapalı","Audio Track":"Ses Dosyası","You aborted the media playback":"Video oynatmayı iptal ettiniz","A network error caused the media download to fail part-way.":"Video indirilirken bağlantı sorunu oluştu.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video oynatılamadı, ağ ya da sunucu hatası veya belirtilen format desteklenmiyor.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Tarayıcınız desteklemediği için videoda hata oluştu.","No compatible source was found for this media.":"Video için kaynak bulunamadı.","The media is encrypted and we do not have the keys to decrypt it.":"Video, şifrelenmiş bir kaynaktan geliyor ve oynatmak için gerekli anahtar bulunamadı.","Play Video":"Videoyu Oynat","Close":"Kapat","Modal Window":"Modal Penceresi","This is a modal window":"Bu bir modal penceresidir","This modal can be closed by pressing the Escape key or activating the close button.":"Bu modal ESC tuşuna basarak ya da kapata tıklanarak kapatılabilir.",", opens captions settings dialog":", altyazı ayarları menüsünü açar",", opens subtitles settings dialog":", altyazı ayarları menüsünü açar",", opens descriptions settings dialog":", açıklama ayarları menüsünü açar",", selected":", seçildi","captions settings":"altyazı ayarları","subtitles settings":"altyazı ayarları","descriptions settings":"açıklama ayarları","Text":"Yazı","White":"Beyaz","Black":"Siyah","Red":"Kırmızı","Green":"Yeşil","Blue":"Mavi","Yellow":"Sarı","Magenta":"Macenta","Cyan":"Açık Mavi (Camgöbeği)","Background":"Arka plan","Window":"Pencere","Transparent":"Saydam","Semi-Transparent":"Yarı-Saydam","Opaque":"Mat","Font Size":"Yazı Boyutu","Text Edge Style":"Yazı Kenarlıkları","None":"Hiçbiri","Raised":"Kabartılmış","Depressed":"Yassı","Uniform":"Düz","Dropshadow":"Gölgeli","Font Family":"Yazı Tipi","Proportional Sans-Serif":"Orantılı Sans-Serif","Monospace Sans-Serif":"Eşaralıklı Sans-Serif","Proportional Serif":"Orantılı Serif","Monospace Serif":"Eşaralıklı Serif","Casual":"Gündelik","Script":"El Yazısı","Small Caps":"Küçük Boyutlu Büyük Harfli","Done":"Tamam","Caption Settings Dialog":"Altyazı Ayarları Menüsü","Beginning of dialog window. Escape will cancel and close the window.":"Diyalog penceresinin başlangıcı. ESC tuşu işlemi iptal edip pencereyi kapatacaktır."}')},2161:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Аудіопрогравач","Video Player":"Відеопрогравач","Play":"Відтворити","Pause":"Призупинити","Replay":"Відтворити знову","Current Time":"Поточний час","Duration":"Тривалість","Remaining Time":"Час, що залишився","Stream Type":"Тип потоку","LIVE":"НАЖИВО","Loaded":"Завантаження","Progress":"Прогрес","Progress Bar":"Індикатор завантаження","progress bar timing: currentTime={1} duration={2}":"{1} з {2}","Fullscreen":"Повноекранний режим","Non-Fullscreen":"Неповноекранний режим","Mute":"Без звуку","Unmute":"Зі звуком","Playback Rate":"Швидкість відтворення","Subtitles":"Субтитри","subtitles off":"Без субтитрів","Captions":"Підписи","captions off":"Без підписів","Chapters":"Розділи","Close Modal Dialog":"Закрити модальний діалог","Descriptions":"Описи","descriptions off":"Без описів","Audio Track":"Аудіодоріжка","Volume Level":"Рівень гучності","You aborted the media playback":"Ви припинили відтворення відео","A network error caused the media download to fail part-way.":"Помилка мережі викликала збій під час завантаження відео.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Неможливо завантажити відео через мережевий чи серверний збій або формат не підтримується.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"В
473ідтворення відео було припинено через пошкодження або у зв\'язку з тим, що відео використовує функції, які не підтримуються вашим браузером.","No compatible source was found for this media.":"Сумісні джерела для цього відео відсутні.","The media is encrypted and we do not have the keys to decrypt it.":"Відео в зашифрованому вигляді, і ми не маємо ключі для розшифровки.","Play Video":"Відтворити відео","Close":"Закрити","Modal Window":"Модальне вікно","This is a modal window":"Це модальне вікно.","This modal can be closed by pressing the Escape key or activating the close button.":"Модальне вікно можна закрити, натиснувши клавішу Esc або кнопку закриття вікна.",", opens captions settings dialog":", відкриється діалогове вікно налаштування підписів",", opens subtitles settings dialog":", відкриється діалогове вікно налаштування субтитрів",", opens descriptions settings dialog":", відкриється діалогове вікно налаштування описів",", selected":", обраний","captions settings":"налаштування підписів","subtitles settings":"налаштування субтитрів","descriptions settings":"налаштування описів","Text":"Текст","White":"Білий","Black":"Чорний","Red":"Червоний","Green":"Зелений","Blue":"Синій","Yellow":"Жовтий","Magenta":"Пурпурний","Cyan":"Блакитний","Background":"Фон","Window":"Вікно","Transparent":"Прозорий","Semi-Transparent":"Напівпрозорий","Opaque":"Прозорість","Font Size":"Розмір шрифту","Text Edge Style":"Стиль краю тексту","None":"Нічого","Raised":"Піднятий","Depressed":"Знижений","Uniform":"Однаковий","Dropshadow":"Тінь","Font Family":"Шрифт","Proportional Sans-Serif":"Пропорційний без засічок","Monospace Sans-Serif":"Моноширинний без засічок","Proportional Serif":"Пропорційний із засічками","Monospace Serif":"Моноширинний із засічками","Casual":"Випадковий","Script":"Писемний","Small Caps":"Малі прописні","Reset":"Скинути","restore all settings to the default values":"скинути всі налаштування за замовчуванням","Done":"Готово","Caption Settings Dialog":"Діалог налаштувань підпису","Beginning of dialog window. Escape will cancel and close the window.":"Початок діалоговго вікна. Кнопка Escape закриє або скасує вікно","End of dialog window.":"Кінець діалогового вікна.","{1} is loading.":"{1} завантажується."}')},3155:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Trình phát Audio","Video Player":"Trình phát Video","Play":"Phát","Pause":"Tạm dừng","Replay":"Phát lại","Current Time":"Thời gian hiện tại","Duration":"Độ dài","Remaining Time":"Thời gian còn lại","Stream Type":"Kiểu Stream","LIVE":"TRá»°C TIẾP","Loaded":"Đã tải","Progress":"Tiến trình","Progress Bar":"Thanh tiến trình","progress bar timing: currentTime={1} duration={2}":"{1} cá»§a {2}","Fullscreen":"Toàn màn hình","Non-Fullscreen":"Thoát toàn màn hình","Mute":"Tắt tiếng","Unmute":"Bật âm thanh","Playback Rate":"Tỉ lệ phát lại","Subtitles":"Phụ đề","subtitles off":"tắt phụ đề","Captions":"Chú thích","captions off":"tắt chú thích","Chapters":"Chương","Descriptions":"Mô tả","descriptions off":"tắt mô tả","Audio Track":"Track âm thanh","Volume Level":"Mức âm lượng","You aborted the media playback":"Bạn đã há»§y việc phát lại media.","A network error caused the media download to fail part-way.":"Má»
473™t lỗi mạng dẫn đến việc tải media bị lỗi.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video không tải được, mạng hay server có lỗi hoặc định dạng không được hỗ trợ.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Phát media đã bị há»§y do một sai lỗi hoặc media sá»­ dụng những tính năng trình duyệt không hỗ trợ.","No compatible source was found for this media.":"Không có nguồn tương thích cho media này.","The media is encrypted and we do not have the keys to decrypt it.":"Media đã được mã hóa và chúng tôi không có để giải mã nó.","Play Video":"Phát Video","Close":"Đóng","Close Modal Dialog":"Đóng cá»­a sổ","Modal Window":"Cá»­a sổ","This is a modal window":"Đây là một cá»­a sổ","This modal can be closed by pressing the Escape key or activating the close button.":"Cá»­a sổ này có thể thoát bằng việc nhấn phím Esc hoặc kích hoạt nút đóng.",", opens captions settings dialog":", mở hộp thoại cài đặt chú thích",", opens subtitles settings dialog":", mở hộp thoại cài đặt phụ đề",", opens descriptions settings dialog":", mở hộp thoại cài đặt mô tả",", selected":", đã chọn","captions settings":"cài đặt chú thích","subtitles settings":"cài đặt phụ đề","descriptions settings":"cài đặt mô tả","Text":"Văn bản","White":"Trắng","Black":"Đen","Red":"Đỏ","Green":"Xanh lá cây","Blue":"Xanh da trời","Yellow":"Vàng","Magenta":"Đỏ tươi","Cyan":"Lam","Background":"Nền","Window":"Cá»­a sổ","Transparent":"Trong suốt","Semi-Transparent":"Bán trong suốt","Opaque":"Mờ","Font Size":"Kích cỡ phông chữ","Text Edge Style":"Dạng viền văn bản","None":"None","Raised":"Raised","Depressed":"Depressed","Uniform":"Uniform","Dropshadow":"Dropshadow","Font Family":"Phông chữ","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"Đặt lại","restore all settings to the default values":"khôi phục lại tất cả các cài đặt về giá trị mặc định","Done":"Xong","Caption Settings Dialog":"Hộp thoại cài đặt chú thích","Beginning of dialog window. Escape will cancel and close the window.":"Bắt đầu cá»­a sổ hộp thoại. Esc sẽ thoát và đóng cá»­a sổ.","End of dialog window.":"Kết thúc cá»­a sổ hộp thoại."}')},3302:e=>{"use strict";e.exports=JSON.parse('{"Play":"播放","Pause":"暂停","Current Time":"当前时间","Duration":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","LIVE":"直播","Loaded":"加载完成","Progress":"进度","Fullscreen":"全屏","Non-Fullscreen":"退出全屏","Picture-in-Picture":"画中画","Exit Picture-in-Picture":"退出画中画","Mute":"静音","Unmute":"取消静音","Playback Rate":"播放速度","Subtitles":"字幕","subtitles off":"关闭字幕","Captions":"内嵌字幕","captions off":"关闭内嵌字幕","Chapters":"节目段落","Close Modal Dialog":"关闭弹窗","Descriptions":"描述","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源。","The media is encrypted and we do not have the keys to decrypt it."
473:"视频已加密,无法解密。","Play Video":"播放视频","Close":"关闭","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Replay":"重新播放","Progress Bar":"进度条","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Text":"文字","White":"白","Black":"黑","Red":"红","Green":"绿","Blue":"蓝","Yellow":"黄","Magenta":"紫红","Cyan":"青","Background":"背景","Window":"窗口","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","None":"无","Raised":"浮雕","Depressed":"压低","Uniform":"均匀","Dropshadow":"下阴影","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Casual":"舒适","Script":"手写体","Small Caps":"小型大写字体","Reset":"重置","restore all settings to the default values":"恢复全部设定至预设值","Done":"完成","Caption Settings Dialog":"字幕设定窗口","Beginning of dialog window. Escape will cancel and close the window.":"打开对话窗口。Escape键将取消并关闭对话窗口","End of dialog window.":"结束对话窗口","Seek to live, currently behind live":"尝试直播,当前为延时播放","Seek to live, currently playing live":"尝试直播,当前为实时播放","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"正在加载 {1}。"}')},5313:e=>{"use strict";e.exports=JSON.parse('{"Play":"播放","Pause":"暂停","Current Time":"当前时间","Duration":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","LIVE":"直播","Loaded":"加载完成","Progress":"进度","Fullscreen":"全屏","Non-Fullscreen":"退出全屏","Picture-in-Picture":"画中画","Exit Picture-in-Picture":"退出画中画","Mute":"静音","Unmute":"取消静音","Playback Rate":"播放速度","Subtitles":"字幕","subtitles off":"关闭字幕","Captions":"内嵌字幕","captions off":"关闭内嵌字幕","Chapters":"节目段落","Close Modal Dialog":"关闭弹窗","Descriptions":"描述","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频","Close":"关闭","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Replay":"重新播放","Progress Bar":"进度条","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Text":"文字","White":"白","Black":"黑","Red":"红","Green":"绿","Blue":"蓝","Yellow":"黄","Magenta":"紫红","Cyan":"青","Backgroun
473d":"背景","Window":"窗口","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","None":"无","Raised":"浮雕","Depressed":"压低","Uniform":"均匀","Dropshadow":"下阴影","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Casual":"舒适","Script":"手写体","Small Caps":"小型大写字体","Reset":"重置","restore all settings to the default values":"恢复全部设定至预设值","Done":"完成","Caption Settings Dialog":"字幕设定窗口","Beginning of dialog window. Escape will cancel and close the window.":"打开对话窗口。Escape键将取消并关闭对话窗口","End of dialog window.":"结束对话窗口","Seek to live, currently behind live":"尝试直播,当前为延时播放","Seek to live, currently playing live":"尝试直播,当前为实时播放","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"正在加载 {1}。"}')},4683:e=>{"use strict";e.exports=JSON.parse('{"Play":"播放","Pause":"暫停","Current Time":"目前時間","Duration":"總共時間","Remaining Time":"剩餘時間","Stream Type":"串流類型","LIVE":"直播","Loaded":"載入完畢","Progress":"進度","Fullscreen":"全螢幕","Non-Fullscreen":"退出全螢幕","Mute":"靜音","Unmute":"取消靜音","Playback Rate":" 播放速率","Subtitles":"字幕","subtitles off":"關閉字幕","Captions":"內嵌字幕","captions off":"關閉內嵌字幕","Chapters":"章節","Close Modal Dialog":"關閉對話框","Descriptions":"描述","descriptions off":"關閉描述","Audio Track":"音軌","You aborted the media playback":"影片播放已終止","A network error caused the media download to fail part-way.":"網路錯誤導致影片下載失敗。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"因格式不支援、伺服器或網路的問題無法載入媒體。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。","No compatible source was found for this media.":"無法找到相容此媒體的來源。","The media is encrypted and we do not have the keys to decrypt it.":"媒體已加密,無法解密。","Play Video":"播放影片","Close":"關閉","Modal Window":"強制回應視窗","This is a modal window":"此為強制回應視窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按鍵或關閉按鈕來關閉此視窗。",", opens captions settings dialog":", 開啟標題設定對話框",", opens subtitles settings dialog":", 開啟字幕設定對話框",", opens descriptions settings dialog":", 開啟描述設定對話框",", selected":", 選擇","captions settings":"字幕設定","Audio Player":"音訊播放器","Video Player":"視訊播放器","Replay":"重播","Progress Bar":"進度列","Volume Level":"音量","subtitles settings":"字幕設定","descriptions settings":"描述設定","Text":"文字","White":"白","Black":"黑","Red":"紅","Green":"綠","Blue":"藍","Yellow":"黃","Magenta":"紫紅","Cyan":"青","Background":"背景","Window":"視窗","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字型尺寸","Text Edge Style":"字型邊緣樣式","None":"無","Raised":"浮雕","Depressed":"壓低","Uniform":"均勻","Dropshadow":"下陰影","Font Family":"字型系列","Proportional Sans-Serif":"調和間距無襯線字型","Monospace Sans-Serif":"等寬無襯線字型","Proportional Serif":"調和間距襯線字型","Monospace Serif":"等寬襯線字型","Casual":"輕便的","Script":"手寫體","Small Caps":"小型大寫字體","Reset":"重置","restore all settings to the default values":"恢復全部設定至預設值","Done":"完成","Caption Settings Dialog":"字幕設定對話框","Beginning of dialog window. Escape will cancel and close the window.":"開始對話視窗。離開會取消並關閉視窗","End of dialog window.":"結束對話視窗","Seek to live, currently behind live":"快轉至直播,目前為稍早畫面","Seek to live, currently playing live":"快轉至直播,目前為現場畫面","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"{1} 正在載入。"}')},2619:e=>{"use strict";e.exports=JSON.parse('{"Play":"播放","Pause":"暫停","Current Time":"目前時間","Duration":"總共時間","Remaining Time":"剩餘時間","Stream Type":"串流類型","LIVE":"直播","Loaded":"載入完畢","Progress":"進度","Fullscreen":"全螢幕","Non-Fullscreen":"退出全螢幕","Mute":"靜音","Unmute":"取消靜音","Playback Rate":" 播放速率","Subtitles":"字幕","subtitles off":"關閉字幕","Captions":"內嵌字幕","captions off":"關閉內嵌字幕","Chapters":"章節","Close Mod
473al Dialog":"關閉對話框","Descriptions":"描述","descriptions off":"關閉描述","Audio Track":"音軌","You aborted the media playback":"影片播放已終止","A network error caused the media download to fail part-way.":"網路錯誤導致影片下載失敗。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"因格式不支援、伺服器或網路的問題無法載入媒體。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。","No compatible source was found for this media.":"無法找到相容此媒體的來源。","The media is encrypted and we do not have the keys to decrypt it.":"媒體已加密,無法解密。","Play Video":"播放影片","Close":"關閉","Modal Window":"強制回應視窗","This is a modal window":"此為強制回應視窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按鍵或關閉按鈕來關閉此視窗。",", opens captions settings dialog":", 開啟標題設定對話框",", opens subtitles settings dialog":", 開啟字幕設定對話框",", opens descriptions settings dialog":", 開啟描述設定對話框",", selected":", 選擇","captions settings":"字幕設定","Audio Player":"音訊播放器","Video Player":"視訊播放器","Replay":"重播","Progress Bar":"進度列","Volume Level":"音量","subtitles settings":"字幕設定","descriptions settings":"描述設定","Text":"文字","White":"白","Black":"黑","Red":"紅","Green":"綠","Blue":"藍","Yellow":"黃","Magenta":"紫紅","Cyan":"青","Background":"背景","Window":"視窗","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字型尺寸","Text Edge Style":"字型邊緣樣式","None":"無","Raised":"浮雕","Depressed":"壓低","Uniform":"均勻","Dropshadow":"下陰影","Font Family":"字型系列","Proportional Sans-Serif":"調和間距無襯線字型","Monospace Sans-Serif":"等寬無襯線字型","Proportional Serif":"調和間距襯線字型","Monospace Serif":"等寬襯線字型","Casual":"輕便的","Script":"手寫體","Small Caps":"小型大寫字體","Reset":"重置","restore all settings to the default values":"恢復全部設定至預設值","Done":"完成","Caption Settings Dialog":"字幕設定對話框","Beginning of dialog window. Escape will cancel and close the window.":"開始對話視窗。離開會取消並關閉視窗","End of dialog window.":"結束對話視窗","Seek to live, currently behind live":"快轉至直播,目前為稍早畫面","Seek to live, currently playing live":"快轉至直播,目前為現場畫面","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"{1} 正在載入。"}')}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(8075),t=n.n(e),i=n(1967),r=n.n(i),a=n(3463),s=n.n(a);const o=class{VIDEO=new Blob([new Uint8Array([0])],{type:"video/mp4"});constructor(e){this.video(e).then(({result:e,error:t})=>{"NotAllowedError"===t?.name&&(document.body.classList.add("low-battery"),window.lowBatteryMode=!0)})}setupDefaultValues(e){return Object.assign({muted:!0,timeout:250,inline:!0},e)}startPlayback(e,t){var n=e.muted,i=e.timeout,r=e.inline,a=t(),s=a.element,o=a.source,l=void 0,u=void 0,c=void 0;return s.muted=n,!0===n&&s.setAttribute("muted","muted"),!0===r&&s.setAttribute("playsinline","playsinline"),s.src=o,new Promise(function(e){l=s.play(),u=setTimeout(function(){c(!1,new Error("Timeout "+i+" ms has been reached"))},i),c=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;s.remove(),s.srcObject=null,clearTimeout(u),e({result:t,error:n})},void 0!==l?l.then(()=>c(!0)).catch(e=>c(!1,e)):c(!0)})}video(e){return e=this.setupDefaultValues(e),this.startPlayback(e,()=>({element:document.createElement("video"),source:URL.createObjectURL(this.VIDEO)}))}};n(5024);var l=n(1576),u=n(1879),c=n(6241),d=n(3807),h=n(5264),p=n(6901),f=n(5003),m=n(4979),g=n(1764),v=n(221),A=n(2758),y=n(6913),b=n(2143),_=n(1288);const w=n(1602),E=n(8577),S=n(6295),T=n(9881),x=n(8661),C=n(1074),{getParamFromUrl:I}=n(4730),M=n(4081).ZP;function k(){requestAnimationFrame(()=>{const e=window.location.search,t=new URLSearchParams(e).get("cid");t&&sessionStorage.setItem("cid",t)})}new o,window.AnimSystem=t(),window.animDisableFunction=e=>"true"===e.controller.getTargetComputedStyle().getPropertyValue("--animation-disabled").trim(),t().use(r(),{}),t().use(s(),{}),t().initialize(),window.addEventListener("load",()=>{document.body.classList.add("dom-loaded")}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",k):k(),window.addEventListener("pageshow",()=>{k()});let P=(()=>{let e=I("sku").slice(0,5);if(e&&partNumbersList){let t=Object.keys(partNumbersList).filter(t=>t.toLowerCase().slice(0,5)==e.toLowerCase());return t[0]?partNumbersList[t[0]]:null}if(window.productPathname&&window.partNumbersList){let e=Object.entries(window.partNumbersList),t=window.location.pathname.replace(window.productPathname,"").split("/").filter(e=>""!=e),n=t[0]||"",i=t[1]||"";i=i.replace(".html",""),i=i||"---";let r=e.find(e=>e[1].sku.slice(0,5)==n);if(r)return partNumbersList[r[0]]}return null})();new M({selectedSKU:P}),window.beatsVideoManager||(window.beatsVideoManager=w()),E(P),S(P),T(),C(),x(),(0,f.Yh)(),(0,m.Jm)(),(0,b.Hw)(),(0,A.Ld)(),(0,v.RT)(),(0,y.oI)(),(0,g.kN)(),(0,h.hs)(),(0,u.initBuyButton)(),(0,p.xh)(),(0,l.Xo)(),(0,d.AE)(),(0,c._H)(),(0,_._g)()})()})();
474//# sourceMappingURL=components.min.js.map
475(()=>{var e={2324:e=>{"use strict";e.exports=function(e){const t={};for(const n in e)t[n]=e[n].reduce(function(e,t){return e[t.name]=!1,e},{version:{string:"",major:0,minor:0,patch:0,documentMode:!1}});return t}},7106:e=>{"use strict";e.exports={browser:[{name:"edge",userAgent:"Edge",version:["rv","Edge"],test:function(e){return e.ua.indexOf("Edge")>-1||"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"===e.ua}},{name:"edgeChromium",userAgent:"Edge",version:["rv","Edg"],test:function(e){return e.ua.indexOf("Edg")>-1&&-1===e.ua.indexOf("Edge")}},{name:"headlessChrome",userAgent:"HeadlessChrome"},{name:"chrome",userAgent:"Chrome"},{name:"firefox",test:function(e){return e.ua.indexOf("Firefox")>-1&&-1===e.ua.indexOf("Opera")},version:"Firefox"},{name:"android",userAgent:"Android"},{name:"safari",test:function(e){return e.ua.indexOf("Safari")>-1&&e.vendor.indexOf("Apple")>-1},version:"Version"},{name:"ie",test:function(e){return e.ua.indexOf("IE")>-1||e.ua.indexOf("Trident")>-1},version:["MSIE","rv"],parseDocumentMode:function(){let e=!1;return document.documentMode&&(e=parseInt(document.documentMode,10)),e}},{name:"opera",userAgent:"Opera",version:["Version","Opera"]},{name:"samsung",userAgent:"SamsungBrowser"}],os:[{name:"windows",test:function(e){return e.ua.indexOf("Windows")>-1},version:"Windows NT"},{name:"osx",userAgent:"Mac",test:function(e){return e.ua.indexOf("Macintosh")>-1}},{name:"ios",test:function(e){return e.ua.indexOf("iPhone")>-1||e.ua.indexOf("iPad")>-1},version:["iPhone OS","CPU OS"]},{name:"linux",userAgent:"Linux",test:function(e){return(e.ua.indexOf("Linux")>-1||e.platform.indexOf("Linux")>-1)&&-1===e.ua.indexOf("Android")}},{name:"fireos",test:function(e){return e.ua.indexOf("Firefox")>-1&&e.ua.indexOf("Mobile")>-1},version:"rv"},{name:"android",userAgent:"Android",test:function(e){return e.ua.indexOf("Android")>-1}},{name:"chromeos",userAgent:"CrOS"}]}},1620:(e,t,n)=>{"use strict";const i=n(2324),r=n(7106);function a(e){return new RegExp(e+"[a-zA-Z\\s/:]+([0-9_.]+)","i")}function o(e,t){if("function"==typeof e.parseVersion)return e.parseVersion(t);{let n=e.version||e.userAgent;"string"==typeof n&&(n=[n]);const i=n.length;let r;for(let e=0;e<i;e++)if(r=t.match(a(n[e])),r&&r.length>1)return r[1].replace(/_/g,".")}return!1}function s(e,t,n){const i=e.length;let r,a;for(let s=0;s<i;s++)if("function"==typeof e[s].test?!0===e[s].test(n)&&(r=e[s].name):n.ua.indexOf(e[s].userAgent)>-1&&(r=e[s].name),r){if(t[r]=!0,a=o(e[s],n.ua),"string"==typeof a){const e=a.split(".");t.version.string=a,e&&e.length>0&&(t.version.major=parseInt(e[0]||0),t.version.minor=parseInt(e[1]||0),t.version.patch=parseInt(e[2]||0))}else"edge"===r&&(t.version.string="12.0.0",t.version.major="12",t.version.minor="0",t.version.patch="0");return"function"==typeof e[s].parseDocumentMode&&(t.version.documentMode=e[s].parseDocumentMode()),t}return t}e.exports=function(e){const t={},n=i(r);return t.browser=s(r.browser,n.browser,e),t.os=s(r.os,n.os,e),t}},820:(e,t,n)=>{"use strict";const i="undefined"!=typeof window?window.navigator:{userAgent:"",platform:"",vendor:""},r={ua:i.userAgent,platform:i.platform,vendor:i.vendor};e.exports=n(1620)(r)},9669:(e,t,n)=>{e.exports=n(1609)}
475,5448:(e,t,n)=>{"use strict";var i=n(4867),r=n(6026),a=n(4372),o=n(5327),s=n(4097),l=n(4109),u=n(7985),c=n(5061);e.exports=function(e){return new Promise(function(t,n){var d=e.data,h=e.headers,p=e.responseType;i.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+g)}var v=s(e.baseURL,e.url);function y(){if(f){var i="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,a={data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:i,config:e,request:f};r(t,n,a),f=null}}if(f.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(n(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var b=(e.withCredentials||u(v))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&i.forEach(h,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)}),i.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),p&&"json"!==p&&(f.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),n(e),f=null)}),d||(d=null),f.send(d)})}},1609:(e,t,n)=>{"use strict";var i=n(4867),r=n(1849),a=n(321),o=n(7185);function s(e){var t=new a(e),n=r(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var l=s(n(5655));l.Axios=a,l.create=function(e){return s(o(l.defaults,e))},l.Cancel=n(5263),l.CancelToken=n(4972),l.isCancel=n(6502),l.all=function(e){return Promise.all(e)},l.spread=n(8713),l.isAxiosError=n(6268),e.exports=l,e.exports.default=l},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var i=n(5263);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new i(e),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var i=n(4867),r=n(5327),a=n(782),o=n(3572),s=n(7185),l=n(4875),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var r,a=[];if(this.interceptors.response.forEach(function(e){a.push(e.fulfilled,e.rejected)}),!i){var c=[o,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(a),r=Promise.resolve(e);c.length;)r=r.then(c.shift(),c.shift());return r}for(var d=e;n.length;){var h=n.shift(),p=n.shift();try{d=h(d)}catch(e){p(e);break}}try{r=o(d)}catch(e){return Promise.reject(e)}for(;a.length;)r=r.then(a.shift(),a.shift());return r},c.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")}
475,i.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),i.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,i){return this.request(s(i||{},{method:e,url:t,data:n}))}}),e.exports=c},782:(e,t,n)=>{"use strict";var i=n(4867);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},4097:(e,t,n)=>{"use strict";var i=n(1793),r=n(7303);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},5061:(e,t,n)=>{"use strict";var i=n(481);e.exports=function(e,t,n,r,a){var o=new Error(e);return i(o,t,n,r,a)}},3572:(e,t,n)=>{"use strict";var i=n(4867),r=n(8527),a=n(6502),o=n(5655);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return s(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},481:e=>{"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:(e,t,n)=>{"use strict";var i=n(4867);e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function u(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(e[r],t[r])}i.forEach(r,function(e){i.isUndefined(t[e])||(n[e]=l(void 0,t[e]))}
475),i.forEach(a,u),i.forEach(o,function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(void 0,t[r])}),i.forEach(s,function(i){i in t?n[i]=l(e[i],t[i]):i in e&&(n[i]=l(void 0,e[i]))});var c=r.concat(a).concat(o).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===c.indexOf(e)});return i.forEach(d,u),n}},6026:(e,t,n)=>{"use strict";var i=n(5061);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var i=n(4867),r=n(5655);e.exports=function(e,t,n){var a=this||r;return i.forEach(n,function(n){e=n.call(a,e,t)}),e}},5655:(e,t,n)=>{"use strict";var i=n(4867),r=n(6016),a=n(481),o={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(5448)),l),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}}
475,i.forEach(["delete","get","head"],function(e){u.headers[e]={}}),i.forEach(["post","put","patch"],function(e){u.headers[e]=i.merge(o)}),e.exports=u},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var i=n(4867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(i.isURLSearchParams(t))a=t.toString();else{var o=[];i.forEach(t,function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))}))}),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var i=n(4867);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var i=n(4867);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var i=n(4867);e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},4109:(e,t,n)=>{"use strict";var i=n(4867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(i.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o):o}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var i=n(8593),r={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={},o=i.version.split(".");function s(e,t){for(var n=t?t.split("."):o,i=e.split("."),r=0;r<3;r++){if(n[r]>i[r])return!0;if(n[r]<i[r])return!1}return!1}r.transitional=function(e,t,n){var r=t&&s(t);function o(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new Error(o(i," has been removed in "+t));return r&&!a[i]&&(a[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var i=Object.keys(e),r=i.length;r-- >0;){var a=i[r],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:r}},4867:(e,t,n)=>{"use strict";var i=n(1849),r=Object.prototype.toString;function a(e){return"[object Array]"===r.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===r.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:l,isUndefined:o,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
475,forEach:c,merge:function e(){var t={};function n(n,i){l(t[i])&&l(n)?t[i]=e(t[i],n):l(n)?t[i]=e({},n):a(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)c(arguments[i],n);return t},extend:function(e,t,n){return c(t,function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},6245:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.initAnalyticsIntersectObserver=l;var r=i(n(6690)),a=i(n(9728)),o=n(9061),s=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),this.observeItem=t,this.initialized=!1,this.tracker=o,this.triggerPosition=.5,this.addListener(),this.module=this.observeItem.getAttribute("data-analytics-module")||"",this.region=this.observeItem.getAttribute("data-analytics-region")||""},[{key:"addListener",value:function(){var e=this;setTimeout(function(){e.observeComponent()},500)}},{key:"observeComponent",value:function(){var e=this;this.initialized||(new IntersectionObserver(function(t,n){t.forEach(function(t){t.target&&t.intersectionRatio>=.5&&!t.target.classList.contains("observed")&&(e.track(),n.unobserve(t.target),t.target.classList.add("observed"))})},{rootMargin:"0px 0px 0px 0px",threshold:[.5]}).observe(this.observeItem),this.initialized=!0)}},{key:"track",value:function(){if(this.tracker){var e={moduleName:null,regionName:null,pageName:null};e.moduleName=this.module,e.regionName=this.region,e.pageName=getPageName(),this.tracker.track({type:"pageScroll",data:e})}}},{key:"getPageName",value:function(){var e="";return window.pageTrackData&&(e=window.pageTrackData.content.pageName?window.pageTrackData.content.pageName:""),e}}])}();function l(e){var t=(e||document).querySelectorAll("[data-analytics-scroll]:not(.observed)");t.length&&t.forEach(function(e){new s(e)})}window.initPageScroll=l;t.default=s},6047:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(6690)),a=i(n(9728)),o=n(4730),s=n(2050).getLocalized,l=function(){return(0,a.default)(function e(){(0,r.default)(this,e),this.$window=$(window),this.$body=$("body"),this.$html=$("html"),this.beatsHeader=$(".beats-global-header"),this.beatsHeaderSm=$(".beats-global-header-sm"),this.$screen=$(".header-screen"),this.$searchBar=$(".search-bar"),this.$searchBtn=this.beatsHeader.find(".search-btn"),this.windowInitialOuterWidth=window.outerWidth,this.$secondaryNavBtn=this.beatsHeader.find(".secondary-nav-btn"),this.$secondaryNavBtnSm=this.beatsHeaderSm.find(".secondary-nav-btn--sm"),this.$secondaryNavRegion=this.beatsHeader.find(".secondary-nav"),this.$secondaryNavRegionSm=this.beatsHeaderSm.find(".secondary-nav-sm"),this.$subNav=this.beatsHeaderSm.find(".has-subNavItems"),this.$searchBtnSm=this.beatsHeaderSm.find(".search-btn--sm"),this.$bars=this.$secondaryNavBtn.find("span"),this.$barsSm=this.$secondaryNavBtnSm.find("span"),this.secondaryNavStatus={isSecondaryNavSmActive:!1,isSecondaryNavActive:!1},this.lastScrollTop=0,this.scrollBuffer=5,this.navHoverDelayTimer=null,this.navHoverDelay=650,this.navBarHeightSm=50,this.headerStickyOnScrollTop=215,this.removeEventListeners(),this.addEventListeners(),this.setHeaderVisibility(!0)},[{key:"onSecondaryNavBtnSmClick",value:function(e){this.windowInitialOuterWidth=window.outerWidth,this.secondaryNavStatus.isSecondaryNavSmActive?this.hideSecondaryNavSm():this.showSecondaryNavSm()}},{key:"showSecondaryNavSm",value:function(){var e=this;this.secondaryNavStatus.isSecondaryNavSmActive=!0,this.$secondaryNavBtnSm.attr("aria-expanded","true"),this.$secondaryNavBtnSm.attr("aria-label",s("close","Close")),this.$secondaryNavBtnSm.addClass("active"),this.$html.addClass("secondary-nav-enabled"),o.scrollLock(!0,"secondaryMenu"),this.$secondaryNavRegionSm.removeClass("hide"),TweenMax.killTweensOf(this.$barsSm),TweenMax.to(this.$barsSm.eq(0),.28,{y:5,ease:Quint.easeOut}),TweenMax.to(this.$barsSm.eq(2),.28,{y:-5,ease:Quint.easeOut}),TweenMax.delayedCall(.18,function(){TweenMax.set(e.$barsSm.eq(1),{opacity:0}
475)}),TweenMax.to(this.$barsSm.eq(0),.28,{rotation:-45,ease:Quint.easeOut,delay:.18}),TweenMax.to(this.$barsSm.eq(2),.28,{rotation:45,ease:Quint.easeOut,delay:.18})}},{key:"hideSecondaryNavSm",value:function(e){var t=this;this.secondaryNavStatus.isSecondaryNavSmActive=!1,this.$secondaryNavBtnSm.attr("aria-expanded","false"),TweenMax.to(this.beatsHeaderSm,.2,{height:this.navBarHeightSm,ease:Cubic.easeIn}),TweenMax.to(this.beatsHeaderSm,.3,{height:this.navBarHeightSm,ease:Quint.easeOut,delay:.12,clearProps:"height",onComplete:function(){t.$secondaryNavBtnSm.removeClass("active"),t.$secondaryNavBtnSm.attr("aria-label",s("menu","menu")),t.$html.removeClass("secondary-nav-enabled"),o.scrollLock(!1,"secondaryMenu"),t.$secondaryNavRegionSm.addClass("hide")}}),TweenMax.killTweensOf(this.$barsSm),TweenMax.to(this.$barsSm.eq(0),.28,{rotation:0,ease:Quint.easeOut}),TweenMax.to(this.$barsSm.eq(2),.28,{rotation:0,ease:Quint.easeOut}),TweenMax.delayedCall(.28,function(){TweenMax.set(t.$barsSm.eq(1),{opacity:1})}),TweenMax.to(this.$barsSm.eq(0),.28,{y:0,ease:Quint.easeOut,delay:.18}),TweenMax.to(this.$barsSm.eq(2),.28,{y:0,ease:Quint.easeOut,delay:.18})}},{key:"onSubNavClick",value:function(e){e.preventDefault();var t=$(e.currentTarget),n=t.parent();t.hasClass("active")?this.hideSubNav(n):this.showSubNav(n)}},{key:"showSubNav",value:function(e){var t=e.find("> .subnav"),n=e.find("> .has-subNavItems");$(n).addClass("active").attr("aria-expanded","true"),t.removeClass("hide");var i=t.outerHeight(!0);TweenMax.set(t,{opacity:0,height:0}),TweenMax.to(t,.2,{opacity:1,ease:Sine.easeIn}),TweenMax.to(t,.3,{opacity:1,ease:Cubic.easeOut,delay:.12}),TweenMax.to(t,.2,{height:i,ease:Cubic.easeIn}),TweenMax.to(t,.3,{height:i,ease:Quint.easeOut,delay:.12,clearProps:"height"})}},{key:"hideSubNav",value:function(e){var t=e.find("> .subnav"),n=e.find("> .has-subNavItems");n.attr("aria-expanded","false"),TweenMax.to(t,.2,{height:0,ease:Cubic.easeIn}),TweenMax.to(t,.3,{height:0,ease:Quint.easeOut,delay:.12,clearProps:"height",onComplete:function(){n.removeClass("active"),t.addClass("hide")}})}},{key:"checkResizeOnWidth",value:function(e){return e!=window.outerWidth}},{key:"onScroll",value:function(){if(!window.autoScroll){var e=this.$window.scrollTop();e<$(document).height()-$(window).height()&&!this.$html.hasClass("noscroll")&&Math.abs(this.lastScrollTop-e)>=this.scrollBuffer&&(e>this.lastScrollTop?e>this.headerStickyOnScrollTop&&this.setHeaderVisibility(!1):this.setHeaderVisibility(!0),this.lastScrollTop=e)}}},{key:"setHeaderVisibility",value:function(e){e?(this.$body.addClass("with-beats-header"),this.$body.removeClass("without-beats-header")):(this.$body.removeClass("with-beats-header"),this.$body.addClass("without-beats-header"))}},{key:"onSecondaryNavBtnClick",value:function(e){var t=$(e.currentTarget);this.windowInitialOuterWidth=this.$window.outerWidth(),t.hasClass("active")?this.hideSecondaryNav(t):this.showSecondaryNav(t)}},{key:"showSecondaryNav",value:function(e){var t=this,n=e.parent().find(".secondary-nav"),i=n.find("#secondary-nav__list li");if(this.secondaryNavStatus.isSecondaryNavActive=!0,!e.hasClass("active")){var r=.3;e.attr("aria-expanded","true"),e.addClass("active"),n.removeClass("hide").addClass("active"),this.$screen.removeClass("hide"),this.$html.addClass("secondary-nav-enabled"),o.scrollLock(!0,"secondaryMenu"),TweenMax.killTweensOf(this.$bars),TweenMax.to(this.$bars.eq(0),.28,{y:5,ease:Quint.easeOut}),TweenMax.to(this.$bars.eq(2),.28,{y:-5,ease:Quint.easeOut}),TweenMax.delayedCall(.18,function(){TweenMax.set(t.$bars.eq(1),{opacity:0})}),TweenMax.to(this.$bars.eq(0),.28,{rotation:-45,ease:Quint.easeOut,delay:.18}),TweenMax.to(this.$bars.eq(2),.28,{rotation:45,ease:Quint.easeOut,delay:.18}),TweenMax.to(this.$screen,.4,{opacity:1,ease:Cubic.easeOut,delay:.12}),TweenMax.set([n],{opacity:0}),TweenMax.to(n,.2,{opacity:1,delay:r,ease:Sine.easeIn}),TweenMax.to(n,.4,{opacity:1,delay:r,ease:Cubic.easeOut}),TweenMax.set([i],{opacity:0,y:6}),TweenMax.staggerTo(i,.2,{opacity:1,y:0,delay:r,ease:Sine.easeIn},.03),TweenMax.staggerTo(i,.38,{opacity:1,y:0,delay:.4,ease:Cubic.easeOut},.03)}}},{key:"hideSecondaryNav",value:function(e,t){var n=this,i=e.parent().find(".secondary-nav"),r=i.find(".browse-list, .image-block");
475e.attr("aria-expanded","false"),this.secondaryNavStatus.isSecondaryNavActive=!1,this.$html.removeClass("secondary-nav-enabled"),o.scrollLock(!1,"secondaryMenu"),e.parent().find(".secondary-nav-btn").removeClass("active"),i.removeClass("active"),TweenMax.staggerTo(r,.2,{opacity:0,y:6,delay:0,ease:Sine.easeIn},.03),TweenMax.staggerTo(r,.38,{opacity:0,y:6,delay:.1,ease:Cubic.easeOut},.03),TweenMax.to(i,.2,{opacity:0,delay:.2,ease:Sine.easeIn}),TweenMax.to(i,.4,{opacity:0,delay:.3,ease:Cubic.easeOut,onComplete:function(){i.addClass("hide")}}),TweenMax.killTweensOf(this.$bars),TweenMax.to(this.$bars.eq(0),.28,{rotation:0,ease:Quint.easeOut}),TweenMax.to(this.$bars.eq(2),.28,{rotation:0,ease:Quint.easeOut}),TweenMax.delayedCall(.28,function(){TweenMax.set(n.$bars.eq(1),{opacity:1})}),TweenMax.to(this.$bars.eq(0),.28,{y:0,ease:Quint.easeOut,delay:.18}),TweenMax.to(this.$bars.eq(2),.28,{y:0,ease:Quint.easeOut,delay:.18}),t||this.$html.hasClass("search-enabled")||(TweenMax.to(this.$screen,.2,{opacity:0,delay:.2,ease:Sine.easeIn}),TweenMax.to(this.$screen,.32,{opacity:0,ease:Cubic.easeOut,delay:.3,onComplete:function(){n.$screen.addClass("hide")}}))}},{key:"onSearchShow",value:function(){var e=this;this.beatsHeader.find(".secondary-nav.active").each(function(t,n){var i=$(n);e.hideSecondaryNav(i,!0)});var t=.01*window.innerHeight;document.documentElement.style.setProperty("--js-dynamic-vh","".concat(t,"px"))}},{key:"hideSubMenu",value:function(){if(this.secondaryNavStatus.isSecondaryNavActive){var e=this.beatsHeader.find(".secondary-nav.active");this.hideSecondaryNav(e)}}},{key:"secondaryNavRegionClick",value:function(e){var t=$(e.currentTarget);"secondary-nav__list-link"!==e.target.className&&this.hideSecondaryNav(t)}},{key:"onSearchBtnSmClick",value:function(){this.secondaryNavStatus.isSecondaryNavSmActive&&this.hideSecondaryNavSm(!0)}},{key:"addEventListeners",value:function(){this.$secondaryNavBtnSm.on("click",this.onSecondaryNavBtnSmClick.bind(this)),this.$subNav.on("click",this.onSubNavClick.bind(this)),this.$searchBtnSm.on("click",this.onSearchBtnSmClick.bind(this)),this.$secondaryNavBtn.on("click",this.onSecondaryNavBtnClick.bind(this)),this.$secondaryNavBtn.on("focusout",this.onSecondaryNavBtnFocusOut.bind(this)),this.$secondaryNavRegion.on("focusout",this.onSecondaryNavBtnFocusOut.bind(this)),this.$secondaryNavRegion.on("click",this.secondaryNavRegionClick.bind(this)),this.$window.on("resize",this.onResize.bind(this)),this.$window.on("scroll",this.onScroll.bind(this)),this.$window.on("orientationchange",this.onOrientationChange.bind(this)),this.beatsHeaderSm.on("keydown",this.onKeyDown.bind(this)),this.$searchBar.on("show",this.onSearchShow.bind(this))}},{key:"onKeyDown",value:function(e){if("Escape"===e.key)this.hideSecondaryNavSm()}},{key:"onSecondaryNavBtnFocusOut",value:function(e){var t=this;
475setTimeout(function(){var e=$(document.activeElement).not("body");e.length>0&&!$.contains(t.$secondaryNavRegion.get(0),e.get(0))&&t.$secondaryNavBtn.get(0)!=e.get(0)&&t.hideSubMenu()},0)}},{key:"onResize",value:function(){var e=.01*window.innerHeight;this.secondaryNavStatus.isSecondaryNavSmActive&&this.checkResizeOnWidth(this.windowInitialOuterWidth)&&this.hideSecondaryNavSm(),this.secondaryNavStatus.isSecondaryNavActive&&this.checkResizeOnWidth(this.windowInitialOuterWidth)&&this.hideSubMenu(),document.documentElement.style.setProperty("--js-dynamic-vh","".concat(e,"px"))}},{key:"onOrientationChange",value:function(){this.windowInitialOuterWidth=window.outerWidth,this.secondaryNavStatus.isSecondaryNavSmActive&&this.hideSecondaryNavSm(),this.secondaryNavStatus.isSecondaryNavActive&&this.hideSubMenu()}},{key:"removeEventListeners",value:function(){this.$secondaryNavBtnSm.off("click",this.onSecondaryNavBtnSmClick.bind(this)),this.$subNav.off("click",this.onSubNavClick.bind(this)),this.$searchBtnSm.off("click",this.onSearchBtnSmClick.bind(this)),this.$secondaryNavBtn.off("click",this.onSecondaryNavBtnClick.bind(this)),this.$secondaryNavBtn.off("focusout",this.onSecondaryNavBtnFocusOut.bind(this)),this.$secondaryNavRegion.off("focusout",this.onSecondaryNavBtnFocusOut.bind(this)),this.$secondaryNavRegion.off("click",this.secondaryNavRegionClick.bind(this)),this.$window.off("resize",this.onResize.bind(this)),this.$window.off("scroll",this.onScroll.bind(this)),this.$window.off("orientationchange",this.onOrientationChange.bind(this)),this.$searchBar.off("show",this.onSearchShow.bind(this))}}])}();t.default=l},6213:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.init=function(){var e=document.querySelector(".country-selector-page");e&&new o(e)};var r=i(n(6690)),a=i(n(9728)),o=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),this.el=t,this.redirectUrl=this.el.getAttribute("data-redirect-url"),this.checkRedirect()},[{key:"checkRedirect",value:function(){var e=this;this.redirectUrl?requestAnimationFrame(function(){window.location=e.redirectUrl}):this.el.classList.remove("country-selector-page--hidden")}}])}();t.default=o},2459:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.init=function(e){document.querySelectorAll(".device-content").forEach(function(t){new o(t,e)})};var r=i(n(6690)),a=i(n(9728)),o=function(){return(0,a.default)(function e(t,n){(0,r.default)(this,e),this.el=t,this.platform=n||"noosid",this.updateClass()},[{key:"updateClass",value:function(){"ios"===this.platform?this.getElements([".iosonly",".androidonly",".noosid"]):"android"===this.platform?this.getElements([".androidonly",".iosonly",".noosid"]):this.getElements([".noosid",".iosonly",".androidonly"])}},{key:"getElements",value:function(e){var t=this;e.some(function(e){var n=t.el.querySelector(e);if(n&&"&nbsp;"!==n.innerHTML){var i=e.substring(1);return n.classList.remove(i),n}})}}])}();t.default=o},9026:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.init=function(e){var t=function(){var e="noosid";s&&s.os&&(s.os.ios||s.os.osx&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1?e="ios":(s.os.android||s.os.linux)&&(e="android"));return e}();(e?e.querySelectorAll("section.device-specific-component"):document.querySelectorAll("section.device-specific-component")).forEac
475h(function(e){e.hasAttribute("dev-type")&&e.hasAttribute("data-url")&&new d(e,t)})};var r=i(n(6690)),a=i(n(9728)),o=i(n(9669)),s=n(820),l=n(4730),u=n(8661),c=n(2610),d=(n(694),function(){return(0,a.default)(function e(t,n){(0,r.default)(this,e),this.el=t,this.platform=n,this.devType=t.getAttribute("dev-type")||"",this.fetchStatus=t.getAttribute("fetch-status")||"",this.contentUrl=t.getAttribute("data-url")||"",this.getContent()},[{key:"getContent",value:function(){var e=this,t="";"ios"===this.platform&&"ios"===this.devType||"android"===this.platform&&"droid"===this.devType||"noosid"===this.platform&&"def"===this.devType?t=this.contentUrl:this.el.setAttribute("fetch-status","dont-fetch"),t&&o.default.get(t).then(function(t){e.el.innerHTML=t.data,requestAnimationFrame(function(){l.getNodeArrayFromQuerySelector(".video-block, .ctaPlayBack:not(.media-carousel__item__inner)",e.el).length&&window.beatsVideoManager.initialize(e.el),u(e.el),c.initCarousels(),e.el.querySelectorAll("script").forEach(function(t){var n=document.createElement("script");n.innerHTML=t.innerHTML,e.el.appendChild(n)}),requestAnimationFrame(function(){var e=new Event("dom-changed");document.dispatchEvent(e)})}),e.el.style.display="block",e.el.setAttribute("fetch-status","loaded")}).catch(function(t){console.log(t),e.el.setAttribute("fetch-status","error")})}}])}());t.default=d},694:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.initFootnote=function(){var e=document.querySelector(".footnote-section");e&&new s(e)};var r=i(n(6690)),a=i(n(9728)),o=n(2050).getLocalized,s=function(){return(0,a.default)(function e(t){var n=this;(0,r.default)(this,e),this.el=t,t.classList.contains("initialized")||(this.el.classList.add("initialized"),window.footnotes&&(this.setup(),document.addEventListener("at-content-rendering-succeeded",function(e){n.setup(),requestAnimationFrame(function(){n.serializingSupDynamic()})}),document.addEventListener("product-carousel-loaded",function(e){n.setup(),requestAnimationFrame(function(){n.serializingSupDynamic()})}),document.addEventListener("generate-footnotes",function(e){requestAnimationFrame(function(){n.serializingSupDynamic()})}),document.addEventListener("dom-changed",function(e){n.setup(),requestAnimationFrame(function(){n.serializingSupDynamic(!0)})})))},[{key:"setup",value:function(){this.footnoteNonSymbolRef=document.querySelectorAll("[data-footnote]:not([data-symbol])"),this.footnoteSymbolRef=document.querySelectorAll("[data-symbol]"),this.pageIds=[],this.pageSymbolIds=[],this.pageSymbols=[],this.finalValues=[],this.finalValuesSymbols=[],this.footnotesJSONData=window.footnotes,this.getFootnoteRef()}},{key:"createAnchorTag",value:function(e,t,n,i){var r=document.createElement("a");return r.setAttribute("href","#footnote-"+e),r.setAttribute("class","footnote-reference"),r.setAttribute("aria-label",n),r.setAttribute("data-analytics-click",""),r.setAttribute("data-analytics-link-type","siteClick"),r.setAttribute("data-analytics-label",i),r.innerHTML=t,r.addEventListener("click",this.footnoteRefToSection.bind(this)),r.addEventListener("keydown",this.keyDown.bind(this)),r}},{key:"keyDown",value:function(e){" "!==e.key&&"enter"!==e.key||this.footnoteRefToSection(e)}},{key:"footnoteRefToSection",value:function(e){var t;if(e.preventDefault(),e.stopPropagation(),document.body.classList.contains("modal-loaded")){window.autoScroll=!0;var n=new CustomEvent("modal-close",{detail:{customTrigger:!0}});document.dispatchEvent(n)}var i,r=e.target.getAttribute("href"),a=null===(t=document.querySelector(r))||void 0===t?void 0:t.closest("li"),o=document.querySelector(r).getBoundingClientRect().top,s=!!window.matchMedia("(max-width:734px)").matches,l=!!window.matchMedia("(min-width: 735px) and (max-width:1068px)").matches,u=document.querySelector(".with-beats-header"),c=0;u&&(c=~~(null===(i=document.querySelector(".main-header__container"))||void 0===i?void 0:i.offsetHeight));a&&a.setAttribute("tabindex",-1),requestAnimationFrame(function(){var e;if(s)o-=~~(null===(e=document.querySelector(".main-header"))||void 0===e?void 0:e.offsetHeight)+c;else if(l){var t,n;o-=~~(null===(t=document.querySelector(".main-header"))||void 0===t?void 0:t.offsetHeight)+~~(null===(n=document.querySelector(".product-bar"))||void 0===n?void 0:n.offsetHeight)+c}
475else{var i;o-=~~(null===(i=document.querySelector(".product-bar"))||void 0===i?void 0:i.offsetHeight)+c}window.autoScroll=!0,document.documentElement.scrollTop=o+document.documentElement.scrollTop,document.querySelector(r)&&(document.querySelector(r).focus(),requestAnimationFrame(function(){a&&a.removeAttribute("tabindex"),window.autoScroll=!1}))})}},{key:"getFootnoteRef",value:function(){var e=this;this.footnoteNonSymbolRef.forEach(function(t){e.footnotesJSONData[t.getAttribute("data-footnote")]&&e.pageIds.push(t.getAttribute("data-footnote"))}),this.footnoteSymbolRef.forEach(function(t){e.pageSymbolIds.includes(t.getAttribute("data-footnote"))||e.footnotesJSONData[t.getAttribute("data-footnote")]&&(e.pageSymbols.push(t.getAttribute("data-symbol")),e.pageSymbolIds.push(t.getAttribute("data-footnote")))}),this.getValuesFromFootnoteRef()}},{key:"getValuesFromFootnoteRef",value:function(){var e=this,t=[],n=[];this.pageIds.forEach(function(n){e.footnotesJSONData[n]&&(t[n]=e.footnotesJSONData[n])}),this.pageSymbolIds.forEach(function(t){e.footnotesJSONData[t]&&(n[t]=e.footnotesJSONData[t])}),this.finalValues=t,this.finalValuesSymbols=n,this.createFootnote()}},{key:"createFootnote",value:function(){var e=this,t=this.pageSymbols,n='\n        <h2 class="visuallyhidden">'.concat(o("footnotes","Footnotes"),"</h2>\n        ").concat(Object.entries(this.finalValues).length>0?"    \n        <ol>\n            ".concat(Object.entries(this.finalValues).map(function(t,n){return e.serializingSup(n+1,t[0],t[1].ariaLabel),"<li id='footnote-".concat(t[0],"'>").concat(t[1].footnote,"</li>")}).join(""),"\n        </ol> \n        "):"","\n        ").concat(Object.entries(this.finalValuesSymbols).length>0?'          \n        <ul class="footnote-ul" role="list">\n            '.concat(Object.entries(this.finalValuesSymbols).map(function(n,i){return e.serializingSup(i,n[0],n[1].ariaLabel),"\n                <style>\n                    .footnote-ul #footnote-".concat(n[0],"::before {\n                        content: '").concat(t[i],"';\n                    }\n                </style>\n                <li role=\"listitem\" id='footnote-").concat(n[0],"'>").concat(n[1].footnote,"</li>\n                ")}).join(""),"\n        </ul>\n        "):"","\n        ");this.el.innerHTML="",this.el.insertAdjacentHTML("beforeend",n)}},{key:"serializingSup",value:function(e,t,n){var i=this;this.footnoteNonSymbolRef.forEach(function(r){if(r.getAttribute("data-footnote")===t&&!r.querySelector("a")){var a,o,s="footnote_superscript|".concat(e,"|").concat(t),l=(n||"").replace("${symbol}",e);(null===(a=r.previousSibling)||void 0===a?void 0:a.nodeType)===Node.ELEMENT_NODE&&null!==(o=r.previousSibling)&&void 0!==o&&o.getAttribute("data-footnote")?(r.innerHTML="",r.append(",",i.createAnchorTag(t,e,l,s))):r.append(i.createAnchorTag(t,e,l,s))}}),this.footnoteSymbolRef.forEach(function(e){if(e.getAttribute("data-footnote")===t&&!e.querySelector("a")){var r,a,o=e.getAttribute("data-symbol"),s="footnote_superscript|".concat(o,"|").concat(t),l=(n||"").replace("${symbol}",o);(null===(r=e.previousSibling)||void 0===r?void 0:r.nodeType)===Node.ELEMENT_NODE&&null!==(a=e.previousSibling)&&void 0!==a&&a.getAttribute("data-footnote")?(e.innerHTML="",e.append(",",i.createAnchorTag(t,o,l,s))):e.append(i.createAnchorTag(t,o,l,s))}})}},{key:"serializingSupDynamic",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=document.querySelectorAll("[data-footnote]".concat(t?"":":not(:has(a))")),i=Object.entries(this.finalValues);n.forEach(function(n){var r,a,o=n.getAttribute("data-footnote"),s=i.findIndex(function(e){return e[0]===o}),l=e.footnotesJSONData[o],u=n.getAttribute("data-symbol")||s+1,c="".concat("footnote_superscript|"+u+"|"+o);l&&u&&(t&&(n.innerHTML=""),(null===(r=n.previousSibling)||void 0===r?void 0:r.nodeType)===Node.ELEMENT_NODE&&null!==(a=n.previousSibling)&&void 0!==a&&a.getAttribute("data-footnote")?(n.innerHTML="",n.append(",",e.createAnchorTag(o,u,(l.ariaLabel||"").replace("${symbol}",u),c))):n.append(e.createAnchorTag(o,u,(l.ariaLabel||"").replace("${symbol}",u),c)))});var r=new Event("content-changed");document.dispatchEvent(r)}}])}();t.default=s},2610:(e,t,n)=>{"use strict";var i=n(4836);
475Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.initCarousels=function(){document.querySelectorAll(".media-carousel").forEach(function(e){e&&!e.hasAttribute("data-initialized")&&(new g(e),window.initBeatsVideo&&window.initBeatsVideo())}),document.addEventListener("at-content-rendering-succeeded",function(e){var t=Array.from(document.querySelectorAll(".root"));t.length>0&&t.map(function(e){var t=e.querySelector(".media-carousel");t&&new g(t)})})};var r=i(n(861)),a=i(n(6690)),o=i(n(9728)),s=i(n(8652)),l=i(n(456)),u=i(n(840));n(8529);var c=n(8787),d=n(9061),h=n(4730),p=768,f=210,m=n(2050).getLocalized,g=function(){return(0,o.default)(function e(t){var n=this;if((0,a.default)(this,e),this.carousel=t,this.carousel.setAttribute("data-initialized",!0),this.carouselName=t.dataset.analyticsModule||"",this.carouselRegion=t.dataset.analyticsRegion||"",this.wrapper=t.querySelector(".media-carousel__main"),this.container=t.querySelector(".media-carousel__container"),this.slides=t.querySelectorAll(".media-carousel__item"),this.navigation=t.querySelector(".media-carousel__navigation"),this.navContainer=t.querySelector(".media-carousel__navigation__container"),this.navigationItems=t.querySelector(".dots"),this.firstNavItem=t.querySelector(".dot"),this.firstSlide=this.slides[0],this.lastSlide=this.slides[this.slides.length-1],this.mobileSlideWidth=315,this.activeIndex=0,this.tracker=d,this.scrollNavTimeout,this.scrollNavAnimationTimeout,this.scrollNavIndex=this.navigationItems?Math.round(this.navigationItems.scrollLeft/f):0,!(this.slides.length<1)){if(1==this.slides.length){t.classList.add("media-carousel--single");var i=t.querySelector(".media-carousel__navigation__container");i&&i.remove()}this.setupFirstItems(),this.setupContainer(),this.setupDots(),this.addListeners(),this.setupArrows(),this.setupTranscript(),this.updateTranscript(),requestAnimationFrame(function(){return n.sanitizeAriaLabel()})}},[{key:"addListeners",value:function(){var e=this;if(this.container.addEventListener("scroll",this.scroll.bind(this)),this.slides.length>1&&this.navigationItems.addEventListener("scroll",this.scrollNav.bind(this)),window.addEventListener("resize",this.resize.bind(this)),this.container.querySelectorAll(".media-carousel__item__inner").forEach(function(t,n){t.dataset.videoSrc?t.addEventListener("click",e.updateVideoModal.bind(e)):(t.addEventListener("click",e.createModal.bind(e)),t.dataIndex=n)}),this.container.querySelectorAll(".media-carousel__text button").forEach(function(e){e.addEventListener("click",function(){var t=e.closest(".media-carousel__item").querySelector(".media-carousel__item__inner");t&&t.click()})}),this.slides.length>1){var t=this.carousel.querySelector(".media-carousel__control--previous"),n=this.carousel.querySelector(".media-carousel__control--next");t.addEventListener("click",this.previousNavOptions.bind(this)),n.addEventListener("click",this.nextNavOptions.bind(this))}this.touchControls(),this.slides.length>1&&this.navigationItems.addEventListener("keydown",this.keyDown.bind(this))}},{key:"scroll",value:function(){if(!(this.container.classList.contains("is-scrolling")||document.body.clientWidth>=p)){var e=this.container.scrollLeft,t=document.body.clientWidth<p?this.mobileSlideWidth:document.body.clientWidth,n=Math.round(e/t);this.changeSlide(n)}}},{key:"scrollNav",value:function(){this.scrollNavIndex=Math.round(this.navigationItems.scrollLeft/f),this.setupArrows()}},{key:"keyDown",value:function(e){switch(e.code){case"ArrowLeft":e.stopPropagation(),this.previousSlide(),this.updateFocus(e);break;case"ArrowRight":e.stopPropagation(),this.nextSlide(),this.updateFocus(e)}}},{key:"updateFocus",value:function(e){var t=this;e.currentTarget.closest(".dots")?this.dots[this.activeIndex].focus():requestAnimationFrame(function(){t.slides[t.activeIndex].querySelector("button").focus()})}},{key:"touchControls",value:function(){this.touchController=new u.default(this.container),this.touchController.on("swiperight",this.previousSlide.bind(this)),this.touchController.on("swipeleft",this.nextSlide.bind(this)),this.manageTouchControl
475s()}},{key:"manageTouchControls",value:function(){document.body.clientWidth<p?this.touchController.set({touchAction:"auto"}):this.touchController.set({touchAction:"compute"})}},{key:"resize",value:function(){this.setupContainer(),this.setupSlideWidth(),this.setupArrows(),this.manageTouchControls()}},{key:"setupSlideWidth",value:function(){this.mobileSlideWidth=document.body.clientWidth<340?260:315}},{key:"setupFirstItems",value:function(){this.firstSlide.classList.add("active"),this.firstSlide.querySelector("button").setAttribute("tabindex","0"),(0,r.default)(this.slides).map(function(e){return e.setAttribute("aria-hidden","true")}),this.slides[0].setAttribute("aria-hidden","false"),this.slides.length>1&&(this.firstNavItem.classList.add("active"),this.firstNavItem.setAttribute("tabindex","0"),this.firstNavItem.setAttribute("aria-selected","true"))}},{key:"setupDots",value:function(){var e=this;1!=this.slides.length&&(this.dots=this.carousel.querySelectorAll(".dot"),this.dots.forEach(function(t){t.addEventListener("click",e.slideNavTrigger.bind(e))}))}},{key:"setupArrows",value:function(){if(1!=this.slides.length){var e=this.carousel.querySelector(".media-carousel__control--previous"),t=this.carousel.querySelector(".media-carousel__control--next");this.navigationItems.scrollWidth>this.navigationItems.clientWidth?this.navigation.classList.remove("media-carousel__navigation--controls-hidden"):this.navigation.classList.add("media-carousel__navigation--controls-hidden"),this.navigationItems.scrollLeft>0?(e.removeAttribute("disabled"),e.removeAttribute("aria-hidden")):(document.activeElement===e&&(null==t||t.focus()),e.setAttribute("disabled",""),e.setAttribute("aria-hidden",!0)),this.navigationItems.offsetWidth+this.navigationItems.scrollLeft<this.navigationItems.scrollWidth?(t.removeAttribute("disabled"),t.removeAttribute("aria-hidden")):(document.activeElement===t&&(null==e||e.focus()),t.setAttribute("disabled",""),t.setAttribute("aria-hidden",!0))}}},{key:"sanitizeAriaLabel",value:function(){var e=function(e){var t=e.getAttribute("aria-label");if(t&&/<\/?[a-z][\s\S]*>/i.test(t)){var n=document.createElement("div");n.innerHTML=t;var i=n.textContent||n.innerText||"";e.setAttribute("aria-label",i.trim())}};this.dots=this.carousel.querySelectorAll(".dot"),this.dots.forEach(function(t){return e(t)}),this.slides.forEach(function(t){return e(t)})}},{key:"updateText",value:function(){var e=this.slides[this.activeIndex].querySelector(".media-carousel__text");if(e){var t=e.querySelector(".media-carousel__title"),n=e.querySelector(".media-carousel__description"),i=e.querySelector(".media-carousel__description-long");if(t||n){var r="\n                ".concat(t?'<span class="modal__title">
475'.concat(t.innerHTML,"</span>"):"","\n                ").concat(n?'<span class="modal__description-long">'.concat(i?i.innerHTML:n.innerHTML,"</span>"):"","\n            "),a=document.querySelector(".modal__text");a&&(a.innerHTML=r)}}}},{key:"setupTranscript",value:function(){var e=this,t=this.carousel.querySelector("beats-video-track[transcript-path]"),n=this.carousel.querySelector(".media-carousel__transcript-link");if(t&&!n){this.carousel.insertAdjacentHTML("beforeend",'\n            <a href="" class="media-carousel__transcript-link media-carousel__transcript-link--hidden" download>test</a>\n            '),this.carousel.classList.add("media-carousel--transcript"),this.carousel.querySelector(".media-carousel__transcript-link").addEventListener("click",function(){var t=e.slides[e.activeIndex].querySelector(".media-carousel__item__inner").getAttribute("data-analytics-label")||"";e.trackTranscript(t)})}}},{key:"updateTranscript",value:function(){var e=this.slides[this.activeIndex].querySelector("beats-video-track[transcript-path]"),t=this.carousel.querySelector(".media-carousel__transcript-link");if(t)if(e){var n=this.slides[this.activeIndex].querySelector("beats-video-track"),i=this.carousel.querySelector(".media-carousel__transcript-link");i.href=n.getAttribute("transcript-path"),i.innerHTML=n.getAttribute("transcript-label")||"Download transcript",i.classList.remove("media-carousel__transcript-link--hidden")}else t.classList.add("media-carousel__transcript-link--hidden")}},{key:"slideNavTrigger",value:function(e){var t=parseInt(e.currentTarget.dataset.index);this.scrollContainer(t),this.changeSlide(t)}},{key:"scrollContainer",value:function(e){var t=this;if(document.body.clientWidth<p){this.container.classList.add("is-scrolling"),this.container.classList.add("is-snapless");var n=e*this.mobileSlideWidth;this.scrollTo(this.container,n,300,!0),setTimeout(function(){t.container.classList.remove("is-snapless"),requestAnimationFrame(function(){t.container.classList.remove("is-scrolling"),t.container.scrollLeft=n})},301)}}},{key:"previousSlide",value:function(){document.body.clientWidth<p||this.changeSlide(this.activeIndex-1)}},{key:"nextSlide",value:function(){document.body.clientWidth<p||this.changeSlide(this.activeIndex+1)}},{key:"changeSlide",value:function(e){if(!(e<0||e>=this.slides.length||this.activeIndex==e)){var t=this.slides[this.activeIndex];t.classList.remove("active"),t.setAttribute("aria-hidden","true"),t.querySelector("button").setAttribute("tabindex","-1"),t.classList.add("active--leaving"),this.slides[e].classList.add("active"),this.slides[e].setAttribute("aria-hidden","false"),this.slides[e].querySelector("button").setAttribute("tabindex","0"),this.activeIndex=e,window.setTimeout(function(){t.classList.remove("active--leaving")},300);var n=this.carousel.querySelector(".dot.active");n&&(n.classList.remove("active"),n.removeAttribute("tabindex"),n.setAttribute("aria-selected","false")),this.dots[e].classList.add("active"),this.dots[e].setAttribute("tabindex","0"),this.dots[e].setAttribute("aria-selected","true"),this.track(),this.setupArrows(),this.updateTranscript()}}},{key:"setupContainer",value:function(){if(document.body.clientWidth<p){var e=this.container.offsetWidth,t=this.firstSlide.offsetWidth,n=(this.firstSlide.offsetHeight,(e-t)/2);this.firstSlide.style.marginLeft="".concat(n,"px"),this.lastSlide.style.marginRight="".concat(n,"px"),this.slides.length>1&&(this.navigation.style.height="auto")}else{this.firstSlide.style.marginLeft="0px",this.lastSlide.style.marginRight="0px";this.firstSlide.offsetHeight;if(this.slides.length>1){var i=this.navigationItems.getBoundingClientRect().height%1,r=this.navigationItems.clientHeight+i-(i>=.5?1:0);0!==r&&(this.navigation.style.height="".concat(r,"px"))}}}},{key:"previousNavOptions",value:function(){this.scrollNavIndex--;var e=this.scrollNavIndex*f;this.changeNavOptions(e)}},{key:"nextNavOptions",value:function(){this.scrollNavIndex++;var e=this.scrollNavIndex*f;this.changeNavOptions(e)}},{key:"changeNavOptions",value:function(e){var t=this;this.scrollNavTimeout&&clearTimeout(this.scrollNavTimeout),this.navigationItems.classList.add("is-scrolling"),this.scrollTo(this.navigationItems,e,300,
475!0),this.scrollNavTimeout=setTimeout(function(){t.navigationItems.classList.remove("is-scrolling"),t.setupArrows(),requestAnimationFrame(function(){t.navigationItems.scrollLeft=e})},301)}},{key:"createModalContent",value:function(e){var t=parseInt(e.currentTarget.dataIndex),n=this.slides[t].querySelector("button"),i=n.dataset.imgSrc,r=n.dataset.imageFileExtension,a="";return n.querySelector("img")&&(a=n.querySelector("img").getAttribute("alt")),this.activeIndex!==t&&(this.changeSlide(t),this.scrollContainer(t)),'\n        <span class="modal-content__inner">\n            <picture>\n                <source media="(min-width: 1069px)" srcset="'.concat(i,".large.2x").concat(r,' 2x">\n                <source media="(min-width: 735px) and (max-width: 1068px)" srcset="').concat(i,".medium.2x").concat(r,' 2x">\n                <source media="(max-width: 734px)" srcset="').concat(i,".small.2x").concat(r,' 2x">\n                <img class="bbd-media-image is-visible zoom" src="').concat(i,".large.2x").concat(r,'"\n                    srcset="').concat(i,".large.2x").concat(r,' 2x" alt="').concat(a,'">\n            </picture>\n            <div class="modal__text"></div>\n        </span>\n        ')}},{key:"updateVideoModal",value:function(){var e=this;window.lastActiveElement=document.activeElement,requestAnimationFrame(function(){var t=window.beatsVideoManager.getModalInstance();e.addModalControls(null,t),e.updateText();var n=new CustomEvent("dom-changed");document.dispatchEvent(n)})}},{key:"addModalControls",value:function(e,t){var n=this;if(t&&1!=this.slides.length){var i=t.querySelector(".modal-inner")?t.querySelector(".modal-inner"):t,r=i.querySelector(".modal__close")||i,a='\n        <button class="media-carousel__modal__previous" type="button" aria-label="'.concat(m("prevSlide","Previous Slide"),'" ').concat(0==this.activeIndex?'disabled aria-hidden="true"':"",'>\n            <i class="fa fa-chevron-left notranslate"></i>\n        </button>'),o='\n        <button class="media-carousel__modal__next" type="button" aria-label="'.concat(m("nextSlide","Next Slide"),'" ').concat(this.activeIndex>=this.slides.length-1?'disabled aria-hidden="true"':"",'>\n            <i class="fa fa-chevron-right notranslate"></i>\n        </button>');r.insertAdjacentHTML("beforebegin",a),r.insertAdjacentHTML("beforebegin",o),t.querySelector(".media-carousel__modal__previous").addEventListener("click",function(){n.previousSlide(),c.destroy(t,e,!1,!1),n.slides[n.activeIndex].querySelector("button").click()}),t.querySelector(".media-carousel__modal__next").addEventListener("click",function(){n.nextSlide(),c.destroy(t,e,!1,!1),n.slides[n.activeIndex].querySelector("button").click()}),t.querySelectorAll(".media-carousel__modal__previous, .media-carousel__modal__next").forEach(function(e){e.style.zIndex=h.maxZIndexPlus1000()})}}},{key:"createModal",value:function(e){var t,n;window.lastActiveElement=document.activeElement;var i=this.createModalContent(e),r=null!==(t=e.currentTarget)&&void 0!==t&&null!==(n=t.dataset)&&void 0!==n&&n.imgSrc?new s.default(e.currentTarget,null,i):new s.default(null,null,i);r.open(),this.addModalControls(e,r.modal),new l.default(r.modal.querySelector(".zoom")),this.updateText();var a=new CustomEvent("dom-changed");document.dispatchEvent(a)}},{key:"track",value:function(){var e=this.slides[this.activeIndex].dataset.analyticsItem||"";this.tracker.track({type:"carouselClick",data:{carouselName:"".concat(this.carouselName,"|").concat(this.activeIndex+1,"|").concat(e)}})}},{key:"trackTranscript",value:function(e){this.tracker.track({type:"videoTranscriptDownload",data:{videoName:e}})}},{key:"scrollTo",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=r?e.scrollLeft:e.scrollTop,o=n-a,s=0;this.scrollNavAnimationTimeout&&clearTimeout(this.scrollNavAnimationTimeout);var l=function(){s+=20;var n=Math.easeInOutQuad(s,a,o,i);r?e.scrollLeft=n:e.scrollTop=n,s<i&&(t.scrollNavAnimationTimeout=setTimeout(l,20))};l()}}])}();t.default=g}
475,8652:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.initModals=function(){document.querySelectorAll(".modal__trigger").forEach(function(e){new u(e)}),document.querySelectorAll(".modal").forEach(function(e){new u(null,e)})};var r=i(n(861)),a=i(n(6690)),o=i(n(9728)),s=i(n(722)),l=n(2050),u=function(){return(0,o.default)(function e(t,n,i,r){(0,a.default)(this,e),t&&"true"==t.getAttribute("data-initialized")&&!i||(this.modal=n||null,this.content=i,this.pureModal=!t,this.trigger=t||document.createElement("div"),this.trigger.setAttribute("data-initialized",!0),this.new=!0,this.type=t?t.getAttribute("data-type"):null,this.backgroundElements=Array.from(document.querySelectorAll(".beats-header, .main-header header a, .main-header header button, body #main, .promobar, body footer.footer, body #footercontent .footerColumn, body #footercontent .experiencefragment, body > .newsLetter, body div#newsletter, .footnote-section, #maincontent.support, #maincontent > h1")),this.analyticsModuleName="",this.analyticsLabel=r?r.label:"",this.openEvent=this.open.bind(this),this.keyDownEventTrigger=this.keyDownTrigger.bind(this),this.keyDownEvent=this.keyDown.bind(this),this.closeEvent=this.close.bind(this),this.x=0,this.y=0,this.modalTitle="",this.isModalTitle=!1,this.addEventListeners(),this.modal&&(document.body.appendChild(this.modal),this.setupControls(this.modal),this.open()))},[{key:"addEventListeners",value:function(){this.trigger.addEventListener("click",this.openEvent),this.trigger.addEventListener("keydown",this.keyDownEventTrigger),this.modal&&this.modal.addEventListener("keydown",this.keyDownEvent),window.addEventListener("pageshow",this.onPageShow.bind(this)),document.addEventListener("modal-close",this.closeEvent)}},{key:"removeEventListeners",value:function(){this.trigger.removeEventListener("click",this.openEvent),this.trigger.removeAttribute("keydown",this.keyDownEventTrigger),this.modal&&this.modal.removeEventListener("keydown",this.keyDownEvent),document.removeEventListener("modal-close",this.closeEvent)}},{key:"onPageShow",value:function(e){e.persisted&&this.close(e)}},{key:"clickOutsideModal",value:function(e){this.close()}},{key:"sanitizeUrl",value:function(e){return null==e?null:(e=e.replace(".html?wcmmode=disabled",""),"true"!=window.stripHtmlExtension&&(e+=".html"),"true"==window.isAuthorMode&&(e+="?wcmmode=disabled"),e)}},{key:"open",value:function(e){var t,n,i=this;e&&(e.preventDefault(),e.stopPropagation()),document.documentElement.classList.add("noscroll"),document.dispatchEvent(new CustomEvent("scroll")),null!=window.clickEventPos&&null!=window.clickEventPos||(window.clickEventPos=window.pageYOffset);var r=null===(t=this.trigger)||void 0===t?void 0:t.getAttribute("data-video-src"),a=this.sanitizeUrl(null===(n=this.trigger)||void 0===n?void 0:n.getAttribute("href")),o=this.trigger.getAttribute("data-iframe");if(this.trigger&&(this.modalTitle=r?this.trigger.getAttribute("data-aria-label")||this.trigger.getAttribute("aria-label")||(0,l.getLocalized)("videoPlayer","Video player"):this.trigger.getAttribute("data-aria-label")||this.trigger.getAttribute("aria-label")),""!==this.modalTitle&&(this.isModalTitle=!0),r||null===a||(null!==o?this.setIframeContent(a):this.fetchModalContent(a)),this.content){var s;if(document.querySelector(".modal--contained"))return;null!==(s=this.content)&&void 0!==s&&s.includes("<h2")&&(this.modalTitle=""),this.createModal("modal--contained",this.modalTitle,this.isModalTitle),this.modal.querySelector(".modal-content").innerHTML=this.content;var u=this.modal.querySelector(".modal-inner");document.body.appendChild(this.modal),requestAnimationFrame(function(){u.focus(),document.dispatchEvent(new CustomEvent("basicDomUpdate")),document.documentElement.classList.add("modal-open")})}requestAnimationFrame(function(){document.body.classList.add("modal-loaded"),i.updateBackgroun
475dElements(!0),(i.modal.querySelector(".modal")||i.modal).addEventListener("close",i.close.bind(i));var e=i.modal.querySelector(".modal-screen");e&&e.addEventListener("click",i.clickOutsideModal.bind(i))}),null!==a||o||setTimeout(function(){document.documentElement.classList.add("modal-open")},100),this.x=window.scrollX,this.y=window.scrollY||document.body.getBoundingClientRect().top,document.body.style.top="-".concat(this.y,"px"),document.body.style.position="fixed"}},{key:"close",value:function(e){var t=this;this.content&&this.removeEventListeners(),document.documentElement.classList.remove("noscroll","modal-open"),document.body.classList.remove("modal-loaded"),this.updateBackgroundElements(),requestAnimationFrame(function(){t.modal&&t.modal.remove()}),setTimeout(function(){var n,i;!t.trigger||null!=e&&e.persisted||null!=e&&null!==(n=e.detail)&&void 0!==n&&n.customTrigger&&!1!==(null==e||null===(i=e.detail)||void 0===i?void 0:i.customTrigger)||(t.trigger.focus(),t.trigger.scrollIntoView({block:"nearest"}))},100),this.new||this.pureModal||history.back(),document.body.style.top="",document.body.style.position="",window.scrollTo(this.x,this.y)}},{key:"keyDownTrigger",value:function(e){if(" "===e.key)this.open(e)}},{key:"keyDown",value:function(e){if("Escape"===e.key)this.close()}},{key:"setIframeContent",value:function(e){this.createModal("modal--iframe");var t='\n            <iframe src="'.concat(e,'"></iframe>\n        ');this.populateModal(t)}},{key:"fetchModalContent",value:function(e){var t=this;history.pushState&&!this.new&&requestAnimationFrame(function(){history.pushState({parent:location.pathname},document.title,e)}),this.createModal(null,this.modalTitle,this.isModalTitle),fetch(e).then(function(e){if(!e.ok)throw new Error("HTTP error! status: ".concat(e.status));return e.text()}).then(function(e){t.populateModal(e),t.analytics("subPageView",t.analyticsModuleName),setTimeout(function(){document.documentElement.classList.add("modal-open")},100)}).catch(function(e){console.log(e)})}},{key:"createModal",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(null===(e=this.trigger)||void 0===e?void 0:e.getAttribute("data-close-aria-label"))||(0,l.getLocalized)("close","Close"),a='\n            <div class="modal '.concat(this.type?this.type:""," ").concat(t," ").concat(this.new?"modal--new":"",'">\n                <div class="modal-inner" tabindex="-1" role="dialog" ').concat(i?'aria-labelledby="modal-title"':"",">\n                    ").concat(n?'<h2 class="visuallyhidden" id="modal-title">'.concat(n,"</h2>"):"",'\n                    <div class="modal-screen" aria-hidden="true"></div>\n                    <div class="modal-inner__container">\n                        <div class="modal-content">\n                        </div>\n                        <button class="modal__close" type="button">\n                            <span class="a11y">').concat(r,'</span>\n                            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12.02 12"><path d="M7,6l4.84-4.83a0.68,0.68,0,0,0-1-1L6,5,1.17,0.2a0.68,0.68,0,0,0-1,1L5,6,0.2,10.83a0.68,0.68,0,1,0,1,1L6,7l4.83,4.83a0.68,0.68,0,1,0,1-1Z" fill="#161616" stroke="#161616" stroke-width="1"></path></svg>\n                        </button>\n                    </div>\n                </div>\n            </div>\n        '),o=document.createElement("div");o.innerHTML=a,this.setupControls(o),this.modal=o}},{key:"setupControls",value:function(e){var t=this;Array.from(e.querySelectorAll(".modal-close, .modal-back, .modal__close")).map(function(e){e.addEventListener("click",t.close.bind(t))}),e.addEventListener("keydown",this.keyDownEvent)}},{key:"populateModal",value:function(e){var t,n,i,a=this,o=document.createElement("div");o.classList.add("modal__html"),o.innerHTML=e;var s=o.querySelector("[data-modal-classes]")?o.querySelector("[data-modal-classes]"):o.querySelector(".modal")?o.querySelector(".modal"):o,l=s.getAttribute("data-modal-classes"),u=s.classList.value,c=o.querySelector(".modal-inner .modal-content")?o.querySelector(".modal-inner .modal-content"):o.querySelector("#main")?o.querySelector("#main"):o.querySelector("#content")?o.querySelector("#content"):o;l&&(t=this.modal.querySelector(".modal").classList).add.apply(t,(0,r.default)(l.split(" ").filter(function(e){return""!=e}))),u&&(n=this.modal.querySelector(".modal").classList).add.apply(n,(0,r.default)(u.split(" ").filter(function(e){return""!=e}
475))),Array.from(s.attributes).forEach(function(e){e.nodeName.startsWith("data-analytics")&&a.modal.querySelector(".modal").setAttribute(e.nodeName,e.nodeValue)});var d=o.querySelector(".modal-inner .modal-content");this.analyticsModuleName=(null===(i=o.querySelector("[data-analytics-module]"))||void 0===i?void 0:i.getAttribute("data-analytics-module"))||"";var h=this.modal.querySelector(".modal-content");d?h.replaceWith(c):h.appendChild(c);var p=this.modal.querySelector(".modal-inner");(document.body.appendChild(this.modal),requestAnimationFrame(function(){p.focus(),document.dispatchEvent(new CustomEvent("basicDomUpdate"));var e=new CustomEvent("dom-changed");document.dispatchEvent(e),o.querySelector(".ctaPlayBack, beats-video")&&window.beatsVideoManager.initialize(a.el),window.initPageScroll(a.modal.querySelector(".modal-content"))}),window.initInlineForms&&document.querySelector("#notify-me-form"))&&(window.initInlineForms(),document.querySelector("#notify-me-form").querySelector('[type="submit"]').setAttribute("data-analytics-label",this.analyticsLabel))}}
475,{key:"updateBackgroundElements",value:function(e){this.backgroundElements&&this.backgroundElements.map(function(t){e?(t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),t.setAttribute("inert","true")):(t.removeAttribute("aria-hidden"),t.removeAttribute("tabindex"),t.removeAttribute("inert"))})}},{key:"analytics",value:function(e,t){var n={eventType:e,data:{subPageName:t}};(0,s.default)("analytics-track",n)}}])}();t.default=u},4430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arInteraction=function(e,t){e&&e.addEventListener("click",function(){var n,r,a,o=t||e;o.querySelector("model-viewer").getAttribute("user-interacted-withAR")||(o.querySelector("model-viewer").setAttribute("user-interacted-withAR",!0),i.track({type:"otherInteraction",data:{interactionName:"3D Model AR View",moduleName:(null===(n=o.closest("[data-analytics-module]"))||void 0===n?void 0:n.getAttribute("data-analytics-module"))||"",regionName:(null===(r=o.closest("[data-analytics-region]"))||void 0===r?void 0:r.getAttribute("data-analytics-region"))||"",itemName:(null===(a=o.querySelector("model-viewer"))||void 0===a?void 0:a.getAttribute("item-name"))||""}}))})},t.userInteraction=function(e,t){e&&(e.addEventListener("camera-change",function t(i){n(e,i,t)}),e.addEventListener("camera-change",function(t){if(t.detail.source&&"user-interaction"==t.detail.source){var n=e.getCameraOrbit(),i=57.2958,r=Math.round(n.theta*i)%360,a=Math.round(n.phi*i)%360,o=a<68?"top":a>113?"bottom":"middle",s="".concat(r>45&&r<135?"left":r>=135&&r<225?"back":r>=225&&r<315?"right":"front"," ").concat(o," view"),l="".concat(e.getAttribute("data-aria-label")," ").concat(s);e.setAttribute("aria-label",l);var u=new CustomEvent("a11y-status",{detail:l});window.dispatchEvent(u)}}));var n=function(e,n,r){if(n.detail.source&&"user-interaction"==n.detail.source&&!n.target.getAttribute("user-interacted")){var a,o;n.target.setAttribute("user-interacted",!0);var s=t||e;i.track({type:"otherInteraction",data:{interactionName:"3D Model Drag",moduleName:(null===(a=s.closest("[data-analytics-module]"))||void 0===a?void 0:a.getAttribute("data-analytics-module"))||"",regionName:(null===(o=s.closest("[data-analytics-region]"))||void 0===o?void 0:o.getAttribute("data-analytics-region"))||"",itemName:e.getAttribute("item-name")||""}}),e.removeEventListener("camera-change",r)}}};var i=n(9061)},8736:(e,t,n)=>{"use strict";var i=n(4836),r=n(8698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.initSearch=function(){var e=document.getElementById("search-el");if(e){(0,m.createRoot)(e).render(f.default.createElement(k,null))}};var a=i(n(861)),o=i(n(6690)),s=i(n(9728)),l=i(n(4993)),u=i(n(3808)),c=i(n(1655)),d=i(n(8416)),h=i(n(9669)),p=i(n(813)),f=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,o,s={__proto__:null,default:e};if(null===e||"object"!=r(e)&&"function"!=typeof e)return s;if(a=t?i:n){if(a.has(e))return a.get(e);a.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?a(s,l,o):s[l]=e[l]);return s}(e,t)}(n(7294)),m=n(745);function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}var v=n(4730),y=n(7754),b=y.focusNextFocusableElement,_=y.focusPrevFocusableElement,T=n(722),w=n(3569).debounce,S=n(2050).getLocalized,k=function(e){function t(e){var n,i,r,a;return(0,o.default)(this,t),i=this,r=t,a=[e],r=(0,u.default)(r),n=(0,l.default)(i,g()?Reflect.construct(r,a||[],(0,u.default)(i).constructor):r.apply(i,a)),(0,d.default)(n,"debounceFetchSuggestProduct",w(function(e){return n.fetchSuggest(e)},300)),(0,d.default)(n,"debounceFetchSuggestSupport",w(function(e){return n.fetchSuggest(e)},300)),n.tabListRef=f.default.createRef(),n.inputRef=f.default.createRef(),n.triggerRef=f.default.createRef(),n.mainElRef=f.default.createRef(),n.mainSearchRef=f.default.createRef(),n.searchChoicesRef=f.default.createRef(),n.searchFormRef=f.default.createRef(),n.panelRef=f.default.createRef(),n.a11yMessageRef=f.default.createRef(),n.searching,n.htmlLocale=document.documentElement.lang,n.locale=n.htmlLocale.toLowerCase().replace(/_/g,"-"),n.searchConfig=5,n.uatURL=v.isUAT()?"-uat":"",n.resultPerPage=30,n.triggerEl,n.triggerVisible=!1,n.tabIds={products:0,support:1},n.backgroundElements=Array.from(document.querySelectorAll(".main-header .main-header__content, .beats-header, .beats-global-header, body #main .bs3, body #maincontent .bs3, .promobar, body footer.footer, body #footercontent .footerColumn, body #footercontent .experiencefragment, body > .newsLetter, body div#newsletter, .footnote-section, #maincontent > h1, #maincontent.support")),n.a11yTimer=null,n.a11yTimerDeounce=null,n.productIdRef=f.default.createRef(),n.searchSupport=window.location.pathname.includes("/support")||window.location.pathname.includes("/beatssupportsite")||window.local&&window.local.support,n.contentType=n.searchSupport?"support":"marketing",n.state={open:!1,searched:!1,searchText:"",searchedText:"",searchPageProduct:0,searchPageSupport:0,inputChangedAfterSearch:!0,focusResultTab:"support"==n.contentType?1:0,activeResultTab:"support"==n.contentType?1:0,popularProducts:[],popularSupport:[],suggestedProducts:[],suggestedSupport:[],resultProducts:[],resultSupport:[],l18n:{},defaultsResults:{},closeTimeout:!1,searchedAnimate:!1,userSearchType:"",totalSuggestionCount:0,resultsFetched:!1},requestAnimationFrame(function(){"true"==n.mainElRef.current.parentElement.getAttribute("data-trigger-visible")&&(n.triggerVisible=!0)}),n.setupExternalTriggers(),n.fetchConfig(),n.fetchDefault(),n}
475return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidUpdate",value:function(e,t){var n=this;requestAnimationFrame(function(){var e,t,i,r;null!==(e=n.productIdRef)&&void 0!==e&&e.current&&null!==(t=n.panelRef)&&void 0!==t&&t.current&&((null===(i=n.panelRef)||void 0===i||null===(r=i.current)||void 0===r?void 0:r.querySelector("#product_".concat(n.productIdRef.current))).focus(),n.productIdRef.current=null)});var i=this.state.totalSuggestionCount!==t.totalSuggestionCount;if(this.state.open){var r="".concat(this.state.totalSuggestionCount," ").concat(this.state.totalSuggestionCount>1?S("resultsFound","results found"):S("resultFound","result found"));t.open?i&&(clearTimeout(this.a11yTimerDeounce),this.a11yTimerDeounce=setTimeout(function(){n.announceAriaLiveMessage(r)},150)):this.announceAriaLiveMessage(r)}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.a11yTimer),clearTimeout(this.a11yTimerDeounce)}},{key:"setupExternalTriggers",value:function(){var e=this;Array.from(document.querySelectorAll(".search__trigger__external")).map(function(t){t.addEventListener("click",e.openSearch.bind(e,t))}),document.body.addEventListener("keydown",this.searchKeyDown.bind(this)),document.addEventListener("click",function(t){e.searchChoicesRef.current&&(!(e.searchChoicesRef.current.contains(t.target)||t.target==e.searchChoicesRef.current||e.searchFormRef.current.contains(t.target)||t.target==e.searchFormRef.current)&&e.state.searched&&e.setState({inputChangedAfterSearch:!1}))})}},{key:"fetchConfig",value:function(){var e=this;h.default.get(window.searchConfig,{}).then(function(t){e.searchConfig=t.data;var n=[];"support"!==e.contentType&&n.push(e.fetchPopular("product")),n.push(e.fetchPopular("support")),Promise.allSettled(n).then(function(t){var n={};t.forEach(function(e){if("fulfilled"===(null==e?void 0:e.status)){var t,i=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:{},r=i.response,a=i.type;"product"===a?n.popularProducts=r.data:"support"===a&&(n.popularSupport=r.data)}}),e.setState(n,function(){e.setTotalResultCount()})})}).catch(function(e){console.log(e)})}},{key:"fetchDefault",value:function(){var e=this;h.default.get(window.featuredSearch,{}).then(function(t){e.l18n=t.data,e.defaults=t.data.results}).catch(function(e){console.log(e)})}},{key:"fetchPopular",value:function(e){var t=this.getUrl(e,"quicklinks"),n="support"===e?"beats_serp":"beats_product_serp";return h.default.get(t,{params:{src:n,query:"",locale:this.htmlLocale.replace(/-/g,"_")}}).then(function(t){return{response:t,type:e}}).catch(function(e){console.log(e)})}},{key:"setPopular",value:function(e,t){switch(t){case"product":this.setState({popularProducts:e.data});break;case"support":this.setState({popularSupport:e.data})}}},{key:"openSearch",value:function(e){var t=this;this.setState({open:!0,userSearchType:"popular"}),this.triggerEl=e||this.triggerRef.current,document.documentElement.classList.add("search-enabled"),document.documentElement.classList.add("search-enabled--component"),document.documentElement.classList.add("noscroll"),this.updateBackgroun
475dElements(!0),requestAnimationFrame(function(){t.inputRef.current.focus()})}},{key:"closeTypeAheadBg",value:function(){this.setState({inputChangedAfterSearch:!1})}},{key:"closeSearch",value:function(){var e=this;this.setState({open:!1,searchText:"",searched:!1,closeTimeout:!0,searchedAnimate:!1,inputChangedAfterSearch:!0}),setTimeout(function(){e.inputRef.current.value="",e.setState({closeTimeout:!1})},350),document.documentElement.classList.remove("search-enabled"),document.documentElement.classList.remove("search-enabled--component"),document.documentElement.classList.remove("noscroll"),this.updateBackgroundElements(),this.triggerEl&&this.triggerEl.focus()}},{key:"inputSearch",value:function(e){var t=this;this.setState({searchText:e.target.value.replace(/(<([^>]+)>)/gi,""),inputChangedAfterSearch:!0,userSearchType:""==e.target.value.replace(/ /g,"")?"popular":"suggested",resultsFetched:!1}),requestAnimationFrame(function(){"support"!==t.contentType&&t.debounceFetchSuggestProduct("product"),t.debounceFetchSuggestSupport("support")})}},{key:"submitSearch",value:function(e){var t=this;e&&e.preventDefault(),this.inputRef.current.blur(),this.setState({searchedText:this.state.searchText}),this.state.searchText&&this.setState({searchPageProduct:0,searchPageSupport:0,inputChangedAfterSearch:!1,userSearchType:"user"},function(){t.fetchResults()})}},{key:"clearSearch",value:function(e){var t=this;e&&e.preventDefault(),this.inputRef.current.value="",this.setState({searchText:""},function(){requestAnimationFrame(function(){setTimeout(function(){t.inputRef.current.focus()},500)})})}},{key:"fetchSuggest",value:function(e){var t=this,n=this.getUrl(e,"suggest"),i="support"===e?"beats_serp":"beats_product_serp";h.default.post(n,{src:i,query:this.state.searchText.replace(/(<([^>]+)>)/gi,""),locale:this.htmlLocale.replace(/-/g,"_")}).then(function(n){t.setSuggest(n,e)}).catch(function(e){console.log(e)})}},{key:"setSuggest",value:function(e,t){var n=this;switch(t){case"product":this.setState({suggestedProducts:e.data},function(){n.markInstance=new p.default(document.querySelectorAll(".search__suggested__items")),n.markInstance.unmark({done:function(){n.markInstance.mark(n.state.searchText,{acrossElements:!0})}})});break;case"support":this.setState({suggestedSupport:e.data},function(){n.markInstance=new p.default(document.querySelectorAll(".search__suggested__items")),n.markInstance.unmark({done:function(){n.markInstance.mark(n.state.searchText,{acrossElements:!0})}}),setTimeout(function(){n.setTotalResultCount()},1e3)})}}},{key:"getUrl",value:function(e,t){switch("".concat(e,"-").concat(t)){case"product-quicklinks":return"/".concat(this.searchConfig.productPrefix).concat(this.searchConfig.searchlightDefaultLinkPath);case"product-suggest":return"/".concat(this.searchConfig.productPrefix).concat(this.searchConfig.searchlightQuickLinksPath);case"product-search":return"/".concat(this.searchConfig.productPrefix).concat(this.searchConfig.searchlightSearchPath);case"product-feedback":return"/".concat(this.searchConfig.productPrefix).concat(this.searchConfig.searchlightFeedbackPath);case"support-quicklinks":return"/".concat(this.searchConfig.supportPrefix).concat(this.searchConfig.searchlightDefaultLinkPath);case"support-suggest":return"/".concat(this.searchConfig.supportPrefix).concat(this.searchConfig.searchlightQuickLinksPath);case"support-search":return"/".concat(this.searchConfig.supportPrefix).concat(this.searchConfig.searchlightSearchPath);case"support-feedback":return"/".concat(this.searchConfig.supportPrefix).concat(this.searchConfig.searchlightFeedbackPath)}}},{key:"fetchResults",value:function(){var e,t,n=this;e=this.fetchResult("support"),t="support"==this.contentType?[e]:[e,this.fetchResult("product")],h.default.all(t).then(h.default.spread(function(){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];n.setState({searched:!0}),requestAnimationFrame(function(){n.setState({searchedAnimate:!0})}),e&&n.setResults(e,"support"),t&&n.setResults(t,"product"),requestAnimationFrame(function(){if(0==n.state.searchPageProduct&&0==n.state.searchPageSupport){var e=parseInt(n.state.resultProducts.totalResults||0)+parseInt(n.state.resultSupport.totalResults||0);n.triggerAnalytics({eventType:"search",data:{term:n.state.searchText.replace(/(<([^>]+)>)/gi,""),resultsCount:e,type:"Global"}})}})})).catch(function(e){console.log(e)})}},{key:"fetchResult",value:function(e){var t=this.getUrl(e,"search"),n="support"===e?"beats_serp":"beats_product_serp",i="support"===e?{archive:"false",docType:"HOWTO_ARTICLES,AC,RC",productType:"PF27"}:{};return h.default.post(t,{src:n,query:this.state.searchText.replace(/(<([^>]+)>)/gi,""),locale:this.htmlLocale.replace(/-/g,"_"),page:"support"===e?this.state.searchPageSupport:this.state.searchPageProduct,resultPerPage:this.resultPerPage,filter:i}).catch(function(){return null})}},{key:"setResults",value:function(e,t){var n,i=this;switch(t){case"product":n=this.state.searchPageProduct>0,this.setState({resultProducts:n?this.structureData(this.state.resultProducts,e.data):this.structureData(null,e.data)},function(){i.updateDefaultTab()});break;
475case"support":n=this.state.searchPageSupport>0,this.setState({resultSupport:n?this.structureData(this.state.resultSupport,e.data):this.structureData(null,e.data)},function(){i.updateDefaultTab()})}requestAnimationFrame(function(){0==i.state.searchPageProduct&&0==i.state.searchPageSupport&&i.panelRef&&i.panelRef.current&&i.panelRef.current.scrollTo(0,0)})}},{key:"updateDefaultTab",value:function(){0==this.state.searchPageProduct&&0==this.state.searchPageSupport&&this.selectResultTab(!this.state.resultProducts.totalResults&&this.state.resultSupport.totalResults?this.tabIds.support:this.tabIds.products)}},{key:"structureData",value:function(e,t){var n,i,r,o,s;return t.results=t.results.sort(function(e){return"products"===e.sectionName?-1:1}),t.results=t.results.reduce(function(e,t){return e.concat(t.sectionResults)},[]),t.results=t.results.map(function(e,n){return e.searchId=t.id,e.index=n,e}),e?(this.productIdRef.current=null!==(n=null===(i=t.results)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.id)&&void 0!==n?n:null===(o=t.results)||void 0===o||null===(s=o[0])||void 0===s?void 0:s.docid,e.results=[].concat((0,a.default)(e.results),(0,a.default)(t.results)),e):t}},{key:"toggleTab",value:function(e){var t=this.tabListRef.current.querySelectorAll("button"),n=this.state.focusResultTab;switch(e.key){case"ArrowLeft":case"Left":n=n<=0?t.length-1:n-1;break;case"ArrowRight":case"Right":n=n>=t.length-1?0:n+1}this.setState({focusResultTab:n}),t[n].focus()}},{key:"selectResultTab",value:function(e){this.setState({focusResultTab:"support"==this.contentType?1:e,activeResultTab:"support"==this.contentType?1:e}),this.panelRef&&this.panelRef.current&&this.panelRef.current.scrollTo(0,0)}},{key:"searchKeyDown",value:function(e){switch(e.key){case"Escape":case"Esc":this.closeSearch()}}},{key:"setTotalResultCount",value:function(){var e=0;!this.state.searchText&&this.state.popularProducts&&this.state.popularProducts.results&&(e+=this.state.popularProducts.results[0].sectionResults.length),!this.state.searchText&&this.state.popularSupport&&this.state.popularSupport.results&&(e+=this.state.popularSupport.results[0].sectionResults.length),this.state.searchText&&this.state.suggestedProducts&&this.state.suggestedProducts.results&&this.state.suggestedProducts.results.find(function(e){return"quickLinks"===e.sectionName}).sectionResults.length>0&&(e+=this.state.suggestedProducts.results[0].sectionResults.length),this.state.searchText&&this.state.suggestedSupport&&this.state.suggestedSupport.results&&this.state.suggestedSupport.results.find(function(e){return"quickLinks"===e.sectionName}).sectionResults.length>0&&(e+=this.state.suggestedSupport.results[0].sectionResults.length),this.setState({totalSuggestionCount:e,resultsFetched:!0})}},{key:"announceAriaLiveMessage",value:function(e){var t=this;this.a11yMessageRef&&(this.a11yMessageRef.current.textContent="",setTimeout(function(){t.a11yMessageRef.current.textContent=e},100),clearTimeout(this.a11yTimer),this.a11yTimer=setTimeout(function(){t.a11yMessageRef.current.textContent&&(t.a11yMessageRef.current.textContent="")},3e3))}},{key:"loadMore",value:function(){var e=this,t=this.state.focusResultTab;switch(t){case 0:this.setState({searchPageProduct:this.state.searchPageProduct+1});break;case 1:this.setState({searchPageSupport:this.state.searchPageSupport+1})}requestAnimationFrame(function(){switch(t){case 0:e.fetchResult("product").then(function(t){e.setState({searched:!0}),requestAnimationFrame(function(){e.setState({searchedAnimate:!0})}),e.setResults(t,"product")}).catch(function(e){console.log(e)});break;case 1:e.fetchResult("support").then(function(t){e.setState({searched:!0}),requestAnimationFrame(function(){e.setState({searchedAnimate:!0})}),e.setResults(t,"support")}).catch(function(e){console.log(e)})}})}},{key:"linkTarget",value:function(e){var t=window.location.host.replace("www.","");try{return new URL(e).host.indexOf(t)>=0?"_self":"_blank"}catch(e){return"_self"}}},{key:"navigateToLink",value:function(e,t,n,i,r,a){if(a.target.classList.contains("productLink"))this.clickLink(e,t,n,i,r);else{var o=a.currentTarget.querySelector("a");o&&o.click()}}},{key:"clickLink",value:function(e,t,n,i,r){this.triggerAnalytics({eventType:e,data:{term:t.replace(/(<([^>]+)>)/gi,""),type:n,userSearchType:this.state.userSearchType}}),this.triggerFeedback(r,i.searchId,i.index)}},{key:"triggerAnalytics",value:function(e){T("analytics-track",e)}},{key:"triggerFeedback",value:function(e,t,n){var i=this.getUrl("articles"==e||"products"==e?"product":e,"feedback");h.default.post(i,{id:t,query:this.state.searchedText,action:"read",section:e,position:n}).then(function(){}).catch(function(e){console.log(e)})}},{key:"goToResults",value:function(e){switch(e.key){case"ArrowDown":case"Down":b(this.searchChoicesRef.current)}}},{key:"cycleResults",value:function(e){switch(e.key){case"ArrowDown":case"Down":b(this.searchChoicesRef.current);break;case"ArrowUp":case"Up":_(this.searchChoicesRef.current)}}}
475,{key:"updateBackgroundElements",value:function(e){this.backgroundElements.map(function(t){e?(t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1"),t.setAttribute("inert","true")):(t.removeAttribute("aria-hidden"),t.removeAttribute("tabindex"),t.removeAttribute("inert"))})}},{key:"isSearchSuggestionEnabled",value:function(){return(this.state.inputChangedAfterSearch&&!this.state.searchText&&!this.state.searched||this.state.inputChangedAfterSearch&&this.state.searchText)&&(!this.state.searchText&&this.state.popularProducts&&this.state.popularProducts.results||!this.state.searchText&&this.state.popularSupport&&this.state.popularSupport.results||this.state.searchText&&this.state.suggestedProducts&&this.state.suggestedProducts.results&&this.state.suggestedProducts.results.find(function(e){return"quickLinks"===e.sectionName}).sectionResults.length>0||this.state.searchText&&this.state.suggestedSupport&&this.state.suggestedSupport.results&&this.state.suggestedSupport.results.find(function(e){return"quickLinks"===e.sectionName}).sectionResults.length>0)}},{key:"renderQuickLinks",value:function(e){var t=this;return e.sectionResults.map(function(e,n){return f.default.createElement("li",{role:"listitem",key:n},f.default.createElement("a",{href:e.url,target:t.linkTarget(e.url),onClick:t.clickLink.bind(t,"search",e.label,"Type Ahead",e,null)},f.default.createElement("span",{dangerouslySetInnerHTML:{__html:"_blank"==t.linkTarget(e.url)?e.label+'<span class="visuallyhidden">('.concat(S("externalLinkLabel","Opens in a new window"),')</span><i class="fa fa-external-link"></i>'):e.label}})))})}},{key:"renderProduct",value:function(e,t){return f.default.createElement("li",{role:"listitem",id:"product_".concat(e.id),tabIndex:"-1"},f.default.createElement("div",{className:"search__result__item",key:"".concat(e.pageTitle,"-").concat(t),onClick:this.navigateToLink.bind(this,"searchResult",e.pageTitle,"Type Ahead",e,"products")},f.default.createElement("img",{className:"search__result__item__img",src:e.imageUrl[0],alt:e.pageTitle}),f.default.createElement("span",{className:"search__result__item__copy"},f.default.createElement("span",{className:"search__result__item__title",dangerouslySetInnerHTML:{__html:e.pageTitle}}),f.default.createElement("p",{className:"search__result__item__desc",dangerouslySetInnerHTML:{__html:e.description}}),f.default.createElement("a",{className:"productLink",href:e.uri,target:"_self","aria-label":"Learn More about ".concat(e.pageTitle)},f.default.createElement("span",{className:"search__result__item__link productLink",dangerouslySetInnerHTML:{__html:this.l18n.resultCta}})))))}},{key:"renderProductResult",value:function(e,t){return f.default.createElement("li",{role:"listitem",id:"product_".concat(e.id),tabIndex:"-1"},f.default.createElement("div",{className:"search__result__item",key:"".concat(e.pageTitle,"-").concat(t),onClick:this.navigateToLink.bind(this,"search",e.pageTitle,"Global",e,"articles")},f.default.createElement("span",{className:"search__result__item__copy"},f.default.createElement("span",{className:"search__result__item__title",dangerouslySetInnerHTML:{__html:e.pageTitle}}),f.default.createElement("p",{className:"search__result__item__desc",dangerouslySetInnerHTML:{__html:e.description}}),f.default.createElement("a",{className:"search__result__item productLink",onClick:this.clickLink.bind(this,"search",e.pageTitle,"Global",e,"articles"),href:e.uri,target:this.linkTarget(e.uri),"aria-label":"Learn more about ".concat(e.pageTitle)},f.default.createElement("span",{className:"search__result__item__link productLink",dangerouslySetInnerHTML:{__html:this.l18n.resultCta}})))))}},{key:"renderSupportResult",value:function(e,t){return f.default.createElement("li",{role:"listitem",id:"product_".concat(e.docid),tabIndex:"-1"},f.default.createElement("div",{className:"search__result__item",key:"".concat(e.link,"-").concat(t),onClick:this.navigateToLink.bind(this,"search",e.title,"Global",e,"support")},f.default.createElement("span",{className:"search__result__item__copy"},f.default.createElement("span",{className:"search__result__item__title",dangerouslySetInnerHTML:{__html:e.title}}
475),f.default.createElement("p",{className:"search__result__item__desc",dangerouslySetInnerHTML:{__html:e.description}}),f.default.createElement("a",{className:"productLink",href:"https://support".concat(this.uatURL,".apple.com/").concat(this.locale,"/").concat(e.link),target:"_blank","aria-label":"Learn more about ".concat(e.title)},f.default.createElement("span",{className:"search__result__item__link productLink"},"https://support",this.uatURL,".apple.com/",this.locale,"/",e.link)))))}},{key:"renderNoResults",value:function(){var e=this;return f.default.createElement("div",{className:"search__result__none"},f.default.createElement("h3",{dangerouslySetInnerHTML:{__html:this.l18n.noResults.replace("${s}",this.state.searchedText)}}),this.state.focusResultTab!=this.tabIds.support&&f.default.createElement("div",null,f.default.createElement("h4",{dangerouslySetInnerHTML:{__html:this.l18n.productSectionLabel}}),f.default.createElement("div",{className:"search__result__none__products"},this.defaults&&this.defaults.products.map(function(t){return f.default.createElement("li",{role:"listitem"},f.default.createElement("a",{className:"search__result__item search__result__item--column",key:t.path,href:t.path,target:e.linkTarget(t.uri)},f.default.createElement("img",{className:"search__result__item__img",src:t.image,alt:t.title}),f.default.createElement("span",{className:"search__result__item__copy"},f.default.createElement("span",{className:"search__result__item__title",dangerouslySetInnerHTML:{__html:t.title}}))))}))),this.state.focusResultTab!=this.tabIds.products&&f.default.createElement("div",null,f.default.createElement("h4",{dangerouslySetInnerHTML:{__html:this.l18n.supportSectionLabel}}),this.defaults&&this.defaults.supportArticles.map(function(t){return f.default.createElement("a",{className:"search__result__item",key:t.path,href:t.path,target:e.linkTarget(t.uri)},f.default.createElement("span",{className:"search__result__item__copy"},f.default.createElement("span",{className:"search__result__item__title",dangerouslySetInnerHTML:{__html:t.title}}),f.default.createElement("span",{className:"search__result__item__link",dangerouslySetInnerHTML:{__html:e.l18n.resultCta}})))})))}},{key:"render",value:function(){var e=this;return f.default.createElement("div",{ref:this.mainElRef},this.triggerVisible&&f.default.createElement("button",{ref:this.triggerRef,className:"search__trigger",type:"button","aria-label":this.l18n.ariaLabelSearch,"aria-haspopup":"true",onClick:this.openSearch.bind(this,null)},f.default.createElement("i",{className:"fa-sharp fa-solid fa-magnifying-glass"})),f.default.createElement("div",{className:"a11y","aria-live":"polite","aria-atomic":"true",role:"status"},f.default.createElement("span",{ref:this.a11yMessageRef})),this.l18n&&f.default.createElement("div",{ref:this.mainSearchRef,onKeyDown:this.searchKeyDown.bind(this),className:"search__container ".concat(this.state.open?"search__container--open":""," ").concat(this.state.closeTimeout?"search__container--close":"")},f.default.createElement("div",{className:"search-main ".concat(this.state.inputChangedAfterSearch&&""!=this.state.searchText||!this.state.searched?"":"search-main--interacted"," ").concat(this.state.searched?"search-main--searched":"")},f.default.createElement("div",{className:"search__exit__bg",onClick:this.closeSearch.bind(this)}),this.state.inputChangedAfterSearch&&this.state.searched&&f.default.createElement("div",{className:"search__typeahead__bg",onClick:this.closeTypeAheadBg.bind(this)}),f.default.createElement("form",{action:"/",className:"search__form",onSubmit:function(){e.submitSearch()},ref:this.searchFormRef},f.default.createElement("div",{className:"search__input ".concat(!this.state.inputChangedAfterSearch&&this.state.searchText?"search__input--searched":"")},f.default.createElement("button",{type:"button",className:"search__input__close",onClick:this.closeSearch.bind(this),"aria-label":this.l18n.ariaLabelClose},f.default.createElement("svg",{"aria-hidden":"true",className:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11.121 19.243"},f.default.createElement("g",{transform:"translate(-228.5 -31.379)"},f.default.createElement("path",{d:"M0,7.5,7.5,0,15,7.5",transform:"translate(230 48.5) rotate(-90)",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3"})))),f.default.createElement("input",{name:"search",role:"combobox",ref:this.inputRef,id:"searchInput",onKeyDown:this.goToResults.bind(this),onChange:this.inputSearch.bind(this),"aria-label":this.searchSupport?this.l18n.searchPlaceholderSupport:this.l18n.searchPlaceholder,type:"text",placeholder:this.searchSupport?this.l18n.searchPlaceholderSupport:this.l18n.searchPlaceholder,"aria-expanded":this.isSearchSuggestionEnabled()?"true":"false",autoComplete:"off",spellCheck:"false"}),this.state.searchText&&f.default.createElement("button",{type:"button",className:"search__input__clear",onClick:this.clearSearch.bind(this),"aria-label":this.l18n.ariaLabelClear},f.default.createElement("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.243 18.243"},f.default.createElement("g",{transform:"translate(-349.379 -45.379)"},f.default.createElement("path",{d:"M121.32,117l14,14",transform:"translate(230.18 -69.5)",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeWidth:"3"}),f.default.createElement("path",{d:"M1344,143l-14,14",transform:"translate(-978.5 -95.5)",fill:"none",stroke:"#fff",strokeLinecap:"round",strokeWidth:"3"})))),f.default.createElement("button",(0,d.default)({type:"submit","aria-label":"Submit Search",onClick:this.submitSearch.bind(this)},"aria-label",this.l18n.ariaLabelSearchSubmit),f.default.createElement("i",{className:"fa-sharp fa-solid fa-magnifying-glass"})))),this.isSearchSuggestionEnabled()&&f.default.createElement("div",{className:"search__choices",ref:this.searchChoicesRef,onKeyDown:this.cycleResults.bind(this)},f.default.createElement("div",{className:"search__choices__container"},f.default.createElement("h2",{className:"search__choices__title",dangerouslySetInnerHTML:{__html:this.l18n.quicklinks}}),!this.state.searchText&&this.state.popularProducts&&this.state.popularProducts.results&&f.default.createElement("section",{className:"search__popular__products"},f.default.createElement("h3",{id:"search-popular-products",dangerouslySetInnerHTML:{__html:this.l18n.products}}),f.default.createElement("ul",{role:"list","aria-labelledby":"search-popular-products"},this.renderQuickLinks(this.state.popularProducts.results.find(function(e){return"quickLinks"===e.sectionName})))),!this.state.searchText&&this.state.popularSupport&&this.state.popularSupport.results&&f.default.createElement("section",{className:"search__popular__support"},"support"!=this.contentType&&f.default.createElement("h3",{id:"search-popular-support",dangerouslySetInnerHTML:{__html:this.l18n.support}}),f.default.createElement("ul",{role:"list","aria-labelledby":"search-popular-support"},this.renderQuickLinks(this.state.popularSupport.results.find(function(e){return"quickLinks"===e.sectionName})))),this.state.searchText&&this.state.suggestedProducts&&this.state.suggestedProducts.results&&this.state.suggestedProducts.results.find(function(e){return"quickLinks"===e.sectionName}).sectionResults.length>0&&f.default.createElement("section",{className:"search__suggested__products"},f.default.createElement("h3",{id:"search-suggested-products",dangerouslySetInnerHTML:{__html:this.l18n.products}}),f.default.createElement("ul",{role:"list",className:"search__suggested__items","aria-labelledby":"search-suggested-products"},this.renderQuickLinks(this.state.suggestedProducts.results.find(function(e){return"quickLinks"===e.sectionName})))),this.state.searchText&&this.state.suggestedSupport&&this.state.suggestedSupport.results&&this.state.suggestedSupport.results.find(function(e){return"quickLinks"===e.sectionName}).sectionResults.length>0&&f.default.createElement("section",{className:"search__suggested__support"},"support"!=this.contentType&&f.default.createElement("h3",{id:"search-suggested-items",dangerouslySetInnerHTML:{__html:this.l18n.support}}),f.default.createElement("ul",{role:"list",className:"search__suggested__items","aria-labelledby":"search-suggested-items"},this.renderQuickLinks(this.state.suggestedSupport.results.find(function(e){return"quickLinks"===e.sectionName})))))),this.state.searched&&f.default.createElement("div",{"aria-expanded":"true",className:"search__results ".concat(this.state.searchedAnimate?"search__results--active":"")},f.default.createElement("div",{className:"search__results__tabs"},"support"!==this.contentType&&f.default.createElement("div",{className:"search__results__tabs__container",role:"tablist","aria-label":"Search result categories",ref:this.tabListRef,onKeyDown:this.toggleTab.bind(this)},f.default.createElement("button",{type:"button",role:"tab",onClick:function(){e.selectResultTab(e.tabIds.products)},"aria-selected":this.state.focusResultTab==this.tabIds.products?"true":"false","aria-controls":"panel-search-products",id:"tab-search-products",tabIndex:this.state.focusResultTab==this.tabIds.products?0:-1},f.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.l18n.products}})," (",this.state.resultProducts.totalResults||0,")"),f.default.createElement("button",{type:"button",role:"tab",onClick:function(){e.selectResultTab(e.tabIds.support)},"aria-selected":this.state.focusResultTab==this.tabIds.support?"true":"false","aria-controls":"panel-search-support",id:"tab-search-support",tabIndex:this.state.focusResultTab==this.tabIds.support?0:-1},f.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.l18n.support}})," (",this.state.resultSupport.totalResults||0,")")),"support"===this.contentType&&f.default.createElement("div",{className:"search__results__tabs__container search__results__tabs__container--single"},f.default.createElement("span",{className:"search__results__tabs__single"},f.default.createElement("span",{dangerouslySetInnerHTML:{__html:this.l18n.searchResults}}),': "',this.state.searchedText,'" (',this.state.resultSupport.totalResults||0,")"))),f.default.createElement("div",{className:"search__results__panels",ref:this.panelRef},f.default.createElement("div",{className:"search__results__panels__inner"},0==this.state.activeResultTab&&f.default.createElement("div",{id:"panel-search-products",role:"tabpanel","aria-labelledby":"tab-search-products"},f.default.createElement("ul",{role:"list"},this.state.resultProducts&&0==this.state.resultProducts.totalResults&&f.default.createElement(f.default.Fragment,null,this.renderNoResults()),this.state.resultProducts&&this.state.resultProducts.totalResults>0&&f.default.createElement(f.default.Fragment,null,this.state.resultProducts.results.map(function(t,n){return"Products"===t.contentCategory?e.renderProduct(t,n):e.renderProductResult(t,n)}
475))),this.resultPerPage*(this.state.searchPageProduct+1)<this.state.resultProducts.totalResults&&f.default.createElement("div",{className:"beats-button"},f.default.createElement("button",{"data-analytics-click":"",type:"button",className:"beats-btn btn-light beats-btn--button",onClick:this.loadMore.bind(this)},f.default.createElement("span",{tabIndex:"-1",className:"beats-btn-inner",dangerouslySetInnerHTML:{__html:this.l18n.loadMoreArticles}}),f.default.createElement("span",{className:"beats-btn-mask"})))),1==this.state.activeResultTab&&f.default.createElement("div",{id:"panel-search-support",role:"tabpanel","aria-labelledby":"tab-search-support"},f.default.createElement("ul",{role:"list"},this.state.resultSupport&&0==this.state.resultSupport.totalResults&&f.default.createElement(f.default.Fragment,null,this.renderNoResults()),this.state.resultSupport&&this.state.resultSupport.totalResults>0&&f.default.createElement(f.default.Fragment,null,this.state.resultSupport.results.map(function(t,n){return e.renderSupportResult(t,n)}))),this.resultPerPage*(this.state.searchPageSupport+1)<this.state.resultSupport.totalResults&&f.default.createElement("div",{className:"beats-button"},f.default.createElement("button",{"data-analytics-click":"",type:"button",className:"beats-btn btn-light beats-btn--button",onClick:this.loadMore.bind(this)},f.default.createElement("span",{tabIndex:"-1",className:"beats-btn-inner",dangerouslySetInnerHTML:{__html:this.l18n.loadM
475oreArticles}}),f.default.createElement("span",{className:"beats-btn-mask"}))))))))))}}])}(f.Component);t.default=k},2899:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.initViewmore=function(){document.querySelectorAll(".viewmore-container").forEach(function(e){new l(e)})};var r=i(n(6690)),a=i(n(9728)),o=i(n(9669)),s=(n(1602),n(8661)),l=(n(6245),function(){return(0,a.default)(function e(t){(0,r.default)(this,e),this.el=t,this.viewmoreData=this.el.querySelector(".viewmore-data"),this.viewmoreCta=this.el.querySelector(".viewmore-cta"),this.viewmoreCtaContainer=this.el.querySelector(".beats-viewmore-cta-container"),this.viewmoreQueryTemplate=this.viewmoreData.querySelector(".viewmore-url-template"),this.addListeners()},[{key:"addListeners",value:function(){this.viewmoreCta&&this.viewmoreCta.addEventListener("click",this.viewmoreOnClick.bind(this)),window.beatsVideoManager(),s()}},{key:"viewmoreOnClick",value:function(e){var t=this;e.preventDefault(),this.viewmoreCta.setAttribute("disabled",""),(0,o.default)({method:"GET",url:this.getNextUrl(),dataType:"html"}).then(function(e){t.addToViewMoreComponent(e.data),t.viewmoreCta.removeAttribute("disabled")}).catch(function(e){console.log(e),t.viewmoreCta.removeAttribute("disabled")})}},{key:"getNextUrl",value:function(){return this.viewmoreQueryTemplate.content.querySelector(".viewmore-url").getAttribute("data-url")}},{key:"addToViewMoreComponent",value:function(e){this.viewmoreQueryTemplate.remove();var t=this.createLoadedDataContainer(e);this.viewmoreData.appendChild(t),t.querySelector(".viewmore-url-template")?this.viewmoreQueryTemplate=t.querySelector(".viewmore-url-template"):this.viewmoreCtaContainer.remove(),this.initializeLoadedItems(t),t.querySelector("section a").focus()}},{key:"createLoadedDataContainer",value:function(e){var t=document.createElement("div");t.setAttribute("class","loaded-data"),t.innerHTML=e;var n=t.querySelector("button[data-analytics-viewmore]");if(n){var i=n.getAttribute("data-analytics-viewmore");this.viewmoreCta.setAttribute("data-analytics-viewmore",i)}return t.innerHTML=t.querySelector(".response-filtered-data").innerHTML,t}},{key:"initializeLoadedItems",value:function(e){window.initBeatsVideo(e),window.initImgTxt(e),window.initPageScroll(e)}}])}());t.default=l},456:(e,t,n)=>{"use strict";var i=n(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(6690)),a=i(n(9728)),o="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,s=function(){return(0,a.default)(function e(t){(0,r.default)(this,e),t.classList.contains("zoom-initialized")||(this.zoomElement=t,this.zoomElement.classList.add("zoom-initialized"),this.zoomContainer=t.closest("div"),this.contained="true"==t.getAttribute("data-zoom-contained"),this.zoomEnabledClass=this.contained?"zoom--enabled--contained":"zoom--enabled",this.scale=2,this.clickHandler=this.handleClick.bind(this),this.mousemoveHandler=this.handleMouseMove.bind(this),this.addListeners())},[{key:"addListeners",value:function(){this.zoomElement.addEventListener("click",this.clickHandler),document.addEventListener("mousemove",this.mousemoveHandler)}},{key:"destroy",value:function(){this.resetZoom(),this.zoomContainer.classList.remove(this.zoomEnabledClass),this.zoomElement.classList.remove("zoom-initialized"),this.zoomElement.removeEventListener("click",this.clickHandler),document.removeEventListener("mousemove",this.mousemoveHandler)}},{key:"handleClick",value:function(e){o||(this.zoomContainer.classList.contains(this.zoomEnabledClass)?(this.zoomContainer.classList.remove(this.zoomEnabledClass),this.resetZoom()):(this.zoomContainer.classList.add(this.zoomEnabledClass),this.handleMouseMove(e)))}},{key:"handleMouseMove",value:function(e){this.zoomContainer.classList.contains(this.zoomEnabledClass)&&(this.contained?this.mouseMoveContained():this.mouseMove())}},{key:"mouseMove",value:function(){var e=event.clientX/window.innerWidth,t=event.clientY/window.innerHeight,n=Math.max(0,(this.zoomElement.clientWidth-window.innerWidth)*e),i=Math.max(0,(this.zoomElement.clientHeight-window.innerHeight)*t);this.zoomElement.style.left="-".concat(n,"px"),this.zoomElement.style.top="-".concat(i,"px")}},{key:"mouseMoveContained",value:function(){var e=this.zoomContainer.getBoundingClientRect(),t=.5-(event.clientX-e.left)/e.width,n=.5-(event.clientY-e.top)/e.height,i=this.zoomElement.clientWidth*(this.scale-1)*t,r=this.zoomElement.clientHeight*(this.scale-1)*n,a=e.width*(this.scale-1)/2,o=-1*a,s=e.height*(this.scale-1)/2,l=-1*s,u=Math.min(Math.max(i,o),a),c=Math.min(Math.max(r,l),s);this.zoomElement.style.transform="scale(".concat(this.scale,") translateX(").concat(u/this.scale,"px) translateY(").concat(c/this.scale,"px)")}},{key:"resetZoom",value:function(){this.contained?this.zoomElement.style.transform="scale(1) translateX(0) translateY(0)":(this.zoomElement.style.left="0",this.zoomElement.style.top="0")}}])}();t.default=s}
475,8954:(e,t,n)=>{"use strict";var i=n(4836);t.Z=void 0;var r=i(n(7156)),a=i(n(861)),o=i(n(9669));function s(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function a(n,i,r,a){var s=i&&i.prototype instanceof u?i:u,c=Object.create(s.prototype);return l(c,"_invoke",function(n,i,r){var a,s,l,u=0,c=r||[],d=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,l=e,h.n=n,o}};function p(n,i){for(s=n,l=i,t=0;!d&&u&&!r&&t<c.length;t++){var r,a=c[t],p=h.p,f=a[2];n>3?(r=f===i)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((r=n<2&&p<a[1])?(s=0,h.v=i,h.n=a[1]):p<f&&(r=n<3||a[0]>i||i>f)&&(a[4]=n,a[5]=i,h.n=f,s=0))}if(r||n>1)return o;throw d=!0,i}return function(r,c,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,l=f;(t=s<2?e:l)||!d;){a||(s?s<3?(s>1&&(h.n=-1),p(s,l)):h.n=l:h.v=l);try{if(u=2,a){if(s||(r="next"),t=a[r]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),s=1);a=e}else if((t=(d=h.n<0)?l:n.call(i,h))!==o)break}catch(t){a=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,r,a),!0),c}var o={};function u(){}function c(){}function d(){}t=Object.getPrototypeOf;var h=[][i]?t(t([][i]())):(l(t={},i,function(){return this}),t),p=d.prototype=u.prototype=Object.create(h);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=d,l(p,"constructor",d),l(d,"constructor",c),c.displayName="GeneratorFunction",l(d,r,"GeneratorFunction"),l(p),l(p,r,"Generator"),l(p,i,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:a,m:f}})()}function l(e,t,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}l=function(e,t,n,i){function a(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!i,configurable:!i,writable:!i}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},l(e,t,n,i)}var u=function(){document.querySelectorAll('img[src$=".svg"]:not([data-no-extract])').forEach(function(e){var t=e,n=t.id,i=t.classList,r=t.src;r&&o.default.get(r).then(function(t){var r,o=(new DOMParser).parseFromString(t.data,"text/html").getElementsByTagName("svg")[0];(""!==n&&(o.id=n),0===i.length)?i="":(r=o.classList).add.apply(r,(0,a.default)(i).concat(["replaced-svg"]));o.removeAttribute("xmlns:a"),e.replaceWith(o)}).catch(function(e){console.log("svg fetch error",e)})}),c()},c=function(){var e=(0,r.default)(s().m(function e(){var t;return s().w(function(e){for(;;)switch(e.n){case 0:if(t='img[class*="icon-"]:not([data-no-extract])',window.spriteSVG){e.n=1;break}return e.n=1,o.default.get("/assets/resources/images/sprite.svg").then(function(e){var t=(new DOMParser).parseFromString(e.data,"text/html");window.spriteSVG=t.getElementsByTagName("svg")[0]}).catch(function(e){return console.log(e)});case 1:return e.n=2,window.spriteSVG;case 2:if(!e.v){e.n=3;break}document.querySelectorAll(t).forEach(function(e){var t,n,i=e,r=i.classList,o=i.classList.contains("caret")?"caret":"",s=null!==(t=r[0])&&void 0!==t&&t.match(/icon-.[^ ]*/g)?null===(n=r[0])||void 0===n?void 0:n.match(/icon-.[^ ]*/g)[0]:null;if(s){var l=window.spriteSVG.cloneNode(!0),u=l.querySelector("#"+s);l=null,u&&"svg"===u.tagName?(u.classList.add("replaced-svg-icon"),r.length&&u.setAttribute.apply(u,["data-img-class"].concat((0,a.default)(r))),u.removeAttribute("id"),o&&u.classList.add(o),e.replaceWith(u)):console.log("".concat(s," fetch failed from the sprite"))}});case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();window.addEventListener("extractSVG",function(){u()});t.Z=u},8529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,Math.easeInOutQuad=function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},Math.linearTween=function(e,t,n,i){return n*e/i+t},Math.easeOutCirc=function(e,t,n,i){return e/=i,e--,n*Math.sqrt(1-e*e)+t};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=i?e.scrollLeft:e.scrollTop,a=t-r,o=0,s=function(){o+=20;var t=Math.easeInOutQuad(o,r,a,n);i?e.scrollLeft=t:e.scrollTop=t,o<n&&setTimeout(s,20)};s()}},5219:(e,t,n)=>{"use strict";var i=n(4836);
475Object.defineProperty(t,"__esModule",{value:!0}),t.BeatsInstance=void 0;var r=i(n(6690)),a=i(n(9728)),o=i(n(2611)),s=t.BeatsInstance=null,l=function(){return(0,a.default)(function e(){(0,r.default)(this,e),this.BeatsStore=Object.assign({},o.default),this.platform="noosid",this.detectPlatform()},[{key:"setData",value:function(e){Object.assign(this.BeatsStore,e)}},{key:"getData",value:function(e){var t=JSON.parse(JSON.stringify(this.BeatsStore));if(!e)return t;if("string"==typeof e)return t[e];if(e instanceof Array){var n={};return e.forEach(function(e){n[e]=null==t[e]?null:t[e]}),n}}},{key:"detectPlatform",value:function(){var e=o.default&&o.default.client?o.default.client:"";e&&e.os&&(e.os.ios?this.platform="ios":(e.os.android||e.os.linux)&&(this.platform="android"))}}])}();s||(t.BeatsInstance=s=new l,Object.freeze(s))},3796:(e,t,n)=>{"use strict";n(6015)},840:(e,t,n)=>{var i;!function(r,a,o,s){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=a.createElement("div"),d=Math.round,h=Math.abs,p=Date.now;function f(e,t,n){return setTimeout(T(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function v(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=r.console&&(r.console.warn||r.console.log);return a&&a.call(r.console,i,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign;var y=v(function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&e[i[r]]===s)&&(e[i[r]]=t[i[r]]),r++;return e},"extend","Use `assign`."),b=v(function(e,t){return y(e,t,!0)},"merge","Use `assign`.");function _(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&l(i,n)}function T(e,t){return function(){return e.apply(t,arguments)}}function w(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function S(e,t){return e===s?t:e}function k(e,t,n){g(P(t),function(t){e.addEventListener(t,n,!1)})}function E(e,t,n){g(P(t),function(t){e.removeEventListener(t,n,!1)})}function C(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function x(e,t){return e.indexOf(t)>-1}function P(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function L(e){return Array.prototype.slice.call(e,0)}function I(e,t,n){for(var i=[],r=[],a=0;a<e.length;){var o=t?e[a][t]:e[a];A(r,o)<0&&i.push(e[a]),r[a]=o,a++}return n&&(i=t?i.sort(function(e,n){return e[t]>n[t]}):i.sort()),i}function N(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),a=0;a<u.length;){if((i=(n=u[a])?n+r:t)in e)return i;a++}return s}var D=1;function O(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}var M="ontouchstart"in r,R=N(r,"PointerEvent")!==s,B=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U="touch",F="mouse",j=24,z=["x","y"],V=["clientX","clientY"];function q(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){w(e.options.enable,[e])&&n.handler(t)},this.init()}function H(e,t,n){var i=n.pointers.length,r=n.changedPointers.length,a=1&t&&i-r===0,o=12&t&&i-r===0;n.isFirst=!!a,n.isFinal=!!o,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,r=i.length;n.firstInput||(n.firstInput=W(t));r>1&&!n.firstMultiple?n.firstMultiple=W(t):1===r&&(n.firstMultiple=!1);var a=n.firstInput,o=n.firstMultiple,l=o?o.center:a.center,u=t.center=$(i);t.timeStamp=p(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=X(l,u),t.distance=K(l,u),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},a=e.prevInput||{};1!==t.eventType&&4!==a.eventType||(r=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var c=G(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=h(c.x)>h(c.y)?c.x:c.y,t.scale=o?(d=o.pointers,f=i,K(f[0],f[1],V)/K(d[0],d[1],V)):1,t.rotation=o?function(e,t){return X(t[1],t[0],V)+X(e[1],e[0],V)}(o.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,r,a,o=e.lastInterval||t,l=t.timeStamp-o.timeStamp;if(8!=t.eventType&&(l>25||o.velocity===s)){var u=t.deltaX-o.deltaX,c=t.deltaY-o.deltaY,d=G(l,u,c);i=d.x,r=d.y,n=h(d.x)>h(d.y)?d.x:d.y,a=Y(u,c),e.lastInterval=t}else n=o.velocity,i=o.velocityX,r=o.velocityY,a=o.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=a}(n,t);var d,f;var m=e.element;C(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function W(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:$(t),deltaX:e.deltaX,deltaY:e.deltaY}}function $(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:d(n/t),y:d(i/t)}}function G(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:h(e)>=h(t)?e<0?2:4:t<0?8:16}function K(e,t,n){n||(n=z);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}
475function X(e,t,n){n||(n=z);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}q.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(O(this.element),this.evWin,this.domHandler)}};var Q={mousedown:1,mousemove:2,mouseup:4},J="mousedown",Z="mousemove mouseup";function ee(){this.evEl=J,this.evWin=Z,this.pressed=!1,q.apply(this,arguments)}_(ee,q,{handler:function(e){var t=Q[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:F,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:U,3:"pen",4:F,5:"kinect"},ie="pointerdown",re="pointermove pointerup pointercancel";function ae(){this.evEl=ie,this.evWin=re,q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(ie="MSPointerDown",re="MSPointerMove MSPointerUp MSPointerCancel"),_(ae,q,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=te[i],a=ne[e.pointerType]||e.pointerType,o=a==U,s=A(t,e.pointerId,"pointerId");1&r&&(0===e.button||o)?s<0&&(t.push(e),s=t.length-1):12&r&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:a,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function se(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,q.apply(this,arguments)}function le(e,t){var n=L(e.touches),i=L(e.changedTouches);return 12&t&&(n=I(n.concat(i),"identifier",!0)),[n,i]}_(se,q,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=le.call(this,e,t);12&t&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:U,srcEvent:e})}}});var ue={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ce="touchstart touchmove touchend touchcancel";function de(){this.evTarget=ce,this.targetIds={},q.apply(this,arguments)}function he(e,t){var n=L(e.touches),i=this.targetIds;if(3&t&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,a,o=L(e.changedTouches),s=[],l=this.target;if(a=n.filter(function(e){return C(e.target,l)}),1===t)for(r=0;r<a.length;)i[a[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&s.push(o[r]),12&t&&delete i[o[r].identifier],r++;return s.length?[I(a.concat(s),"identifier",!0),s]:void 0}_(de,q,{handler:function(e){var t=ue[e.type],n=he.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:U,srcEvent:e})}});function pe(){q.apply(this,arguments);var e=T(this.handler,this);this.touch=new de(this.manager,e),this.mouse=new ee(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function fe(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,me.call(this,t)):12&e&&me.call(this,t)}function me(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)},2500)}}function ge(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],a=Math.abs(t-r.x),o=Math.abs(n-r.y);if(a<=25&&o<=25)return!0}return!1}_(pe,q,{handler:function(e,t,n){var i=n.pointerType==U,r=n.pointerType==F;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)fe.call(this,t,n);else if(r&&ge.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ve=N(c.style,"touchAction"),ye=ve!==s,be="compute",_e="auto",Te="manipulation",we="none",Se="pan-x",ke="pan-y",Ee=function(){if(!ye)return!1;var e={},t=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!t||r.CSS.supports("touch-action",n)}),e}();function Ce(e,t){this.manager=e,this.set(t)}Ce.prototype={set:function(e){e==be&&(e=this.compute()),ye&&this.manager.element.style&&Ee[e]&&(this.manager.element.style[ve]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return g(this.manager.recognizers,function(t){w(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(x(e,we))return we;var t=x(e,Se),n=x(e,ke);if(t&&n)return we;if(t||n)return t?Se:ke;if(x(e,Te))return Te;return _e}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=x(i,we)&&!Ee[we],a=x(i,ke)&&!Ee[ke],o=x(i,Se)&&!Ee[Se];if(r){var s=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;
vendor: 9,732 bytes, line 475
475if(s&&l&&u)return}if(!o||!a)return r||a&&6&n||o&&n&j?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var xe=32;function Pe(e){this.options=l({},this.defaults,e||{}),this.id=D++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ae(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Le(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Ie(e,t){var n=t.manager;return n?n.get(e):e}function Ne(){Pe.apply(this,arguments)}function De(){Ne.apply(this,arguments),this.pX=null,this.pY=null}function Oe(){Ne.apply(this,arguments)}function Me(){Pe.apply(this,arguments),this._timer=null,this._input=null}function Re(){Ne.apply(this,arguments)}function Be(){Ne.apply(this,arguments)}function Ue(){Pe.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Fe(e,t){return(t=t||{}).recognizers=S(t.recognizers,Fe.defaults.preset),new je(e,t)}Pe.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ie(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=Ie(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===A(t,e=Ie(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=Ie(e,this);var t=A(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<8&&i(t.options.event+Ae(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=8&&i(t.options.event+Ae(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=xe},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!w(this.options.enable,[this,t]))return this.reset(),void(this.state=xe);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},_(Ne,Pe,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=6&t,r=this.attrTest(e);return i&&(8&n||!r)?16|t:i||r?4&n?8|t:2&t?4|t:2:xe}}),_(De,Ne,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(ke),e&j&&t.push(Se),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,a=e.deltaX,o=e.deltaY;return r&t.direction||(6&t.direction?(r=0===a?1:a<0?2:4,n=a!=this.pX,i=Math.abs(e.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return Ne.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Le(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),_(Oe,Ne,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),_(Me,Pe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_e]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||12&e.eventType&&!r)this.reset();else if(1&e.eventType)this.reset(),this._timer=f(function(){this.state=8,this.tryEmit()},t.time,this);else if(4&e.eventType)return 8;return xe},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),_(Re,Ne,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[we]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),_(Be,Ne,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return De.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&j&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=Le(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),_(Ue,Pe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Te]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=e.eventType)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||K(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&a?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return xe},failTimeout:function(){return this._timer=f(function(){this.state=xe},this.options.interval,this),xe},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Fe.VERSION="2.0.7",Fe.defaults={domEvents:!1,touchAction:be,enable:!0,inputTarget:null,inputClass:null,preset:[[Re,{enable:!1}],[Oe,{enable:!1},["rotate"]],[Be,{direction:6}],[De,{direction:6},["swipe"]],[Ue],[Ue,{event:"doubletap",taps:2},["tap"]],[Me]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function je(e,t){var n;this.options=l({},Fe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ae:B?de:M?pe:ee))(n,H),this.touchAction=new Ce(this,this.options.touchAction),ze(this,!0),g(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function ze(e,t){var n,i=e.element;i.style&&(g(e.options.cssProps,function(r,a){n=N(i.style,a),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}je.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&8&r.state)&&(r=t.curRecognizer=null);for(var a=0;a<i.length;)n=i[a],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&14&n.state&&(r=t.curRecognizer=n),a++}},get:function(e){if(e instanceof Pe)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=A(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return g(P(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==s){var n=this.handlers;return g(P(e),function(e){t?n[e]&&n[e].splice(A(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=a.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&ze(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Fe,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:xe,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:j,DIRECTION_ALL:30,Manager:je,Input:q,TouchAction:Ce,TouchInput:de,MouseInput:ee,PointerEventInput:ae,TouchMouseInput:pe,SingleTouchInput:se,Recognizer:Pe,AttrRecognizer:Ne,Tap:Ue,Pan:De,Swipe:Be,Pinch:Oe,Rotate:Re,Press:Me,on:k,off:E,each:g,merge:b,extend:y,assign:l,inherit:_,b
475indFn:T,prefixed:N}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Fe,(i=function(){return Fe}.call(t,n,t,e))===s||(e.exports=i)}(window,document)},813:function(e){e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(n){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=i,this.exclude=r,this.iframesTimeout=a}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(function(t){var n=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||n||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=void 0;try{var r=e.contentWindow;if(i=r.document,!r||!i)throw new Error("iframe inaccessible")}catch(e){n()}i&&t(i)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var i=this,r=!1,a=null,o=function o(){if(!r){r=!0,clearTimeout(a);try{i.isIframeBlank(e)||(e.removeEventListener("load",o),i.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",o),a=setTimeout(o,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,i=0;this.forEachIframe(e,function(){return!0},function(e){i++,n.waitForIframes(e.querySelector("html"),function(){--i||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=t.querySelectorAll("iframe"),s=o.length,l=0;o=Array.prototype.slice.call(o);var u=function(){--s<=0&&a(l)};s||u(),o.forEach(function(t){e.matches(t,r.exclude)?u():r.onIframeReady(t,function(e){n(t)&&(l++,i(e)),u()},u)})}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:(null===t||e.nextNode())&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,n,i){var r=!1,a=!1;return i.forEach(function(e,t){e.val===n&&(r=t,a=e.handled)}),this.compareNodeIframe(e,t,n)?(!1!==r||a?!1===r||a||(i[r].handled=!0):i.push({val:n,handled:!0}),!0):(!1===r&&i.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,i){var r=this;e.forEach(function(e){e.handled||r.getIframeContents(e.val,function(e){r.createInstanceOnIframe(e).forEachNode(t,n,i)})})}},{key:"iterateThroughNodes",value:function(e,t,n,i,r){for(var a=this,o=this.createIterator(t,e,i),s=[],l=[],u=void 0,c=void 0,d=function(){var e=a.getIteratorNode(o);return c=e.prevNode,u=e.node};d();)this.iframes&&this.forEachIframe(t,function(e){return a.checkIframeFilter(u,c,e,s)},function(t){a.createInstanceOnIframe(t).forEachNode(e,function(e){return l.push(e)},i)}),l.push(u);l.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,i),r()}}
vendor: 8,243 bytes, line 475
475,{key:"forEachNode",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=this.getContexts(),o=a.length;o||r(),a.forEach(function(a){var s=function(){i.iterateThroughNodes(e,a,t,n,function(){--o<=0&&r()})};i.iframes?i.waitForIframes(a,s):s()})}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){var r=!1;return n.every(function(t){return!i.call(e,t)||(r=!0,!1)}),r}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(a,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",i=this.opt.log;this.opt.debug&&"object"===(void 0===i?"undefined":e(i))&&"function"==typeof i[n]&&i[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var r in t)if(t.hasOwnProperty(r)){var a=t[r],o="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(a):this.escapeStr(a);""!==o&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(o)+"|"+this.escapeStr(s)+")","gm"+n),i+"("+this.processSynomyms(o)+"|"+this.processSynomyms(s)+")"+i))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":"�"})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":"�"})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var i=n.charAt(t+1);return/[(|)\\]/.test(i)||""===i?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],i=[];return e.split("").forEach(function(r){n.every(function(n){if(-1!==n.indexOf(r)){if(i.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),i.push(n)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",i=this.opt.accuracy,r="string"==typeof i?i:i.value,a="string"==typeof i?[]:i.limiters,o="";switch(a.forEach(function(e){o+="|"+t.escapeStr(e)}),r){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(o="\\s"+(o||this.escapeStr(n)))+"]*"+e+"[^"+o+"]*)";case"exactly":return"(^|\\s"+o+")("+e+")(?=$|\\s"+o+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)}):e.trim()&&-1===n.indexOf(e)&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],i=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var r=t.callNoMatchOnInvalidRanges(e,i),a=r.start,o=r.end;r.valid&&(e.start=a,e.length=o-a,n.push(e),i=o)}),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,i=void 0,r=!1;return e&&void 0!==e.start?(i=(n=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-n>0?r=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:i,valid:r}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var i=void 0,r=!0,a=n.length,o=t-a,s=parseInt(e.start,10)-o;return(i=(s=s>a?a:s)+parseInt(e.length,10))>a&&(i=a,this.log("End range automatically set to the max value of "+a)),s<0||i-s<0||s>a||i>a?(r=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,i).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:i,valid:r}}},{key:"getTextNodes",value:function(e){var t=this,n="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){i.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:i})})}},{key:"matchesExclude",value:function(e){return r.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var i=this.opt.element?this.opt.element:"mark",r=e.splitText(t),a=r.splitText(n-t),o=document.createElement(i);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=r.textContent,r.parentNode.replaceChild(o,r),a}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,i,r){var a=this;e.nodes.every(function(o,s){var l=e.nodes[s+1];if(void 0===l||l.start>t){if(!i(o.node))return!1;var u=t-o.start,c=(n>o.end?o.end:n)-o.start,d=e.value.substr(0,o.start),h=e.value.substr(c+o.start);if(o.node=a.wrapRangeInTextNode(o.node,u,c),e.value=d+h,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=c),e.nodes[n].end-=c)}),n-=c,r(o.node.previousSibling,o.start),!(n>o.end))return!1;t=o.end}return!0})}},{key:"wrapMatches",value:function(e,t,n,i,r){var a=this,o=0===t?0:t+1;
475this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var r=void 0;null!==(r=e.exec(t.textContent))&&""!==r[o];)if(n(r[o],t)){var s=r.index;if(0!==o)for(var l=1;l<o;l++)s+=r[l].length;t=a.wrapRangeInTextNode(t,s,s+r[o].length),i(t.previousSibling),e.lastIndex=0}}),r()})}},{key:"wrapMatchesAcrossElements",value:function(e,t,n,i,r){var a=this,o=0===t?0:t+1;this.getTextNodes(function(t){for(var s=void 0;null!==(s=e.exec(t.value))&&""!==s[o];){var l=s.index;if(0!==o)for(var u=1;u<o;u++)l+=s[u].length;var c=l+s[o].length;a.wrapRangeInMappedTextNode(t,l,c,function(e){return n(s[o],e)},function(t,n){e.lastIndex=n,i(t)})}r()})}},{key:"wrapRangeFromIndex",value:function(e,t,n,i){var r=this;this.getTextNodes(function(a){var o=a.value.length;e.forEach(function(e,i){var s=r.checkWhitespaceRanges(e,o,a.value),l=s.start,u=s.end;s.valid&&r.wrapRangeInMappedTextNode(a,l,u,function(n){return t(n,e,a.value.substring(l,u),i)},function(t){n(t,e)})}),i()})}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var n=this;this.opt=t,this.log('Searching with expression "'+e+'"');var i=0,r="wrapMatches",a=function(e){i++,n.opt.each(e)};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,function(e,t){return n.opt.filter(t,e,i)},a,function(){0===i&&n.opt.noMatch(e),n.opt.done(i)})}},{key:"mark",value:function(e,t){var n=this;this.opt=t;var i=0,r="wrapMatches",a=this.getSeparatedKeywords("string"==typeof e?[e]:e),o=a.keywords,s=a.length,l=this.opt.caseSensitive?"":"i",u=function e(t){var a=new RegExp(n.createRegExp(t),"gm"+l),u=0;n.log('Searching with expression "'+a+'"'),n[r](a,1,function(e,r){return n.opt.filter(r,t,i,u)},function(e){u++,i++,n.opt.each(e)},function(){0===u&&n.opt.noMatch(t),o[s-1]===t?n.opt.done(i):e(o[o.indexOf(t)+1])})};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===s?this.opt.done(i):u(o[0])}},{key:"markRanges",value:function(e,t){var n=this;this.opt=t;var i=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,function(e,t,i,r){return n.opt.filter(e,t,i,r)},function(e,t){i++,n.opt.each(e,t)},function(){n.opt.done(i)})):this.opt.done(i)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(e){t.unwrapMatches(e)},function(e){var i=r.matches(e,n),a=t.matchesExclude(e);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=i({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new r(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),a}();function o(e){var t=this,n=new a(e);return this.mark=function(e,i){return n.mark(e,i),t},this.markRegExp=function(e,i){return n.markRegExp(e,i),t},this.markRanges=function(e,i){return n.markRanges(e,i),t},this.unmark=function(e){return n.unmark(e),t},this}return o}()},4448:(e,t,n)=>{"use strict";var i=n(7294),r=n(3840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function m(e,t,n,i,r,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 17,976 bytes, line 475
475h(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,i){var r=g.hasOwnProperty(t)?g[t]:null;(null!==r?0!==r.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null==t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,i)&&(n=null),i||null===r?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var _=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),x=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var R,B=Object.assign;function U(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var F=!1;function j(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}else{try{throw Error()}catch(e){i=e}e()}}catch(t){if(t&&i&&"string"==typeof t.stack){for(var r=t.stack.split("\n"),a=i.stack.split("\n"),o=r.length-1,s=a.length-1;1<=o&&0<=s&&r[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(r[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||r[o]!==a[s]){var l="\n"+r[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function z(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case w:return"Portal";case E:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case x:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=W(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=H(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),i=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=me(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(pe).forEach(function(e){fe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ve=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _e=null;function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Se=null,ke=null;function Ee(e){if(e=br(e)){if("function"!=typeof we)throw Error(a(280));var t=e.stateNode;t&&(t=Tr(t),we(e.stateNode,e.type,t))}}function Ce(e){Se?ke?ke.push(e):ke=[e]:Se=e}function xe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Pe(e,t){return e(t)}function Ae(){}var Le=!1;function Ie(e,t,n){if(Le)return e(t,n);Le=!0;try{return Pe(e,t,n)}finally{Le=!1,(null!==Se||null!==ke)&&(Ae(),xe())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var i=Tr(n);if(null===i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var De=!1;if(c)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){De=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ce){De=!1}function Me(e,t,n,i,r,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Re=!1,Be=null,Ue=!1,Fe=null,je={onError:function(e){Re=!0,Be=e}};function ze(e,t,n,i,r,a,o,s,l){Re=!1,Be=null,Me.apply(je,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ve(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return He(r),e;if(o===i)return He(r),t;o=o.sibling}throw Error(a(188))}if(n.return!==i.return)n=r,i=o;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,i=o;break}if(l===i){s=!0,i=r,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,i=r;break}if(l===i){s=!0,i=o,n=r;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==i)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ge=r.unstable_scheduleCallback,Ye=r.unstable_cancelCallback,Ke=r.unstable_shouldYield,Xe=r.unstable_requestPaint,Qe=r.unstable_now,Je=r.unstable_getCurrentPriorityLevel,Ze=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,it=r.unstable_IdlePriority,rt=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,r=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~r;0!==s?i=dt(s):0!==(a&=o)&&(i=dt(a))}else 0!==(o=n&~r)?i=dt(o):0!==a&&(i=dt(a));if(0===i)return 0;if(0!==t&&t!==i&&0===(t&r)&&((r=i&-i)>=(a=t&-t)||16===r&&4194240&a))return t;if(4&i&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;
vendor: 1,824 bytes, line 475
475)r=1<<(n=31-ot(t)),i|=e[n],t&=~r;return i}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-ot(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var bt=0;function _t(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Tt,wt,St,kt,Et,Ct=!1,xt=[],Pt=null,At=null,Lt=null,It=new Map,Nt=new Map,Dt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Lt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Rt(e,t,n,i,r,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[r]},null!==t&&(null!==(t=br(t))&&wt(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Bt(e){var t=yr(e.target);if(null!==t){var n=Ve(t);
vendor: 5,368 bytes, line 475
475if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void Et(e.priority,function(){St(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=br(n))&&wt(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);_e=i,n.target.dispatchEvent(i),_e=null,t.shift()}return!0}function Ft(e,t,n){Ut(e)&&n.delete(t)}function jt(){Ct=!1,null!==Pt&&Ut(Pt)&&(Pt=null),null!==At&&Ut(At)&&(At=null),null!==Lt&&Ut(Lt)&&(Lt=null),It.forEach(Ft),Nt.forEach(Ft)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,jt)))}function Vt(e){function t(t){return zt(t,e)}if(0<xt.length){zt(xt[0],e);for(var n=1;n<xt.length;n++){var i=xt[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==Pt&&zt(Pt,e),null!==At&&zt(At,e),null!==Lt&&zt(Lt,e),It.forEach(t),Nt.forEach(t),n=0;n<Dt.length;n++)(i=Dt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Dt.shift()}var qt=_.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,i){var r=bt,a=qt.transition;qt.transition=null;try{bt=1,Gt(e,t,n,i)}finally{bt=r,qt.transition=a}}function $t(e,t,n,i){var r=bt,a=qt.transition;qt.transition=null;try{bt=4,Gt(e,t,n,i)}finally{bt=r,qt.transition=a}}function Gt(e,t,n,i){if(Ht){var r=Kt(e,t,n,i);if(null===r)Hi(e,t,i,Yt,n),Mt(e,i);else if(function(e,t,n,i,r){switch(t){case"focusin":return Pt=Rt(Pt,e,t,n,i,r),!0;case"dragenter":return At=Rt(At,e,t,n,i,r),!0;case"mouseover":return Lt=Rt(Lt,e,t,n,i,r),!0;case"pointerover":var a=r.pointerId;return It.set(a,Rt(It.get(a)||null,e,t,n,i,r)),!0;case"gotpointercapture":return a=r.pointerId,Nt.set(a,Rt(Nt.get(a)||null,e,t,n,i,r)),!0}return!1}(r,e,t,n,i))i.stopPropagation();else if(Mt(e,i),4&t&&-1<Ot.indexOf(e)){for(;null!==r;){var a=br(r);if(null!==a&&Tt(a),null===(a=Kt(e,t,n,i))&&Hi(e,t,i,Yt,n),a===r)break;r=a}null!==r&&i.stopPropagation()}else Hi(e,t,i,null,n)}}var Yt=null;function Kt(e,t,n,i){if(Yt=null,null!==(e=yr(e=Te(i))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,i=n.length,r="value"in Qt?Qt.value:Qt.textContent,a=r.length;for(e=0;e<i&&n[e]===r[e];e++);var o=i-e;for(t=1;t<=o&&n[i-t]===r[a-t];t++);return Zt=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,i,r,a){for(var o in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(r):r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=an(un),dn=B({},un,{view:0,detail:0}),hn=an(dn),pn=B({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,346 bytes, line 475
475Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),fn=an(pn),mn=an(B({},pn,{dataTransfer:0})),gn=an(B({},dn,{relatedTarget:0})),vn=an(B({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=B({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(yn),_n=an(B({},un,{data:0})),Tn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return kn}var Cn=B({},dn,{key:function(e){if(e.key){var t=Tn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),xn=an(Cn),Pn=an(B({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=an(B({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Ln=an(B({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=B({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=an(In),Dn=[9,13,27,32],On=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Rn=c&&"TextEvent"in window&&!Mn,Bn=c&&(!On||Mn&&8<Mn&&11>=Mn),Un=String.fromCharCode(32),Fn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Wn(e,t,n,i){Ce(i),0<(t=$i(t,"onChange")).length&&(n=new cn("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var $n=null,Gn=null;function Yn(e){Ui(e,0)}function Kn(e){if(G(_r(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var Zn="oninput"in document;if(!Zn){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),Zn="function"==typeof ei.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function ti(){$n&&($n.detachEvent("onpropertychange",ni),Gn=$n=null)}function ni(e){if("value"===e.propertyName&&Kn(Gn)){var t=[];Wn(t,Gn,e,Te(e)),Ie(Yn,t)}}function ii(e,t,n){"focusin"===e?(ti(),Gn=n,($n=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function ri(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Gn)}function ai(e,t){if("click"===e)return Kn(t)}function oi(e,t){if("input"===e||"change"===e)return Kn(t)}var si="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function li(e,t){if(si(e,t))return!0;
vendor: 4,828 bytes, line 475
475if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!d.call(t,r)||!si(e[r],t[r]))return!1}return!0}function ui(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ci(e,t){var n,i=ui(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ui(i)}}function di(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?di(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hi(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fi(e){var t=hi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&di(n.ownerDocument.documentElement,n)){if(null!==i&&pi(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,a=Math.min(i.start,r);i=void 0===i.end?a:Math.min(i.end,r),!e.extend&&a>i&&(r=i,i=a,a=r),r=ci(n,a);var o=ci(n,i);r&&o&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),a>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mi=c&&"documentMode"in document&&11>=document.documentMode,gi=null,vi=null,yi=null,bi=!1;function _i(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;bi||null==gi||gi!==Y(i)||("selectionStart"in(i=gi)&&pi(i)?i={start:i.selectionStart,end:i.selectionEnd}:i={anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},yi&&li(yi,i)||(yi=i,0<(i=$i(vi,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=gi)))}function Ti(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wi={animationend:Ti("Animation","AnimationEnd"),animationiteration:Ti("Animation","AnimationIteration"),animationstart:Ti("Animation","AnimationStart"),transitionend:Ti("Transition","TransitionEnd")},Si={},ki={};function Ei(e){if(Si[e])return Si[e];if(!wi[e])return e;var t,n=wi[e];for(t in n)if(n.hasOwnProperty(t)&&t in ki)return Si[e]=n[t];return e}c&&(ki=document.createElement("div").style,"AnimationEvent"in window||(delete wi.animationend.animation,delete wi.animationiteration.animation,delete wi.animationstart.animation),"TransitionEvent"in window||delete wi.transitionend.transition);var Ci=Ei("animationend"),xi=Ei("animationiteration"),Pi=Ei("animationstart"),Ai=Ei("transitionend"),Li=new Map,Ii="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ni(e,t){Li.set(e,t),l(t,[e])}for(var Di=0;Di<Ii.length;Di++){var Oi=Ii[Di];Ni(Oi.toLowerCase(),"on"+(Oi[0].toUpperCase()+Oi.slice(1)))}Ni(Ci,"onAnimationEnd"),Ni(xi,"onAnimationIteration"),Ni(Pi,"onAnimationStart"),Ni("dblclick","onDoubleClick"),Ni("focusin","onFocus"),Ni("focusout","onBlur"),Ni(Ai,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
475sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ri=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mi));function Bi(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,r,o,s,l,u){if(ze.apply(this,arguments),Re){if(!Re)throw Error(a(198));var c=Be;Re=!1,Be=null,Ue||(Ue=!0,Fe=c)}}(i,t,void 0,e),e.currentTarget=null}function Ui(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var o=i.length-1;0<=o;o--){var s=i[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&r.isPropagationStopped())break e;Bi(r,s,u),a=l}else for(o=0;o<i.length;o++){if(l=(s=i[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&r.isPropagationStopped())break e;Bi(r,s,u),a=l}}}if(Ue)throw e=Fe,Ue=!1,Fe=null,e}function Fi(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var i=e+"__bubble";n.has(i)||(qi(t,e,2,!1),n.add(i))}function ji(e,t,n){var i=0;t&&(i|=4),qi(n,e,i,t)}var zi="_reactListening"+Math.random().toString(36).slice(2);function Vi(e){if(!e[zi]){e[zi]=!0,o.forEach(function(t){"selectionchange"!==t&&(Ri.has(t)||ji(t,!1,e),ji(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zi]||(t[zi]=!0,ji("selectionchange",!1,t))}}function qi(e,t,n,i){switch(Xt(t)){case 1:var r=Wt;break;case 4:r=$t;break;default:r=Gt}n=r.bind(null,t,n,e),r=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),i?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Hi(e,t,n,i,r){var a=i;if(!(1&t||2&t||null===i))e:for(;;){if(null===i)return;var o=i.tag;if(3===o||4===o){var s=i.stateNode.containerInfo;if(s===r||8===s.nodeType&&s.parentNode===r)break;if(4===o)for(o=i.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;o=o.return}for(;null!==s;){if(null===(o=yr(s)))return;if(5===(l=o.tag)||6===l){i=a=o;continue e}s=s.parentNode}}i=i.return}Ie(function(){var i=a,r=Te(n),o=[];e:{var s=Li.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=xn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case Ci:case xi:case Pi:l=vn;break;case Ai:l=Ln;break;case"scroll":l=hn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p,f=i;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&(null!=(m=Ne(f,h))&&c.push(Wi(f,m,p)))),d)break;f=f.return}0<c.length&&(s=new l(s,u,null,n,r),o.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===_e||!(u=n.relatedTarget||n.fromElement)||!yr(u)&&!u[fr])&&(l||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=i,null!==(u=(u=n.relatedTarget||n.toElement)?yr(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=i),l!==u)){if(c=fn,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:_r(l),p=null==u?s:_r(u),(s=new c(m,f+"leave",l,n,r)).target=d,s.relatedTarget=p,m=null,yr(r)===i&&((c=new c(h,f+"enter",u,n,r)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,f=0,p=c=l;p;p=Gi(p))f++;for(p=0,m=h;m;m=Gi(m))p++;for(;0<f-p;)c=Gi(c),f--;for(;0<p-f;)h=Gi(h),p--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=Gi(c),h=Gi(h)}c=null}else c=null;null!==l&&Yi(o,s,l,c,!1),null!==u&&null!==d&&Yi(o,d,u,c,!0)}if("select"===(l=(s=i?_r(i):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Hn(s))if(Qn)g=oi;else{g=ri;var v=ii}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ai);switch(g&&(g=g(e,i))?Wn(o,g,n,r):(v&&v(e,s,i),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=i?_r(i):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gi=v,vi=i,yi=null);break;case"focusout":yi=vi=gi=null;break;case"mousedown":bi=!0;break;case"contextmenu":case"mouseup":case"dragend":bi=!1,_i(o,n,r);break;case"selectionchange":if(mi)break;case"keydown":case"keyup":_i(o,n,r)}var y;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):(Jt="value"in(Qt=r)?Qt.value:Qt.textContent,Vn=!0)),0<(v=$i(i,b)).length&&(b=new _n(b,e,null,n,r),o.push({event:b,listeners:v}
vendor: 11,051 bytes, line 475
475),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Un);case"textInput":return(e=t.data)===Un&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!On&&jn(e,t)?(e=en(),Zt=Jt=Qt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(i=$i(i,"onBeforeInput")).length&&(r=new _n("onBeforeInput","beforeinput",null,n,r),o.push({event:r,listeners:i}),r.data=y))}Ui(o,t)})}function Wi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $i(e,t){for(var n=t+"Capture",i=[];null!==e;){var r=e,a=r.stateNode;5===r.tag&&null!==a&&(r=a,null!=(a=Ne(e,n))&&i.unshift(Wi(e,a,r)),null!=(a=Ne(e,t))&&i.push(Wi(e,a,r))),e=e.return}return i}function Gi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yi(e,t,n,i,r){for(var a=t._reactName,o=[];null!==n&&n!==i;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===i)break;5===s.tag&&null!==u&&(s=u,r?null!=(l=Ne(n,a))&&o.unshift(Wi(n,l,s)):r||null!=(l=Ne(n,a))&&o.push(Wi(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Ki=/\r\n?/g,Xi=/\u0000|\uFFFD/g;function Qi(e){return("string"==typeof e?e:""+e).replace(Ki,"\n").replace(Xi,"")}function Ji(e,t,n){if(t=Qi(t),Qi(e)!==t&&n)throw Error(a(425))}function Zi(){}var er=null,tr=null;function nr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ir="function"==typeof setTimeout?setTimeout:void 0,rr="function"==typeof clearTimeout?clearTimeout:void 0,ar="function"==typeof Promise?Promise:void 0,or="function"==typeof queueMicrotask?queueMicrotask:void 0!==ar?function(e){return ar.resolve(null).then(e).catch(sr)}:ir;function sr(e){setTimeout(function(){throw e})}function lr(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return e.removeChild(r),void Vt(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);Vt(t)}function ur(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function cr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,pr="__reactProps$"+dr,fr="__reactContainer$"+dr,mr="__reactEvents$"+dr,gr="__reactListeners$"+dr,vr="__reactHandles$"+dr;function yr(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=cr(e);null!==e;){if(n=e[hr])return n;e=cr(e)}return t}n=(e=n).parentNode}return null}function br(e){return!(e=e[hr]||e[fr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _r(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Tr(e){return e[pr]||null}var wr=[],Sr=-1;function kr(e){return{current:e}}function Er(e){0>Sr||(e.current=wr[Sr],wr[Sr]=null,Sr--)}function Cr(e,t){Sr++,wr[Sr]=e.current,e.current=t}var xr={},Pr=kr(xr),Ar=kr(!1),Lr=xr;function Ir(e,t){var n=e.type.contextTypes;if(!n)return xr;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,a={};for(r in n)a[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Nr(e){return null!=(e=e.childContextTypes)}function Dr(){Er(Ar),Er(Pr)}function Or(e,t,n){if(Pr.current!==xr)throw Error(a(168));Cr(Pr,t),Cr(Ar,n)}function Mr(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(a(108,q(e)||"Unknown",r));return B({},n,i)}function Rr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xr,Lr=Pr.current,Cr(Pr,e),Cr(Ar,Ar.current),!0}function Br(e,t,n){var i=e.stateNode;if(!i)throw Error(a(169));n?(e=Mr(e,t,Lr),i.__reactInternalMemoizedMergedChildContext=e,Er(Ar),Er(Pr),Cr(Pr,e)):Er(Ar),Cr(Ar,n)}var Ur=null,Fr=!1,jr=!1;function zr(e){null===Ur?Ur=[e]:Ur.push(e)}function Vr(){if(!jr&&null!==Ur){jr=!0;var e=0,t=bt;try{var n=Ur;for(bt=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}Ur=null,Fr=!1}catch(t){throw null!==Ur&&(Ur=Ur.slice(e+1)),Ge(Ze,Vr),t}finally{bt=t,jr=!1}}return null}var qr=[],Hr=0,Wr=null,$r=0,Gr=[],Yr=0,Kr=null,Xr=1,Qr="";function Jr(e,t){qr[Hr++]=$r,qr[Hr++]=Wr,Wr=e,$r=t}function Zr(e,t,n){Gr[Yr++]=Xr,Gr[Yr++]=Qr,Gr[Yr++]=Kr,Kr=e;var i=Xr;e=Qr;var r=32-ot(i)-1;i&=~(1<<r),n+=1;var a=32-ot(t)+r;if(30<a){var o=r-r%5;a=(i&(1<<o)-1).toString(32),i>>=o,r-=o,Xr=1<<32-ot(t)+r|n<<r|i,Qr=a+e}else Xr=1<<a|n<<r|i,Qr=e}function ea(e){null!==e.return&&(Jr(e,1),Zr(e,1,0))}function ta(e){for(;e===Wr;)Wr=qr[--Hr],qr[Hr]=null,$r=qr[--Hr],qr[Hr]=null;for(;e===Kr;)Kr=Gr[--Yr],Gr[Yr]=null,Qr=Gr[--Yr],Gr[Yr]=null,Xr=Gr[--Yr],Gr[Yr]=null}var na=null,ia=null,ra=!1,aa=null;function oa(e,t){var n=Nu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ia=ur(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ia=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Kr?{id:Xr,overflow:Qr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ia=null,!0);default:return!1}}function la(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(ra){var t=ia;if(t){var n=t;if(!sa(e,t)){if(la(e))throw Error(a(418));t=ur(n.nextSibling);var i=na;t&&sa(e,t)?oa(i,n):(e.flags=-4097&e.flags|2,ra=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ra=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!ra)return ca(e),ra=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nr(e.type,e.memoizedProps)),t&&(t=ia)){if(la(e))throw ha(),Error(a(418));for(;t;)oa(e,t),t=ur(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ia=ur(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ia=null}}else ia=na?ur(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=ia;e;)e=ur(e.nextSibling)}function pa(){ia=na=null,ra=!1}function fa(e){null===aa?aa=[e]:aa.push(e)}var ma=_.ReactCurrentBatchConfig;function ga(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var va=kr(null),ya=null,ba=null,_a=null;function Ta(){_a=ba=ya=null}function wa(e){var t=va.current;Er(va),e._currentValue=t}function Sa(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function ka(e,t){ya=e,_a=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(_s=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(_a!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ya)throw Error(a(308));ba=e,ya.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Ca=null;function xa(e){null===Ca?Ca=[e]:Ca.push(e)}function Pa(e,t,n,i){var r=t.interleaved;return null===r?(n.next=n,xa(t)):(n.next=r.next,r.next=n),t.interleaved=n,Aa(e,i)}function Aa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var La=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Da(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,2&Al){var r=i.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Aa(e,n)}return null===(r=i.interleaved)?(t.next=t,xa(i)):(t.next=r.next,r.next=t),i.interleaved=t,Aa(e,n)}function Ma(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ra(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?r=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?r=a=t:a=a.next=t}else r=a=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:a,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ba(e,t,n,i){var r=e.updateQueue;La=!1;var a=r.firstBaseUpdate,o=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=r.baseState;for(o=0,c=u=l=null,s=a;;){var h=s.lane,p=s.eventTime;if((i&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(h=t,p=n,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=m.payload)?f.call(p,d,h):f))break e;d=B({},d,h);break e;case 2:La=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=r.effects)?r.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,o|=h;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(h=s).next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}if(null===c&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,null!==(t=r.shared.interleaved)){r=t;do{o|=r.lane,r=r.next}
vendor: 8,730 bytes, line 475
475while(r!==t)}else null===a&&(r.shared.lanes=0);Bl|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var Fa=(new i.Component).refs;function ja(e,t,n,i){n=null==(n=n(i,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var za={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=tu(),r=nu(e),a=Da(i,r);a.payload=t,null!=n&&(a.callback=n),null!==(t=Oa(e,a,r))&&(iu(t,e,r,i),Ma(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=tu(),r=nu(e),a=Da(i,r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Oa(e,a,r))&&(iu(t,e,r,i),Ma(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),i=nu(e),r=Da(n,i);r.tag=2,null!=t&&(r.callback=t),null!==(t=Oa(e,r,i))&&(iu(t,e,i,n),Ma(t,e,i))}};function Va(e,t,n,i,r,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!li(n,i)||!li(r,a))}function qa(e,t,n){var i=!1,r=xr,a=t.contextType;return"object"==typeof a&&null!==a?a=Ea(a):(r=Nr(t)?Lr:Pr.current,a=(i=null!=(i=t.contextTypes))?Ir(e,r):xr),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=za,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&za.enqueueReplaceState(t,t.state,null)}function Wa(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Fa,Ia(e);var a=t.contextType;"object"==typeof a&&null!==a?r.context=Ea(a):(a=Nr(t)?Lr:Pr.current,r.context=Ir(e,a)),r.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ja(e,t,a,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&za.enqueueReplaceState(r,r.state,null),Ba(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.flags|=4194308)}function $a(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var i=n.stateNode}if(!i)throw Error(a(147,e));var r=i,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===Fa&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ga(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ya(e){return(0,e._init)(e._payload)}function Ka(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=Ou(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=Uu(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,i){var a=n.type;return a===S?d(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===N&&Ya(a)===t.type)?((i=r(t,n.props)).ref=$a(e,t,n),i.return=e,i):((i=Mu(n.type,n.key,n.props,null,e.mode,i)).ref=$a(e,t,n),i.return=e,i)}function c(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fu(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function d(e,t,n,i,a){return null===t||7!==t.tag?((t=Ru(n,e.mode,i,a)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Uu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case T:return(n=Mu(t.type,t.key,t.props,null,e.mode,n)).ref=$a(e,null,t),n.return=e,n;case w:return(t=Fu(t,e.mode,n)).return=e,t;case N:return h(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Ru(t,e.mode,n,null)).return=e,t;Ga(e,t)}return null}function p(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==r?null:l(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case T:return n.key===r?u(e,t,n,i):null;case w:return n.key===r?c(e,t,n,i):null;case N:return p(e,t,(r=n._init)(n._payload),i)}if(te(n)||M(n))return null!==r?null:d(e,t,n,i,null);Ga(e,n)}return null}function f(e,t,n,i,r){if("string"==typeof i&&""!==i||"number"==typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case T:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r);case w:return c(t,e=e.get(null===i.key?n:i.key)||null,i,r);case N:return f(e,t,n,(0,i._init)(i._payload),r)}if(te(i)||M(i))return d(t,e=e.get(n)||null,i,r,null);Ga(t,i)}return null}function m(r,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(r,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(r,d),ra&&Jr(r,m),u;if(null===d){for(;m<s.length;m++)null!==(d=h(r,s[m],l))&&(a=o(d,a,m),null===c?u=d:c.sibling=d,c=d);return ra&&Jr(r,m),u}for(d=i(r,d);m<s.length;m++)null!==(g=f(d,r,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(r,e)}),ra&&Jr(r,m),u}function g(r,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(r,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(r,m),s=o(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(r,m),ra&&Jr(r,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(r,y.value,u))&&(s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return ra&&Jr(r,g),c}for(m=i(r,m);!y.done;g++,y=l.next())null!==(y=f(m,r,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(r,e)}),ra&&Jr(r,g),c}return function e(i,a,o,l){if("object"==typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case T:e:{for(var u=o.key,c=a;null!==c;){if(c.key===u){if((u=o.type)===S){if(7===c.tag){n(i,c.sibling),(a=r(c,o.props.children)).return=i,i=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===N&&Ya(u)===c.type){n(i,c.sibling),(a=r(c,o.props)).ref=$a(i,c,o),a.return=i,i=a;break e}n(i,c);break}t(i,c),c=c.sibling}o.type===S?((a=Ru(o.props.children,i.mode,l,o.key)).return=i,i=a):((l=Mu(o.type,o.key,o.props,null,i.mode,l)).ref=$a(i,a,o),l.return=i,i=l)}return s(i);case w:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(i,a.sibling),(a=r(a,o.children||[])).return=i,i=a;break e}n(i,a);break}t(i,a),a=a.sibling}(a=Fu(o,i.mode,l)).return=i,i=a}return s(i);case N:return e(i,a,(c=o._init)(o._payload),l)}if(te(o))return m(i,a,o,l);if(M(o))return g(i,a,o,l);Ga(i,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(n(i,a.sibling),(a=r(a,o)).return=i,i=a):(n(i,a),(a=Uu(o,i.mode,l)).return=i,i=a),s(i)):n(i,a)}}var Xa=Ka(!0),Qa=Ka(!1),Ja={},Za=kr(Ja),eo=kr(Ja),to=kr(Ja);function no(e){if(e===Ja)throw Error(a(174));return e}function io(e,t){switch(Cr(to,t),Cr(eo,e),Cr(Za,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Er(Za),Cr(Za,t)}function ro(){Er(Za),Er(eo),Er(to)}
vendor: 17,847 bytes, line 475
475function ao(e){no(to.current);var t=no(Za.current),n=le(t,e.type);t!==n&&(Cr(eo,e),Cr(Za,n))}function oo(e){eo.current===e&&(Er(Za),Er(eo))}var so=kr(0);function lo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=[];function co(){for(var e=0;e<uo.length;e++)uo[e]._workInProgressVersionPrimary=null;uo.length=0}var ho=_.ReactCurrentDispatcher,po=_.ReactCurrentBatchConfig,fo=0,mo=null,go=null,vo=null,yo=!1,bo=!1,_o=0,To=0;function wo(){throw Error(a(321))}function So(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!si(e[n],t[n]))return!1;return!0}function ko(e,t,n,i,r,o){if(fo=o,mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ho.current=null===e||null===e.memoizedState?ss:ls,e=n(i,r),bo){o=0;do{if(bo=!1,_o=0,25<=o)throw Error(a(301));o+=1,vo=go=null,t.updateQueue=null,ho.current=us,e=n(i,r)}while(bo)}if(ho.current=os,t=null!==go&&null!==go.next,fo=0,vo=go=mo=null,yo=!1,t)throw Error(a(300));return e}function Eo(){var e=0!==_o;return _o=0,e}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vo?mo.memoizedState=vo=e:vo=vo.next=e,vo}function xo(){if(null===go){var e=mo.alternate;e=null!==e?e.memoizedState:null}else e=go.next;var t=null===vo?mo.memoizedState:vo.next;if(null!==t)vo=t,go=e;else{if(null===e)throw Error(a(310));e={memoizedState:(go=e).memoizedState,baseState:go.baseState,baseQueue:go.baseQueue,queue:go.queue,next:null},null===vo?mo.memoizedState=vo=e:vo=vo.next=e}return vo}function Po(e,t){return"function"==typeof t?t(e):t}function Ao(e){var t=xo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=go,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var s=r.next;r.next=o.next,o.next=s}i.baseQueue=r=o,n.pending=null}if(null!==r){o=r.next,i=i.baseState;var l=s=null,u=null,c=o;do{var d=c.lane;if((fo&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=i):u=u.next=h,mo.lanes|=d,Bl|=d}c=c.next}while(null!==c&&c!==o);null===u?s=i:u.next=l,si(i,t.memoizedState)||(_s=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=u,n.lastRenderedState=i}if(null!==(e=n.interleaved)){r=e;do{o=r.lane,mo.lanes|=o,Bl|=o,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Lo(e){var t=xo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{o=e(o,s.action),s=s.next}while(s!==r);si(o,t.memoizedState)||(_s=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Io(){}function No(e,t){var n=mo,i=xo(),r=t(),o=!si(i.memoizedState,r);if(o&&(i.memoizedState=r,_s=!0),i=i.queue,Ho(Mo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||null!==vo&&1&vo.memoizedState.tag){if(n.flags|=2048,Fo(9,Oo.bind(null,n,i,r,t),void 0,null),null===Ll)throw Error(a(349));30&fo||Do(n,t,r)}return r}function Do(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oo(e,t,n,i){t.value=n,t.getSnapshot=i,Ro(t)&&Bo(e)}function Mo(e,t,n){return n(function(){Ro(t)&&Bo(e)})}function Ro(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!si(e,n)}catch(e){return!0}}function Bo(e){var t=Aa(e,1);null!==t&&iu(t,e,1,-1)}function Uo(e){var t=Co();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,mo,e),[t.memoizedState,e]}function Fo(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function jo(){return xo().memoizedState}function zo(e,t,n,i){var r=Co();mo.flags|=e,r.memoizedState=Fo(1|t,n,void 0,void 0===i?null:i)}function Vo(e,t,n,i){var r=xo();i=void 0===i?null:i;var a=void 0;if(null!==go){var o=go.memoizedState;if(a=o.destroy,null!==i&&So(i,o.deps))return void(r.memoizedState=Fo(t,n,a,i))}mo.flags|=e,r.memoizedState=Fo(1|t,n,a,i)}function qo(e,t){return zo(8390656,8,e,t)}function Ho(e,t){return Vo(2048,8,e,t)}function Wo(e,t){return Vo(4,2,e,t)}function $o(e,t){return Vo(4,4,e,t)}function Go(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Yo(e,t,n){return n=null!=n?n.concat([e]):null,Vo(4,4,Go.bind(null,t,e),n)}function Ko(){}function Xo(e,t){var n=xo();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&So(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Qo(e,t){var n=xo();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&So(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Jo(e,t,n){return 21&fo?(si(n,t)||(n=mt(),mo.lanes|=n,Bl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_s=!0),e.memoizedState=n)}function Zo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var i=po.transition;po.transition={};try{e(!1),t()}finally{bt=n,po.transition=i}}function es(){return xo().memoizedState}function ts(e,t,n){var i=nu(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},is(e))rs(t,n);else if(null!==(n=Pa(e,t,n,i))){iu(n,e,i,tu()),as(n,t,i)}}function ns(e,t,n){var i=nu(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(e))rs(t,r);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(r.hasEagerState=!0,r.eagerState=s,si(s,o)){var l=t.interleaved;return null===l?(r.next=r,xa(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(e){}null!==(n=Pa(e,t,r,i))&&(iu(n,e,i,r=tu()),as(n,t,i))}}function is(e){var t=e.alternate;return e===mo||null!==t&&t===mo}function rs(e,t){bo=yo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(4194240&n){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}var os={readContext:Ea,useCallback:wo,useContext:wo,useEffect:wo,useImperativeHandle:wo,useInsertionEffect:wo,useLayoutEffect:wo,useMemo:wo,useReducer:wo,useRef:wo,useState:wo,useDebugValue:wo,useDeferredValue:wo,useTransition:wo,useMutableSource:wo,useSyncExternalStore:wo,useId:wo,unstable_isNewReconciler:!1},ss={readContext:Ea,useCallback:function(e,t){return Co().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:qo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zo(4194308,4,Go.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var n=Co();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Co();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ts.bind(null,mo,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Co().memoizedState=e},useState:Uo,useDebugValue:Ko,useDeferredValue:function(e){return Co().memoizedState=e},useTransition:function(){var e=Uo(!1),t=e[0];return e=Zo.bind(null,e[1]),Co().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=mo,r=Co();if(ra){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Ll)throw Error(a(349));30&fo||Do(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,qo(Mo.bind(null,i,o,e),[e]),i.flags|=2048,Fo(9,Oo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Co(),t=Ll.identifierPrefix;if(ra){var n=Qr;t=":"+t+"R"+(n=(Xr&~(1<<32-ot(Xr)-1)).toString(32)+n),0<(n=_o++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=To++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Ea,useCallback:Xo,useContext:Ea,useEffect:Ho,useImperativeHandle:Yo,useInsertionEffect:Wo,useLayoutEffect:$o,useMemo:Qo,useReducer:Ao,useRef:jo,useState:function(){return Ao(Po)},useDebugValue:Ko,useDeferredValue:function(e){return Jo(xo(),go.memoizedState,e)},useTransition:function(){return[Ao(Po)[0],xo().memoizedState]},useMutableSource:Io,useSyncExternalStore:No,useId:es,unstable_isNewReconciler:!1},us={readContext:Ea,useCallback:Xo,useContext:Ea,useEffect:Ho,useImperativeHandle:Yo,useInsertionEffect:Wo,useLayoutEffect:$o,useMemo:Qo,useReducer:Lo,useRef:jo,useState:function(){return Lo(Po)},useDebugValue:Ko,useDeferredValue:function(e){var t=xo();return null===go?t.memoizedState=e:Jo(t,go.memoizedState,e)},useTransition:function(){return[Lo(Po)[0],xo().memoizedState]},useMutableSource:Io,useSyncExternalStore:No,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",i=t;do{n+=z(i),i=i.return}while(i);var r=n}catch(e){r="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:r,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ps="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=Da(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Wl||(Wl=!0,$l=i),hs(0,t)},n}function ms(e,t,n){(n=Da(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){hs(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){hs(0,t),"function"!=typeof i&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new ps;var r=new Set;i.set(t,r)}else void 0===(r=i.get(t))&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,i,r){return 1&e.mode?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Da(-1,1)).tag=2,Oa(n,t,1))),n.lanes|=1),e)}var bs=_.ReactCurrentOwner,_s=!1;function Ts(e,t,n,i){t.child=null===e?Qa(t,null,n,i):Xa(t,e.child,n,i)}function ws(e,t,n,i,r){n=n.render;var a=t.ref;return ka(t,r),i=ko(e,t,n,i,a,r),n=Eo(),null===e||_s?(ra&&n&&ea(t),t.flags|=1,Ts(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ws(e,t,r))}function Ss(e,t,n,i,r){if(null===e){var a=n.type;return"function"!=typeof a||Du(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Mu(n.type,null,i,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ks(e,t,a,i,r))}if(a=e.child,0===(e.lanes&r)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:li)(o,i)&&e.ref===t.ref)return Ws(e,t,r)}return t.flags|=1,(e=Ou(a,i)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,i,r){if(null!==e){var a=e.memoizedProps;if(li(a,i)&&e.ref===t.ref){if(_s=!1,t.pendingProps=i=a,0===(e.lanes&r))return t.lanes=e.lanes,Ws(e,t,r);131072&e.flags&&(_s=!0)}}return xs(e,t,n,i,r)}function Es(e,t,n){var i=t.pendingProps,r=i.children,a=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Cr(Ol,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==a?a.baseLanes:n,Cr(Ol,Dl),Dl|=i}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cr(Ol,Dl),Dl|=n;else null!==a?(i=a.baseLanes|n,t.memoizedState=null):i=n,Cr(Ol,Dl),Dl|=i;return Ts(e,t,r,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xs(e,t,n,i,r){var a=Nr(n)?Lr:Pr.current;return a=Ir(t,a),ka(t,r),n=ko(e,t,n,i,a,r),i=Eo(),null===e||_s?(ra&&i&&ea(t),t.flags|=1,Ts(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ws(e,t,r))}function Ps(e,t,n,i,r){if(Nr(n)){var a=!0;Rr(t)}else a=!1;if(ka(t,r),null===t.stateNode)Hs(e,t),qa(t,n,i),Wa(t,n,i,r),i=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ea(u):u=Ir(t,u=Nr(n)?Lr:Pr.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==i||l!==u)&&Ha(t,o,i,u),La=!1;var h=t.memoizedState;o.state=h,Ba(t,i,o,r),l=t.memoizedState,s!==i||h!==l||Ar.current||La?("function"==typeof c&&(ja(t,n,c,i),l=t.memoizedState),(s=La||Va(t,n,s,i,h,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),o.props=i,o.state=l,o.context=u,i=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,Na(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ga(t.type,s),o.props=u,d=t.pendingProps,h=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ea(l):l=Ir(t,l=Nr(n)?Lr:Pr.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||h!==l)&&Ha(t,o,i,l),La=!1,h=t.memoizedState,o.state=h,Ba(t,i,o,r);var f=t.memoizedState;s!==d||h!==f||Ar.current||La?("function"==typeof p&&(ja(t,n,p,i),f=t.memoizedState),(u=La||Va(t,n,u,i,h,f,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(i,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(i,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=f),o.props=i,o.state=f,o.context=l,i=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),i=!1)}return As(e,t,n,i,a,r)}function As(e,t,n,i,r,a){Cs(e,t);var o=!!(128&t.flags);if(!i&&!o)return r&&Br(t,n,!1),Ws(e,t,a);i=t.stateNode,bs.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&o?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,s,a)):Ts(e,t,s,a),t.memoizedState=i.state,r&&Br(t,n,!0),t.child}function Ls(e){var t=e.stateNode;t.pendingContext?Or(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Or(0,t.context,!1),io(e,t.containerInfo)}function Is(e,t,n,i,r){return pa(),fa(r),t.flags|=256,Ts(e,t,n,i),t.child}var Ns,Ds,Os,Ms,Rs={dehydrated:null,treeContext:null,retryLane:0};function Bs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Us(e,t,n){var i,r=t.pendingProps,o=so.current,s=!1,l=!!(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&o)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Cr(so,1&o),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},1&r||null===s?s=Bu(l,r,0,null):(s.childLanes=0,s.pendingProps=l),e=Ru(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Bs(n),t.memoizedState=Rs,e):Fs(t,l));if(null!==(o=e.memoizedState)&&null!==(i=o.dehydrated))return function(e,t,n,i,r,o,s){if(n)return 256&t.flags?(t.flags&=-257,js(e,t,s,i=ds(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=i.fallback,r=t.mode,i=Bu({mode:"visible",children:i.children},r,0,null),(o=Ru(o,r,s,null)).flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,1&t.mode&&Xa(t,e.child,null,s),t.child.memoizedState=Bs(s),t.memoizedState=Rs,o);if(!(1&t.mode))return js(e,t,s,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var l=i.dgst;return i=l,js(e,t,s,i=ds(o=Error(a(419)),i,void 0))}if(l=0!==(s&e.childLanes),_s||l){if(null!==(i=Ll)){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}
vendor: 13,421 bytes, line 475
4750!==(r=0!==(r&(i.suspendedLanes|s))?0:r)&&r!==o.retryLane&&(o.retryLane=r,Aa(e,r),iu(i,e,r,-1))}return gu(),js(e,t,s,i=ds(Error(a(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),r._reactRetry=t,null):(e=o.treeContext,ia=ur(r.nextSibling),na=t,ra=!0,aa=null,null!==e&&(Gr[Yr++]=Xr,Gr[Yr++]=Qr,Gr[Yr++]=Kr,Xr=e.id,Qr=e.overflow,Kr=t),t=Fs(t,i.children),t.flags|=4096,t)}(e,t,l,r,i,o,n);if(s){s=r.fallback,l=t.mode,i=(o=e.child).sibling;var u={mode:"hidden",children:r.children};return 1&l||t.child===o?(r=Ou(o,u)).subtreeFlags=14680064&o.subtreeFlags:((r=t.child).childLanes=0,r.pendingProps=u,t.deletions=null),null!==i?s=Ou(i,s):(s=Ru(s,l,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=null===(l=e.child.memoizedState)?Bs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Rs,r}return e=(s=e.child).sibling,r=Ou(s,{mode:"visible",children:r.children}),!(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Fs(e,t){return(t=Bu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,n,i){return null!==i&&fa(i),Xa(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),Sa(e.return,t,n)}function Vs(e,t,n,i,r){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r)}function qs(e,t,n){var i=t.pendingProps,r=i.revealOrder,a=i.tail;if(Ts(e,t,i.children,n),2&(i=so.current))i=1&i|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Cr(so,i),1&t.mode)switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===lo(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Vs(t,!1,r,n,a);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===lo(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Vs(t,!0,n,null,a);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ou(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ou(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $s(e,t){if(!ra)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Ys(e,t,n){var i=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Nr(t.type)&&Dr(),Gs(t),null;case 3:return i=t.stateNode,ro(),Er(Ar),Er(Pr),co(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(su(aa),aa=null))),Ds(e,t),Gs(t),null;case 5:oo(t);var r=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Os(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(a(166));return Gs(t),null}if(e=no(Za.current),da(t)){i=t.stateNode,n=t.type;var o=t.memoizedProps;switch(i[hr]=t,i[pr]=o,e=!!(1&t.mode),n){case"dialog":Fi("cancel",i),Fi("close",i);break;case"iframe":case"object":case"embed":Fi("load",i);break;case"video":case"audio":for(r=0;r<Mi.length;r++)Fi(Mi[r],i);break;case"source":Fi("error",i);break;case"img":case"image":case"link":Fi("error",i),Fi("load",i);break;case"details":Fi("toggle",i);break;case"input":X(i,o),Fi("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Fi("invalid",i);break;case"textarea":re(i,o),Fi("invalid",i)}for(var l in ye(n,o),r=null,o)if(o.hasOwnProperty(l)){var u=o[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==o.suppressHydrationWarning&&Ji(i.textContent,u,e),r=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==o.suppressHydrationWarning&&Ji(i.textContent,u,e),r=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Fi("scroll",i)}switch(n){case"input":$(i),Z(i,o,!0);break;case"textarea":$(i),oe(i);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(i.onclick=Zi)}i=r,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),"select"===n&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[hr]=t,e[pr]=i,Ns(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,i),n){case"dialog":Fi("cancel",e),Fi("close",e),r=i;break;case"iframe":case"object":case"embed":Fi("load",e),r=i;break;case"video":case"audio":for(r=0;r<Mi.length;r++)Fi(Mi[r],e);r=i;break;case"source":Fi("error",e),r=i;break;case"img":case"image":case"link":Fi("error",e),Fi("load",e),r=i;break;case"details":Fi("toggle",e),r=i;break;case"input":X(e,i),r=K(e,i),Fi("invalid",e);break;case"option":default:r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=B({},i,{value:void 0}),Fi("invalid",e);break;case"textarea":re(e,i),r=ie(e,i),Fi("invalid",e)}for(o in ye(n,r),u=r)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?ge(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===o?"string"==typeof c?("textarea"!==n||""!==c)&&he(e,c):"number"==typeof c&&he(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Fi("scroll",e):null!=c&&b(e,o,c,l))}switch(n){case"input":$(e),Z(e,i,!1);break;case"textarea":$(e),oe(e);break;case"option":null!=i.value&&e.setAttribute("value",""+H(i.value));break;case"select":e.multiple=!!i.multiple,null!=(o=i.value)?ne(e,!!i.multiple,o,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=Zi)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Ms(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(a(166));if(n=no(to.current),no(Za.current),da(t)){if(i=t.stateNode,n=t.memoizedProps,i[hr]=t,(o=i.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Ji(i.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ji(i.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[hr]=t,t.stateNode=i}return Gs(t),null;case 13:if(Er(so),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ra&&null!==ia&&1&t.mode&&!(128&t.flags))ha(),pa(),t.flags|=98560,o=!1;else if(o=da(t),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[hr]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),o=!1}else null!==aa&&(su(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&so.current?0===Ml&&(Ml=3):gu())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return ro(),Ds(e,t),null===e&&Vi(t.stateNode.containerInfo),Gs(t),null;case 10:return wa(t.type._context),Gs(t),null;case 19:if(Er(so),null===(o=t.memoizedState))return Gs(t),null;if(i=!!(128&t.flags),null===(l=o.rendering))if(i)$s(o,!1);else{if(0!==Ml||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=lo(e))){for(t.flags|=128,$s(o,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Cr(so,1&so.current|2),t.child}e=e.sibling}null!==o.tail&&Qe()>ql&&(t.flags|=128,i=!0,$s(o,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=lo(l))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$s(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ra)return Gs(t),null}else 2*Qe()-o.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,i=!0,$s(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Qe(),t.sibling=null,n=so.current,Cr(so,i?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return hu(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Dl)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Ks(e,t){switch(ta(t),t.tag){case 1:return Nr(t.type)&&Dr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ro(),Er(Ar),Er(Pr),co(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Er(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Er(so),null;case 4:return ro(),null;case 10:return wa(t.type._context),null;case 22:case 23:return hu(),null;default:return null}}Ns=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ds=function(){},Os=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,no(Za.current);var a,o=null;switch(n){case"input":r=K(e,r),i=K(e,i),o=[];break;case"select":r=B({},r,{value:void 0}),i=B({},i,{value:void 0}),o=[];break;case"textarea":r=ie(e,r),i=ie(e,i),o=[];break;default:"function"!=typeof r.onClick&&"function"==typeof i.onClick&&(e.onclick=Zi)}for(c in ye(n,i),n=null,r)if(!i.hasOwnProperty(c)&&r.hasOwnProperty(c)&&null!=r[c])if("style"===c){var l=r[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in i){var u=i[c];if(l=null!=r?r[c]:void 0,i.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fi("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Ms=function(e,t,n,i){n!==i&&(t.flags|=4)};var Xs=!1,Qs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Zs=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var nl=!1;function il(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,void 0!==a&&tl(t,n,a)}r=r.next}
vendor: 40,083 bytes, line 475
475while(r!==i)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[pr],delete t[mr],delete t[gr],delete t[vr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zi));else if(4!==i&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,hl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(rt,n)}catch(e){}switch(n.tag){case 5:Qs||el(n,t);case 6:var i=dl,r=hl;dl=null,pl(e,t,n),hl=r,null!==(dl=i)&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?lr(e.parentNode,n):1===e.nodeType&&lr(e,n),Vt(e)):lr(dl,n.stateNode));break;case 4:i=dl,r=hl,dl=n.stateNode.containerInfo,hl=!0,pl(e,t,n),dl=i,hl=r;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){r=i=i.next;do{var a=r,o=a.destroy;a=a.tag,void 0!==o&&(2&a||4&a)&&tl(n,t,o),r=r.next}while(r!==i)}pl(e,t,n);break;case 1:if(!Qs&&(el(n,t),"function"==typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(e){Eu(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Qs=(i=Qs)||null!==n.memoizedState,pl(e,t,n),Qs=i):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach(function(t){var i=Au.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))})}}function gl(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,hl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===dl)throw Error(a(160));fl(o,s,r),dl=null,hl=!1;var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(e){Eu(r,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&i){try{il(3,e,e.return),rl(3,e)}catch(t){Eu(e,e.return,t)}try{il(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:gl(t,e),yl(e),512&i&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),yl(e),512&i&&null!==n&&el(n,n.return),32&e.flags){var r=e.stateNode;try{he(r,"")}catch(t){Eu(e,e.return,t)}}if(4&i&&null!=(r=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===o.type&&null!=o.name&&Q(r,o),be(l,s);var c=be(l,o);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];"style"===d?ge(r,h):"dangerouslySetInnerHTML"===d?de(r,h):"children"===d?he(r,h):b(r,d,h,c)}switch(l){case"input":J(r,o);break;case"textarea":ae(r,o);break;case"select":var p=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!o.multiple;var f=o.value;null!=f?ne(r,!!o.multiple,f,!1):p!==!!o.multiple&&(null!=o.defaultValue?ne(r,!!o.multiple,o.defaultValue,!0):ne(r,!!o.multiple,o.multiple?[]:"",!1))}r[pr]=o}catch(t){Eu(e,e.return,t)}}break;case 6:if(gl(t,e),yl(e),4&i){if(null===e.stateNode)throw Error(a(162));r=e.stateNode,o=e.memoizedProps;try{r.nodeValue=o}catch(t){Eu(e,e.return,t)}}break;case 3:if(gl(t,e),yl(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(r=e.child).flags&&(o=null!==r.memoizedState,r.stateNode.isHidden=o,!o||null!==r.alternate&&null!==r.alternate.memoizedState||(Vl=Qe())),4&i&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(c=Qs)||d,gl(t,e),Qs=c):gl(t,e),yl(e),8192&i){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zs=e,d=e.child;null!==d;){for(h=Zs=d;null!==Zs;){switch(f=(p=Zs).child,p.tag){case 0:case 11:case 14:case 15:il(4,p,p.return);break;case 1:el(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){i=p,n=p.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(i,n,e)}}break;case 5:el(p,p.return);break;case 22:if(null!==p.memoizedState){wl(h);continue}}null!==f?(f.return=p,Zs=f):wl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{r=h.stateNode,c?"function"==typeof(o=r.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=h.stateNode,s=null!=(u=h.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Eu(e,e.return,t)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:gl(t,e),yl(e),4&i&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var i=n;break e}n=n.return}throw Error(a(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(he(r,""),i.flags&=-33),cl(e,ll(e),r);break;case 3:case 4:var o=i.stateNode.containerInfo;ul(e,ll(e),o);break;default:throw Error(a(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zs=e,_l(e,t,n)}function _l(e,t,n){for(var i=!!(1&e.mode);null!==Zs;){var r=Zs,a=r.child;if(22===r.tag&&i){var o=null!==r.memoizedState||Xs;if(!o){var s=r.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Xs;var u=Qs;if(Xs=o,(Qs=l)&&!u)for(Zs=r;null!==Zs;)l=(o=Zs).child,22===o.tag&&null!==o.memoizedState?Sl(r):null!==l?(l.return=o,Zs=l):Sl(r);for(;null!==a;)Zs=a,_l(a,t,n),a=a.sibling;Zs=r,Xs=s,Qs=u}Tl(e)}else 8772&r.subtreeFlags&&null!==a?(a.return=r,Zs=a):Tl(e)}}function Tl(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qs||rl(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Qs)if(null===n)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:ga(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Ua(t,o,i);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ua(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Vt(h)}}}break;default:throw Error(a(163))}Qs||512&t.flags&&al(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function Sl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Eu(t,n,e)}break;case 1:var i=t.stateNode;if("function"==typeof i.componentDidMount){var r=t.return;try{i.componentDidMount()}catch(e){Eu(t,r,e)}}var a=t.return;try{al(t)}catch(e){Eu(t,a,e)}break;case 5:var o=t.return;try{al(t)}catch(e){Eu(t,o,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var kl,El=Math.ceil,Cl=_.ReactCurrentDispatcher,xl=_.ReactCurrentOwner,Pl=_.ReactCurrentBatchConfig,Al=0,Ll=null,Il=null,Nl=0,Dl=0,Ol=kr(0),Ml=0,Rl=null,Bl=0,Ul=0,Fl=0,jl=null,zl=null,Vl=0,ql=1/0,Hl=null,Wl=!1,$l=null,Gl=null,Yl=!1,Kl=null,Xl=0,Ql=0,Jl=null,Zl=-1,eu=0;function tu(){return 6&Al?Qe():-1!==Zl?Zl:Zl=Qe()}function nu(e){return 1&e.mode?2&Al&&0!==Nl?Nl&-Nl:null!==ma.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function iu(e,t,n,i){if(50<Ql)throw Ql=0,Jl=null,Error(a(185));vt(e,n,i),2&Al&&e===Ll||(e===Ll&&(!(2&Al)&&(Ul|=n),4===Ml&&lu(e,Nl)),ru(e,i),1===n&&0===Al&&!(1&t.mode)&&(ql=Qe()+500,Fr&&Vr()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,l=r[o];-1===l?0!==(s&n)&&0===(s&i)||(r[o]=pt(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var i=ht(e,e===Ll?Nl:0);if(0===i)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Fr=!0,zr(e)}(uu.bind(null,e)):zr(uu.bind(null,e)),or(function(){!(6&Al)&&Vr()}),n=null;else{switch(_t(i)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=Lu(n,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function au(e,t){if(Zl=-1,eu=0,6&Al)throw Error(a(327));var n=e.callbackNode;if(Su()&&e.callbackNode!==n)return null;var i=ht(e,e===Ll?Nl:0);if(0===i)return null;if(30&i||0!==(i&e.expiredLanes)||t)t=vu(e,i);else{t=i;var r=Al;Al|=2;var o=mu();for(Ll===e&&Nl===t||(Hl=null,ql=Qe()+500,pu(e,t));;)try{bu();break}catch(t){fu(e,t)}Ta(),Cl.current=o,Al=r,null!==Il?t=0:(Ll=null,Nl=0,t=Ml)}if(0!==t){if(2===t&&(0!==(r=ft(e))&&(i=r,t=ou(e,r))),1===t)throw n=Rl,pu(e,0),lu(e,i),ru(e,Qe()),n;if(6===t)lu(e,i);else{if(r=e.current.alternate,!(30&i||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],a=r.getSnapshot;r=r.value;try{if(!si(a(),r))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)||(t=vu(e,i),2===t&&(o=ft(e),0!==o&&(i=o,t=ou(e,o))),1!==t)))throw n=Rl,pu(e,0),lu(e,i),ru(e,Qe()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(a(345));case 2:case 5:wu(e,zl,Hl);break;case 3:if(lu(e,i),(130023424&i)===i&&10<(t=Vl+500-Qe())){if(0!==ht(e,0))break;if(((r=e.suspendedLanes)&i)!==i){tu(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ir(wu.bind(null,e,zl,Hl),t);break}wu(e,zl,Hl);break;case 4:if(lu(e,i),(4194240&i)===i)break;for(t=e.eventTimes,r=-1;0<i;){var s=31-ot(i);o=1<<s,(s=t[s])>r&&(r=s),i&=~o}if(i=r,10<(i=(120>(i=Qe()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*El(i/1960))-i)){e.timeoutHandle=ir(wu.bind(null,e,zl,Hl),i);break}wu(e,zl,Hl);break;default:throw Error(a(329))}}}return ru(e,Qe()),e.callbackNode===n?au.bind(null,e):null}function ou(e,t){var n=jl;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=zl,zl=n,null!==t&&su(t)),e}function su(e){null===zl?zl=e:zl.push.apply(zl,e)}function lu(e,t){for(t&=~Fl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),i=1<<n;e[n]=-1,t&=~i}}function uu(e){if(6&Al)throw Error(a(327));Su();var t=ht(e,0);if(!(1&t))return ru(e,Qe()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var i=ft(e);0!==i&&(t=i,n=ou(e,i))}if(1===n)throw n=Rl,pu(e,0),lu(e,t),ru(e,Qe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,zl,Hl),ru(e,Qe()),null}function cu(e,t){var n=Al;Al|=1;try{return e(t)}finally{0===(Al=n)&&(ql=Qe()+500,Fr&&Vr())}}function du(e){null!==Kl&&0===Kl.tag&&!(6&Al)&&Su();var t=Al;Al|=1;var n=Pl.transition,i=bt;try{if(Pl.transition=null,bt=1,e)return e()}finally{bt=i,Pl.transition=n,!(6&(Al=t))&&Vr()}}function hu(){Dl=Ol.current,Er(Ol)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rr(n)),null!==Il)for(n=Il.return;null!==n;){var i=n;switch(ta(i),i.tag){case 1:null!=(i=i.type.childContextTypes)&&Dr();break;case 3:ro(),Er(Ar),Er(Pr),co();break;case 5:oo(i);break;case 4:ro();break;case 13:case 19:Er(so);break;case 10:wa(i.type._context);break;case 22:case 23:hu()}n=n.return}if(Ll=e,Il=e=Ou(e.current,null),Nl=Dl=t,Ml=0,Rl=null,Fl=Ul=Bl=0,zl=jl=null,null!==Ca){for(t=0;t<Ca.length;t++)if(null!==(i=(n=Ca[t]).interleaved)){n.interleaved=null;var r=i.next,a=n.pending;if(null!==a){var o=a.next;a.next=r,i.next=o}n.pending=i}Ca=null}return e}function fu(e,t){for(;;){var n=Il;try{if(Ta(),ho.current=os,yo){for(var i=mo.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}yo=!1}if(fo=0,vo=go=mo=null,bo=!1,_o=0,xl.current=null,null===n||null===n.return){Ml=1,Rl=t,Il=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=Nl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=vs(s);if(null!==f){f.flags&=-257,ys(f,s,l,0,t),1&f.mode&&gs(o,c,t),u=c;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){gs(o,c,t),gu();break e}u=Error(a(426))}else if(ra&&1&l.mode){var v=vs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ys(v,s,l,0,t),fa(cs(u,l));break e}}o=u=cs(u,l),4!==Ml&&(Ml=2),null===jl?jl=[o]:jl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Ra(o,fs(0,u,t));break e;case 1:l=u;var y=o.type,b=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gl&&Gl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Ra(o,ms(o,l,t));break e}}o=o.return}while(null!==o)}Tu(n)}catch(e){t=e,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function mu(){var e=Cl.current;return Cl.current=os,null===e?os:e}function gu(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Ll||!(268435455&Bl)&&!(268435455&Ul)||lu(Ll,Nl)}function vu(e,t){var n=Al;Al|=2;var i=mu();for(Ll===e&&Nl===t||(Hl=null,pu(e,t));;)try{yu();break}catch(t){fu(e,t)}if(Ta(),Al=n,Cl.current=i,null!==Il)throw Error(a(261));return Ll=null,Nl=0,Ml}function yu(){for(;null!==Il;)_u(Il)}function bu(){for(;null!==Il&&!Ke();)_u(Il)}function _u(e){var t=kl(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?Tu(e):Il=t,xl.current=null}function Tu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Ml=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ys(n,t,Dl)))return void(Il=n);if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Ml&&(Ml=5)}function wu(e,t,n){var i=bt,r=Pl.transition;try{Pl.transition=null,bt=1,function(e,t,n,i){do{Su()}while(null!==Kl);if(6&Al)throw Error(a(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-ot(n),a=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~a}}(e,o),e===Ll&&(Il=Ll=null,Nl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yl||(Yl=!0,Lu(tt,function(){return Su(),null})),o=!!(15990&n.flags),!!(15990&n.subtreeFlags)||o){o=Pl.transition,Pl.transition=null;var s=bt;bt=1;var l=Al;Al|=4,xl.current=null,function(e,t){if(er=Ht,pi(e=hi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==n||0!==r&&3!==h.nodeType||(l=s+r),h!==o||0!==i&&3!==h.nodeType||(u=s+i),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++c===r&&(l=s),p===o&&++d===i&&(u=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:e,selectionRange:n},Ht=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ga(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(a(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=nl,nl=!1}(e,n),vl(n,e),fi(tr),Ht=!!er,tr=er=null,e.current=n,bl(n,e,r),Xe(),Al=l,bt=s,Pl.transition=o}else e.current=n;if(Yl&&(Yl=!1,Kl=e,Xl=r),o=e.pendingLanes,0===o&&(Gl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(rt,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ru(e,Qe()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)r=t[n],i(r.value,{componentStack:r.stack,digest:r.digest});if(Wl)throw Wl=!1,e=$l,$l=null,e;!!(1&Xl)&&0!==e.tag&&Su(),o=e.pendingLanes,1&o?e===Jl?Ql++:(Ql=0,Jl=e):Ql=0,Vr()}(e,t,n,i)}finally{Pl.transition=r,bt=i}return null}function Su(){if(null!==Kl){var e=_t(Xl),t=Pl.transition,n=bt;try{if(Pl.transition=null,bt=16>e?16:e,null===Kl)var i=!1;else{if(e=Kl,Kl=null,Xl=0,6&Al)throw Error(a(331));var r=Al;for(Al|=4,Zs=e.current;null!==Zs;){var o=Zs,s=o.child;if(16&Zs.flags){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Zs=c;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:il(8,d,o)}var h=d.child;if(null!==h)h.return=d,Zs=h;else for(;null!==Zs;){var p=(d=Zs).sibling,f=d.return;if(ol(d),d===c){Zs=null;break}if(null!==p){p.return=f,Zs=p;break}Zs=f}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zs=o}}if(2064&o.subtreeFlags&&null!==s)s.return=o,Zs=s;else e:for(;null!==Zs;){if(2048&(o=Zs).flags)switch(o.tag){case 0:case 11:case 15:il(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Zs=y;break e}Zs=o.return}}var b=e.current;for(Zs=b;null!==Zs;){var _=(s=Zs).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Zs=_;else e:for(s=b;null!==Zs;){if(2048&(l=Zs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Eu(l,l.return,e)}if(l===s){Zs=null;break e}var T=l.sibling;if(null!==T){T.return=l.return,Zs=T;break e}Zs=l.return}}if(Al=r,Vr(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(rt,e)}catch(e){}i=!0}return i}finally{bt=n,Pl.transition=t}}return!1}function ku(e,t,n){e=Oa(e,t=fs(0,t=cs(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),ru(e,t))}function Eu(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===Gl||!Gl.has(i))){t=Oa(t,e=ms(t,e=cs(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Cu(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Ll===e&&(Nl&n)===n&&(4===Ml||3===Ml&&(130023424&Nl)===Nl&&500>Qe()-Vl?pu(e,0):Fl|=n),ru(e,t)}function xu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=tu();null!==(e=Aa(e,t))&&(vt(e,t,n),ru(e,n))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xu(e,n)}function Au(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(a(314))}null!==i&&i.delete(t),xu(e,n)}function Lu(e,t){return Ge(e,t)}function Iu(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nu(e,t,n,i){return new Iu(e,t,n,i)}function Du(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ou(e,t){var n=e.alternate;return null===n?((n=Nu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mu(e,t,n,i,r,o){var s=2;if(i=e,"function"==typeof e)Du(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Ru(n.children,r,o,t);case k:s=8,r|=8;break;case E:return(e=Nu(12,n,t,2|r)).elementType=E,e.lanes=o,e;case A:return(e=Nu(13,n,t,r)).elementType=A,e.lanes=o,e;case L:return(e=Nu(19,n,t,r)).elementType=L,e.lanes=o,e;case D:return Bu(n,r,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case x:s=9;break e;case P:s=11;break e;case I:s=14;break e;case N:s=16,i=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Nu(s,n,t,r)).elementType=e,t.type=i,t.lanes=o,t}function Ru(e,t,n,i){return(e=Nu(7,e,i,t)).lanes=n,e}function Bu(e,t,n,i){return(e=Nu(22,e,i,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Uu(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function Fu(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ju(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,i,r,a,o,s,l){return e=new ju(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Nu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(a),e}function Vu(e){if(!e)return xr;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Nr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Nr(n))return Mr(e,n,t)}return t}function qu(e,t,n,i,r,a,o,s,l){return(e=zu(n,i,!0,e,0,a,0,s,l)).context=Vu(null),n=e.current,(a=Da(i=tu(),r=nu(n))).callback=null!=t?t:null,Oa(n,a,r),e.current.lanes=r,vt(e,r,i),ru(e,i),e}function Hu(e,t,n,i){var r=t.current,a=tu(),o=nu(r);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Da(a,o)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=Oa(r,t,o))&&(iu(e,r,o,a),Ma(e,r,o)),o}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $u(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){$u(e,t),(e=e.alternate)&&$u(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ar.current)_s=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return _s=!1,function(e,t,n){switch(t.tag){case 3:Ls(t),pa();break;case 5:ao(t);break;case 1:Nr(t.type)&&Rr(t);break;case 4:io(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;Cr(va,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(Cr(so,1&so.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Us(e,t,n):(Cr(so,1&so.current),null!==(e=Ws(e,t,n))?e.sibling:null);Cr(so,1&so.current);break;case 19:if(i=0!==(n&t.childLanes),128&e.flags){if(i)return qs(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Cr(so,so.current),i)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Ws(e,t,n)}(e,t,n);_s=!!(131072&e.flags)}else _s=!1,ra&&1048576&t.flags&&Zr(t,$r,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Hs(e,t),e=t.pendingProps;var r=Ir(t,Pr.current);ka(t,n),r=ko(null,t,i,e,r,n);var o=Eo();return t.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nr(i)?(o=!0,Rr(t)):o=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ia(t),r.updater=za,t.stateNode=r,r._reactInternals=t,Wa(t,i,e,n),t=As(null,t,i,!0,o,n)):(t.tag=0,ra&&o&&ea(t),Ts(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=function(e){if("function"==typeof e)return Du(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(i),e=ga(i,e),r){case 0:t=xs(null,t,i,e,n);break e;case 1:t=Ps(null,t,i,e,n);break e;case 11:t=ws(null,t,i,e,n);break e;case 14:t=Ss(null,t,i,ga(i.type,e),n);break e}throw Error(a(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,xs(e,t,i,r=t.elementType===i?r:ga(i,r),n);case 1:return i=t.type,r=t.pendingProps,Ps(e,t,i,r=t.elementType===i?r:ga(i,r),n);case 3:e:{if(Ls(t),null===e)throw Error(a(387));i=t.pendingProps,r=(o=t.memoizedState).element,Na(e,t),Ba(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Is(e,t,i,n,r=cs(Error(a(423)),t));break e}if(i!==r){t=Is(e,t,i,n,r=cs(Error(a(424)),t));break e}for(ia=ur(t.stateNode.containerInfo.firstChild),na=t,ra=!0,aa=null,n=Qa(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),i===r){t=Ws(e,t,n);break e}Ts(e,t,i,n)}t=t.child}return t;case 5:return ao(t),null===e&&ua(t),i=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,s=r.children,nr(i,r)?s=null:null!==o&&nr(i,o)&&(t.flags|=32),Cs(e,t),Ts(e,t,s,n),t.child;case 6:return null===e&&ua(t),null;case 13:return Us(e,t,n);case 4:return io(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Xa(t,null,i,n):Ts(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,ws(e,t,i,r=t.elementType===i?r:ga(i,r),n);case 7:return Ts(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ts(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value,Cr(va,i._currentValue),i._currentValue=s,null!==o)if(si(o.value,s)){if(o.children===r.children&&!Ar.current){t=Ws(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===o.tag){(u=Da(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),Sa(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Sa(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}Ts(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,ka(t,n),i=i(r=Ea(r)),t.flags|=1,Ts(e,t,i,n),t.child;case 14:return r=ga(i=t.type,t.pendingProps),Ss(e,t,i,r=ga(i.type,r),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:ga(i,r),Hs(e,t),t.tag=1,Nr(i)?(e=!0,Rr(t)):e=!1,ka(t,n),qa(t,i,r),Wa(t,i,r,n),As(null,t,i,!0,e,n);case 19:return qs(e,t,n);case 22:return Es(e,t,n)}throw Error(a(156,t.tag))};var Yu="function"==typeof reportError?reportError:function(e){console.error(e)};function Ku(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,i,r){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof r){var s=r;r=function(){var e=Wu(o);s.call(e)}}Hu(t,o,e,r)}else o=function(e,t,n,i,r){if(r){if("function"==typeof i){var a=i;i=function(){var e=Wu(o);a.call(e)}}var o=qu(t,i,e,0,null,!1,0,"",Zu);return e._reactRootContainer=o,e[fr]=o.current,Vi(8===e.nodeType?e.parentNode:e),du(),o}for(;r=e.lastChild;)e.removeChild(r);if("function"==typeof i){var s=i;i=function(){var e=Wu(l);s.call(e)}}var l=zu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=l,e[fr]=l.current,Vi(8===e.nodeType?e.parentNode:e),du(function(){Hu(t,l,n,i)}),l}(n,t,e,r,i);return Wu(o)}Xu.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hu(e,t,null,null)},Xu.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Hu(null,e,null,null)}),t[fr]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Bt(e)}},Tt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ru(t,Qe()),!(6&Al)&&(ql=Qe()+500,Vr()))}break;case 13:du(function(){var t=Aa(e,1);if(null!==t){var n=tu();iu(t,e,1,n)}}),Gu(e,1)}},wt=function(e){if(13===e.tag){var t=Aa(e,134217728);if(null!==t)iu(t,e,134217728,tu());Gu(e,134217728)}},St=function(e){if(13===e.tag){var t=nu(e),n=Aa(e,t);if(null!==n)iu(n,e,t,tu());Gu(e,t)}},kt=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},we=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=Tr(i);if(!r)throw Error(a(90));G(i),J(i,r)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=cu,Ae=du;var tc={usingClientEntryPoint:!1,Events:[br,_r,Tr,Ce,xe,cu]},nc={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ic={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{rt=rc.inject(ic),at=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(a(200));return function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(a(299));var n=!1,i="",r=Yu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=zu(e,1,!1,null,0,n,0,i,r),e[fr]=t.current,Vi(8===e.nodeType?e.parentNode:e),new Ku(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(a(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(a(405));var i=null!=n&&n.hydratedSources||null,r=!1,o="",s=Yu;if(null!=n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qu(t,null,e,1,null!=n?n:null,r,0,o,s),e[fr]=t.current,Vi(e),i)for(e=0;e<i.length;e++)r=(r=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Xu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(a(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(a(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[fr]=null})}),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Ju(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,n,!1,i)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var i=n(3935);t.createRoot=i.createRoot,t.hydrateRoot=i.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var _=b.prototype=new y;_.constructor=b,m(_,v.prototype),_.isPureReactComponent=!0;var T=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,i){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=i;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:S.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var x=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function A(e,t,r,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case i:l=!0}}if(l)return o=o(l=e),e=""===a?"."+P(l,0):a,T(o)?(r="",null!=e&&(r=e.replace(x,"$&/")+"/"),A(o,t,r,"",function(e){return e})):null!=o&&(C(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,r+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=""===a?".":a+":",T(e))for(var u=0;u<e.length;u++){var c=a+P(s=e[u],u);l+=A(s,t,r,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=A(s=s.value,t,r,c=a+P(s,u++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function L(e,t,n){if(null==e)return e;var i=[],r=0;return A(e,i,"","",function(e){return t.call(n,e,r++)}),i}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},D={transition:null},O={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:D,ReactCurrentOwner:S};t.Children={map:L,forEach:function(e,t,n){L(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return L(e,function(){t++}),t},toArray:function(e){return L(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=o,t.PureComponent=b,t.StrictMode=a,t.Suspense=c,t.__SECRET_INT
vendor: 6,011 bytes, line 475
475ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!k.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=i;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:n,type:e.type,key:a,ref:o,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(!(0<a(r,t)))break e;e[i]=t,e[n]=r,n=i}}function i(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,o=r>>>1;i<o;){var s=2*(i+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<r&&0>a(c,l)?(e[i]=c,e[u]=n,i=u):(e[i]=l,e[s]=n,i=s);else{if(!(u<r&&0>a(c,n)))break e;e[i]=c,e[u]=n,i=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=i(c);null!==t;){if(null===t.callback)r(c);else{if(!(t.startTime<=e))break;r(c),t.sortIndex=t.expirationTime,n(u,t)}t=i(c)}}function T(e){if(g=!1,_(e),!m)if(null!==i(u))m=!0,D(w);else{var t=i(c);null!==t&&O(T,t.startTime-e)}}function w(e,n){m=!1,g&&(g=!1,y(C),C=-1),f=!0;var a=p;try{for(_(n),h=i(u);null!==h&&(!(h.expirationTime>n)||e&&!A());){var o=h.callback;if("function"==typeof o){h.callback=null,p=h.priorityLevel;var s=o(h.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?h.callback=s:h===i(u)&&r(u),_(n)}else r(u);h=i(u)}if(null!==h)var l=!0;else{var d=i(c);null!==d&&O(T,d.startTime-n),l=!1}return l}finally{h=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,E=null,C=-1,x=5,P=-1;function A(){return!(t.unstable_now()-P<x)}function L(){if(null!==E){var e=t.unstable_now();P=e;var n=!0;try{n=E(!0,e)}finally{n?S():(k=!1,E=null)}}else k=!1}if("function"==typeof b)S=function(){b(L)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,N=I.port2;I.port1.onmessage=L,S=function(){N.postMessage(null)}}else S=function(){v(L,0)};function D(e){E=e,k||(k=!0,S())}function O(e,n){C=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,D(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return i(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,r,a){var o=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:r,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===i(u)&&e===i(c)&&(g?(y(C),C=-1):g=!0,O(T,a-o)
475)):(e.sortIndex=s,n(u,e),m||f||(m=!0,D(w))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},523:e=>{!function(){"use strict";e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,i=e.HTMLElement||e.Element,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:i.prototype.scroll||s,scrollIntoView:i.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,o=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?p.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):r.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?r.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},i.prototype.scroll=i.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},i.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},i.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),i=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==t.body?(p.call(this,n,n.scrollLeft+a.left-i.left,n.scrollTop+a.top-i.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):e.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+o<e.scrollHeight:"X"===t?e.clientWidth+o<e.scrollWidth:void 0}function c(t,n){var i=e.getComputedStyle(t,null)["overflow"+n];return"auto"===i||"scroll"===i}function d(e){var t=u(e,"Y")&&c(e,"Y"),n=u(e,"X")&&c(e,"X");return t||n}function h(t){var n,i,r,o,s=(a()-t.startTime)/468;o=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*o)),i=t.startX+(t.x-t.startX)*n,r=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,i,r),i===t.x&&r===t.y||e.requestAnimationFrame(h.bind(e,t))}function p(n,i,o){var l,u,c,d,p=a();n===t.body?(l=e,u=e.scrollX||e.pageXOffset,c=e.scrollY||e.pageYOffset,d=r.scroll):(l=n,u=n.scrollLeft,c=n.scrollTop,d=s),h({scrollable:l,method:d,startTime:p,startX:u,startY:c,x:i,y:o})}}}}()},7545:function(e,t,n){e.exports=function(){"use strict";for(var e,t="7.18.1",i={},r=function(e,t){return i[e]=i[e]||[],t&&(i[e]=i[e].concat(t)),i[e]},a=function(e,t){r(e,t)},o=function(e,t){var n=r(e).indexOf(t);return!(n<=-1||(i[e]=i[e].slice(),i[e].splice(n,1),0))},s=function(e,t){r(e,[].concat(t).map(function(t){var n=function n(){return o(e,n),t.apply(void 0,arguments)};return n}))},l={prefixed:!0},u=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],c=u[0],d=0;d<u.length;d++)if(u[d][1]in document){e=u[d];break}if(e){for(var h=0;h<e.length;h++)l[c[h]]=e[h];l.prefixed=e[0]!==c[0]}var p=[],f=function(e,t){return function(n,i,r){var a=t.levels[i],o=new RegExp("^("+a+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),p){p.push([].concat(r));var s=p.length-1e3;p.splice(0,s>0?s:0)}if(window.console){var l=window.console[n];l||"debug"!==n||(l=window.console.info||window.console.log),l&&a&&o.test(n)&&l[Array.isArray(r)?"apply":"call"](window.console,r)}}};function m(e){var t,n="info",i=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];t("log",n,i)};return t=f(e,i),i.createLogger=function(t){return m(e+": "+t)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},i.level=function(e){if("string"==typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},i.history=function(){return p?[].concat(p):[]},i.history.filter=function(e){return(p||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},i.history.clear=function(){p&&(p.length=0)},i.history.disable=function(){null!==p&&(p.length=0,p=null)},i.history.enable=function(){null===p&&(p=[])},i.error=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("error",n,i)},i.warn=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("warn",n,i)},i.debug=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return t("debug",n,i)},i}var g=m("VIDEOJS"),v=g.createLogger,y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function b(e,t){return e(t={exports:{}},t.exports),t.exports}var _=b(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}
475e.exports=t}),T=Object.prototype.toString,w=function(e){return C(e)?Object.keys(e):[]};function S(e,t){w(e).forEach(function(n){return t(e[n],n)})}function k(e,t,n){return void 0===n&&(n=0),w(e).reduce(function(n,i){return t(n,e[i],i)},n)}function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?_.apply(void 0,[e].concat(n)):(n.forEach(function(t){t&&S(t,function(t,n){e[n]=t})}),e)}function C(e){return!!e&&"object"==typeof e}function x(e){return C(e)&&"[object Object]"===T.call(e)&&e.constructor===Object}function P(e,t){if(!e||!t)return"";if("function"==typeof window.getComputedStyle){var n;try{n=window.getComputedStyle(e)}catch(e){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var A,L=window.navigator&&window.navigator.userAgent||"",I=/AppleWebKit\/([\d.]+)/i.exec(L),N=I?parseFloat(I.pop()):null,D=/iPod/i.test(L),O=(A=L.match(/OS (\d+)_/i))&&A[1]?A[1]:null,M=/Android/i.test(L),R=function(){var e=L.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),B=M&&R<5&&N<537,U=/Firefox/i.test(L),F=/Edg/i.test(L),j=!F&&(/Chrome/i.test(L)||/CriOS/i.test(L)),z=function(){var e=L.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),V=function(){var e=/MSIE\s(\d+)\.\d/.exec(L),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(L)&&/rv:11.0/.test(L)&&(t=11),t}(),q=/Safari/i.test(L)&&!j&&!M&&!F,H=/Windows/i.test(L),W=Boolean(ee()&&("ontouchstart"in window||window.navigator.maxTouchPoints||window.DocumentTouch&&window.document instanceof window.DocumentTouch)),$=/iPad/i.test(L)||q&&W&&!/iPhone/i.test(L),G=/iPhone/i.test(L)&&!$,Y=G||$||D,K=(q||Y)&&!j,X=Object.freeze({__proto__:null,IS_IPOD:D,IOS_VERSION:O,IS_ANDROID:M,ANDROID_VERSION:R,IS_NATIVE_ANDROID:B,IS_FIREFOX:U,IS_EDGE:F,IS_CHROME:j,CHROME_VERSION:z,IE_VERSION:V,IS_SAFARI:q,IS_WINDOWS:H,TOUCH_ENABLED:W,IS_IPAD:$,IS_IPHONE:G,IS_IOS:Y,IS_ANY_SAFARI:K});function Q(e){return"string"==typeof e&&Boolean(e.trim())}function J(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Z(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function ee(){return document===window.document}function te(e){return C(e)&&1===e.nodeType}function ne(){try{return window.parent!==window.self}catch(e){return!0}}function ie(e){return function(t,n){if(!Q(t))return document[e](null);Q(n)&&(n=document.querySelector(n));var i=te(n)?n:document;return i[e]&&i[e](t)}}function re(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=document.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(g.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?ae(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){r.setAttribute(e,n[e])}),i&&ke(r,i),r}function ae(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function oe(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function se(e,t){return J(t),e.classList?e.classList.contains(t):Z(t).test(e.className)}function le(e,t){return e.classList?e.classList.add(t):se(e,t)||(e.className=(e.className+" "+t).trim()),e}function ue(e,t){return e?(e.classList?e.classList.remove(t):(J(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):(g.warn("removeClass was called with an element that doesn't exist"),null)}function ce(e,t,n){var i=se(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!i),n!==i)return n?le(e,t):ue(e,t),e}function de(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)})}function he(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var a=i[r].name,o=i[r].value;"boolean"!=typeof e[a]&&-1===n.indexOf(","+a+",")||(o=null!==o),t[a]=o}return t}function pe(e,t){return e.getAttribute(t)}function fe(e,t,n){e.setAttribute(t,n)}function me(e,t){e.removeAttribute(t)}function ge(){document.body.focus(),document.onselectstart=function(){return!1}}function ve(){document.onselectstart=function(){return!0}}function ye(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(P(e,"height"))),n.width||(n.width=parseFloat(P(e,"width"))),n}}function be(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;e.offsetParent&&e!==document[l.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function _e(e,t){var n={x:0,y:0};if(Y)for(var i=e;i&&"html"!==i.nodeName.toLowerCase();){var r=P(i,"transform");
475if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(r)){var o=r.slice(9,-1).split(/,\s/).map(Number);n.x+=o[12],n.y+=o[13]}i=i.parentNode}var s={},l=be(t.target),u=be(e),c=u.width,d=u.height,h=t.offsetY-(u.top-l.top),p=t.offsetX-(u.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,Y&&(p-=n.x,h-=n.y)),s.y=1-Math.max(0,Math.min(1,h/d)),s.x=Math.max(0,Math.min(1,p/c)),s}function Te(e){return C(e)&&3===e.nodeType}function we(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Se(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),te(e)||Te(e)?e:"string"==typeof e&&/\S/.test(e)?document.createTextNode(e):void 0}).filter(function(e){return e})}function ke(e,t){return Se(t).forEach(function(t){return e.appendChild(t)}),e}function Ee(e,t){return ke(we(e),t)}function Ce(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}var xe,Pe=ie("querySelector"),Ae=ie("querySelectorAll"),Le=Object.freeze({__proto__:null,isReal:ee,isEl:te,isInFrame:ne,createEl:re,textContent:ae,prependTo:oe,hasClass:se,addClass:le,removeClass:ue,toggleClass:ce,setAttributes:de,getAttributes:he,getAttribute:pe,setAttribute:fe,removeAttribute:me,blockTextSelection:ge,unblockTextSelection:ve,getBoundingClientRect:ye,findPosition:be,getPointerPosition:_e,isTextNode:Te,emptyEl:we,normalizeContent:Se,appendContent:ke,insertContent:Ee,isSingleLeftClick:Ce,$:Pe,$$:Ae}),Ie=!1,Ne=function(){if(!1!==xe.options.autoSetup){var e=Array.prototype.slice.call(document.getElementsByTagName("video")),t=Array.prototype.slice.call(document.getElementsByTagName("audio")),n=Array.prototype.slice.call(document.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,a=i.length;r<a;r++){var o=i[r];if(!o||!o.getAttribute){De(1);break}void 0===o.player&&null!==o.getAttribute("data-setup")&&xe(o)}else Ie||De(1)}};function De(e,t){ee()&&(t&&(xe=t),window.setTimeout(Ne,e))}function Oe(){Ie=!0,window.removeEventListener("load",Oe)}ee()&&("complete"===document.readyState?Oe():window.addEventListener("load",Oe));var Me,Re=function(e){var t=document.createElement("style");return t.className=e,t},Be=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Ue=3;function Fe(){return Ue++}window.WeakMap||(Me=function(){function e(){this.vdata="vdata"+Math.floor(window.performance&&window.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Fe();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];g("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var je,ze=window.WeakMap?new WeakMap:new Me;function Ve(e,t){if(ze.has(e)){var n=ze.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&ze.delete(e)}}function qe(e,t,n,i){n.forEach(function(n){e(t,n,i)})}function He(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||window.event;for(var r in e={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(e[r]=i[r]));if(e.target||(e.target=e.srcElement||document),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var a=document.documentElement,o=document.body;e.pageX=e.clientX+(a&&a.scrollLeft||o&&o.scrollLeft||0)-(a&&a.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||o&&o.scrollTop||0)-(a&&a.clientTop||o&&o.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var We=function(){if("boolean"!=typeof je){je=!1;try{var e=Object.defineProperty({},"passive",{get:function(){je=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}return je},$e=["touchstart","touchmove"];function Ge(e,t,n){if(Array.isArray(t))return qe(Ge,e,t,n);ze.has(e)||ze.set(e,{});var i=ze.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Fe()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=He(t);var r=i.handlers[t.type];if(r)for(var a=r.slice(0),o=0,s=a.length;o<s&&!t.isImmediatePropagationStopped();o++)try{a[o].call(e,t,n)}catch(e){g.error(e)}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;We()&&$e.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function Ye(e,t,n){if(ze.has(e)){var i=ze.get(e);if(i.handlers){if(Array.isArray(t))return qe(Ye,e,t,n);var r=function(e,t){i.handlers[t]=[],Ve(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var o=0;o<a.length;o++)a[o].guid===n.guid&&a.splice(o--,1);Ve(e,t)}else r(e,t)}else for(var s in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},s)&&r(e,s)}}}function Ke(e,t,n){var i=ze.has(e)?ze.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=He(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)Ke.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){ze.has(t.target)||ze.set(t.target,{});var a=ze.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function Xe(e,t,n){if(Array.isArray(t))return qe(Xe,e,t,n);var i=function i(){Ye(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Fe(),Ge(e,t,i)}function Qe(e,t,n){var i=function i(){Ye(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Fe(),Ge(e,t,i)}var Je,Ze=Object.freeze({__proto__:null,fixEvent:He,on:Ge,off:Ye,trigger:Ke,one:Xe,any:Qe}),et=30,tt=function(e,t,n){t.guid||(t.guid=Fe());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},nt=function(e,t){var n=window.performance.now(),i=function(){var i=window.performance.now();i-n>=t&&(e.apply(void 0,arguments),n=i)};return i},it=function(e,t,n,i){var r;void 0===i&&(i=window);var a=function(){i.clearTimeout(r),r=null},o=function(){var a=this,o=arguments,s=function(){r=null,s=null,n||e.apply(a,o)};!r&&n&&e.apply(a,o),i.clearTimeout(r),r=i.setTimeout(s,t)};return o.cancel=a,o},rt=function(){};rt.prototype.allowedEvents_={},rt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ge(this,e,t),this.addEventListener=n},rt.prototype.addEventListener=rt.prototype.on,rt.prototype.off=function(e,t){Ye(this,e,t)},rt.prototype.removeEventListener=rt.prototype.off,rt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Xe(this,e,t),this.addEventListener=n},rt.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Qe(this,e,t),this.addEventListener=n},rt.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=He(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Ke(this,e)},rt.prototype.dispatchEvent=rt.prototype.trigger,rt.prototype.queueTrigger=function(e){var t=this;Je||(Je=new Map);var n=e.type||e,i=Je.get(this);i||(i=new Map,Je.set(this,i));var r=i.get(n);i.delete(n),window.clearTimeout(r);var a=window.setTimeout(function(){0===i.size&&(i=null,Je.delete(t)),t.trigger(e)},0);i.set(n,a)};var at=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},ot=function(e){return e instanceof rt||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},st=function(e,t){ot(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},lt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ut=function(e,t,n){if(!e||!e.nodeName&&!ot(e))throw new Error("Invalid target for "+at(t)+"#"+n+"; must be a DOM node or evented object.")},ct=function(e,t,n){if(!lt(e))throw new Error("Invalid event type for "+at(t)+"#"+n+"; must be a non-empty string or array.")},dt=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+at(t)+"#"+n+"; must be a function.")},ht=function(e,t,n){var i,r,a,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),ut(i,e,n),ct(r,e,n),dt(a,e,n),{isTargetingSelf:o,target:i,type:r,listener:a=tt(e,a)}},pt=function(e,t,n,i){ut(e,e,t),e.nodeName?Ze[t](e,n,i):e[t](n,i)}
475,ft={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ht(this,n,"on"),a=r.isTargetingSelf,o=r.target,s=r.type,l=r.listener;if(pt(o,"on",s,l),!a){var u=function(){return e.off(o,s,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,pt(this,"on","dispose",u),pt(o,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ht(this,n,"one"),a=r.isTargetingSelf,o=r.target,s=r.type,l=r.listener;if(a)pt(o,"one",s,l);else{var u=function t(){e.off(o,s,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};u.guid=l.guid,pt(o,"one",s,u)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ht(this,n,"any"),a=r.isTargetingSelf,o=r.target,s=r.type,l=r.listener;if(a)pt(o,"any",s,l);else{var u=function t(){e.off(o,s,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};u.guid=l.guid,pt(o,"any",s,u)}},off:function(e,t,n){if(!e||lt(e))Ye(this.eventBusEl_,e,t);else{var i=e,r=t;ut(i,this,"off"),ct(r,this,"off"),dt(n,this,"off"),n=tt(this,n),this.off("dispose",n),i.nodeName?(Ye(i,r,n),Ye(i,"dispose",n)):ot(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){ut(this.eventBusEl_,this,"trigger");var n=e&&"string"!=typeof e?e.type:e;if(!lt(n)){var i="Invalid event type for "+at(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||g).error(i)}return Ke(this.eventBusEl_,e,t)}};function mt(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=re("span",{className:"vjs-event-bus"});return E(e,ft),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&ze.has(e)&&ze.delete(e)}),window.setTimeout(function(){e.eventBusEl_=null},0)}),e}var gt={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),S(e,function(e,i){n.state[i]!==e&&((t=t||{})[i]={from:n.state[i],to:e}),n.state[i]=e}),t&&ot(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function vt(e,t){return E(e,gt),e.state=E({},e.state,t),"function"==typeof e.handleStateChanged&&ot(e)&&e.on("statechanged",e.handleStateChanged),e}var yt=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},bt=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},_t=function(e,t){return bt(e)===bt(t)};function Tt(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach(function(t){t&&S(t,function(t,n){x(t)?(x(e[n])||(e[n]={}),e[n]=Tt(e[n],t)):e[n]=t})}),e}var wt=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),St=window.Map?window.Map:wt,kt=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),Et=window.Set?window.Set:kt,Ct=b(function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var n,a=String(e);return(n=i[a.toLowerCase()])?n:(n=r[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=i[t.toLowerCase()])return a===n;if(a=r[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var o=t.names=t.title={};for(a in i)o[i[a]]=a;for(var s in r)i[s]=r[s]});Ct.code,Ct.codes,Ct.aliases,Ct.names,Ct.title;var xt=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Tt({},this.options_),t=this.options_=Tt(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var i=e&&e.id&&e.id()||"no_player";this.id_=i+"_component_"+Fe()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(mt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),vt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Et,this.setIntervalIds_=new Et,this.rafIds_=new Et,this.namedRafs_=new St,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Tt(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return re(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],o=i&&i.split("-")[0],s=r&&r[o],l=n;return a&&a[e]?l=a[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){var i=t[n-1],r=i;return void 0===i&&(r=e),r})),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var i=this,r=0;r<t.length;r++)if(!(i=i.getChild(t[r]))||!i.getChild)return;return i},t.addChild=function(t,n,i){var r,a;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof t){a=bt(t);var o=n.componentClass||a;n.name=a;var s=e.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!=typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(a=a||r.name&&bt(r.name()))&&(this.childNameIndex_[a]=r,this.childNameIndex_[yt(a)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[i+1]&&(this.children_[i+1].el_?l=this.children_[i+1].el_:te(this.children_[i+1])&&(l=this.children_[i+1])),this.contentEl().insertBefore(r.el(),l)}return r},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[bt(e.name())]=null,this.childNameIndex_[yt(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}},o=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var i,r;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||bt(t.name));return n&&!o.isTech(n)}
475).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return Pe(e,t||this.contentEl())},t.$$=function(e,t){return Ae(e,t||this.contentEl())},t.hasClass=function(e){return se(this.el_,e)},t.addClass=function(e){le(this.el_,e)},t.removeClass=function(e){ue(this.el_,e)},t.toggleClass=function(e,t){ce(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return pe(this.el_,e)},t.setAttribute=function(e,t){fe(this.el_,e,t)},t.removeAttribute=function(e){me(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+bt(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=P(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+bt(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(Ct.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null,i=10,r=200;this.on("touchstart",function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=window.performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,a=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+a*a)>i&&(e=!1)}});var a=function(){e=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(i){n=null,!0===e&&window.performance.now()-t<r&&(i.preventDefault(),this.trigger("tap"))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=tt(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,i=this;return e=tt(this,e),this.clearTimersOnDispose_(),n=window.setTimeout(function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),window.clearTimeout(e)),e},t.setInterval=function(e,t){e=tt(this,e),this.clearTimersOnDispose_();var n=window.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),window.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=tt(this,e),t=window.requestAnimationFrame(function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=tt(this,t);var i=this.requestAnimationFrame(function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),window.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
475h(function(t){var n=t[0],i=t[1];e[n].forEach(function(t,n){return e[i](n)})}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i,r=e.getComponent("Tech"),a=r&&r.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!o)throw i=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+i+".");t=bt(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var l=s.players,u=Object.keys(l);if(l&&u.length>0&&u.map(function(e){return l[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[yt(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}xt.prototype.supportsRaf_="function"==typeof window.requestAnimationFrame&&"function"==typeof window.cancelAnimationFrame,xt.registerComponent("Component",xt);var At=Pt;function Lt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var It=Lt;function Nt(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function Dt(e,t,n,i){return Nt(e,i,n.length-1),n[i][t]}function Ot(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Dt.bind(null,"start",0,e),end:Dt.bind(null,"end",1,e)},window.Symbol&&window.Symbol.iterator&&(t[window.Symbol.iterator]=function(){return(e||[]).values()}),t}function Mt(e,t){return Array.isArray(e)?Ot(e):void 0===e||void 0===t?Ot():Ot([[e,t]])}function Rt(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Mt(0,0));for(var a=0;a<e.length;a++)n=e.start(a),(i=e.end(a))>t&&(i=t),r+=i-n;return r/t}function Bt(e){if(e instanceof Bt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:C(e)&&("number"==typeof e.code&&(this.code=e.code),E(this,e)),this.message||(this.message=Bt.defaultMessages[this.code]||"")}Bt.prototype.code=0,Bt.prototype.message="",Bt.prototype.status=null,Bt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Bt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Ut=0;Ut<Bt.errorTypes.length;Ut++)Bt[Bt.errorTypes[Ut]]=Ut,Bt.prototype[Bt.errorTypes[Ut]]=Ut;var Ft=jt;function jt(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}function zt(e){return null!=e&&"function"==typeof e.then}function Vt(e){zt(e)&&e.then(null,function(e){})}var qt=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,i){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},Ht={textTracksToJson:function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=qt(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(qt))},jsonToTextTracks:function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},trackToJson_:qt},Wt="vjs-modal-dialog",$t=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=re("div",{className:Wt+"-content"},{role:"document"}),i.descEl_=re("p",{className:Wt+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),ae(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return Wt+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
vendor: 7,117 bytes, line 475
475n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Ee(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),we(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=document.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),Ct.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(Ct.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}document.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof window.HTMLAnchorElement||e instanceof window.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof window.HTMLInputElement||e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof window.HTMLIFrameElement||e instanceof window.HTMLObjectElement||e instanceof window.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(xt);$t.prototype.options_={pauseOnOpen:!0,temporary:!0},xt.registerComponent("ModalDialog",$t);var Gt=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(At(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}It(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},ot(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(rt);for(var Yt in Gt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Gt.prototype.allowedEvents_)Gt.prototype["on"+Yt]=null;var Kt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},Xt=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].enabled){Kt(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}It(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Kt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Kt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Gt),Qt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},Jt=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].selected){Qt(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(At(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}It(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&Qt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,Qt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(Gt),Zt=function(e){function t(){return e.apply(this,arguments)||this}It(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(Gt),en=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
475),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),tn=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),nn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},rn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},an={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},on={disabled:"disabled",hidden:"hidden",showing:"showing"},sn=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var i={id:t.id||"vjs_track_"+Fe(),kind:t.kind||"",language:t.language||""},r=t.label||"",a=function(e){Object.defineProperty(At(n),e,{get:function(){return i[e]},set:function(){}})};for(var o in i)a(o);return Object.defineProperty(At(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return It(t,e),t}(rt),ln=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=document.createElement("a");n.href=e;for(var i={},r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=window.location.protocol),i.host||(i.host=window.location.host),i},un=function(e){if(!e.match(/^https?:\/\//)){var t=document.createElement("a");t.href=e,e=t.href}return e},cn=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},dn=function(e,t){void 0===t&&(t=window.location);var n=ln(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},hn=Object.freeze({__proto__:null,parseUrl:ln,getAbsoluteURL:un,getFileExtension:cn,isCrossOrigin:dn}),pn="undefined"!=typeof window?window:void 0!==y?y:"undefined"!=typeof self?self:{},fn=gn,mn=Object.prototype.toString;function gn(e){if(!e)return!1;var t=mn.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}function vn(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce(function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e},"utf-8")}var yn=function(e,t){return void 0===t&&(t=!1),function(n,i,r){if(n)e(n);else if(i.statusCode>=400&&i.statusCode<=599){var a=r;if(t)if(pn.TextDecoder){var o=vn(i.headers&&i.headers["content-type"]);try{a=new TextDecoder(o).decode(r)}catch(e){}}else a=String.fromCharCode.apply(null,new Uint8Array(r));e({cause:a})}else e(null,r)}};En.httpHandler=yn;var bn=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t):t},_n=En,Tn=En;function wn(e,t){for(var n=0;n<e.length;n++)t(e[n])}function Sn(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function kn(e,t,n){var i=e;return fn(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=_({},t,{uri:e}),i.callback=n,i}function En(e,t,n){return Cn(t=kn(e,t,n))}function Cn(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){4===u.readyState&&setTimeout(o,0)}function r(){var e=void 0;if(e=u.response?u.response:u.responseText||xn(u),g)try{e=JSON.parse(e)}catch(e){}return e}function a(e){return clearTimeout(c),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,v)}function o(){if(!l){var t;clearTimeout(c),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var i=v,a=null;return 0!==t?(i={body:r(),statusCode:t,method:h,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(i.headers=bn(u.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,i,i.body)}}var s,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new En.XDomainRequest:new En.XMLHttpRequest);var c,d=u.url=e.uri||e.url,h=u.method=e.method||"GET",p=e.body||e.data,f=u.headers=e.headers||{},m=!!e.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:u};
475if("json"in e&&!1!==e.json&&(g=!0,f.accept||f.Accept||(f.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),p=JSON.stringify(!0===e.json?p:e.json))),u.onreadystatechange=i,u.onload=o,u.onerror=a,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=a,u.open(h,d,!m,e.username,e.password),m||(u.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(c=setTimeout(function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",a(e)}},e.timeout)),u.setRequestHeader)for(s in f)f.hasOwnProperty(s)&&u.setRequestHeader(s,f[s]);else if(e.headers&&!Sn(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(p||null),u}function xn(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}function Pn(){}En.XMLHttpRequest=pn.XMLHttpRequest||Pn,En.XDomainRequest="withCredentials"in new En.XMLHttpRequest?En.XMLHttpRequest:pn.XDomainRequest,wn(["get","put","post","patch","head","delete"],function(e){En["delete"===e?"del":e]=function(t,n,i){return(n=kn(t,n,i)).method=e.toUpperCase(),Cn(n)}}),_n.default=Tn;var An=function(e,t){var n=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(window.console&&window.console.groupCollapsed&&window.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach(function(e){return g.error(e)}),window.console&&window.console.groupEnd&&window.console.groupEnd()),n.flush()},Ln=function(e,t){var n={uri:e},i=dn(e);i&&(n.cors=i);var r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),_n(n,tt(this,function(e,n,i){if(e)return g.error(e,n);t.loaded_=!0,"function"!=typeof window.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return An(i,t);g.error("vttjs failed to load, stopping trying to process "+t.src)}):An(i,t)}))},In=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=Tt(t,{kind:an[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=on[i.mode]||"disabled",a=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=e.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var o=new tn(n.cues_),s=new tn(n.activeCues_),l=!1,u=tt(At(n),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1))}),c=function(){n.tech_.off("timeupdate",u)};return n.tech_.one("dispose",c),"disabled"!==r&&n.tech_.on("timeupdate",u),Object.defineProperties(At(n),{default:{get:function(){return a}
475,set:function(){}},mode:{get:function(){return r},set:function(e){on[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||Ln(this.src,this),this.tech_.off("timeupdate",u),"disabled"!==r&&this.tech_.on("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(l=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&Ln(n.src,At(n))):n.loaded_=!0,n}It(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(window.vttjs&&!(e instanceof window.vttjs.VTTCue)){for(var n in t=new window.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(sn);In.prototype.allowedEvents_={cuechange:"cuechange"};var Nn=function(e){function t(t){var n;void 0===t&&(t={});var i=Tt(t,{kind:rn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(At(n),"enabled",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return It(t,e),t}(sn),Dn=function(e){function t(t){var n;void 0===t&&(t={});var i=Tt(t,{kind:nn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(At(n),"selected",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return It(t,e),t}(sn),On=0,Mn=1,Rn=2,Bn=3,Un=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new In(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(At(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=On,r.addEventListener("loadeddata",function(){i=Rn,n.trigger({type:"load",target:At(n)})}),n}return It(t,e),t}(rt);Un.prototype.allowedEvents_={load:"load"},Un.NONE=On,Un.LOADING=Mn,Un.LOADED=Rn,Un.ERROR=Bn;var Fn={audio:{ListClass:Xt,TrackClass:Nn,capitalName:"Audio"},video:{ListClass:Jt,TrackClass:Dn,capitalName:"Video"},text:{ListClass:Zt,TrackClass:In,capitalName:"Text"}};Object.keys(Fn).forEach(function(e){Fn[e].getterName=e+"Tracks",Fn[e].privateName=e+"Tracks_"});var jn={remoteText:{ListClass:Zt,TrackClass:In,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:en,TrackClass:Un,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},zn=_({},Fn,jn);jn.names=Object.keys(jn),Fn.names=Object.keys(Fn),zn.names=[].concat(jn.names).concat(Fn.names);var Vn,qn={},Hn=void 0!==y?y:"undefined"!=typeof window?window:{};"undefined"!=typeof document?Vn=document:(Vn=Hn["__GLOBAL_DOCUMENT_CACHE@4"])||(Vn=Hn["__GLOBAL_DOCUMENT_CACHE@4"]=qn);var Wn=Vn,$n=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function Gn(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function Yn(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function Kn(){this.values=$n(null)}function Xn(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"==typeof r[a]){var o=r[a].split(n);2===o.length&&t(o[0],o[1])}}function Qn(e,t,n){var i=e;function r(){var t=Yn(e);if(null===t)throw new Gn(Gn.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function a(e,t){var i=new Kn;Xn(e,function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];i.integer(e,o),i.percent(e,o)&&i.set("snapToLines",!1),i.alt(e,o,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(e){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(e){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(e){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function o(){e=e.replace(/^\s+/,"")}if(o(),t.startTime=r(),o(),"--\x3e"!==e.substr(0,3))throw new Gn(Gn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),o(),t.endTime=r(),o(),a(e,t)}Gn.prototype=$n(Error.prototype),Gn.prototype.constructor=Gn,Gn.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Kn.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var Jn=Wn.createElement&&Wn.createElement("textarea"),Zn={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},ei={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},ti={v:"title",lang:"lang"},ni={rt:"ruby"};function ii(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var n=t.match(/^([^<]*)(<[^>
475]*>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return Jn.innerHTML=e,e=Jn.textContent,Jn.textContent="",e}function r(e,t){return!ni[t.localName]||ni[t.localName]===e.localName}function a(t,n){var i=Zn[t];if(!i)return null;var r=e.document.createElement(i),a=ti[t];return a&&n&&(r[a]=n.trim()),r}for(var o,s=e.document.createElement("div"),l=s,u=[];null!==(o=n());)if("<"!==o[0])l.appendChild(e.document.createTextNode(i(o)));else{if("/"===o[1]){u.length&&u[u.length-1]===o.substr(2).replace(">","")&&(u.pop(),l=l.parentNode);continue}var c,d=Yn(o.substr(1,o.length-2));if(d){c=e.document.createProcessingInstruction("timestamp",d),l.appendChild(c);continue}var h=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(!(c=a(h[1],h[3])))continue;if(!r(l,c))continue;if(h[2]){var p=h[2].split(".");p.forEach(function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(ei.hasOwnProperty(n)){var i=t?"background-color":"color",r=ei[n];c.style[i]=r}}),c.className=p.join(" ")}u.push(h[1]),l.appendChild(c),l=c}return s}var ri=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function ai(e){for(var t=0;t<ri.length;t++){var n=ri[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function oi(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function r(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):n}return"ruby"===t.tagName?r(e):t.childNodes?(i(e,t),r(e)):void 0}for(i(t,e);n=r(t);)for(var a=0;a<n.length;a++)if(ai(n.charCodeAt(a)))return"rtl";return"ltr"}function si(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}function li(){}function ui(e,t,n){li.call(this),this.cue=t,this.cueDiv=ii(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:oi(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")}
vendor: 10,812 bytes, line 475
475)}}function ci(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function di(e,t,n,i){function r(e,t){for(var r,a=new ci(e),o=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(i);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);o>l&&(r=new ci(e),o=l),e=new ci(a)}return r||a}var a=new ci(t),o=t.cue,s=si(o),l=[];if(o.snapToLines){var u;switch(o.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width"}var c=a.lineHeight,d=c*Math.round(s),h=n[u]+c,p=l[0];Math.abs(d)>h&&(d=d<0?-1:1,d*=Math.ceil(h/c)*c),s<0&&(d+=""===o.vertical?n.height:n.width,l=l.reverse()),a.move(p,d)}else{var f=a.lineHeight/n.height*100;switch(o.lineAlign){case"center":s-=f/2;break;case"end":s-=f}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}l=["+y","-x","+x","-y"],a=new ci(t)}var m=r(a,l);t.move(m.toCSSCompatValues(n))}function hi(){}li.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},li.prototype.formatStyle=function(e,t){return 0===e?0:e+t},ui.prototype=$n(li.prototype),ui.prototype.constructor=ui,ci.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},ci.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},ci.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},ci.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},ci.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},ci.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},ci.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},ci.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},hi.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},hi.convertCueToDOMTree=function(e,t){return e&&t?ii(e,t):null};var pi=.05,fi="sans-serif",mi="1.5%";hi.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=mi,n.appendChild(i),r(t)){var a=[],o=ci.getSimpleBoxPosition(i),s={font:Math.round(o.height*pi*100)/100+"px "+fi};!function(){for(var n,r,l=0;l<t.length;l++)r=t[l],n=new ui(e,r,s),i.appendChild(n.div),di(e,n,o,a),r.displayState=n.div,a.push(ci.getSimpleBoxPosition(n))}()}else for(var l=0;l<t.length;l++)i.appendChild(t[l].displayState)},hi.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},hi.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof Gn))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function i(e){var n=new Kn;if(Xn(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new Kn;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}function r(e){var n=new Kn;Xn(e,function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",Yn(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function a(e){e.match(/X-TIMESTAMP-MAP/)?Xn(e,function(e,t){"X-TIMESTAMP-MAP"===e&&r(t)},/=/):Xn(e,function(e,t){"Region"===e&&i(t)},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var o;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var s=(o=n()).match(/^WEBVTT([ \t].*)?$/);if(!s||!s[0])throw new Gn(Gn.Errors.BadSignature);t.state="HEADER"}for(var l=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:o=n(),t.state){case"HEADER":/:/.test(o)?a(o):o||(t.state="ID");continue;case"NOTE":o||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){t.state="NOTE";break}if(!o)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===o.indexOf("--\x3e")){t.cue.id=o;continue}case"CUE":try{Qn(o,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var u=-1!==o.indexOf("--\x3e");if(!o||u&&(l=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=o.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":o||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new Gn(Gn.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var gi=hi,vi="auto",yi={"":1,lr:1,rl:1},bi={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function _i(e){return"string"==typeof e&&!!yi[e.toLowerCase()]&&e.toLowerCase()}function Ti(e){return"string"==typeof e&&!!bi[e.toLowerCase()]&&e.toLowerCase()}function wi(e,t,n){this.hasBeenReset=!1;var i="",r=!1,a=e,o=t,s=n,l=null,u="",c=!0,d="auto",h="start",p="auto",f="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(e){i=""+e}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(e){r=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");o=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return s},set:function(e){s=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(e){var t=_i(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&e!==vi)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){var t=Ti(e);t?(h=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");p=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=Ti(e);t?(f=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=Ti(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=t,this.hasBeenReset=!0}}}),this.displayState=void 0}wi.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Si=wi,ki={"":!0,up:!0};function Ei(e){return"string"==typeof e&&!!ki[e.toLowerCase()]&&e.toLowerCase()}function Ci(e){return"number"==typeof e&&e>=0&&e<=100}function xi(){var e=100,t=3,n=0,i=100,r=0,a=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!Ci(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(e){if(!Ci(e))throw new Error("RegionAnchorX must be between 0 and 100.");i=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!Ci(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return a}
475,set:function(e){if(!Ci(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!Ci(e))throw new Error("ViewportAnchorX must be between 0 and 100.");r=e}},scroll:{enumerable:!0,get:function(){return o},set:function(e){var t=Ei(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):o=t}}})}var Pi=xi,Ai=b(function(e){var t=e.exports={WebVTT:gi,VTTCue:Si,VTTRegion:Pi};pn.vttjs=t,pn.WebVTT=t.WebVTT;var n=t.VTTCue,i=t.VTTRegion,r=pn.VTTCue,a=pn.VTTRegion;t.shim=function(){pn.VTTCue=n,pn.VTTRegion=i},t.restore=function(){pn.VTTCue=r,pn.VTTRegion=a},pn.VTTCue||t.shim()});function Li(e,t,n,i,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var o=new zn.text.TrackClass(r);return a.addTrack(o),o}Ai.WebVTT,Ai.VTTCue,Ai.VTTRegion;var Ii=function(e){function t(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(i=e.call(this,null,t,n)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),zn.names.forEach(function(e){var n=zn[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new zn.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}It(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Mt(0,0)},n.bufferedPercent=function(){return Rt(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Fn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;
475(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}})},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Bt(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Mt(0,0):Mt()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Fn.names.forEach(function(t){var n=Fn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})},n.addWebVttScript_=function(){var e=this;if(!window.WebVTT)if(document.body.contains(this.el())){if(!this.options_["vtt.js"]&&x(Ai)&&Object.keys(Ai).length>0)return void this.trigger("vttjsloaded");var t=document.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),window.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},o=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",a)})},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return Li(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=Tt(e,{tech:this});return new jn.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(g.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(i.track)}),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||window.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=bt(e),t.techs_[e]=n,t.techs_[yt(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=bt(e),window&&window.videojs&&window.videojs[e]?(g.warn("The "+e+" tech w
475as added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window.videojs[e]):void 0)},t}(xt);zn.names.forEach(function(e){var t=zn[e];Ii.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Ii.prototype.featuresVolumeControl=!0,Ii.prototype.featuresMuteControl=!0,Ii.prototype.featuresFullscreenResize=!1,Ii.prototype.featuresPlaybackRate=!1,Ii.prototype.featuresProgressEvents=!1,Ii.prototype.featuresSourceset=!1,Ii.prototype.featuresTimeupdateEvents=!1,Ii.prototype.featuresNativeTextTracks=!1,Ii.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(t,n))return i[r];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:g.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},xt.registerComponent("Tech",Ii),Ii.registerTech("Tech",Ii),Ii.defaultTechOrder_=[];var Ni={},Di={},Oi={};function Mi(e,t){Ni[e]=Ni[e]||[],Ni[e].push(t)}function Ri(e,t,n){e.setTimeout(function(){return Yi(t,Ni[t.type],n,e)},1)}function Bi(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}function Ui(e,t,n){return e.reduceRight(Hi(n),t[n]())}function Fi(e,t,n,i){return t[n](e.reduce(Hi(n),i))}function ji(e,t,n,i){void 0===i&&(i=null);var r="call"+bt(n),a=e.reduce(Hi(r),i),o=a===Oi,s=o?null:t[n](a);return Wi(e,n,s,o),s}var zi={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Vi={setCurrentTime:1,setMuted:1,setVolume:1},qi={play:1,pause:1};function Hi(e){return function(t,n){return t===Oi?Oi:n[e]?n[e](t):t}}function Wi(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}function $i(e){Di[e.id()]=null}function Gi(e,t){var n=Di[e.id()],i=null;if(null==n)return i=t(e),Di[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],o=a[0],s=a[1];o===t&&(i=s)}return null===i&&(i=t(e),n.push([t,i])),i}function Yi(e,t,n,i,r,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a=!1);var o=t,s=o[0],l=o.slice(1);if("string"==typeof s)Yi(e,Ni[s],n,i,r,a);else if(s){var u=Gi(i,s);if(!u.setSource)return r.push(u),Yi(e,l,n,i,r,a);u.setSource(E({},e),function(t,o){if(t)return Yi(e,l,n,i,r,a);r.push(u),Yi(o,e.type===o.type?l:Ni[o.type],n,i,r,a)})}else l.length?Yi(e,l,n,i,r,a):a?n(e,r):Yi(e,Ni["*"],n,i,r,!0)}var Ki={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Xi=function(e){void 0===e&&(e="");var t=cn(e);return Ki[t.toLowerCase()]||""},Qi=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var a=i[r];if(a.type&&a.src&&a.src===t)return a.type}return Xi(t)},Ji=function e(t){if(Array.isArray(t)){var n=[];
475t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):C(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[Zi({src:t})]:C(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[Zi(t)]:[];return t};function Zi(e){if(!e.type){var t=Xi(e.src);t&&(e.type=t)}return e}var er=function(e){function t(t,n,i){var r,a=Tt({createEl:!1},n);if(r=e.call(this,t,a,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var o=0,s=n.playerOptions.techOrder;o<s.length;o++){var l=bt(s[o]),u=Ii.getTech(l);if(l||(u=xt.getComponent(l)),u&&u.isSupported()){t.loadTech_(l);break}}return r}return It(t,e),t}(xt);xt.registerComponent("MediaLoader",er);var tr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}It(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=E({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&g.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=E({role:"button"},n),this.tabIndex_=t.tabIndex;var i=re(e,t,n);return i.appendChild(re("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=re("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,ae(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){Ct.isEventKey(t,"Space")||Ct.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(xt);xt.registerComponent("ClickableComponent",tr);var nr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}It(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){return re("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(V||F)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Vt(this.player_.play()):this.player_.pause()}},t}(tr);xt.registerComponent("PosterImage",nr);var ir="#222",rr="#ccc",ar={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
vendor: 4,717 bytes, line 475
475script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function or(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function sr(e,t,n){try{e.style[t]=n}catch(e){return}}var lr=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=function(e){return r.updateDisplay(e)};return t.on("loadstart",function(e){return r.toggleDisplay(e)}),t.on("texttrackchange",a),t.on("loadedmetadata",function(e){return r.preselectTrack(e)}),t.ready(tt(At(r),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",a),t.on("playerresize",a),window.addEventListener("orientationchange",a),t.on("dispose",function(){return window.removeEventListener("orientationchange",a)});for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}})),r}It(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,o=0;o<r.length;o++){var s=r[o];a&&a.enabled&&a.language&&a.language===s.language&&s.kind in i?s.kind===a.kind?n=s:n||(n=s):a&&!a.enabled?(n=null,e=null,t=null):s.default&&("descriptions"!==s.kind||e?s.kind in i&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof window.WebVTT&&window.WebVTT.processCues(window,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var a=null,o=null,s=e.length;s--;){var l=e[s];"showing"===l.mode&&("descriptions"===l.kind?a=l:o=l)}o?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(o)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;i--;){var r=n[i];if(r){var a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&sr(a.firstChild,"color",or(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&sr(a.firstChild,"backgroundColor",or(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?sr(a,"backgroundColor",or(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px "+ir+", 2px 2px 4px "+ir+", 2px 2px 5px "+ir:"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px "+ir+", 2px 2px "+ir+", 3px 3px "+ir:"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px "+rr+", 0 1px "+rr+", -1px -1px "+ir+", 0 -1px "+ir:"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px "+ir+", 0 0 4px "+ir+", 0 0 4px "+ir+", 0 0 4px "+ir)),t.fontPercent&&1!==t.fontPercent){var o=window.parseFloat(a.style.fontSize);a.style.fontSize=o*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=ar[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof window.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],r=0;r<i.activeCues.length;++r)t.push(i.activeCues[r]);window.WebVTT.processCues(window,t,this.el_);for(var a=0;a<e.length;++a){for(var o=e[a],s=0;s<o.activeCues.length;++s){var l=o.activeCues[s].displayState;le(l,"vjs-text-track-cue"),le(l,"vjs-text-track-cue-"+(o.language?o.language:a)),o.language&&fe(l,"lang",o.language)}this.player_.textTrackSettings&&this.updateDisplayState(o)}}},t}(xt);xt.registerComponent("TextTrackDisplay",lr);var ur=function(e){function t(){return e.apply(this,arguments)||this}return It(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"
475Video Player"),i=re("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(xt);xt.registerComponent("LoadingSpinner",ur);var cr=function(e){function t(){return e.apply(this,arguments)||this}It(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var i=re("button",t=E({className:this.buildCSSClass()},t),n=E({type:"button"},n));return i.appendChild(re("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return g.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),xt.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){Ct.isEventKey(t,"Space")||Ct.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(tr);xt.registerComponent("Button",cr);var dr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).mouseused_=!1,i.on("mousedown",function(e){return i.handleMouseDown(e)}),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Vt(t),void(!this.player_.tech(!0)||(V||F)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var a=function(){return r.focus()};zt(t)?t.then(a,function(){}):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(cr);dr.prototype.controlText_="Play Video",xt.registerComponent("BigPlayButton",dr);var hr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){Ct.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(cr);xt.registerComponent("CloseButton",hr);var pr=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",function(e){return i.handlePlay(e)}),i.on(t,"pause",function(e){return i.handlePause(e)}),n.replay&&i.on(t,"ended",function(e){return i.handleEnded(e)}),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Vt(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},t}(cr);pr.prototype.controlText_="Play",xt.registerComponent("PlayToggle",pr);var fr=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),(r=r>0||o>0?r+":":"")+(i=((r||a>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},mr=fr;function gr(e){mr=e}function vr(){mr=fr}function yr(e,t){return void 0===t&&(t=e),mr(e,t)}var br=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["timeupdate","ended"],function(e){return i.updateContent(e)}),i.updateTextNode_(),i}It(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=re("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(i),this.contentEl_=re("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=yr(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,g.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=document.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},n.updateContent=function(e){},t}(xt);br.prototype.labelText_="Time",br.prototype.controlText_="Time",xt.registerComponent("TimeDisplay",br);var _r=function(e){function t(){return e.apply(this,arguments)||this}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(br);_r.prototype.labelText_="Current Time",_r.prototype.controlText_="Current Time",xt.registerComponent("CurrentTimeDisplay",_r);var Tr=function(e){function t(t,n){var i,r=function(e){return i.updateContent(e)};return(i=e.call(this,t,n)||this).on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(br);Tr.prototype.labelText_="Duration",Tr.prototype.controlText_="Duration",xt.registerComponent("DurationDisplay",Tr);var wr=function(e){function t(){return e.apply(this,arguments)||this}return It(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(xt);xt.registerComponent("TimeDivider",wr);var Sr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"durationchange",function(e){return i.updateContent(e)}),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(re("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(br);Sr.prototype.labelText_="Remaining Time",Sr.prototype.controlText_="Remaining Time",xt.registerComponent("RemainingTimeDisplay",Sr);var kr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateShowing(),i.on(i.player(),"durationchange",function(e){return i.updateShowing(e)}),i}It(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=re("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(re("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(document.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(xt);xt.registerComponent("LiveDisplay",kr);var Er=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}It(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=re("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(cr);Er.prototype.controlText_="Seek to live, currently playing live",xt.registerComponent("SeekToLive",Er);var Cr=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},xr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}It(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=E({tabIndex:0},n),i=E({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||j||e.preventDefault(),ge(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ve(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"})),t}},n.getProgress=function(){return Number(Cr(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=_e(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){Ct.isEventKey(t,"Left")||Ct.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):Ct.isEventKey(t,"Right")||Ct.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(xt);xt.registerComponent("Slider",xr);
475var Pr=function(e,t){return Cr(e/t*100,0,100).toFixed(2)+"%"},Ar=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).partEls_=[],i.on(t,"progress",function(e){return i.update(e)}),i}It(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=re("span",{className:"vjs-control-text"}),i=re("span",{textContent:this.localize("Loaded")}),r=document.createTextNode(": ");return this.percentageEl_=re("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,o=Pr(r,i);t.percent_!==o&&(t.el_.style.width=o,ae(t.percentageEl_,o),t.percent_=o);for(var s=0;s<n.length;s++){var l=n.start(s),u=n.end(s),c=a[s];c||(c=t.el_.appendChild(re()),a[s]=c),c.dataset.start===l&&c.dataset.end===u||(c.dataset.start=l,c.dataset.end=u,c.style.left=Pr(l,r),c.style.width=Pr(u-l,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length})},t}(xt);xt.registerComponent("LoadProgressBar",Ar);var Lr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(At(i),i.update),et),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=be(this.el_),r=ye(this.player_.el()),a=e.width*t;if(r&&i){var o=e.left-r.left+a,s=e.width-a+(r.right-e.right),l=i.width/2;o<l?l+=l-o:s<l&&(l=s),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){ae(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var a,o=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var s=r.player_.liveTracker.liveWindow(),l=s-t*s;a=(l<1?"":"-")+yr(l,s)}else a=yr(n,o);r.update(e,t,a),i&&i()})},t}(xt);xt.registerComponent("TimeTooltip",Lr);var Ir=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(At(i),i.update),et),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}},t}(xt);Ir.prototype.options_={children:[]},Y||M||Ir.prototype.options_.children.push("timeTooltip"),xt.registerComponent("PlayProgressBar",Ir);var Nr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(At(i),i.update),et),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,function(){n.el_.style.left=e.width*t+"px"})},t}(xt);Nr.prototype.options_={children:["timeTooltip"]},xt.registerComponent("MouseTimeDisplay",Nr);var Dr=5,Or=12,Mr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).setEventHandlers_(),i}It(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=tt(this,this.update),this.update=nt(this.update_,et),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.on(document,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===document.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,et))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==document.visibilityState){var i=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();
475t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===e&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[yr(e,r),yr(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(ye(n.el()),n.getProgress())}),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Ce(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Ce(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),o=r.liveCurrentTime();if((n=a+i*r.liveWindow())>=o&&(n=o),n<=a&&(n=a+.1),n===1/0)return}else(n=i*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Vt(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+Dr)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-Dr)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(Ct.isEventKey(t,"Space")||Ct.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(Ct.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(Ct.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(Ct(t))){t.preventDefault(),t.stopPropagation();var i=10*(Ct.codes[Ct(t)]-Ct.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else Ct.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-Dr*Or)):Ct.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+Dr*Or)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.off(document,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(xr);Mr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Y||M||Mr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),xt.registerComponent("SeekBar",Mr);var Rr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseMove=nt(tt(At(i),i.handleMouseMove),et),i.throttledHandleMouseSeek=nt(tt(At(i),i.handleMouseSeek),et),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),a=be(r),o=_e(r,e).x;o=Cr(o,0,1),i&&i.update(a,o),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_}
475,n.disable=function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Vt(this.player_.play())}},n.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(xt);Rr.prototype.options_={children:["seekBar"]},xt.registerComponent("ProgressControl",Rr);var Br=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],function(e){return i.handlePictureInPictureChange(e)}),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(e){return i.handlePictureInPictureEnabledChange(e)}),i.disable(),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){document.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(cr);Br.prototype.controlText_="Picture-in-Picture",xt.registerComponent("PictureInPictureToggle",Br);var Ur=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"fullscreenchange",function(e){return i.handleFullscreenChange(e)}),!1===document[t.fsApi_.fullscreenEnabled]&&i.disable(),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(cr);Ur.prototype.controlText_="Fullscreen",xt.registerComponent("FullscreenToggle",Ur);var Fr=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},jr=function(e){function t(){return e.apply(this,arguments)||this}return It(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(xt);xt.registerComponent("VolumeLevel",jr);var zr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(At(i),i.update),et),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=ye(this.el_),a=ye(this.player_.el()),o=e.width*t;if(!a||!r)return;var s=e.left-a.left+o,l=e.width-o+(a.right-e.right),u=r.width/2;s<u?u+=u-s:l<u&&(u=l),u<0?u=0:u>r.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(i+"%")},n.write=function(e){ae(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,n,i.toFixed(0)),r&&r()})},t}(xt);
475xt.registerComponent("VolumeLevelTooltip",zr);var Vr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=nt(tt(At(i),i.update),et),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"})},t}(xt);Vr.prototype.options_={children:["volumeLevelTooltip"]},xt.registerComponent("MouseVolumeLevelDisplay",Vr);var qr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on("slideractive",function(e){return i.updateLastVolume_(e)}),i.on(t,"volumechange",function(e){return i.updateARIAAttributes(e)}),t.ready(function(){return i.updateARIAAttributes()}),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Ce(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=ye(n),r=this.vertical(),a=_e(n,e);a=r?a.y:a.x,a=Cr(a,0,1),t.update(i,a,r)}Ce(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(xr);qr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Y||M||qr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),qr.prototype.playerEvent="volumechange",xt.registerComponent("VolumeBar",qr);var Hr=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||x(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,Fr(At(i),t),i.throttledHandleMouseMove=nt(tt(At(i),i.handleMouseMove),et),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",function(e){return i.handleMouseDown(e)}),i.on("touchstart",function(e){return i.handleMouseDown(e)}),i.on("mousemove",function(e){return i.handleMouseMove(e)}),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}It(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(xt);Hr.prototype.options_={children:["volumeBar"]}
475,xt.registerComponent("VolumeControl",Hr);var Wr=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},$r=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,Wr(At(i),t),i.on(t,["loadstart","volumechange"],function(e){return i.update(e)}),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Y&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)ue(this.el_,"vjs-vol-"+n);le(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(cr);$r.prototype.controlText_="Mute",xt.registerComponent("MuteToggle",$r);var Gr=function(e){function t(t,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||x(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],function(e){return i.volumePanelState_(e)}),i.on(i.muteToggle,"keyup",function(e){return i.handleKeyPress(e)}),i.on(i.volumeControl,"keyup",function(e){return i.handleVolumeControlKeyUp(e)}),i.on("keydown",function(e){return i.handleKeyPress(e)}),i.on("mouseover",function(e){return i.handleMouseOver(e)}),i.on("mouseout",function(e){return i.handleMouseOut(e)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}It(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){Ct.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),Ge(document,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ye(document,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){Ct.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(xt);Gr.prototype.options_={children:["muteToggle","volumeControl"]},xt.registerComponent("VolumePanel",Gr);var Yr=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",function(e){return i.handleKeyDown(e)}),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}It(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof xt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof xt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=re(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ge(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||document.activeElement;if(!this.children().some(function(e){return e.el()===t})){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter(function(t){return t.el()===e.target})[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){Ct.isEventKey(e,"Left")||Ct.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(Ct.isEventKey(e,"Right")||Ct.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(xt);xt.registerComponent("Menu",Yr);var Kr=function(e){function t(t,n){var i;void 0===n&&(n={}),(i=e.call(this,t,n)||this).menuButton_=new cr(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=cr.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var a=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",a),i.on(i.menuButton_,"click",a),i.on(i.menuButton_,"keydown",function(e){return i.handleKeyDown(e)}),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),Ge(document,"keyup",i.handleMenuKeyUp_)}
vendor: 4,744 bytes, line 475
475),i.on("mouseleave",function(e){return i.handleMouseLeave(e)}),i.on("keydown",function(e){return i.handleSubmenuKeyDown(e)}),i}It(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Yr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=re("li",{className:"vjs-menu-title",textContent:bt(this.options_.title),tabIndex:-1}),n=new xt(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+cr.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Ye(document,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){Ct.isEventKey(e,"Esc")||Ct.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),Ct.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(Ct.isEventKey(e,"Up")||Ct.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(Ct.isEventKey(e,"Esc")||Ct.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(Ct.isEventKey(e,"Esc")||Ct.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Ct.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Y&&ne())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(xt);xt.registerComponent("MenuButton",Kr);var Xr=function(e){function t(t,n){var i,r=n.tracks;if((i=e.call(this,t,n)||this).items.length<=1&&i.hide(),!r)return At(i);var a=tt(At(i),i.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),r.addEventListener("labelchange",a),i.player_.on("ready",a),i.player_.on("dispose",function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a),r.removeEventListener("labelchange",a)}),i}return It(t,e),t}(Kr);xt.registerComponent("TrackButton",Xr);var Qr=["Tab","Esc","Up","Down","Right","Left"],Jr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}It(t,e);var n=t.prototype;return n.createEl=function(t,n,i){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",E({className:"vjs-menu-item",tabIndex:-1},n),i);return r.replaceChild(re("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},n.handleKeyDown=function(t){Qr.some(function(e){return Ct.isEventKey(t,e)})||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","fal
475se"),this.controlText(""),this.isSelected_=!1))},t}(tr);xt.registerComponent("MenuItem",Jr);var Zr=function(e){function t(t,n){var i,r=n.track,a=t.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode,(i=e.call(this,t,n)||this).track=r,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var o,s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(At(i),t)},l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply(At(i),t)};return t.on(["loadstart","texttrackchange"],s),a.addEventListener("change",s),a.addEventListener("selectedlanguagechange",l),i.on("dispose",function(){t.off(["loadstart","texttrackchange"],s),a.removeEventListener("change",s),a.removeEventListener("selectedlanguagechange",l)}),void 0===a.onchange&&i.on(["tap","click"],function(){if("object"!=typeof window.Event)try{o=new window.Event("change")}catch(e){}o||(o=document.createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(o)}),i.handleTracksChange(),i}It(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var a=i[r];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Jr);xt.registerComponent("TextTrackMenuItem",Zr);var ea=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}It(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Zr);xt.registerComponent("OffTextTrackMenuItem",ea);var ta=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return It(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Zr),this.label_&&(n=this.label_+" off"),e.push(new ea(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var a=i[r];if(this.kinds_.indexOf(a.kind)>-1){var o=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+a.kind+"-menu-item"),e.push(o)}}return e},t}(Xr);xt.registerComponent("TextTrackButton",ta);var na=function(e){function t(t,n){var i,r=n.track,a=n.cue,o=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=o&&o<a.endTime,(i=e.call(this,t,n)||this).track=r,i.cue=a,r.addEventListener("cuechange",tt(At(i),i.update)),i}It(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Jr);xt.registerComponent("ChaptersTrackMenuItem",na);var ia=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChapter
vendor: 5,091 bytes, line 475
475sTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(bt(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],a=new na(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(ta);ia.prototype.kind_="chapters",ia.prototype.controlText_="Chapters",xt.registerComponent("ChaptersButton",ia);var ra=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=t.textTracks(),o=tt(At(r),r.handleTracksChange);return a.addEventListener("change",o),r.on("dispose",function(){a.removeEventListener("change",o)}),r}It(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ta);ra.prototype.kind_="descriptions",ra.prototype.controlText_="Descriptions",xt.registerComponent("DescriptionsButton",ra);var aa=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ta);aa.prototype.kind_="subtitles",aa.prototype.controlText_="Subtitles",xt.registerComponent("SubtitlesButton",aa);var oa=function(e){function t(t,n){var i;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return It(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Zr);xt.registerComponent("CaptionSettingsMenuItem",oa);var sa=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new oa(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(ta);sa.prototype.kind_="captions",sa.prototype.controlText_="Captions",xt.registerComponent("CaptionsButton",sa);var la=function(e){function t(){return e.apply(this,arguments)||this}return It(t,e),t.prototype.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(re("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(re("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}(Zr);xt.registerComponent("SubsCapsMenuItem",la);var ua=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(bt(i.label_)),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new oa(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,la)},t}(ta);ua.prototype.kinds_=["captions","subtitles"],ua.prototype.controlText_="Subtitles",xt.registerComponent("SubsCapsButton",ua);var ca=function(e){function t(t,n){var i,r=n.track,a=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=e.call(this,t,n)||this).track=r,
475i.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(At(i),t)};return a.addEventListener("change",o),i.on("dispose",function(){a.removeEventListener("change",o)}),i}It(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(re("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(re("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Jr);xt.registerComponent("AudioTrackMenuItem",ca);var da=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new ca(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Xr);da.prototype.controlText_="Audio Track",xt.registerComponent("AudioTrackButton",da);var ha=function(e){function t(t,n){var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=e.call(this,t,n)||this).label=r,i.rate=a,i.on(t,"ratechange",function(e){return i.update(e)}),i}It(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Jr);ha.prototype.contentElType="button",xt.registerComponent("PlaybackRateMenuItem",ha);var pa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",function(e){return i.updateVisibility(e)}),i.on(t,"ratechange",function(e){return i.updateLabel(e)}),i.on(t,"playbackrateschange",function(e){return i.handlePlaybackRateschange(e)}),i}It(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=re("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new ha(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),i=(n.indexOf(t)+1)%n.length;this.player().playbackRate(n[i])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(Kr);pa.prototype.controlText_="Playback Rate",xt.registerComponent("PlaybackRateMenuButton",pa);var fa=function(e){function t(){return e.apply(this,arguments)||this}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(xt);xt.registerComponent("Spacer",fa);var ma=function(e){function t(){return e.apply(this,arguments)||this}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(fa);xt.registerComponent("CustomControlSpacer",ma);var ga=function(e){function t(){return e.apply(this,arguments)||this}return It(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(xt);ga.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in document&&ga.prototype.options_.children.splice(ga.prototype.options_.children.length-1,0,"pictureInPictureToggle"),xt.registerComponent("ControlBar",ga);var va=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"error",function(e){return i.open(e)}),i}It(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}($t);va.prototype.options_=_({}
vendor: 4,132 bytes, line 475
475,$t.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),xt.registerComponent("ErrorDisplay",va);var ya="vjs-text-track-settings",ba=["#000","Black"],_a=["#00F","Blue"],Ta=["#0FF","Cyan"],wa=["#0F0","Green"],Sa=["#F0F","Magenta"],ka=["#F00","Red"],Ea=["#FFF","White"],Ca=["#FF0","Yellow"],xa=["1","Opaque"],Pa=["0.5","Semi-Transparent"],Aa=["0","Transparent"],La={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ba,Ea,ka,wa,_a,Ca,Sa,Ta]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[xa,Pa,Aa]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ea,ba,ka,wa,_a,Ca,Sa,Ta]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[xa,Pa]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Aa,Pa,xa]}};function Ia(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function Na(e,t){return Ia(e.options[e.options.selectedIndex].value,t)}function Da(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(Ia(e.options[i].value,n)===t){e.selectedIndex=i;break}}La.windowColor.options=La.backgroundColor.options;var Oa=function(e){function t(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=i.updateDisplay.bind(At(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=re("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),S(La,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}It(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=La[e],a=r.id.replace("%s",this.id_),o=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+o+'">'].concat(r.options.map(function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+t+'">',i.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">
475',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return re("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return re("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return re("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e=this;return k(La,function(t,n,i){var r=Na(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t},{})},n.setValues=function(e){var t=this;S(La,function(n,i){Da(t.$(n.selector),e[i],n.parser)})},n.setDefaults=function(){var e=this;S(La,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},n.restoreSettings=function(){var e;try{e=JSON.parse(window.localStorage.getItem(ya))}catch(e){g.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?window.localStorage.setItem(ya,JSON.stringify(e)):window.localStorage.removeItem(ya)}catch(e){g.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}($t);xt.registerComponent("TextTrackSettings",Oa);var Ma=function(e){function t(t,n){var i,r=n.ResizeObserver||window.ResizeObserver;null===n.ResizeObserver&&(r=!1);var a=Tt({createEl:!r,reportTouchActivity:!1},n);return(i=e.call(this,t,a)||this).ResizeObserver=n.ResizeObserver||window.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=it(function(){i.resizeHandler()},100,!1,At(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(t.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){Ye(this,"resize",e),Ye(this,"unload",t),t=null};Ge(i.el_.contentWindow,"unload",t),Ge(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}It(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(xt);xt.registerComponent("ResizeManager",Ma);var Ra={trackingThreshold:20,liveTolerance:15},Ba=function(e){function t(t,n){var i,r=Tt(Ra,n,{createEl:!1});return(i=e.call(this,t,r)||this).handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",function(e){return i.handleDurationchange(e)}
475),i.on(i.player_,"canplay",function(){return i.toggleTracking()}),V&&"hidden"in document&&"visibilityState"in document&&i.on(document,"visibilitychange",i.handleVisibilityChange_),i}It(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(document.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(window.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,et),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(document,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(xt);xt.registerComponent("LiveTracker",Ba);var Ua,Fa=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var o=n[a].src;o&&-1===i.indexOf(o)&&i.push(o)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},ja=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=document.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=document.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",window.Element.prototype.appendChild.call(this,n),this.innerHTML}}),za=function(e,t){for(var n={},i=0;i<e.length&&!((n=Object.getOwnPropertyDescriptor(e[i],t))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},Va=function(e){return za([e.el(),window.HTMLMediaElement.prototype,window.Element.prototype,ja],"innerHTML")}
475,qa=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=Va(e),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var o=n.apply(t,r);return Fa(e),o}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))}),Object.defineProperty(t,"innerHTML",Tt(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},Ha=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?un(window.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return window.Element.prototype.setAttribute.call(this,"src",e),e}}),Wa=function(e){return za([e.el(),window.HTMLMediaElement.prototype,Ha],"src")},$a=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=Wa(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",Tt(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var a=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=r.call(t);return Fa(e)||(e.triggerSourceset(""),qa(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Fa(e)||qa(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Ga=function(e,t,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return i&&(a.set=r),Object.defineProperty(e,t,a)},Ya=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=t.source,a=!1;if(r&&(i.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var o=i.el_.childNodes,s=o.length,l=[];s--;){var u=o[s];"track"===u.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(u),i.remoteTextTracks().addTrack(u.track),i.textTracks().addTrack(u.track),a||i.el_.hasAttribute("crossorigin")||!dn(u.src)||(a=!0)):l.push(u))}for(var c=0;c<l.length;c++)i.el_.removeChild(l[c])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&g.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(W||G||B)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}It(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
475poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){$a(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var i=function n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)})},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Fn[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var a={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===e&&t[jn.remoteText.getterName]().trigger(i)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},o=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,a=0;a<i.length;a++)if(i[a]===r[t]){n=!0;break}n||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach(function(e){var n=a[e];i.addEventListener(e,n),t.on("dispose",function(t){return i.removeEventListener(e,n)})}),this.on("loadstart",o),this.on("dispose",function(e){return t.off("loadstart",o)})}},n.proxyNativeTracks_=function(){var e=this;Fn.names.forEach(function(t){e.proxyNativeTracksForType_(t)})},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=document.createElement("video");var i=Tt({},this.options_.tag&&he(this.options_.tag));W&&!0===this.options_.nativeControlsForTouch||delete i.controls,de(e,E(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&fe(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],a=0;a<r.length;a++){var o=r[a],s=this.options_[o];void 0!==s&&(s?fe(e,o,o):me(e,o),e[o]=s)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&K?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){g(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&M&&j&&0===this.el_.currentTime){var t=function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=window.navigator&&window.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Vt(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=document.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),window.performance&&"function"==typeof window.performance.now?e.creationTime=window.performance.now():window.performance&&window.performance.timing&&"number"==typeof window.performance.timing.navigationStart&&(e.creationTime=window.Date.now()-window.performance.timing.navigationStart),e},t}(Ii);Ga(Ya,"TEST_VID",function(){if(ee()){var e=document.createElement("video"),t=document.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),Ya.isSupported=function(){try{Ya.TEST_VID.volume=.5}catch(e){return!1}
475return!(!Ya.TEST_VID||!Ya.TEST_VID.canPlayType)},Ya.canPlayType=function(e){return Ya.TEST_VID.canPlayType(e)},Ya.canPlaySource=function(e,t){return Ya.canPlayType(e.type)},Ya.canControlVolume=function(){try{var e=Ya.TEST_VID.volume;Ya.TEST_VID.volume=e/2+.1;var t=e!==Ya.TEST_VID.volume;return t&&Y?(window.setTimeout(function(){Ya&&Ya.prototype&&(Ya.prototype.featuresVolumeControl=e!==Ya.TEST_VID.volume)}),!1):t}catch(e){return!1}},Ya.canMuteVolume=function(){try{var e=Ya.TEST_VID.muted;return Ya.TEST_VID.muted=!e,Ya.TEST_VID.muted?fe(Ya.TEST_VID,"muted","muted"):me(Ya.TEST_VID,"muted","muted"),e!==Ya.TEST_VID.muted}catch(e){return!1}},Ya.canControlPlaybackRate=function(){if(M&&j&&z<58)return!1;try{var e=Ya.TEST_VID.playbackRate;return Ya.TEST_VID.playbackRate=e/2+.1,e!==Ya.TEST_VID.playbackRate}catch(e){return!1}},Ya.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(document.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(document.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(document.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(document.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Ya.supportsNativeTextTracks=function(){return K||Y&&j},Ya.supportsNativeVideoTracks=function(){return!(!Ya.TEST_VID||!Ya.TEST_VID.videoTracks)},Ya.supportsNativeAudioTracks=function(){return!(!Ya.TEST_VID||!Ya.TEST_VID.audioTracks)},Ya.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],n=e[1];Ga(Ya.prototype,t,function(){return Ya[n]()},!0)}),Ya.prototype.featuresVolumeControl=Ya.canControlVolume(),Ya.prototype.movingMediaElementInDOM=!Y,Ya.prototype.featuresFullscreenResize=!0,Ya.prototype.featuresProgressEvents=!0,Ya.prototype.featuresTimeupdateEvents=!0,Ya.patchCanPlayType=function(){R>=4&&!U&&!j&&(Ua=Ya.TEST_VID&&Ya.TEST_VID.constructor.prototype.canPlayType,Ya.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Ua.call(this,e)})},Ya.unpatchCanPlayType=function(){var e=Ya.TEST_VID.constructor.prototype.canPlayType;return Ua&&(Ya.TEST_VID.constructor.prototype.canPlayType=Ua),e},Ya.patchCanPlayType(),Ya.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Ya.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Ya.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Ya.prototype["set"+bt(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Ya.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){Ya.prototype["set"+bt(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Ya.prototype[e]=function(){return this.el_[e]()}}),Ii.withSourceHandlers(Ya),Ya.nativeSourceHandler={},Ya.nativeSourceHandler.canPlayType=function(e){try{return Ya.TEST_VID.canPlayType(e)}catch(e){return""}},Ya.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Ya.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=cn(e.src);return Ya.nativeSourceHandler.canPlayType("video/"+n)}return""},Ya.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Ya.nativeSourceHandler.dispose=function(){},Ya.registerSourceHandler(Ya.nativeSourceHandler),Ii.registerTech("Html5",Ya);var Ka=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Xa={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Qa=["tiny","xsmall","small","medium","large","xlarge","huge"],Ja={};
vendor: 4,464 bytes, line 475
475Qa.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Ja[e]="vjs-layout-"+t});var Za={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},eo=function(e){function n(i,r,a){var o;if(i.id=i.id||r.id||"vjs_video_"+Fe(),(r=E(n.getTagSettings(i),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof i.closest){var s=i.closest("[lang]");s&&s.getAttribute&&(r.language=s.getAttribute("lang"))}else for(var u=i;u&&1===u.nodeType;){if(he(u).hasOwnProperty("lang")){r.language=u.getAttribute("lang");break}u=u.parentNode}if((o=e.call(this,null,r,a)||this).boundDocumentFullscreenChange_=function(e){return o.documentFullscreenChange_(e)},o.boundFullWindowOnEscKey_=function(e){return o.fullWindowOnEscKey(e)},o.boundUpdateStyleEl_=function(e){return o.updateStyleEl_(e)},o.boundApplyInitTime_=function(e){return o.applyInitTime_(e)},o.boundUpdateCurrentBreakpoint_=function(e){return o.updateCurrentBreakpoint_(e)},o.boundHandleTechClick_=function(e){return o.handleTechClick_(e)},o.boundHandleTechDoubleClick_=function(e){return o.handleTechDoubleClick_(e)},o.boundHandleTechTouchStart_=function(e){return o.handleTechTouchStart_(e)},o.boundHandleTechTouchMove_=function(e){return o.handleTechTouchMove_(e)},o.boundHandleTechTouchEnd_=function(e){return o.handleTechTouchEnd_(e)},o.boundHandleTechTap_=function(e){return o.handleTechTap_(e)},o.isFullscreen_=!1,o.log=v(o.id_),o.fsApi_=l,o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,o.debugEnabled_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=i,o.tagAttributes=i&&he(i),o.language(o.options_.language),r.languages){var c={};Object.getOwnPropertyNames(r.languages).forEach(function(e){c[e.toLowerCase()]=r.languages[e]}),o.languages_=c}else o.languages_=n.prototype.options_.languages;o.resetCache_(),o.poster_=r.poster||"",o.controls_=!!r.controls,i.controls=!1,i.removeAttribute("controls"),o.changingSrc_=!1,o.playCallbacks_=[],o.playTerminatedQueue_=[],i.hasAttribute("autoplay")?o.autoplay(!0):o.autoplay(o.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach(function(e){if("function"!=typeof o[e])throw new Error('plugin "'+e+'" does not exist')}),o.scrubbing_=!1,o.el_=o.createEl(),mt(At(o),{eventBusKey:"el_"}),o.fsApi_.requestFullscreen&&(Ge(document,o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_),o.on(o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_)),o.fluid_&&o.on(["playerreset","resize"],o.boundUpdateStyleEl_);var d=Tt(o.options_);r.plugins&&Object.keys(r.plugins).forEach(function(e){o[e](r.plugins[e])}),r.debug&&o.debug(!0),o.options_.playerOptions=d,o.middleware_=[],o.playbackRates(r.playbackRates),o.initChildren(),o.isAudio("audio"===i.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),W&&o.addClass("vjs-touch-enabled"),Y||o.addClass("vjs-workinghover"),n.players[o.id_]=At(o);var h=t.split(".")[0];return o.addClass("vjs-v"+h),o.userActive(!0),o.reportUserActivity(),o.one("play",function(e){return o.listenForUserActivity_(e)}),o.on("stageclick",function(e){return o.handleStageClick_(e)}),o.on("keydown",function(e){return o.handleKeyDown(e)}),o.on("languagechange",function(e){return o.handleLanguagechange(e)}),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o}It(n,e);var i=n.prototype;return i.dispose=function(){var t=this;this.trigger("dispose"),this.off("dispose"),Ye(document,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ye(document,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),n.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),$i(this),zn.names.forEac
475h(function(e){var n=zn[e],i=t[n.getterName]();i&&i.off&&i.off()}),e.prototype.dispose.call(this)},i.createEl=function(){var t,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=n.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var a=he(n);if(r){for(t=this.el_=n,n=this.tag=document.createElement("video");t.children.length;)n.appendChild(t.firstChild);se(t,"video-js")||le(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{n[e]=t[e]}catch(e){}})}if(n.setAttribute("tabindex","-1"),a.tabindex="-1",(V||j&&H)&&(n.setAttribute("role","application"),a.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(e){r&&"class"===e||t.setAttribute(e,a[e]),r&&n.setAttribute(e,a[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==window.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Re("vjs-styles-dimensions");var o=Pe(".vjs-styles-defaults"),s=Pe("head");s.insertBefore(this.styleEl_,o?o.nextSibling:s.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=n.getElementsByTagName("a"),u=0;u<l.length;u++){var c=l.item(u);le(c,"vjs-hidden"),c.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),oe(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t},i.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):g.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},i.width=function(e){return this.dimension("width",e)},i.height=function(e){return this.dimension("height",e)},i.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?g.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},i.fluid=function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,ot(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),st(this,function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()},i.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},i.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},i.updateStyleEl_=function(){if(!0!==window.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Be(this.styleEl_,"\n      ."+n+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*r+"%;\n      }\n    ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,o="number"==typeof this.height_?this.height_:this.options_.height,s=this.tech_&&this.tech_.el();s&&(a>=0&&(s.width=a),o>=0&&(s.height=o))}},i.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=bt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Ii.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var o={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};
475zn.names.forEach(function(e){var t=zn[e];o[t.getterName]=n[t.privateName]}),E(o,this.options_[i]),E(o,this.options_[r]),E(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var s=Ii.getTech(e);if(!s)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new s(o),this.tech_.ready(tt(this,this.handleTechReady_),!0),Ht.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Ka.forEach(function(e){n.on(n.tech_,e,function(t){return n["handleTech"+bt(e)+"_"](t)})}),Object.keys(Xa).forEach(function(e){n.on(n.tech_,e,function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Xa[e]+"_"].bind(n),event:t}):n["handleTech"+Xa[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return n.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return n.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return n.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return n.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return n.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return n.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return n.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return n.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return n.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return n.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return n.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return n.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return n.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return n.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return n.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return n.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return n.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||oe(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},i.unloadTech_=function(){var e=this;zn.names.forEach(function(t){var n=zn[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=Ht.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},i.tech=function(e){return void 0===e&&g.warn("Using the tech directly can be dangerous. I hope you know 
475what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},i.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},i.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},i.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},i.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},i.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(zt(i))return i.catch(function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():zt(n=this.play())&&(n=n.catch(i)),zt(n))return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){t.trigger({type:"autoplay-failure",autoplay:e})})}},i.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=Qi(this,t)),this.cache_.source=Tt({},e,{src:t,type:n});for(var i=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],a=this.$$("source"),o=[],s=0;s<a.length;s++){var l=he(a[s]);r.push(l),l.src&&l.src===t&&o.push(l.src)}o.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},i.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},i.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},i.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},i.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},i.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime(),n=function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))};this.on("timeupdate",n)},i.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},i.handleTechFirstPlay_=function(){this.options_.starttime&&(g.warn("Passing the `starttime` option to the player will be deprecated 
475in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},i.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Vt(this.play()):this.pause()))},i.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},i.handleTechTap_=function(){this.userActive(!this.userActive())},i.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},i.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},i.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},i.handleStageClick_=function(){this.reportUserActivity()},i.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=document[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},i.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){n.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))},i.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},i.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},i.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},i.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},i.handleTechError_=function(){var e=this.tech_.error();this.error(e)},i.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},i.getCache=function(){return this.cache_},i.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},i.techCall_=function(e,t){this.ready(function(){if(e in Vi)return Fi(this.middleware_,this.tech_,e,t);if(e in qi)return ji(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw g(e),e}},!0)},i.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in zi)return Ui(this.middleware_,this.tech_,e);if(e in qi)return ji(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw g("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw g("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw g(t),t}}},i.play=function(){var e=this,t=this.options_.Promise||window.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},i.play_=function(e){var t=this;void 0===e&&(e=Vt),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!K&&!Y||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},i.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},i.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},i.pause=function(){this.techCall_("pause")},i.paused=function(){return!1!==this.techGet_("paused")},i.played=function(){return this.techGet_("played")||Mt(0,0)},i.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},i.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},i.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},i.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},i.remainingTime=function(){return this.duration()-this.currentTime()},i.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},i.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Mt(0,0)),e},i.bufferedPercent=function(){return Rt(this.buffered(),this.duration())},i.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},i.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},i.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},i.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},i.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},i.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},i.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},i.requestFullscreen=function(e){var t=this.options_.Promise||window.Promise;if(t){var n=this;return new t(function(t,i){function r(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){r(),t()}function o(e,t){r(),i(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);var s=n.requestFullscreenHelper_(e);s&&(s.then(r,r),s.then(t,i))})}return this.requestFullscreenHelper_()},i.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then(function(){return n.isFullscreen(!0)},function(){return n.isFullscreen(!1)}),i}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},i.exitFullscreen=function(){var e=this.options_.Promise||window.Promise;if(e){var t=this;return new e(function(e,n){function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){i(),e()}function a(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var o=t.exitFullscreenHelper_();o&&(o.then(i,i),o.then(e,n))})}return this.exitFullscreenHelper_()},i.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=document[this.fsApi_.exitFullscreen]();return t&&Vt(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},i.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,Ge(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow="hidden",le(document.body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(e){Ct.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},i.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ye(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow=this.docOrigOverflow,ue(document.body,"vjs-full-window"),this.trigger("exitFullWindow")},i.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},i.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},i.requestPictureInPicture=function(){if("pictureInPictureEnabled"in document&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},i.exitPictureInPicture=function(){if("pictureInPictureEnabled"in document)return document.exitPictureInPicture()},i.handleKeyDown=function(e){var t,n,i=this.options_.userActions;i&&i.hotkeys&&(t=this.el_.ownerDocument.activeElement,n=t.tagName.toLowerCase(),t.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(n))||("function"==typeof i.hotkeys?i.hotkeys.call(this,e):this.handleHotkeys(e)))},i.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return Ct.isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return Ct.isEventKey(e,"m")}:r,o=t.playPauseKey,s=void 0===o?function(e){return Ct.isEventKey(e,"k")||Ct.isEventKey(e,"Space")}:o;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var l=xt.getComponent("FullscreenToggle");!1!==document[this.fsApi_.fullscreenEnabled]&&l.prototype.handleClick.call(this,e)}else a.call(this,e)?(e.preventDefault(),e.stopPropagation(),xt.getComponent("MuteToggle").prototype.handleClick.call(this,e)):s.call(this,e)&&(e.preventDefault(),e.stopPropagation(),xt.getComponent("PlayToggle").prototype.handleClick.call(this,e))},i.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=Ii.getTech(r);if(a||(a=xt.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else g.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},i.selectSource=function(e){var t=this,n=this.options_.techOrder.map(function(e){return[e,Ii.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(g.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(e,t,n){var i;return e.some(function(e){return t.some(function(t){if(i=n(e,t))return!0})}),i},r=function(e){return function(t,n){return e(n,t)}},a=function(e,n){var i=e[0];if(e[1].canPlaySource(n,t.options_[i.toLowerCase()]))return{source:n,tech:i}};return(this.options_.sourceOrder?i(e,n,r(a)):i(n,e,a))||!1},i.handleSrc_=function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=Ji(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Ri(this,i[0],function(e,r){if(n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e),n.src_(e))return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void n.triggerReady());Bi(r,n.tech_)}),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},a=function(){n.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",a)}}}else this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},i.src=function(e){return this.handleSrc_(e,!1)},i.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(_t(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready(function(){t.changingSrc_=!1}),!1))},i.load=function(){this.techCall_("load")},i.reset=function(){var e=this,t=this.options_.Promise||window.Promise;this.paused()||!t?this.doReset_():Vt(this.play().then(function(){return e.doReset_()}))},i.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),ot(this)&&this.trigger("playerreset")},i.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},i.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},i.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},i.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},i.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},i.currentSource=function(){return this.cache_.source||{}},i.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},i.currentType=function(){return this.currentSource()&&this.currentSource().type||""},i.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},i.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},i.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},i.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},i.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},i.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},i.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
475sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},i.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},i.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(r("beforeerror").forEach(function(n){var i=n(t,e);C(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",function(){this.off(["click","touchstart"],n)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Bt(e),this.addClass("vjs-error"),g.error("(CODE:"+this.error_.code+" "+Bt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),r("error").forEach(function(e){return e(t,t.error_)})},i.reportUserActivity=function(e){this.userActivity_=!0},i.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},i.listenForUserActivity_=function(){var e,t,n,i=tt(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())},a=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},o=function(t){i(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",o),this.on("mouseleave",o);var s,l=this.getChild("controlBar");!l||Y||M||(l.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",i),this.on("keyup",i),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var e=this.options_.inactivityTimeout;e<=0||(s=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},i.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},i.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},i.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},i.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},i.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},i.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},i.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},i.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},i.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},i.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),ot(this)&&this.trigger("languagechange"))},i.languages=function(){return Tt(n.prototype.options_.languages,this.languages_)},i.toJSON=function(){var e=Tt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];(i=Tt(i)).player=void 0,e.tracks[n]=i}return e},i.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var i=new $t(this,t);return this.addChild(i),i.on("dispose",function(){n.removeChild(i)}),i.open(),i},i.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Qa.length;n++){var i=Qa[n];
475if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(Ja[e]),this.addClass(Ja[i]),this.breakpoint_=i;break}}},i.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},i.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=E({},Za,e),this.updateCurrentBreakpoint_()),E(this.breakpoints_)},i.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},i.currentBreakpoint=function(){return this.breakpoint_},i.currentBreakpointClass=function(){return Ja[this.breakpoint_]||""},i.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=Tt(e);var i=this.cache_.media,r=i.artwork,a=i.poster,o=i.src,s=i.textTracks;!r&&a&&(this.cache_.media.artwork=[{src:a,type:Xi(a)}]),o&&this.src(o),a&&this.poster(a),Array.isArray(s)&&s.forEach(function(e){return n.addRemoteTextTrack(e,!1)}),this.ready(t)}},i.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Xi(t.poster)}]),t}return Tt(this.cache_.media)},n.getTagSettings=function(e){var t={sources:[],tracks:[]},n=he(e),i=n["data-setup"];if(se(e,"vjs-fill")&&(n.fill=!0),se(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=Ft(i||"{}"),a=r[0],o=r[1];a&&g.error(a),E(n,o)}if(E(t,n),e.hasChildNodes())for(var s=e.childNodes,l=0,u=s.length;l<u;l++){var c=s[l],d=c.nodeName.toLowerCase();"source"===d?t.sources.push(he(c)):"track"===d&&t.tracks.push(he(c))}return t},i.flexNotSupported_=function(){var e=document.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},i.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},i.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},n}(xt);zn.names.forEach(function(e){var t=zn[e];eo.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),eo.prototype.crossorigin=eo.prototype.crossOrigin,eo.players={};var to=window.navigator;eo.prototype.options_={techOrder:Ii.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:to&&(to.languages&&to.languages[0]||to.userLanguage||to.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){eo.prototype[e]=function(){return this.techGet_(e)}}),Ka.forEach(function(e){eo.prototype["handleTech"+bt(e)+"_"]=function(){return this.trigger(e)}}),xt.registerComponent("Player",eo);var no=b(function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,i)}e.exports=t});function io(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}var ro=io,ao=b(function(e){function t(n,i,r){return ro()?e.exports=t=Reflect.construct:e.exports=t=function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&no(r,n.prototype),r},t.apply(null,arguments)}
475e.exports=t}),oo="plugin",so="activePlugins_",lo={},uo=function(e){return lo.hasOwnProperty(e)},co=function(e){return uo(e)?lo[e]:void 0},ho=function(e,t){e[so]=e[so]||{},e[so][t]=!0},po=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},fo=function(e,t){var n=function(){po(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return ho(this,e),po(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n},mo=function(e,t){return t.prototype.name=e,function(){po(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=ao(t,[this].concat(i));return this[e]=function(){return a},po(this,a.getEventHash()),a}},go=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),mt(this),delete this.trigger,vt(this,this.constructor.defaultState),ho(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),Ke(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[so][e]=!1,this.player=this.state=null,t[e]=mo(e,lo[e])},e.isBasic=function(t){var n="string"==typeof t?co(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(uo(t))g.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(eo.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return lo[t]=n,t!==oo&&(e.isBasic(n)?eo.prototype[t]=fo(t,n):eo.prototype[t]=mo(t,n)),n},e.deregisterPlugin=function(e){if(e===oo)throw new Error("Cannot de-register base plugin.");uo(e)&&(delete lo[e],delete eo.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(lo)),e.forEach(function(e){var n=co(e);n&&((t=t||{})[e]=n)}),t},e.getPluginVersion=function(e){var t=co(e);return t&&t.VERSION||""},e}();function vo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&no(e,t)}go.getPlugin=co,go.BASE_PLUGIN_NAME=oo,go.registerPlugin(oo,go),eo.prototype.usingPlugin=function(e){return!!this[so]&&!0===this[so][e]},eo.prototype.hasPlugin=function(e){return!!uo(e)};var yo=vo,bo=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},i={};for(var r in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"==typeof t&&(n=t),yo(n,e),e&&(n.super_=e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},_o=function(e){return 0===e.indexOf("#")?e.slice(1):e};function To(e,t,n){var i=To.getPlayer(e);if(i)return t&&g.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var a="string"==typeof e?Pe("#"+_o(e)):e;if(!te(a))throw new TypeError("The element or ID supplied is not valid. (videojs)");a.ownerDocument.defaultView&&a.ownerDocument.body.contains(a)||g.warn("The element supplied is not included in the DOM"),t=t||{},r("beforesetup").forEach(function(e){var n=e(a,Tt(t));C(n)&&!Array.isArray(n)?t=Tt(t,n):g.error("please return an object in beforesetup hooks")});var o=xt.getComponent("Player");return i=new o(a,t,n),r("setup").forEach(function(e){return e(i)}),i}if(To.hooks_=i,To.hooks=r,To.hook=a,To.hookOnce=s,To.removeHook=o,!0!==window.VIDEOJS_NO_DYNAMIC_STYLE&&ee()){var wo=Pe(".vjs-styles-defaults");if(!wo){wo=Re("vjs-styles-defaults");var So=Pe("head");So&&So.insertBefore(wo,So.firstChild),Be(wo,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}De(1,To),To.VERSION=t,To.options=eo.prototype.options_,To.getPlayers=function(){return eo.players},To.getPlayer=function(e){var t,n=eo.players;if("string"==typeof e){var i=_o(e),r=n[i];if(r)return r;t=Pe("#"+i)}else t=e;if(te(t)){var a=t,o=a.player,s=a.playerId;if(o||n[s])return o||n[s]}},To.getAllPlayers=function(){return Object.keys(eo.players).map(function(e){return eo.players[e]}
vendor: 1,532 bytes, line 475
475).filter(Boolean)},To.players=eo.players,To.getComponent=xt.getComponent,To.registerComponent=function(e,t){Ii.isTech(t)&&g.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),xt.registerComponent.call(xt,e,t)},To.getTech=Ii.getTech,To.registerTech=Ii.registerTech,To.use=Mi,Object.defineProperty(To,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(To.middleware,"TERMINATOR",{value:Oi,writeable:!1,enumerable:!0}),To.browser=X,To.TOUCH_ENABLED=W,To.extend=bo,To.mergeOptions=Tt,To.bind=tt,To.registerPlugin=go.registerPlugin,To.deregisterPlugin=go.deregisterPlugin,To.plugin=function(e,t){return g.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),go.registerPlugin(e,t)},To.getPlugins=go.getPlugins,To.getPlugin=go.getPlugin,To.getPluginVersion=go.getPluginVersion,To.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),To.options.languages=Tt(To.options.languages,((n={})[e]=t,n)),To.options.languages[e]},To.log=g,To.createLogger=v,To.createTimeRange=To.createTimeRanges=Mt,To.formatTime=yr,To.setFormatTime=gr,To.resetFormatTime=vr,To.parseUrl=ln,To.isCrossOrigin=dn,To.EventTarget=rt,To.on=Ge,To.one=Xe,To.off=Ye,To.trigger=Ke,To.xhr=_n,To.TextTrack=In,To.AudioTrack=Nn,To.VideoTrack=Dn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){To[e]=function(){return g.w
475arn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Le[e].apply(null,arguments)}}),To.computedStyle=P,To.dom=Le,To.url=hn,To.defineLazyProperty=Ga,To.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var ko=b(function(e,t){var n,i,r,a,o;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,i=/^([^\/?#]*)([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=o.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=o.normalizePath(r.path),o.buildURLFromParts(r)}var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):t;var s=o.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=i.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var c=s.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=o.normalizePath(d)}else u.path=s.path,a.params||(u.params=s.params,a.query||(u.query=s.query));return null===u.path&&(u.path=n.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(r,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=o}),Eo="http://example.com",Co=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=window.location&&window.location.href||"");var n="function"==typeof window.URL,i=/^\/\//.test(e),r=!window.location&&!/\/\//i.test(e);if(n?e=new window.URL(e,window.location||Eo):/\/\//i.test(e)||(e=ko.buildAbsoluteURL(window.location&&window.location.href||"",e)),n){var a=new URL(t,e);return r?a.href.slice(Eo.length):i?a.href.slice(a.protocol.length):a.href}return ko.buildAbsoluteURL(e,t)},xo=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),Po=function(e){return window.atob?window.atob(e):Buffer.from(e,"base64").toString("binary")};function Ao(e){for(var t=Po(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}var Lo=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return It(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(xo),Io=String.fromCharCode(9),No=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},Do=function(){return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')},Oo=function(e){for(var t,n=e.split(Do()),i={},r=n.length;r--;)""!==n[r]&&((t=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},Mo=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}It(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(function(t,n){var i=n(e);return i===e?t:t.concat([i])}
475,[e]).forEach(function(e){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))i.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void i.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void i.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return n=_(No(t[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var a=Oo(t[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=No(a.BYTERANGE))}i.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=Oo(t[1]),n.attributes.RESOLUTION){var o=n.attributes.RESOLUTION.split("x"),s={};o[0]&&(s.width=parseInt(o[0],10)),o[1]&&(s.height=parseInt(o[1],10)),n.attributes.RESOLUTION=s}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=Oo(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))i.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=Oo(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=Oo(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"skip"}).attributes=Oo(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(Io)),void i.trigger("data",n);
475if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part"}).attributes=Oo(t[1]),["DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=No(n.attributes.BYTERANGE)),void i.trigger("data",n);if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"server-control"}).attributes=Oo(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),void i.trigger("data",n);if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part-inf"}).attributes=Oo(t[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),void i.trigger("data",n);if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"preload-hint"}).attributes=Oo(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}}),void i.trigger("data",n);if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"rendition-report"}).attributes=Oo(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),void i.trigger("data",n);i.trigger("data",{type:"tag",data:e.slice(4)})}}}else i.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0})},n.addTagMapper=function(e){var t=e.expression,n=e.map,i=function(e){return t.test(e)?n(e):e};this.tagMappers.push(i)},t}(xo),Ro=function(e){return e.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},Bo=function(e){var t={};return Object.keys(e).forEach(function(n){t[Ro(n)]=e[n]}),t},Uo=function(e){var t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",o="partHoldBack",s=n&&3*n,l=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=s,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+s+")."})),s&&t[a]<s&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+s+")"}),t[a]=s),i&&!t.hasOwnProperty(o)&&(t[o]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[o]+")."})),i&&t[o]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[o]+") to partTargetDuration * 2 ("+l+")."}),t[o]=l)}},Fo=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new Lo,t.parseStream=new Mo,t.lineStream.pipe(t.parseStream);var n,i,r=At(t),a=[],o={},s=!1,l=function(){},u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",d=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var h=0,p=0;return t.on("end",function(){o.uri||!o.parts&&!o.preloadHints||(!o.map&&n&&(o.map=n),!o.key&&i&&(o.key=i),o.timeline||"number"!=typeof d||(o.timeline=d),t.manifest.preloadSegment=o)}),t.parseStream.on("data",function(e){var t,f;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(o.byterange=t,t.length=e.length,"offset"in e||(e.offset=h)),"offset"in e&&(o.byterange=t,t.offset=e.offset),h=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(o.duration=e.duration),0===e.duration&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if(e.attributes.KEYFORMAT===c)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Ao(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,d=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={}
475,e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes?(o.attributes||(o.attributes={}),_(o.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(f={default:/yes/i.test(e.attributes.DEFAULT)}).default?f.autoselect=!0:f.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(f.language=e.attributes.LANGUAGE),e.attributes.URI&&(f.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(f.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(f.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(f.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=f}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){d+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),o.dateTimeString=e.dateTimeString,o.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,Uo.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){o.cueOut=e.data},"cue-out-cont":function(){o.cueOutCont=e.data},"cue-in":function(){o.cueIn=e.data},skip:function(){this.manifest.skip=Bo(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;s=!0;var n=this.manifest.segments.length,i=Bo(e.attributes);o.parts=o.parts||[],o.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=p),p=i.byterange.offset+i.byterange.length);var r=o.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var t=this.manifest.serverControl=Bo(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Uo.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=Bo(e.attributes),i=n.type&&"PART"===n.type;o.preloadHints=o.preloadHints||[],o.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?p:0,i&&(p=n.byterange.offset+n.byterange.length)));var r=o.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;a<o.preloadHints.length-1;a++){var s=o.preloadHints[a];s.type&&s.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+a})}},"rendition-report":function(){var t=Bo(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];s&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,i)},"part-inf":function(){this.manifest.partInf=Bo(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Uo.call(this,this.manifest)}}[e.tagType]||l).call(r)}
475,uri:function(){o.uri=e.uri,a.push(o),this.manifest.targetDuration&&!("duration"in o)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),o.duration=this.manifest.targetDuration),i&&(o.key=i),o.timeline=d,n&&(o.map=n),p=0,o={}},comment:function(){},custom:function(){e.segment?(o.custom=o.custom||{},o.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)}),t}It(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach(function(e){t.hasOwnProperty(e)||i.push(e)}),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(xo),jo={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},zo=["video","audio","text"],Vo=["Video","Audio","Text"],qo=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}):e},Ho=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach(function(e){var t;e=e.trim(),zo.forEach(function(i){var r=jo[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var a=e.substring(0,r[1].length),o=e.replace(a,"");n.push({type:a,details:o,mediaType:i})}}),t||n.push({type:e,details:"",mediaType:"unknown"})}),n},Wo=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return Ho(r.playlists[0].attributes.CODECS)}return null},$o=function(e){return void 0===e&&(e=""),jo.audio.test(e.trim().toLowerCase())},Go=function(e){return void 0===e&&(e=""),jo.text.test(e.trim().toLowerCase())},Yo=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return qo(e.trim())}),n="video";1===t.length&&$o(t[0])?n="audio":1===t.length&&Go(t[0])&&(n="application");var i="mp4";return t.every(function(e){return jo.mp4.test(e)})?i="mp4":t.every(function(e){return jo.webm.test(e)})?i="webm":t.every(function(e){return jo.ogg.test(e)})&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}},Ko=function(e){return void 0===e&&(e=""),window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported(Yo(e))||!1},Xo=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<Vo.length;t++){var n=Vo[t];if(jo["muxer"+n].test(e))return!0}return!1})},Qo="mp4a.40.2",Jo="avc1.4d400d",Zo=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,es=/^application\/dash\+xml/i,ts=function(e){return Zo.test(e)?"hls":es.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},ns=function(e,t,n){t.forEach(function(t){for(var i in e.mediaGroups[t])for(var r in e.mediaGroups[t][i]){var a=e.mediaGroups[t][i][r];n(a,t,i,r)}})};function is(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var rs=is({HTML:"text/html",isHTML:function(e){return e===rs.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),as=is({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===as.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),os={freeze:is,MIME_TYPE:rs,NAMESPACE:as},ss=os.NAMESPACE;function ls(e){return""!==e}function us(e){return e?e.split(/[\t\n\f\r ]+/).filter(ls):[]}function cs(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function ds(e){if(!e)return[];var t=us(e);return Object.keys(t.reduce(cs,{}))}function hs(e){return function(t){return e&&-1!==e.indexOf(t)}}function ps(e,t){for(var n in e)t[n]=e[n]}function fs(e,t){var n=e.prototype;if(!(n instanceof t)){var i=function(){};i.prototype=t.prototype,ps(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var ms={},gs=ms.ELEMENT_NODE=1,vs=ms.ATTRIBUTE_NODE=2,ys=ms.TEXT_NODE=3,bs=ms.CDATA_SECTION_NODE=4,_s=ms.ENTITY_REFERENCE_NODE=5,Ts=ms.ENTITY_NODE=6,ws=ms.PROCESSING_INSTRUCTION_NODE=7,Ss=ms.COMMENT_NODE=8,ks=ms.DOCUMENT_NODE=9,Es=ms.DOCUMENT_TYPE_NODE=10,Cs=ms.DOCUMENT_FRAGMENT_NODE=11,xs=ms.NOTATION_NODE=12,Ps={},As={};Ps.INDEX_SIZE_ERR=(As[1]="Index size error",1),Ps.DOMSTRING_SIZE_ERR=(As[2]="DOMString size error",2);var Ls=Ps.HIERARCHY_REQUEST_ERR=(As[3]="Hierarchy request error",3);Ps.WRONG_DOCUMENT_ERR=(As[4]="Wrong document",4),Ps.INVALID_CHARACTER_ERR=(As[5]="Invalid character",5),Ps.NO_DATA_ALLOWED_ER
vendor: 4,669 bytes, line 475
475R=(As[6]="No data allowed",6),Ps.NO_MODIFICATION_ALLOWED_ERR=(As[7]="No modification allowed",7);var Is=Ps.NOT_FOUND_ERR=(As[8]="Not found",8);Ps.NOT_SUPPORTED_ERR=(As[9]="Not supported",9);var Ns=Ps.INUSE_ATTRIBUTE_ERR=(As[10]="Attribute in use",10);function Ds(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,As[e]),this.message=As[e],Error.captureStackTrace&&Error.captureStackTrace(this,Ds);return n.code=e,t&&(this.message=this.message+": "+t),n}function Os(){}function Ms(e,t){this._node=e,this._refresh=t,Rs(this)}function Rs(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);vl(e,"length",n.length),ps(n,e),e._inc=t}}function Bs(){}function Us(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function Fs(e,t,n,i){if(i?t[Us(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&Gs(r,e,i),$s(r,e,n))}}function js(e,t,n){var i=Us(t,n);if(!(i>=0))throw Ds(Is,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(Gs(a,e,n),n.ownerElement=null)}}function zs(){}function Vs(){}function qs(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function Hs(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(Hs(e,t))return!0}while(e=e.nextSibling)}function Ws(){}function $s(e,t,n){e&&e._inc++,n.namespaceURI===ss.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function Gs(e,t,n,i){e&&e._inc++,n.namespaceURI===ss.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function Ys(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)i[a++]=r,r=r.nextSibling;i.length=a}}}function Ks(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,Ys(e.ownerDocument,e),t}function Xs(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===Cs){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var o=n?n.previousSibling:e.lastChild;r.previousSibling=o,a.nextSibling=n,o?o.nextSibling=r:e.firstChild=r,null==n?e.lastChild=a:n.previousSibling=a;do{r.parentNode=e}while(r!==a&&(r=r.nextSibling));return Ys(e.ownerDocument||e,e),t.nodeType==Cs&&(t.firstChild=t.lastChild=null),t}function Qs(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t),i=e.lastChild}return i=e.lastChild,t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,Ys(e.ownerDocument,e,t),t}function Js(){this._nsMap={}}function Zs(){}function el(){}function tl(){}function nl(){}function il(){}function rl(){}function al(){}function ol(){}function sl(){}function ll(){}function ul(){}function cl(){}function dl(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,a=i.namespaceURI;if(a&&null==r&&null==(r=i.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return fl(this,n,e,t,o),n.join("")}function hl(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===i&&r===ss.XML||r===ss.XMLNS)return!1;for(var a=n.length;a--;){var o=n[a];if(o.prefix===i)return o.namespace!==r}return!0}function pl(e,t,n){e.push(" ",t,'="',n.replace(/[<&"]/g,qs),'"')}function fl(e,t,n,i,r){if(r||(r=[]),i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case gs:var a=e.attributes,o=a.length,s=e.firstChild,l=e.tagName,u=l;if(!(n=ss.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var c,d=0;d<a.length;d++)if("xmlns"===a.item(d).name){c=a.item(d).value;break}if(!c)for(var h=r.length-1;h>=0;h--)if(""===(p=r[h]).prefix&&p.namespace===e.namespaceURI){c=p.namespace;break}if(c!==e.namespaceURI)for(h=r.length-1;h>=0;h--){var p;if((p=r[h]).namespace===e.namespaceURI){p.prefix&&(u=p.prefix+":"+l);break}}}t.push("<",u);for(var f=0;f<o;f++)"xmlns"==(m=a.item(f)).prefix?r.push({prefix:m.localName,namespace:m.value}):"xmlns"==m.nodeName&&r.push({prefix:"",namespace:m.value});for(f=0;f<o;f++){var m,g,v;hl(m=a.item(f),n,r)&&(pl(t,(g=m.prefix||"")?"xmlns:"+g:"xmlns",v=m.namespaceURI),r.push({prefix:g,namespace:v})),fl(m,t,n,i,r)}if(l===u&&hl(e,n,r)&&(pl(t,(g=e.prefix||"")?"xmlns:"+g:"xmlns",v=e.namespaceURI),r.push({prefix:g,namespace:v})),s||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),n&&/^script$/i.test(l))for(;s;)s.data?t.push(s.data):fl(s,t,n,i,r.slice()),s=s.nextSibling;else for(;s;)fl(s,t,n,i,r.slice()),s=s.nextSibling;t.push("</",u,">")}else t.push("/>");return;case ks:case Cs:for(s=e.firstChild;s;)fl(s,t,n,i,r.slice()),s=s.nextSibling;return;case vs:return pl(t,e.name,e.value);case ys:return t.push(e.data.replace(/[<&]/g,qs).replace(/]]>/g,"]]&gt;"));
vendor: 6,799 bytes, line 475
475case bs:return t.push("<![CDATA[",e.data,"]]>");case Ss:return t.push("\x3c!--",e.data,"--\x3e");case Es:var y=e.publicId,b=e.systemId;if(t.push("<!DOCTYPE ",e.name),y)t.push(" PUBLIC ",y),b&&"."!=b&&t.push(" ",b),t.push(">");else if(b&&"."!=b)t.push(" SYSTEM ",b,">");else{var _=e.internalSubset;_&&t.push(" [",_,"]"),t.push(">")}return;case ws:return t.push("<?",e.target," ",e.data,"?>");case _s:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ml(e,t,n){var i;switch(t.nodeType){case gs:(i=t.cloneNode(!1)).ownerDocument=e;case Cs:break;case vs:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var r=t.firstChild;r;)i.appendChild(ml(e,r,n)),r=r.nextSibling;return i}function gl(e,t,n){var i=new t.constructor;for(var r in t){var a=t[r];"object"!=typeof a&&a!=i[r]&&(i[r]=a)}switch(t.childNodes&&(i.childNodes=new Os),i.ownerDocument=e,i.nodeType){case gs:var o=t.attributes,s=i.attributes=new Bs,l=o.length;s._ownerElement=i;for(var u=0;u<l;u++)i.setAttributeNode(gl(e,o.item(u),!0));break;case vs:n=!0}if(n)for(var c=t.firstChild;c;)i.appendChild(gl(e,c,n)),c=c.nextSibling;return i}function vl(e,t,n){e[t]=n}Ps.INVALID_STATE_ERR=(As[11]="Invalid state",11),Ps.SYNTAX_ERR=(As[12]="Syntax error",12),Ps.INVALID_MODIFICATION_ERR=(As[13]="Invalid modification",13),Ps.NAMESPACE_ERR=(As[14]="Invalid namespace",14),Ps.INVALID_ACCESS_ERR=(As[15]="Invalid access",15),Ds.prototype=Error.prototype,ps(Ps,Ds),Os.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)fl(this[i],n,e,t);return n.join("")}},Ms.prototype.item=function(e){return Rs(this),this[e]},fs(Ms,Os),Bs.prototype={length:0,item:Os.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new Ds(Ns);var n=this.getNamedItem(e.nodeName);return Fs(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new Ds(Ns);return t=this.getNamedItemNS(e.namespaceURI,e.localName),Fs(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return js(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return js(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},zs.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new Ws;if(i.implementation=this,i.childNodes=new Os,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new rl;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},Vs.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Xs(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return Ks(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return gl(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==ys&&e.nodeType==ys?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=t.nodeType==vs?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==vs?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},ps(ms,Vs),ps(ms,Vs.prototype),Ws.prototype={nodeName:"#document",nodeType:ks,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==Cs){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&e.nodeType==gs&&(this.documentElement=e),Xs(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Ks(this,e)},importNode:function(e,t){return ml(this,e,t)},getElementById:function(e){var t=null;return Hs(this.documentElement,function(n){if(n.nodeType==gs&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=ds(e);return new Ms(this,function(n){var i=[];return t.length>0&&Hs(n.documentElement,function(r){if(r!==n&&r.nodeType===gs){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var s=ds(a);o=t.every(hs(s))}o&&i.push(r)}}}),i})},createElement:function(e){var t=new Js;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Os,(t.attributes=new Bs)._ownerElement=t,t},createDocumentFragment:function(){var e=new ll;return e.ownerDocument=this,e.childNodes=new Os,e},createTextNode:function(e){var t=new tl;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new nl;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new il;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ul;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Zs;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new sl;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Js,i=t.split(":"),r=n.attributes=new Bs;return n.childNodes=new Os,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new Zs,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},fs(Ws,Vs),Js.prototype={nodeType:gs,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
475,appendChild:function(e){return e.nodeType===Cs?this.insertBefore(e,null):Qs(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new Ms(this,function(t){var n=[];return Hs(t,function(i){i===t||i.nodeType!=gs||"*"!==e&&i.tagName!=e||n.push(i)}),n})},getElementsByTagNameNS:function(e,t){return new Ms(this,function(n){var i=[];return Hs(n,function(r){r===n||r.nodeType!==gs||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)}),i})}},Ws.prototype.getElementsByTagName=Js.prototype.getElementsByTagName,Ws.prototype.getElementsByTagNameNS=Js.prototype.getElementsByTagNameNS,fs(Js,Vs),Zs.prototype.nodeType=vs,fs(Zs,Vs),el.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(As[Ls])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},fs(el,Vs),tl.prototype={nodeName:"#text",nodeType:ys,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},fs(tl,el),nl.prototype={nodeName:"#comment",nodeType:Ss},fs(nl,el),il.prototype={nodeName:"#cdata-section",nodeType:bs},fs(il,el),rl.prototype.nodeType=Es,fs(rl,Vs),al.prototype.nodeType=xs,fs(al,Vs),ol.prototype.nodeType=Ts,fs(ol,Vs),sl.prototype.nodeType=_s,fs(sl,Vs),ll.prototype.nodeName="#document-fragment",ll.prototype.nodeType=Cs,fs(ll,Vs),ul.prototype.nodeType=ws,fs(ul,Vs),cl.prototype.serializeToString=function(e,t,n){return dl.call(e,t,n)},Vs.prototype.toString=dl;try{if(Object.defineProperty){var yl=function e(t){switch(t.nodeType){case gs:case Cs:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};Object.defineProperty(Ms.prototype,"length",{get:function(){return Rs(this),this.$$length}}),Object.defineProperty(Vs.prototype,"textContent",{get:function(){return yl(this)},set:function(e){switch(this.nodeType){case gs:case Cs:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),vl=function(e,t,n){e["$$"+t]=n}}}catch(e){}var bl={DocumentType:rl,DOMException:Ds,DOMImplementation:zs,Element:Js,Node:Vs,NodeList:Os,XMLSerializer:cl},_l=b(function(e,t){var n=os.freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",
vendor: 10,007 bytes, line 475
475nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES});_l.XML_ENTITIES,_l.HTML_ENTITIES,_l.entityMap;var Tl=os.NAMESPACE,wl=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Sl=new RegExp("[\\-\\.0-9"+wl.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),kl=new RegExp("^"+wl.source+Sl.source+"*(?::"+wl.source+Sl.source+"*)?$"),El=0,Cl=1,xl=2,Pl=3,Al=4,Ll=5,Il=6,Nl=7;function Dl(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,Dl)}function Ol(){}function Ml(e,t,n,i,r){function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(r.error("entity not found:"+e),e)}function s(t){if(t>m){var n=e.substring(m,t).replace(/&#?\w+;/g,o);h&&l(m),i.characters(n,0,t-m),m=t}}function l(t,n){for(;t>=c&&(n=d.exec(e));)u=n.index,c=u+n[0].length,h.lineNumber++;h.columnNumber=t-u+1}for(var u=0,c=0,d=/.*(?:\r\n?|\n)|.*$/g,h=i.locator,p=[{currentNSMap:t}],f={},m=0;;){try{var g=e.indexOf("<",m);if(g<0){if(!e.substr(m).match(/^\s*$/)){var v=i.doc,y=v.createTextNode(e.substr(m));v.appendChild(y),i.currentElement=y}return}switch(g>m&&s(g),e.charAt(g+1)){case"/":var b=e.indexOf(">",g+3),_=e.substring(g+2,b).replace(/[ \t\n\r]+$/g,""),T=p.pop();b<0?(_=e.substring(g+2).replace(/[\s<].*/,""),r.error("end tag name: "+_+" is not complete:"+T.tagName),b=g+1+_.length):_.match(/\s</)&&(_=_.replace(/[\s<].*/,""),r.error("end tag name: "+_+" maybe not complete"),b=g+1+_.length);var w=T.localNSMap,S=T.tagName==_;if(S||T.tagName&&T.tagName.toLowerCase()==_.toLowerCase()){if(i.endElement(T.uri,T.localName,_),w)for(var k in w)i.endPrefixMapping(k);S||r.fatalError("end tag name: "+_+" is not match the current start tagName:"+T.tagName)}else p.push(T);b++;break;case"?":h&&l(g),b=ql(e,g,i);break;case"!":h&&l(g),b=Vl(e,g,i,r);break;default:h&&l(g);var E=new Hl,C=p[p.length-1].currentNSMap,x=(b=Bl(e,g,E,C,o,r),E.length);if(!E.closed&&jl(e,b,E.tagName,f)&&(E.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),h&&x){for(var P=Rl(h,{}),A=0;A<x;A++){var L=E[A];l(L.offset),L.locator=Rl(h,{})}i.locator=P,Ul(E,i,C)&&p.push(E),i.locator=h}else Ul(E,i,C)&&p.push(E);Tl.isHTML(E.uri)&&!E.closed?b=Fl(e,b,E.tagName,o,i):b++}}catch(e){if(e instanceof Dl)throw e;r.error("element parse error: "+e),b=-1}b>m?m=b:s(Math.max(g,m)+1)}}function Rl(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Bl(e,t,n,i,r,a){function o(e,t,i){n.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}for(var s,l=++t,u=El;;){var c=e.charAt(l);switch(c){case"=":if(u===Cl)s=e.slice(t,l),u=Pl;else{if(u!==xl)throw new Error("attribute equal must after attrName");u=Pl}break;case"'":case'"':if(u===Pl||u===Cl){if(u===Cl&&(a.warning('attribute value must after "="'),s=e.slice(t,l)),t=l+1,!((l=e.indexOf(c,t))>0))throw new Error("attribute value no end '"+c+"' match");o(s,d=e.slice(t,l).replace(/&#?\w+;/g,r),t-1),u=Ll}else{if(u!=Al)throw new Error('attribute value must after "="');o(s,d=e.slice(t,l).replace(/&#?\w+;/g,r),t),a.warning('attribute "'+s+'" missed start quot('+c+")!!"),t=l+1,u=Ll}break;case"/":switch(u){case El:n.setTagName(e.slice(t,l));case Ll:case Il:case Nl:u=Nl,n.closed=!0;case Al:case Cl:case xl:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),u==El&&n.setTagName(e.slice(t,l)),l;case">":switch(u){case El:n.setTagName(e.slice(t,l));case Ll:case Il:case Nl:break;case Al:case Cl:"/"===(d=e.slice(t,l)).slice(-1)&&(n.closed=!0,d=d.slice(0,-1));case xl:u===xl&&(d=s),u==Al?(a.warning('attribute "'+d+'" missed quot(")!'),o(s,d.replace(/&#?\w+;/g,r),t)):(Tl.isHTML(i[""])&&d.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+d+'" missed value!! "'+d+'" instead!!'),o(d,d,t));break;case Pl:throw new Error("attribute value missed!!")}return l;case"€":c=" ";default:if(c<=" ")switch(u){case El:n.setTagName(e.slice(t,l)),u=Il;break;case Cl:s=e.slice(t,l),u=xl;break;case Al:var d=e.slice(t,l).replace(/&#?\w+;/g,r);a.warning('attribute "'+d+'" missed quot(")!!'),o(s,d,t);case Ll:u=Il}else switch(u){case xl:n.tagName,Tl.isHTML(i[""])&&s.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),o(s,s,t),t=l,u=Cl;break;case Ll:a.warning('attribute space is required"'+s+'"!!');case Il:u=Cl,t=l;break;case Pl:u=Al,t=l;break;case Nl:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function Ul(e,t,n){for(var i=e.tagName,r=null,a=e.length;a--;){var o=e[a],s=o.qName,l=o.value;if((h=s.indexOf(":"))>0)var u=o.prefix=s.slice(0,h),c=s.slice(h+1),d="xmlns"===u&&c;else c=s,u=null,d="xmlns"===s&&"";o.localName=c,!1!==d&&(null==r&&(r={},zl(n,n={})),n[d]=r[d]=l,o.uri=Tl.XMLNS,t.startPrefixMapping(d,l))}for(a=e.length;a--;)(u=(o=e[a]).prefix)&&("xml"===u&&(o.uri=Tl.XML),"xmlns"!==u&&(o.uri=n[u||""]));var h;(h=i.indexOf(":"))>0?(u=e.prefix=i.slice(0,h),c=e.localName=i.slice(h+1)):(u=null,c=e.localName=i);var p=e.uri=n[u||""];if(t.startElement(p,c,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=r,!0;if(t.endElement(p,c,i),r)for(u in r)t.endPrefixMapping(u)}function Fl(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,i),r.characters(o,0,o.length),a)}return t+1}function jl(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function zl(e,t){for(var n in e)t[n]=e[n]}function Vl(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var a=Wl(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],l=!1,u=!1;o>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],u=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(u=a[3][0]));var c=a[o-1];return n.startDTD(s,l,u),n.endDTD(),c.index+c[0].length}return-1}function ql(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function Hl(){this.attributeNames={}}function Wl(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}Dl.prototype=new Error,Dl.prototype.name=Dl.name,Ol.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),zl(t,t={}),Ml(e,t,n,i,this.errorHandler),i.endDocument()}},Hl.prototype={setTagName:function(e){if(!kl.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!kl.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};var $l={XMLReader:Ol,ParseError:Dl},Gl=bl.DOMImplementation,Yl=os.NAMESPACE,Kl=$l.ParseError,Xl=$l.XMLReader;function Ql(e){this.options=e||{locator:{}}}function Jl(e,t,n){if(!e){if(t instanceof Zl)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+tu(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}function Zl(){this.cdata=!1}function eu(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function tu(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function nu(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>
475=t+n||t?new java.lang.String(e,t,n)+"":e}function iu(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Ql.prototype.parseFromString=function(e,t){var n=this.options,i=new Xl,r=n.domBuilder||new Zl,a=n.errorHandler,o=n.locator,s=n.xmlns||{},l=/\/x?html?$/.test(t),u=l?_l.HTML_ENTITIES:_l.XML_ENTITIES;return o&&r.setDocumentLocator(o),i.errorHandler=Jl(a,r,o),i.domBuilder=n.domBuilder||r,l&&(s[""]=Yl.HTML),s.xml=s.xml||Yl.XML,e&&"string"==typeof e?i.parse(e,s,u):i.errorHandler.error("invalid doc source"),r.doc},Zl.prototype={startDocument:function(){this.doc=(new Gl).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),o=i.length;iu(this,a),this.currentElement=a,this.locator&&eu(this.locator,a);for(var s=0;s<o;s++){e=i.getURI(s);var l=i.getValue(s),u=(n=i.getQName(s),r.createAttributeNS(e,n));this.locator&&eu(i.getLocator(s),u),u.value=u.nodeValue=l,a.setAttributeNode(u)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&eu(this.locator,n),iu(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=nu.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&eu(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=nu.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&eu(this.locator,i),iu(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&eu(this.locator,r),iu(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,tu(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,tu(this.locator))},fatalError:function(e){throw new Kl(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Zl.prototype[e]=function(){return null}});var ru=Zl,au=Ql,ou=bl.DOMImplementation,su=bl.XMLSerializer,lu={__DOMHandler:ru,DOMParser:au,DOMImplementation:ou,XMLSerializer:su}.DOMParser,uu=function(e){return!!e&&"object"==typeof e},cu=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce(function(t,n){return"object"!=typeof n||Object.keys(n).forEach(function(i){Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=t[i].concat(n[i]):uu(t[i])&&uu(n[i])?t[i]=e(t[i],n[i]):t[i]=n[i]}),t},{})},du=function(e){return Object.keys(e).map(function(t){return e[t]})},hu=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n},pu=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},fu=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},mu=function(e,t){return e.reduce(function(e,n,i){return n[t]&&e.push(i),e},[])},gu=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},vu=function(e,t){return du(e.reduce(function(e,n){return n.forEach(function(n){e[t(n)]=n}),e},{}))},yu={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},bu=function(e){var t=e.baseUrl,n=void 0===t?"":t,i=e.source,r=void 0===i?"":i,a=e.range,o=void 0===a?"":a,s=e.indexRange,l=void 0===s?"":s,u={uri:r,resolvedUri:Co(n||"",r)};if(o||l){var c,d=(o||l).split("-"),h=window.BigInt?window.BigInt(d[0]):parseInt(d[0],10),p=window.BigInt?window.BigInt(d[1]):parseInt(d[1],10);h<Number.MAX_SAFE_INTEGER&&"bigint"==typeof h&&(h=Number(h)),p<Number.MAX_SAFE_INTEGER&&"bigint"==typeof p&&(p=Number(p)),"bigint"==typeof(c="bigint"==typeof p||"bigint"==typeof h?window.BigInt(p)-window.BigInt(h)+window.BigInt(1):p-h+1)&&c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),u.byterange={length:c,offset:h}}return u},_u=function(e){var t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?window.BigInt(e.offset)+window.BigInt(e.length)-window.BigInt(1):e.offset+e.length-1,e.offset+"-"+t},Tu=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},wu={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,a=e.periodDuration,o=Tu(e.endNumber),s=t/i;return"number"==typeof o?{start:0,end:o}:"number"==typeof a?{start:0,end:a/s}:{start:0,end:r/s}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,o=e.duration,s=e.periodStart,l=void 0===s?0:s,u=e.minimumUpdatePeriod,c=void 0===u?0:u,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,p=Tu(e.endNumber),f=(t+n)/1e3,m=i+l,g=f+c-m,v=Math.ceil(g*a/o),y=Math.floor((f-m-h)*a
475/o),b=Math.floor((f-m)*a/o);return{start:Math.max(0,y),end:"number"==typeof p?p:Math.min(v,b)}}},Su=function(e){return function(t){var n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodStart,o=e.startNumber;return{number:(void 0===o?1:o)+t,duration:n/r,timeline:a,time:t*n}}},ku=function(e){var t=e.type,n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodDuration,o=e.sourceDuration,s=wu[t](e),l=s.start,u=s.end,c=hu(l,u).map(Su(e));if("static"===t){var d=c.length-1,h="number"==typeof a?a:o;c[d].duration=h-n/r*d}return c},Eu=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,a=e.indexRange,o=void 0===a?"":a,s=e.periodStart,l=e.presentationTime,u=e.number,c=void 0===u?0:u,d=e.duration;if(!t)throw new Error(yu.NO_BASE_URL);var h=bu({baseUrl:t,source:i.sourceURL,range:i.range}),p=bu({baseUrl:t,source:t,indexRange:o});if(p.map=h,d){var f=ku(e);f.length&&(p.duration=f[0].duration,p.timeline=f[0].timeline)}else r&&(p.duration=r,p.timeline=s);return p.presentationTime=l||s,p.number=c,[p]},Cu=function(e,t,n){var i,r=e.sidx.map?e.sidx.map:null,a=e.sidx.duration,o=e.timeline||0,s=e.sidx.byterange,l=s.offset+s.length,u=t.timescale,c=t.references.filter(function(e){return 1!==e.referenceType}),d=[],h=e.endList?"static":"dynamic",p=e.sidx.timeline,f=p,m=e.mediaSequence||0;i="bigint"==typeof t.firstOffset?window.BigInt(l)+t.firstOffset:l+t.firstOffset;for(var g=0;g<c.length;g++){var v=t.references[g],y=v.referencedSize,b=v.subsegmentDuration,_=void 0;_="bigint"==typeof i?i+window.BigInt(y)-window.BigInt(1):i+y-1;var T=Eu({baseUrl:n,timescale:u,timeline:o,periodStart:p,presentationTime:f,number:m,duration:b,sourceDuration:a,indexRange:i+"-"+_,type:h})[0];r&&(T.map=r),d.push(T),i+="bigint"==typeof i?window.BigInt(y):y,f+=b/u,m++}return e.segments=d,e},xu=["AUDIO","SUBTITLES"],Pu=1/60,Au=function(e){return vu(e,function(e){return e.timeline}).sort(function(e,t){return e.timeline>t.timeline?1:-1})},Lu=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},Iu=function(e){var t=[];return ns(e,xu,function(e,n,i,r){t=t.concat(e.playlists||[])}),t},Nu=function(e){var t=e.playlist,n=e.mediaSequence;t.mediaSequence=n,t.segments.forEach(function(e,n){e.number=t.mediaSequence+n})},Du=function(e){var t=e.oldPlaylists,n=e.newPlaylists,i=e.timelineStarts;n.forEach(function(e){e.discontinuitySequence=gu(i,function(t){return t.timeline===e.timeline});var n=Lu(t,e.attributes.NAME);if(n&&!e.sidx){var r=e.segments[0],a=gu(n.segments,function(e){return Math.abs(e.presentationTime-r.presentationTime)<Pu});if(-1===a)return Nu({playlist:e,mediaSequence:n.mediaSequence+n.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!n.segments.length&&e.timeline>n.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--);n.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),Nu({playlist:e,mediaSequence:n.segments[a].number})}})},Ou=function(e){var t=e.oldManifest,n=e.newManifest,i=t.playlists.concat(Iu(t)),r=n.playlists.concat(Iu(n));return n.timelineStarts=Au([t.timelineStarts,n.timelineStarts]),Du({oldPlaylists:i,newPlaylists:r,timelineStarts:n.timelineStarts}),n},Mu=function(e){return e&&e.uri+"-"+_u(e.byterange)},Ru=function(e){return du(e.reduce(function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]);return e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{})).map(function(e){return e.discontinuityStarts=mu(e.segments||[],"discontinuity"),e})},Bu=function(e,t){var n=Mu(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&Cu(e,i,e.sidx.resolvedUri),e},Uu=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=Bu(e[n],t);return e},Fu=function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,o=e.mediaSequence,s=e.discontinuitySequence,l=e.discontinuityStarts,u={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs}
475,n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:s,discontinuityStarts:l,timelineStarts:i.timelineStarts,mediaSequence:o,segments:r};return i.contentProtection&&(u.contentProtection=i.contentProtection),a&&(u.sidx=a),t&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u},ju=function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,o=e.discontinuitySequence;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var s=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(s.CODECS=n.codecs),{attributes:s,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:r,segments:i}},zu=function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce(function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",s=r.attributes.label||"main";if(o&&!r.attributes.label){var l=a?" ("+a+")":"";s=""+r.attributes.lang+l}e[s]||(e[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=Bu(Fu(r,n),t);return e[s].playlists.push(u),void 0===i&&"main"===a&&((i=r).default=!0),e},{});return i||(r[Object.keys(r)[0]].default=!0),r},Vu=function(e,t){return void 0===t&&(t={}),e.reduce(function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(Bu(ju(n),t)),e},{})},qu=function(e){return e.reduce(function(e,t){return t?(t.forEach(function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])}),e):e},{})},Hu=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:a,timelineStarts:n.timelineStarts,segments:i};return n.contentProtection&&(o.contentProtection=n.contentProtection),r&&(o.sidx=r),o},Wu=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},$u=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},Gu=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},Yu=function(e,t){e.forEach(function(e){e.mediaSequence=0,e.discontinuitySequence=gu(t,function(t){return t.timeline===e.timeline}),e.segments&&e.segments.forEach(function(e,t){e.number=t})})},Ku=function(e){return e?Object.keys(e).reduce(function(t,n){var i=e[n];return t.concat(i.playlists)},[]):[]},Xu=function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.sidxMapping,a=void 0===r?{}:r,o=e.previousManifest;if(!n.length)return{};var s=n[0].attributes,l=s.sourceDuration,u=s.type,c=s.suggestedPresentationDelay,d=s.minimumUpdatePeriod,h=Ru(n.filter(Wu)).map(Hu),p=Ru(n.filter($u)),f=Ru(n.filter(Gu)),m=n.map(function(e){return e.attributes.captionServices}).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:l,playlists:Uu(h,a)};d>=0&&(g.minimumUpdatePeriod=1e3*d),i&&(g.locations=i),"dynamic"===u&&(g.suggestedPresentationDelay=c);var v=0===g.playlists.length,y=p.length?zu(p,a,v):null,b=f.length?Vu(f,a):null,_=h.concat(Ku(y),Ku(b)),T=_.map(function(e){return e.timelineStarts});return g.timelineStarts=Au(T),Yu(_,g.timelineStarts),y&&(g.mediaGroups.AUDIO.audio=y),b&&(g.mediaGroups.SUBTITLES.subs=b),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=qu(m)),o?Ou({oldManifest:o,newManifest:g}):g},Qu=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,s=void 0===o?1:o,l=e.periodStart,u=void 0===l?0:l,c=e.minimumUpdatePeriod,d=(i+r)/1e3+(void 0===c?0:c)-(a+u);return Math.ceil((d*s-t)/n)},Ju=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,a=e.media,o=void 0===a?"":a,s=e.sourceDuration,l=e.timescale,u=void 0===l?1:l,c=e.startNumber,d=void 0===c?1:c,h=e.periodStart,p=[],f=-1,m=0;m<t.length;m++){var g=t[m],v=g.d,y=g.r||0,b=g.t||0;f<0&&(f=b),b&&b>f&&(f=b);var _=void 0;if(y<0){var T=m+1;_=T===t.length?"dynamic"===n&&r>0&&o.indexOf("$Number$")>0?Qu(e,f,v):(s*u-f)/v:(t[T].t-f)/v}else _=y+1;for(var w=d+p.length+_,S=d+p.length;S<w;)p.push({number:S,duration:v/u,time:f,timeline:h}),f+=v,S++}return p},Zu=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ec=function(e){return function(t,n,i,r){if("$$"===t)return"$";if(void 0===e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}},tc=function(e,t){return e.replace(Zu,ec(t))},nc=function(e,t){return e.duration||t?e.duration?ku(e):Ju(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]},ic=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,r=void 0===i?{sourceURL:"",range:""}:i,a=bu({baseUrl:e.baseUrl,source:tc(r.sourceURL,n),range:r.range});return nc(e,t).map(function(t){n.Number=t.number,n.Time=t.time;var i=tc(e.media||"",n),r=e.timescale||1,o=e.presentationTimeOffset||0,s=e.periodStart+(t.time-o)/r;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:Co(e.baseUrl||"",i),map:a,number:t.number,presentationTime:s}})},rc=function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=bu({baseUrl:n,source:r.sourceURL,range:r.range}),o=bu({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o},ac=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(yu.SEGMENT_TIME_UNSPECIFIED);var o,s=r.map(function(t){return rc(e,t)});return n&&(o=ku(e)),t&&(o=Ju(e,t)),o.map(function(t,n){if(s[n]){var i=s[n],r=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-o)/r,i}}).filter(function(e){return e})},oc=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=ic,t=cu(i,r.template)):r.base?(n=Eu,t=cu(i,r.base)):r.list&&(n=ac,t=cu(i,r.list));var a={attributes:i};if(!n)return a;var o=n(t,r.segmentTimeline);if(t.duration){var s=t,l=s.duration,u=s.timescale,c=void 0===u?1:u;t.duration=l/c}else o.length?t.duration=o.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return a.attributes=t,a.segments=o,r.base&&t.indexRange&&(a.sidx=o[0],a.segments=[]),a},sc=function(e){return e.map(oc)},lc=function(e,t){return fu(e.childNodes).filter(function(e){return e.tagName===t})},uc=function(e){return e.textContent.trim()},cc=function(e){var t=31536e3,n=2592e3,i=86400,r=3600,a=60,o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!o)return 0;var s=o.slice(1),l=s[0],u=s[1],c=s[2],d=s[3],h=s[4],p=s[5];return parseFloat(l||0)*t+parseFloat(u||0)*n+parseFloat(c||0)*i+parseFloat(d||0)*r+parseFloat(h||0)*a+parseFloat(p||0)},dc=function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)},hc={mediaPresentationDuration:function(e){return cc(e)},availabilityStartTime:function(e){return dc(e)/1e3},minimumUpdatePeriod:function(e){return cc(e)},suggestedPresentationDelay:function(e){return cc(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return cc(e)},start:function(e){return cc(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?cc(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},pc=function(e){return e&&e.attributes?fu(e.attributes).reduce(function(e,t){var n=hc[t.name]||hc.DEFAULT;return e[t.name]=n(t.value),e},{}):{}},fc={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},mc=function(e,t){return t.length?pu(e.map(function(e){return t.map(function(t){return Co(e,uc(t))})})):e},gc=function(e){var t=lc(e,"SegmentTemplate")[0],n=lc(e,"SegmentList")[0],i=n&&lc(n,"SegmentURL").map(function(e){return cu({tag:"SegmentURL"},pc(e))}
475),r=lc(e,"SegmentBase")[0],a=n||t,o=a&&lc(a,"SegmentTimeline")[0],s=n||r||t,l=s&&lc(s,"Initialization")[0],u=t&&pc(t);u&&l?u.initialization=l&&pc(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var c={template:u,segmentTimeline:o&&lc(o,"S").map(function(e){return pc(e)}),list:n&&cu(pc(n),{segmentUrls:i,initialization:pc(l)}),base:r&&cu(pc(r),{initialization:pc(l)})};return Object.keys(c).forEach(function(e){c[e]||delete c[e]}),c},vc=function(e,t,n){return function(i){var r=lc(i,"BaseURL"),a=mc(t,r),o=cu(e,pc(i)),s=gc(i);return a.map(function(e){return{segmentInfo:cu(n,s),attributes:cu(o,{baseUrl:e})}})}},yc=function(e){return e.reduce(function(e,t){var n=pc(t),i=fc[n.schemeIdUri];if(i){e[i]={attributes:n};var r=lc(t,"cenc:pssh")[0];if(r){var a=uc(r),o=a&&Ao(a);e[i].pssh=o}}return e},{})},bc=function(e){return"urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}}):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[0],r=n[1],a=void 0===r?"":r;t.channel=i,t.language=e,a.split(",").forEach(function(e){var n=e.split(":"),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0},_c=function(e,t,n){return function(i){var r=pc(i),a=mc(t,lc(i,"BaseURL")),o=lc(i,"Role")[0],s={role:pc(o)},l=cu(e,r,s),u=lc(i,"Accessibility")[0],c=bc(pc(u));c&&(l=cu(l,{captionServices:c}));var d=lc(i,"Label")[0];if(d&&d.childNodes.length){var h=d.childNodes[0].nodeValue.trim();l=cu(l,{label:h})}var p=yc(lc(i,"ContentProtection"));Object.keys(p).length&&(l=cu(l,{contentProtection:p}));var f=gc(i),m=lc(i,"Representation"),g=cu(n,f);return pu(m.map(vc(l,a,g)))}},Tc=function(e,t){return function(n,i){var r=mc(t,lc(n.node,"BaseURL")),a=cu(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);var o=lc(n.node,"AdaptationSet"),s=gc(n.node);return pu(o.map(_c(a,r,s)))}},wc=function(e){var t=e.attributes,n=e.priorPeriodAttributes,i=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==i?null:0},Sc=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,a=n.NOW,o=void 0===a?Date.now():a,s=n.clientOffset,l=void 0===s?0:s,u=lc(e,"Period");if(!u.length)throw new Error(yu.INVALID_NUMBER_OF_PERIOD);var c=lc(e,"Location"),d=pc(e),h=mc([r],lc(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=o,d.clientOffset=l,c.length&&(d.locations=c.map(uc));var p=[];return u.forEach(function(e,t){var n=pc(e),i=p[t-1];n.start=wc({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),p.push({node:e,attributes:n})}),{locations:d.locations,representationInfo:pu(p.map(Tc(d,h)))}},kc=function(e){if(""===e)throw new Error(yu.DASH_EMPTY_MANIFEST);var t,n,i=new lu;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(yu.DASH_INVALID_XML);return n},Ec=function(e){var t=lc(e,"UTCTiming")[0];if(!t)return null;var n=pc(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error(yu.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},Cc=function(e,t){void 0===t&&(t={});var n=Sc(kc(e),t),i=sc(n.representationInfo);return Xu({dashPlaylists:i,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})},xc=function(e){return Ec(kc(e))},Pc=Math.pow(2,32),Ac=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
475Number(t):t:n.getUint32(0)*Pc+n.getUint32(4)},Lc=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===n.version?(n.earliestPresentationTime=t.getUint32(i),n.firstOffset=t.getUint32(i+4),i+=8):(n.earliestPresentationTime=Ac(e.subarray(i)),n.firstOffset=Ac(e.subarray(i+8)),i+=16),i+=2;var r=t.getUint16(i);for(i+=2;r>0;i+=12,r--)n.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return n},Ic=function(e){return e.toString(2).length},Nc=function(e){return Math.ceil(Ic(e)/8)},Dc=function(e){return ArrayBuffer.isView(e)},Oc=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||Dc(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},Mc=window.BigInt||Number,Rc=[Mc("0x1"),Mc("0x100"),Mc("0x10000"),Mc("0x1000000"),Mc("0x100000000"),Mc("0x10000000000"),Mc("0x1000000000000"),Mc("0x100000000000000"),Mc("0x10000000000000000")],Bc=function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,a=n.le,o=void 0!==a&&a;e=Oc(e);var s=o?"reduce":"reduceRight",l=(e[s]?e[s]:Array.prototype[s]).call(e,function(t,n,i){var r=o?i:Math.abs(i+1-e.length);return t+Mc(n)*Rc[r]},Mc(0));if(r){var u=Rc[e.length]/Mc(2)-Mc(1);(l=Mc(l))>u&&(l-=u,l-=u,l-=Mc(2))}return Number(l)},Uc=function(e,t){var n=(void 0===t?{}:t).le,i=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=Mc(e);for(var r=Nc(e),a=new Uint8Array(new ArrayBuffer(r)),o=0;o<r;o++){var s=i?o:Math.abs(o+1-a.length);a[s]=Number(e/Rc[o]&Mc(255)),e<0&&(a[s]=Math.abs(~a[s]),a[s]-=0===o?1:2)}return a},Fc=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},jc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return Oc(t[0]);var i=t.reduce(function(e,t,n){return e+(t.byteLength||t.length)},0),r=new Uint8Array(i),a=0;return t.forEach(function(e){e=Oc(e),r.set(e,a),a+=e.byteLength}),r},zc=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,a=void 0===r?0:r,o=i.mask,s=void 0===o?[]:o;e=Oc(e);var l=(t=Oc(t)).every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,function(t,n){return t===(s[n]?s[n]&e[a+n]:e[a+n])})},Vc=Oc([73,68,51]),qc=function(e,t){void 0===t&&(t=0);var n=(e=Oc(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?i+20:i+10},Hc=function e(t,n){return void 0===n&&(n=0),(t=Oc(t)).length-n<10||!zc(t,Vc,{offset:n})?n:e(t,n+=qc(t,n))},Wc=function(e){return"string"==typeof e?Fc(e):e},$c=function(e){return Array.isArray(e)?e.map(function(e){return Wc(e)}):[Wc(e)]},Gc=function e(t,n,i){void 0===i&&(i=!1),n=$c(n),t=Oc(t);var r=[];if(!n.length)return r;for(var a=0;a<t.length;){var o=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0,s=t.subarray(a+4,a+8);if(0===o)break;var l=a+o;if(l>t.length){if(i)break;l=t.length}var u=t.subarray(a+8,l);zc(s,n[0])&&(1===n.length?r.push(u):r.push.apply(r,e(u,n.slice(1),i))),a=l}return r},Yc={EBML:Oc([26,69,223,163]),DocType:Oc([66,130]),Segment:Oc([24,83,128,103]),SegmentInfo:Oc([21,73,169,102]),Tracks:Oc([22,84,174,107]),Track:Oc([174]),TrackNumber:Oc([215]),DefaultDuration:Oc([35,227,131]),TrackEntry:Oc([174]),TrackType:Oc([131]),FlagDefault:Oc([136]),CodecID:Oc([134]),CodecPrivate:Oc([99,162]),VideoTrack:Oc([224]),AudioTrack:Oc([225]),Cluster:Oc([31,67,182,117]),Timestamp:Oc([231]),TimestampScale:Oc([42,215,177]),BlockGroup:Oc([160]),BlockDuration:Oc([155]),Block:Oc([161]),SimpleBlock:Oc([163])},Kc=[128,64,32,16,8,4,2,1],Xc=function(e){for(var t=1,n=0;n<Kc.length&&!(e&Kc[n]);n++)t++;return t},Qc=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=Xc(e[t]),a=e.subarray(t,t+r);return n&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=Kc[r-1]),{length:r,value:
475Bc(a,{signed:i}),bytes:a}},Jc=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?Uc(t):t},Zc=function(e){return Array.isArray(e)?e.map(function(e){return Jc(e)}):[Jc(e)]},ed=function e(t,n,i){if(i>=n.length)return n.length;var r=Qc(n,i,!1);if(zc(t.bytes,r.bytes))return i;var a=Qc(n,i+r.length);return e(t,n,i+a.length+a.value+r.length)},td=function e(t,n){n=Zc(n),t=Oc(t);var i=[];if(!n.length)return i;for(var r=0;r<t.length;){var a=Qc(t,r,!1),o=Qc(t,r+a.length),s=r+a.length+o.length;127===o.value&&(o.value=ed(a,t,s),o.value!==t.length&&(o.value-=s));var l=s+o.value>t.length?t.length:s+o.value,u=t.subarray(s,l);zc(n[0],a.bytes)&&(1===n.length?i.push(u):i=i.concat(e(u,n.slice(1)))),r+=a.length+o.length+u.length}return i},nd=Oc([0,0,0,1]),id=Oc([0,0,1]),rd=Oc([0,0,3]),ad=function(e){for(var t=[],n=1;n<e.length-2;)zc(e.subarray(n,n+3),rd)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,r=new Uint8Array(i),a=0;for(n=0;n<i;a++,n++)a===t[0]&&(a++,t.shift()),r[n]=e[a];return r},od=function(e,t,n,i){void 0===i&&(i=1/0),e=Oc(e),n=[].concat(n);for(var r,a=0,o=0;a<e.length&&(o<i||r);){var s=void 0;if(zc(e.subarray(a),nd)?s=4:zc(e.subarray(a),id)&&(s=3),s){if(o++,r)return ad(e.subarray(r,a));var l=void 0;"h264"===t?l=31&e[a+s]:"h265"===t&&(l=e[a+s]>>1&63),-1!==n.indexOf(l)&&(r=a+s),a+=s+("h264"===t?1:2)}else a++}return e.subarray(0,0)},sd=function(e,t,n){return od(e,"h264",t,n)},ld=function(e,t,n){return od(e,"h265",t,n)},ud={webm:Oc([119,101,98,109]),matroska:Oc([109,97,116,114,111,115,107,97]),flac:Oc([102,76,97,67]),ogg:Oc([79,103,103,83]),ac3:Oc([11,119]),riff:Oc([82,73,70,70]),avi:Oc([65,86,73]),wav:Oc([87,65,86,69]),"3gp":Oc([102,116,121,112,51,103]),mp4:Oc([102,116,121,112]),fmp4:Oc([115,116,121,112]),mov:Oc([102,116,121,112,113,116]),moov:Oc([109,111,111,118]),moof:Oc([109,111,111,102])},cd={aac:function(e){var t=Hc(e);return zc(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Hc(e);return zc(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=td(e,[Yc.EBML,Yc.DocType])[0];return zc(t,ud.webm)},mkv:function(e){var t=td(e,[Yc.EBML,Yc.DocType])[0];return zc(t,ud.matroska)},mp4:function(e){return!cd["3gp"](e)&&!cd.mov(e)&&(!(!zc(e,ud.mp4,{offset:4})&&!zc(e,ud.fmp4,{offset:4}))||!(!zc(e,ud.moof,{offset:4})&&!zc(e,ud.moov,{offset:4}))||void 0)},mov:function(e){return zc(e,ud.mov,{offset:4})},"3gp":function(e){return zc(e,ud["3gp"],{offset:4})},ac3:function(e){var t=Hc(e);return zc(e,ud.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Hc(e);return zc(e,ud.flac,{offset:t})},ogg:function(e){return zc(e,ud.ogg)},avi:function(e){return zc(e,ud.riff)&&zc(e,ud.avi,{offset:8})},wav:function(e){return zc(e,ud.riff)&&zc(e,ud.wav,{offset:8})},h264:function(e){return sd(e,7,3).length},h265:function(e){return ld(e,[32,33],3).length}},dd=Object.keys(cd).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);dd.forEach(function(e){var t=cd[e];cd[e]=function(e){return t(Oc(e))}});var hd,pd,fd,md,gd,vd,yd,bd=cd,_d=function(e){e=Oc(e);for(var t=0;t<dd.length;t++){var n=dd[t];if(bd[n](e))return n}return""},Td=function(e){return Gc(e,["moof"]).length>0},wd=9e4;gd=function(e,t){return hd(md(e,t))},vd=function(e,t){return pd(fd(e),t)},yd=function(e,t,n){return fd(n?e:e-t)};var Sd={ONE_SECOND_IN_TS:wd,secondsToVideoTs:hd=function(e){return e*wd},secondsToAudioTs:pd=function(e,t){return e*t},videoTsToSeconds:fd=function(e){return e/wd},audioTsToSeconds:md=function(e,t){return e/t},audioTsToVideoTs:gd,videoTsToAudioTs:vd,metadataTsToSeconds:yd}.ONE_SECOND_IN_TS,kd=Co,Ed=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},Cd=function(e){return To.log.debug?To.log.debug.bind(To,"VHS:",e+" >"):function(){}},xd=1/30,Pd=3*xd,Ad=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return To.createTimeRanges(i)},Ld=function(e,t){return Ad(e,function(e,n){return e-Pd<=t&&n+Pd>=t})},Id=function(e,t){return Ad(e,function(e){return e-xd>=t})},Nd=function(e){if(e.length<2)return To.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return To.createTimeRanges(t)},Dd=function(e,t){var n=null,i=null,r=0,a=[],o=[];if(!(e&&e.length&&t&&t.length))return To.createTimeRange();for(var s=e.length;s--;)a.push({time:e.start(s),type:"start"}),a.push({time:e.end(s),type:"end"});for(s=t.length;s--;)a.push({time:t.start(s),type:"start"}),a.push({time:t.end(s),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),s=0;s<a.length;s++)"start"===a[s].type?2===++r&&(n=a[s].time):"end"===a[s].type&&1===--r&&(i=a[s].time),null!==n&&null!==i&&(o.push([n,i]),n=null,i=null);return To.createTimeRanges(o)},Od=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},Md=function(e,t,n){return void 0===n&&(n=1),((e.length?e.end(e.length-1):0)-t)/n},Rd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},Bd=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;
475if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1},Ud=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},Fd=function(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),a=e.end(i);t>a||(n+=t>r&&t<=a?a-t:a-r)}return n},jd=To.createTimeRange,zd=function(e,t){if(!t.preload)return t.duration;var n=0;return(t.parts||[]).forEach(function(e){n+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(n+=e.partTargetDuration)}),n},Vd=function(e){return(e.segments||[]).reduce(function(e,t,n){return t.parts?t.parts.forEach(function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})}):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e},[])},qd=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Hd=function(e){var t=e.preloadSegment;if(t){var n=t.parts,i=(t.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0);return i+=n&&n.length?n.length:0}},Wd=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=qd(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},$d=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=e.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=zd(e,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},Gd=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(n=e.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=zd(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}},Yd=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=$d(e,t);if(i.precise)return i.result;var r=Gd(e,t);return r.precise?r.result:i.result+n},Kd=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return window.Infinity}return Yd(e,t,n)},Xd=function(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,a=0;if(i>r){var o=[r,i];i=o[0],r=o[1]}if(i<0){for(var s=i;s<Math.min(0,r);s++)a+=t;i=0}for(var l=i;l<r;l++)a+=n[l].duration;return a},Qd=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return Kd(e);if(null===t)return null;t=t||0;var r=Yd(e,e.mediaSequence+e.segments.length,t);return n&&(r-=i="number"==typeof i?i:Wd(null,e)),Math.max(0,r)},Jd=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Zd=function(e){return e.excludeUntil&&e.excludeUntil===1/0},eh=function(e){var t=Jd(e);return!e.disabled&&!t},th=function(e,t){return t.attributes&&t.attributes[e]},nh=function(e,t,n,i){return void 0===i&&(i=0),th("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*i)/t:NaN},ih=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!eh(e)&&(e.attributes.BANDWIDTH||0)<n}).length},rh=function(e,t){return!(!e&&!t||!e&&t||e&&!t||e!==t&&(!e.id||!t.id||e.id!==t.id)&&(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)&&(!e.uri||!t.uri||e.uri!==t.uri))},ah=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var a in n[r])if(i=t(n[r][a]))break;if(i)break}return!!i},oh=function(e){if(!e||!e.playlists||!e.playlists.length)return ah(e,function(e){return e.playlists&&e.playlists.length||e.uri});for(var t=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;return i&&i.split(",").every(function(e){return $o(e)})||ah(e,function(e){return rh(n,e)})?"continue":{v:!1}},n=0;n<e.playlists.length;n++){var i=t(n);if("continue"!==i&&"object"==typeof i)return i.v}return!0},sh={liveEdgeDelay:Wd,duration:Kd,seekable:function(e,t,n){var i=t||0,r=Qd(e,t,!0,n);return null===r?jd():jd(i,r)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,o=e.experimentalExactManifestTimings,s=n-a,l=Vd(t),u=0,c=0;c<l.length;c++){var d=l[c];if(i===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){u=c;break}}if(s<0){if(u>0)for(var h=u-1;h>=0;h--){var p=l[h];if(s+=p.duration,o){if(s<0)continue}else if(s+xd<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-Xd({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n}}if(u<0){for(var f=u;f<0;f++)if((s-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n};u=0}for(var m=u;m<l.length;m++){var g=l[m];if(s-=g.duration,o){if(s>0)continue}else if(s-xd>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+Xd({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:n}},isEnabled:eh,isDisabled:function(e){return e.disabled},isBlacklisted:Jd,isIncompatible:Zd,playlistEnd:Qd,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:th,estimateSegmentRequestTime:nh,isLowestEnabledRendition:i
475h,isAudioOnly:oh,playlistMatch:rh,segmentDurationWithParts:zd},lh=To.log,uh=function(e,t){return e+"-"+t},ch=function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,o=e.customTagMappers,s=void 0===o?[]:o,l=e.experimentalLLHLS,u=new Fo;t&&u.on("warn",t),n&&u.on("info",n),a.forEach(function(e){return u.addParser(e)}),s.forEach(function(e){return u.addTagMapper(e)}),u.push(i),u.end();var c=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){c.hasOwnProperty(e)&&delete c[e]}),c.segments&&c.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!c.targetDuration){var d=10;c.segments&&c.segments.length&&(d=c.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t("manifest has no targetDuration defaulting to "+d),c.targetDuration=d}var h=qd(c);if(h.length&&!c.partTargetDuration){var p=h.reduce(function(e,t){return Math.max(e,t.duration)},0);t&&(t("manifest has no partTargetDuration defaulting to "+p),lh.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),c.partTargetDuration=p}return c},dh=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i]){var a=e.mediaGroups[n][i][r];t(a,n,i,r)}})},hh=function(e){var t=e.playlist,n=e.uri,i=e.id;t.id=i,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},ph=function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];hh({playlist:n,id:uh(t,n.uri)}),n.resolvedUri=kd(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||lh.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},fh=function(e){dh(e,function(t){t.uri&&(t.resolvedUri=kd(e.uri,t.uri))})},mh=function(e,t){var n=uh(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:window.location.href,resolvedUri:window.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i},gh=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)if(!e.playlists[n].uri){var i="placeholder-uri-"+n;e.playlists[n].uri=i}var r=oh(e);dh(e,function(t,n,i,a){var o="placeholder-uri-"+n+"-"+i+"-"+a;if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===n&&!t.uri)for(var s=0;s<e.playlists.length;s++){var l=e.playlists[s];if(l.attributes&&l.attributes.AUDIO&&l.attributes.AUDIO===i)return}t.playlists=[_({},t)]}
475t.playlists.forEach(function(t,n){var i=uh(n,o);t.uri?t.resolvedUri=t.resolvedUri||kd(e.uri,t.uri):(t.uri=0===n?o:i,t.resolvedUri=t.uri),t.id=t.id||i,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),ph(e),fh(e)},vh=To.mergeOptions,yh=To.EventTarget,bh=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var i=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(i){var a=i.parts||[],o=Hd(t)-1;o>-1&&o!==a.length-1&&(n._HLS_part=o),(o>-1||a.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var s=new window.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){n.hasOwnProperty(e)&&s.searchParams.set(e,n[e])}),e=s.toString()}return e},_h=function(e,t){if(!e)return t;var n=vh(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=vh(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},Th=function(e,t,n){var i=e.slice(),r=t.slice();n=n||0;for(var a,o=[],s=0;s<r.length;s++){var l=i[s+n],u=r[s];l?(a=l.map||a,o.push(_h(l,u))):(a&&!u.map&&(u.map=a),o.push(u))}return o},wh=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=kd(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=kd(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=kd(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=kd(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=kd(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=kd(t,e.uri))})},Sh=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},kh=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},Eh=function(e,t,n){void 0===n&&(n=kh);var i=vh(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=Sh(t);var a=vh(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var o=0;o<t.skip.skippedSegments;o++)t.segments.unshift({skipped:!0})}a.segments=Th(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach(function(e){wh(e,a.resolvedUri)});for(var s=0;s<i.playlists.length;s++)i.playlists[s].id===t.id&&(i.playlists[s]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,dh(e,function(e,n,i,r){if(e.playlists)for(var a=0;a<e.playlists.length;a++)t.id===e.playlists[a].id&&(e.playlists[a]=t)}),i},Ch=function(e,t){var n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],a=r&&r.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},xh=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=Cd("PlaylistLoader");var a=i,o=a.withCredentials,s=void 0!==o&&o,l=a.handleManifestRedirects,u=void 0!==l&&l;r.src=t,r.vhs_=n,r.withCredentials=s,r.handleManifestRedirects=u;var c=n.options_;return r.customTagParsers=c&&c.customTagParsers||[],r.customTagMappers=c&&c.customTagMappers||[],r.experimentalLLHLS=c&&c.experimentalLLHLS||!1,To.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(At(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}It(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=kd(this.master.uri,t.uri);this.experimentalLLHLS&&(n=bh(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})})}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url,i=e.manifestString;return ch({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for "+n+": "+i)},manifestString:i,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistOb
475ject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:i,manifestString:t});a.lastRequest=Date.now(),hh({playlist:a,uri:i,id:r});var o=Eh(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.master=o,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Ch(this.media(),!!o)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),window.clearTimeout(this.mediaUpdateTimeout),window.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(window.clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=window.setTimeout(this.media.bind(this,e,!1),i)}else{var r=this.state,a=!this.media_||e.id!==this.media_.id,o=this.master.playlists[e.id];if(o&&o.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(a&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(Ch(e,!0)),a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Ed(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,r);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}},n.pause=function(){this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=window.setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=window.setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))},n.start=function(){var e=this;
475if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=window.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){e.setupInitialPlaylist(e.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Ed(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}})},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,gh(this.master,this.srcUri()),e.playlists.forEach(function(e){e.segments=Sh(e),e.segments.forEach(function(t){wh(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||window.location.href;this.master=mh(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(yh),Ph=To.xhr,Ah=To.mergeOptions,Lh=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},Ih=function(){var e=function e(t,n){t=Ah({timeout:45e3},t);var i=e.beforeRequest||To.Vhs.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(t);r&&(t=r)}var a=(!0===To.Vhs.xhr.original?Ph:To.Vhs.xhr)(t,function(e,t){return Lh(a,e,t,n)}),o=a.abort;return a.abort=function(){return a.aborted=!0,o.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a};return e.original=!0,e},Nh=function(e){return"bytes="+e.offset+"-"+("bigint"==typeof e.offset||"bigint"==typeof e.length?window.BigInt(e.offset)+window.BigInt(e.length)-window.BigInt(1):e.offset+e.length-1)},Dh=function(e){var t={};return e.byterange&&(t.Range=Nh(e.byterange)),t},Oh=function(e,t){return e.start(t)+"-"+e.end(t)},Mh=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Rh=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Bh=function(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n];ArrayBuffer.isView(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i}),t},Uh=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Fh=function(e){return e.resolvedUri},jh=function(e){for(var t=Array.prototype.slice.call(e),n=16,i="",r=0;r<t.length/n;r++)i+=t.slice(r*n,r*n+n).map(Mh).join("")+" "+t.slice(r*n,r*n+n).map(Rh).join("")+"\n";return i},zh=function(e){var t=e.bytes;return jh(t)},Vh=function(e){var t,n="";for(t=0;t<e.length;t++)n+=Oh(e,t)+" ";return n},qh=Object.freeze({__proto__:null,createTransferableMessage:Bh,initSegmentId:Uh,segmentKeyId:Fh,hexDump:jh,tagDump:zh,textRanges:Vh}),Hh=.25,Wh=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*i)},$h=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},Gh=function(e,t){var n;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var i=t.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<t.segments.length-1&&(i=t.segments[r],!(n<t.segments[r+1].dateTimeObject));r++);var a=t.segments[t.segments.length-1],o=a.dateTimeObject,s=a.videoTimingInfo?$h(a.videoTimingInfo):a.duration+a.duration*Hh;return n>new Date(o.getTime()+1e3*s)?null:(n>o&&(i=a),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:sh.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},Yh=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length&&!(e<=(i=(n=t.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+a.duration*Hh)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},Kh=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(e){}var r=n.getTime();return(i.getTime()-r)/1e3},Xh=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0},Qh=function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");
475if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=Yh(i,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var o={mediaSeconds:i},s=Wh(i,a.segment);return s&&(o.programDateTime=s.toISOString()),r(null,o)},Jh=function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,a=void 0===r?2:r,o=t.seekTo,s=t.pauseAfterSeek,l=void 0===s||s,u=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!i||!o)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!u.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!Xh(i))return c({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=Gh(n,i);if(!d)return c({message:n+" was not found in the stream"});var h=d.segment,p=Kh(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?c({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+p),void u.one("seeked",function(){e({programTime:n,playlist:i,retryCount:a-1,seekTo:o,pauseAfterSeek:l,tech:u,callback:c})}));var f=h.start+p,m=function(){return c(null,u.currentTime())};u.one("seeked",m),l&&u.pause(),o(f)},Zh=function(e,t){if(4===e.readyState)return t()},ep=function(e,t,n){var i,r=[],a=!1,o=function(e,t,i,r){return t.abort(),a=!0,n(e,t,i,r)},s=function(e,t){if(!a){if(e)return o(e,t,"",r);var n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=jc(r,Fc(n,!0)),i=i||Hc(r),r.length<10||i&&r.length<i+2)return Zh(t,function(){return o(e,t,"",r)});var s=_d(r);return"ts"===s&&r.length<188||!s&&r.length<376?Zh(t,function(){return o(e,t,"",r)}):o(null,t,s,r)}},l={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function(t){return t.total,t.loaded,Lh(e,null,{statusCode:e.status},s)})}},u=t(l,function(e,t){return Lh(u,e,t,s)});return u},tp=To.EventTarget,np=To.mergeOptions,ip=function(e,t){if(!kh(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var a=i.byterange,o=r.byterange;if(a&&!o||!a&&o)return!1;if(a.offset!==o.offset||a.length!==o.length)return!1}}return!0},rp=function(e){var t=e.masterXml,n=e.srcUrl,i=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,o=Cc(t,{manifestUri:n,clientOffset:i,sidxMapping:r,previousManifest:a});return gh(o,n),o},ap=function(e,t,n){for(var i=!0,r=np(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var o=t.playlists[a];if(o.sidx){var s=Mu(o.sidx);n&&n[s]&&n[s].sidx&&Cu(o,n[s].sidx,o.sidx.resolvedUri)}var l=Eh(r,o,ip);l&&(r=l,i=!1)}return dh(t,function(e,t,n,a){if(e.playlists&&e.playlists.length){var o=e.playlists[0].id,s=Eh(r,e.playlists[0],ip);s&&((r=s).mediaGroups[t][n][a].playlists[0]=r.playlists[o],i=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r},op=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},sp=function(e,t){var n={};for(var i in e){var r=e[i].sidx;if(r){var a=Mu(r);if(!t[a])break;var o=t[a].sidxInfo;op(o,r)&&(n[a]=t[a])}}return n},lp=function(e,t){var n=sp(e.playlists,t);return dh(e,function(e,i,r,a){if(e.playlists&&e.playlists.length){var o=e.playlists;n=np(n,sp(o,t))}}),n},up=function(e){function t(t,n,i,r){var a;void 0===i&&(i={}),(a=e.call(this)||this).masterPlaylistLoader_=r||At(a),r||(a.isMaster_=!0);var o=i,s=o.withCredentials,l=void 0!==s&&s,u=o.handleManifestRedirects,c=void 0!==u&&u;if(a.vhs_=n,a.withCredentials=l,a.handleManifestRedirects=c,!t)throw new Error("A non-empty playlist URL or object is required");return a.on("minimumUpdatePeriod",function(){a.refreshXml_()}),a.on("mediaupdatetimeout",function(){a.refreshMedia_(a.media().id)}),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=Cd("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}It(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var i=this,r=e.sidx&&Mu(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var a=Ed(this.handleManifestRedirects,e.sidx.resolvedUri),o=function(a,o){if(!i.requestErrored_(a,o,t)){var s,l=i.masterPlaylistLoader_.sidxMapping_;try{s=Lc(Oc(o.response).subarray(8))}catch(e){return void i.requestErrored_(e,o,t)}return l[r]={sidxInfo:e.sidx,sidx:s},Cu(e,s,e.sidx.resolvedUri),n(!0)}};this.request=ep(a,this.vhs_.xhr,function(t,n,r,s){if(t)return o(t,n);if(!r||"mp4"!==r)return o({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+a,response:"",playlist:e,internal:!0,blackl
475istDuration:1/0,code:2},n);var l=e.sidx.byterange,u=l.offset,c=l.length;if(s.length>=c+u)return o(t,{response:s.subarray(u,u+c),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:Dh({byterange:e.sidx.byterange})},o)})}else this.mediaRequest_=window.setTimeout(function(){return n(!1)},0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},window.clearTimeout(this.minimumUpdatePeriodTimeout_),window.clearTimeout(this.mediaRequest_),window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,function(i){t.haveMetadata({startingState:n,playlist:e})}))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(window.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=window.setTimeout(function(){return t.load()},i)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_(function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=window.setTimeout(function(){return e.haveMaster_()},0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Ed(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_(function(){return e(i,r)})):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)})},n.syncClientServerClock_=function(e){var t=this,n=xc(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:kd(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var a;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}}))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=rp({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=ap(e,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||e;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return n&&n!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(window.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;
4750===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=window.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},n.refreshXml_=function(){var e=this;this.requestMaster_(function(t,n){n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=lp(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];i?this.media_=n[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=window.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},Ch(t.media(),Boolean(i))))}(),this.trigger("loadedplaylist")},t}(tp),cp={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},dp=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},hp=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},pp=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},fp=function(e){return function(){var t=pp(e),n=hp(new Worker(t));n.objURL=t;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},mp=function(e){return"var browserWorkerPolyFill = "+hp.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},gp=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},vp=mp(gp(function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,i,r,a,o,s,l,u,c,d,h,p,f,m,g,v,y,b,_,T,w,S,k,E,C,x,P,A,L,I,N,D,O,M,R,B,U,F,j,z,V=e,q=Math.pow(2,32),H={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:n.getUint32(0)*q+n.getUint32(4)},MAX_UINT32:q},W=H.MAX_UINT32;!function(){var e;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in S)S.hasOwnProperty(e)&&(S[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),C=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),E=new Uint8Array([0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),P=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:x,audio:P},N=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),O=D,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=D,L=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,n,i=[],r=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)r+=i[t].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,r=8;t<i.length;t++)n.set(i[t],r),r+=i[t].byteLength;return n},i=function(){return t(S.dinf,t(S.dref,N))},r=function(e){return t(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},g=function(e){return t(S.hdlr,A[e])},m=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(S.mdhd,n)},f=function(e){return t(S.mdia,m(e),g(e.type),s(e))},o=function(e){return t(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return t(S.minf,"video"===e.type?t(S.vmhd,L):t(S.smhd,I),i(),y(e))},l=function(e,n){for(var i=[],r=n.length;r--;)i[r]=_(n[r]);return t.apply(null,[S.moof,o(e)].concat(i))},u=function(e){for(var n=e.length,i=[];n--;)i[n]=h(e[n]);
vendor: 13,164 bytes, line 475
475return t.apply(null,[S.moov,d(4294967295)].concat(i).concat(c(e)))},c=function(e){for(var n=e.length,i=[];n--;)i[n]=T(e[n]);return t.apply(null,[S.mvex].concat(i))},d=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(S.mvhd,n)},v=function(e){var n,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(S.sdtp,a)},y=function(e){return t(S.stbl,b(e),t(S.stts,R),t(S.stsc,O),t(S.stsz,M),t(S.stco,D))},b=function(e){return t(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?B(e):U(e))},B=function(e){var n,i,r=e.sps||[],a=e.pps||[],o=[],s=[];for(n=0;n<r.length;n++)o.push((65280&r[n].byteLength)>>>8),o.push(255&r[n].byteLength),o=o.concat(Array.prototype.slice.call(r[n]));for(n=0;n<a.length;n++)s.push((65280&a[n].byteLength)>>>8),s.push(255&a[n].byteLength),s=s.concat(Array.prototype.slice.call(a[n]));if(i=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],o,[a.length],s))),t(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];i.push(t(S.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return t.apply(null,i)},U=function(e){return t(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},p=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(S.tkhd,n)},_=function(e){var n,i,r,a,o,s,l;return n=t(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/W),l=Math.floor(e.baseMediaDecodeTime%W),i=t(S.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),o=92,"audio"===e.type?(r=w(e,o),t(S.traf,n,i,r)):(a=v(e),r=w(e,a.length+o),t(S.traf,n,i,r,a))},h=function(e){return e.duration=e.duration||4294967295,t(S.trak,p(e),f(e))},T=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(S.trex,n)},z=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},j=function(e,n){var i,r,a,o,s,l;for(n+=20+16*(o=e.samples||[]).length,a=z(o,n),(r=new Uint8Array(a.length+16*o.length)).set(a),i=a.length,l=0;l<o.length;l++)s=o[l],r[i++]=(4278190080&s.duration)>>>24,r[i++]=(16711680&s.duration)>>>16,r[i++]=(65280&s.duration)>>>8,r[i++]=255&s.duration,r[i++]=(4278190080&s.size)>>>24,r[i++]=(16711680&s.size)>>>16,r[i++]=(65280&s.size)>>>8,r[i++]=255&s.size,r[i++]=s.flags.isLeading<<2|s.flags.dependsOn,r[i++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,r[i++]=61440&s.flags.degradationPriority,r[i++]=15&s.flags.degradationPriority,r[i++]=(4278190080&s.compositionTimeOffset)>>>24,r[i++]=(16711680&s.compositionTimeOffset)>>>16,r[i++]=(65280&s.compositionTimeOffset)>>>8,r[i++]=255&s.compositionTimeOffset;return t(S.trun,r)},F=function(e,n){var i,r,a,o,s,l;for(n+=20+8*(o=e.samples||[]).length,a=z(o,n),(i=new Uint8Array(a.length+8*o.length)).set(a),r=a.length,l=0;l<o.length;l++)s=o[l],i[r++]=(4278190080&s.duration)>>>24,i[r++]=(16711680&s.duration)>>>16,i[r++]=(65280&s.duration)>>>8,i[r++]=255&s.duration,i[r++]=(4278190080&s.size)>>>24,i[r++]=(16711680&s.size)>>>16,i[r++]=(65280&s.size)>>>8,i[r++]=255&s.size;return t(S.trun,i)},w=function(e,t){return"audio"===e.type?F(e,t):j(e,t)};var $,G,Y,K,X,Q,J,Z,ee={ftyp:a=function(){return t(S.ftyp,k,E,k,C)},mdat:function(e){return t(S.mdat,e)},moof:l,moov:u,initSegment:function(e){var t,n=a(),i=u(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t}},te=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},ne=function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},ie=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},re=function(e,t){var n=ie();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ae=function(e,t){var n,i,r,a,o,s=t||0,l=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)o=a[i],s+=(r=re(o,s)).size,l.push(r);return l},oe=function(e){var t,n,i,r,a,o,s=0,l=e.byteLength,u=e.nalCount,c=new Uint8Array(l+4*u),d=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)o=a[i],d.setUint32(s,o.data.byteLength),s+=4,c.set(o.data,s),s+=o.data.byteLength;return c},se=function(e){var t,n,i=0,r=e.byteLength,a=e.length,o=new Uint8Array(r+4*a),s=new DataView(o.buffer);for(t=0;t<e.length;t++)n=e[t],s.setUint32(i,n.data.byteLength),i+=4,o.set(n.data,i),i+=n.data.byteLength;return o},le={groupNalsIntoFrames:te,groupFramesIntoGops:ne,extendFirstKeyFrame:function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:ae,concatenateNalData:oe,generateSampleTableForFrame:function(e,t){var n,i=[];return n=re(e,t||0),i.push(n),i},concatenateNalDataForFrame:se},ue=[33,16,5,32,164,27],ce=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],de=function(e){for(var t=[];e--;)t.push(0);return t},he=function(e){return Object.keys(e).reduce(function(t,n){return t[n]=new Uint8Array(e[n].reduce(function(e,t){return e.concat(t)},[])),t},{})},pe=function(){if(!$){var e={96e3:[ue,[227,64],de(154),[56]],88200:[ue,[231],de(170),[56]],64e3:[ue,[248,192],de(240),[56]],48e3:[ue,[255,192],de(268),[55,148,128],de(54),[112]],44100:[ue,[255,192],de(268),[55,163,128],de(84),[112]],32e3:[ue,[255,192],de(268),[55,234],de(226),[112]],24e3:[ue,[255,192],de(268),[55,255,128],de(268),[111,112],de(126),[224]],16e3:[ue,[255,192],de(268),[55,255,128],de(268),[111,255],de(269),[223,108],de(195),[1,192]],12e3:[ce,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,253,128],de(259),[56]],11025:[ce,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,255,192],de(268),[55,175,128],de(108),[112]],8e3:[ce,de(268),[3,121,16],de(47),[7]]};$=he(e)}return $},fe=9e4;Q=function(e,t){return G(X(e,t))},J=function(e,t){return Y(K(e),t)},Z=function(e,t,n){return K(n?e:e-t)};var me={ONE_SECOND_IN_TS:fe,secondsToVideoTs:G=function(e){return e*fe},secondsToAudioTs:Y=function(e,t){return e*t},videoTsToSeconds:K=function(e){return e/fe},audioTsToSeconds:X=function(e,t){return e/t},audioTsToVideoTs:Q,videoTsToAudioTs:J,metadataTsToSeconds:Z},ge=function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n},ve=function(e,t,n,i){var r,a,o,s,l=0,u=0,c=0,d=0;if(t.length&&(r=me.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(me.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),d=(c=Math.floor(u/l))*l),!(c<1||d>me.ONE_SECOND_IN_TS/2))){for((a=pe()[e.samplerate])||(a=t[0].data),o=0;o<c;o++)s=t[0],t.splice(0,0,{data:a,dts:s.dts-l,pts:s.pts-l});return e.baseMediaDecodeTime-=Math.floor(me.videoTsToAudioTs(d,e.samplerate)),d}},ye=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},be=function(e){var t,n,i=0,r=new Uint8Array(ge(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r},_e={prefixWithSilence:ve,trimAdtsFramesByEarliestDts:function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},generateSampleTable:ye,concatenateFrameData:be},Te=me.ONE_SECOND_IN_TS,we={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var n,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/Te,n=Math.floor(n)),n},collectDtsInfo:function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},Se=4,ke=128,Ee=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;t<e.byteLength&&e[t]!==ke;){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!n.payload&&i===Se){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n},Ce=function(e,t){var n,i,r,a,o=[];if(!(64&t[0]))return o;for(i=31&t[0],n=0;n<i;n++)a={type:3&t[2+(r=3*n)],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],o.push(a));return o},xe=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=e[o];return n},Pe={parseSei:Ee,parseUserData:function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:Ce,discardEmulationPreventionBytes:xe,USER_DATA_REGISTERED_ITU_T_T35:Se},Ae=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new ze(0,0),new ze(0,1),new ze(1,0),new ze(1,1)],this.parse708captions_&&(this.cc708Stream_=new Me({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Ae.prototype=new V,Ae.prototype.push=function(e){var t,n,i;
vendor: 6,877 bytes, line 475
475if("sei_rbsp"===e.nalUnitType&&(t=Pe.parseSei(e.escapedRBSP)).payload&&t.payloadType===Pe.USER_DATA_REGISTERED_ITU_T_T35&&(n=Pe.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Pe.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ae.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},Ae.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Ae.prototype.flush=function(){return this.flushStream("flush")},Ae.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ae.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Ae.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Ae.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Ae.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Ae.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Ae.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Le={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Ie=function(e){var t=Le[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},Ne=function(e){return 32<=e&&e<=127||160<=e&&e<=255},De=function(e){this.windowNum=e,this.reset()};De.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},De.prototype.getText=function(){return this.rows.join("\n")},De.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},De.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},De.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},De.prototype.addText=function(e){this.rows[this.rowIdx]+=e},De.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Oe=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new De(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};Oe.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new De(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},Oe.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Oe.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var Me=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach(function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)}),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};Me.prototype=new V,Me.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Me.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},Me.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)i=31&(a=t[r++]),7==(n=a>>5)&&i>0&&(n=a=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},Me.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,r));r<t+n&&r<a.length;r++)i=a[r],Ne(i)?r=this.handleText(r,o):24===i?r=this.multiByteCharacter(r,o):16===i?r=this.extendedCommands(r,o):128<=i&&i<=135?r=this.setCurrentWindow(r,o):152<=i&&i<=159?r=this.defineWindow(r,o):136===i?r=this.clearWindows(r,o):140===i?r=this.deleteWindows(r,o):137===i?r=this.displayWindows(r,o):138===i?r=this.hideWindows(r,o):139===i?r=this.toggleWindows(r,o):151===i?r=this.setWindowAttributes(r,o):144===i?r=this.setPenAttributes(r,o):145===i?r=this.setPenColor(r,o):146===i?r=this.setPenLocation(r,o):143===i?o=this.reset(r,o):8===i?o.currentWindow.backspace():12===i?o.currentWindow.clearText():13===i?o.currentWindow.pendingNewLine=!0:14===i?o.currentWindow.clearText():141===i&&r++},Me.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return Ne(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},Me.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Me.prototype.initService=function(e,t){var n,i,r=this;return(n="SERVICE"+e)in this.serviceEncodings&&(i=this.serviceEncodings[n]),this.services[e]=new Oe(e,i,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},Me.prototype.handleText=function(e,t,n){var i,r,a=n&&n.isExtended,o=n&&n.isMultiByte,s=this.current708Packet.data,l=a?4096:0,u=s[e],c=s[e+1],d=t.currentWindow;
vendor: 7,619 bytes, line 475
475return t.textDecoder_&&!a?(o?(r=[u,c],e++):r=[u],i=t.textDecoder_.decode(new Uint8Array(r))):i=Ie(l|u),d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(i),e},Me.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return Ne(i)&&Ne(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Me.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},Me.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return i=n[++e],a.visible=(32&i)>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},Me.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},Me.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},Me.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Me.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=1);return e},Me.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=0);return e},Me.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible^=1);return e},Me.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].clearText();return e},Me.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].reset();return e},Me.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},Me.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},Me.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},Me.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var Re={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Be=function(e){return null===e?"":(e=Re[e]||e,String.fromCharCode(e))},Ue=14,Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],je=function(){for(var e=[],t=Ue+1;t--;)e.push("");return e},ze=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=je();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=je();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=je()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))a=Be((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=Be((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14&~r||this.addFormatting(e.pts,["i"]),1&~r||this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var o=Fe.indexOf(7968&t);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16&~t||(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&(14&~r||this.addFormatting(e.pts,["i"]))}else this.isNormalChar(i)&&(0===r&&(r=null),a=Be(i),a+=Be(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};ze.prototype=new V,ze.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream
vendor: 4,189 bytes, line 475
475:this.name_})},ze.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=je(),this.nonDisplayed_=je(),this.lastControlCode_=null,this.column_=0,this.row_=Ue,this.rollUpRows_=2,this.formatting_=[]},ze.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},ze.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},ze.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},ze.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},ze.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},ze.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},ze.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},ze.prototype.isNormalChar=function(e){return e>=32&&e<=127},ze.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=Ue,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=je(),this.displayed_=je()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},ze.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},ze.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},ze.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},ze.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},ze.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<Ue+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},ze.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var Ve={CaptionStream:Ae,Cea608Stream:ze,Cea708Stream:Me},qe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},He=8589934592,We=4294967296,$e="shared",Ge=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>We;)e+=n*He;return e},Ye=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||$e,this.push=function(e){this.type_!==$e&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Ge(e.dts,i),e.pts=Ge(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Ye.prototype=new V;var Ke,Xe={TimestampRolloverStream:Ye,handleRollover:Ge},Qe=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Je=function(e,t,n){return decodeURIComponent(Qe(e,t,n))},Ze=function(e,t,n){return unescape(Qe(e,t,n))},et=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},tt={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Je(e.data,1,t),e.value=Je(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Je(e.data,1,t),e.url=Je(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;
vendor: 33,707 bytes, line 475
475t++)if(0===e.data[t]){e.owner=Ze(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Ke=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(Ke.prototype.init.call(this),this.dispatchType=qe.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,o,s,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=et(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<i;)t.data.set(r[0].data.subarray(0,i-l),l),l+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=et(t.data.subarray(10,14)),i-=et(t.data.subarray(16,20)));do{if((o=et(t.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((s={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+o+10)}).key=s.id,tt[s.id]&&(tt[s.id](s),"com.apple.streaming.transportStreamTimestamp"===s.owner)){var u=s.data,c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;c*=4,c+=3&u[7],s.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=s.timeStamp,t.dts=s.timeStamp),this.trigger("timestamp",s)}t.frames.push(s),n+=10,n+=o}while(n<i);this.trigger("data",t)}}},Ke.prototype=new V;var nt,it,rt,at=Ke,ot=Xe.TimestampRolloverStream,st=188,lt=71;(nt=function(){var e=new Uint8Array(st),t=0;nt.prototype.init.call(this),this.push=function(n){var i,r=0,a=st;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;a<i.byteLength;)i[r]!==lt||i[a]!==lt?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=st,a+=st);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===st&&e[0]===lt&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new V,it=function(){var e,t,n,i;it.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<n;){var a=e[r],o=(31&e[r+1])<<8|e[r+2];a===qe.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=o:a===qe.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=o:a===qe.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][o]=a),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=qe.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=qe.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},it.prototype=new V,it.STREAM_TYPES={h264:27,adts:15},rt=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},o=function(e,t){var n,i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=!!(4&e[6]),192&(n=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},s=function(e,n,i){var r,a=new Uint8Array(e.size),s={type:n},l=0,u=0,c=!1;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,l=0;l<e.data.length;l++)r=e.data[l],a.set(r.data,u),u+=r.data.byteLength;o(a,s),c="video"===n||s.packetLength<=e.size,(i||c)&&(e.size=0,e.data.length=0),c&&t.trigger("data",s)}};rt.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case qe.H264_STREAM_TYPE:e=i,t="video";break;case qe.ADTS_STREAM_TYPE:e=r,t="audio";break;case qe.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&s(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=o.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[o.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){s(i,"video"),s(r,"audio"),s(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}},rt.prototype=new V;var ut={PAT_PID:0,MP2T_PACKET_LENGTH:st,TransportPacketStream:nt,TransportParseStream:it,ElementaryStream:rt,TimestampRolloverStream:ot,CaptionStream:Ve.CaptionStream,Cea608Stream:Ve.Cea608Stream,Cea708Stream:Ve.Cea708Stream,MetadataStream:at};for(var ct in qe)qe.hasOwnProperty(ct)&&(ut[ct]=qe[ct]);var dt,ht=ut,pt=me.ONE_SECOND_IN_TS,ft=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];dt=function(e){var t,n=0;dt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,o,s,l,u=0;if(e||(n=0),"audio"===i.type){var c;for(t&&t.length?(o=t,(t=new Uint8Array(o.byteLength+i.data.byteLength)).set(o),t.set(i.data,o.byteLength)):t=i.data;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof c&&(this.skipWarn_(c,u),c=null),a=2*(1&~t[u+1]),r=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,l=(s=1024*(1+(3&t[u+6])))*pt/ft[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:s,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:ft[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+r)}),n++,u+=r}else"number"!=typeof c&&(c=u),u++;"number"==typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},dt.prototype=new V;var mt,gt=dt;mt=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");a.set(e.subarray(r,r+o)),n=new DataView(a.buffer).getUint32(0),i=8*o,t-=o},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return(i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(n&2147483648>>>e)return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var vt,yt,bt,_t=mt;yt=function(){var e,t,n=0;yt.prototype.init.call(this),this.push=function(i){var r;t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<a);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},yt.prototype=new V,bt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},vt=function(){var e,t,n,i,r,a,o,s=new yt;vt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,s.push(e))},s.on("data",function(o){var s={trackId:t,pts:n,dts:i,data:o,nalUnitTypeCode:31&o[0]};switch(s.nalUnitTypeCode){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)}),s.on("done",function(){e.trigger("done")}),s.on("partialdone",function(){e.trigger("partialdone")}),s.on("reset",function(){e.trigger("reset")}),s.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},o=function(e,t){var n,i=8,r=8;for(n=0;n<e;n++)0!==r&&(r=(i+t.readExpGolomb()+256)%256),i=0===r?i:r},r=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=e[o];return n},a=function(e){var t,n,i,r,a,s,l,u,c,d,h,p,f=0,m=0,g=0,v=0,y=[1,1];if(n=(t=new _t(e)).readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),bt[n]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,p=0;p<h;p++)t.readBoolean()&&o(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(s=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}y&&(y[0],y[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(u+1)-2*f-2*m,height:(2-d)*(c+1)*16-2*g-2*v,sarRatio:y}}},vt.prototype=new V;var Tt,wt={H264Stream:vt,NalByteStream:yt},St=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],kt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},Et=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:e(t,n+=kt(t,n))},Ct=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},xt=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Pt=function(e,t,n){return unescape(xt(e,t,n))},At=function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return St[(60&e[t+2])>>>2];t++}return null},Lt=function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=Ct(e.subarray(10,14)));do{if((n=Ct(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){if("com.apple.streaming.transportStreamTimestamp"===Pt(i,0,r)){var a=i.subarray(r+1),o=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return o*=4,o+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null},It={isLikelyAacData:function(e){var t=Et(e,0);return e.length>=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:kt,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:At,parseAacTimestamp:Lt};(Tt=function(){var e=new Uint8Array,t=0;Tt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,o,s=0,l=0;for(e.length?(o=e.length,(e=new Uint8Array(n.byteLength+o)).set(e.subarray(0,o)),e.set(n,o)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255&~e[l]||240&~e[l+1])l++;else{if(e.length-l<7)break;if(l+(s=It.parseAdtsSize(e,l))>e.length)break;a={type:"audio",data:e.subarray(l,l+s),pts:t,dts:t},this.trigger("data",a),l+=s}else{if(e.length-l<10)break;if(l+(s=It.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+s)},this.trigger("data",r),l+=s}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new V;var Nt,Dt,Ot,Mt,Rt=Tt,Bt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ut=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ft=wt.H264Stream,jt=It.isLikelyAacData,zt=me.ONE_SECOND_IN_TS,Vt=function(e,t){t.stream=e,this.trigger("log",t)},qt=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Vt.bind(e,r))}},Ht=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},Wt=function(e,t,n,i,r,a){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:a,baseMediaDecodeTime:e}};Dt=function(e,t){var n,i=[],r=0,a=0,o=1/0;n=(t=t||{}).firstSequenceNumber||0,Dt.prototype.init.call(this),this.push=function(t){we.collectDtsInfo(e,t),e&&Bt.forEach(function(n){e[n]=t[n]}),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var s,l,u,c,d,h,p;0!==i.length?(s=_e.trimAdtsFramesByEarliestDts(i,e,r),e.baseMediaDecodeTime=we.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=_e.prefixWithSilence(e,s,a,o),e.samples=_e.generateSampleTable(s),u=ee.mdat(_e.concatenateFrameData(s)),i=[],l=ee.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),we.clearDtsInfo(e),d=Math.ceil(1024*zt/e.samplerate),s.length&&(h=s.length*d,this.trigger("segmentTimingInfo",Wt(me.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),s[0].dts,s[0].pts,s[0].dts+h,s[0].pts+h,p||0)),this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+h})),this.trigger("data",{track:e,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){we.clearDtsInfo(e),i=[],this.trigger("reset")}},Dt.prototype=new V,Nt=function(e,t){var n,i,r,a=[],o=[];n=(t=t||{}).firstSequenceNumber||0,Nt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){we.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],Ut.forEach(function(t){e[t]=i[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var i,r,s,l,u,c,d,h,p=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=le.groupNalsIntoFrames(a),(s=le.groupFramesIntoGops(i))[0][0].keyFrame||((r=this.getGopForFusion_(a[0],e))?(p=r.duration,s.unshift(r),s.byteLength+=r.byteLength,s.nalCount+=r.nalCount,s.pts=r.pts,s.dts=r.dts,s.duration+=r.duration):s=le.extendFirstKeyFrame(s)),o.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s)))return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");we.clearDtsInfo(e),s=f}we.collectDtsInfo(e,s),e.samples=le.generateSampleTable(s),u=ee.mdat(le.concatenateNalData(s)),e.baseMediaDecodeTime=we.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),d=s[0],h=s[s.length-1],this.trigger("segmentTimingInfo",Wt(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:s[0].pts,end:s[s.length-1].pts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=ee.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){we.clearDtsInfo(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,o,s=45e3,l=1e4,u=1/0;for(o=0;o<this.gopCache_.length;o++)r=(a=this.gopCache_[o]).gop,e.pps&&Ht(e.pps[0],a.pps[0])&&e.sps&&Ht(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration)>=-l&&n<=s&&(!i||u>n)&&(i=a,u=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,s,l,u;for(a=e.byteLength,s=e.nalCount,l=e.duration,t=n=0;t<o.length&&n<e.length&&(i=o[t],r=e[n],i.pts!==r.pts);)r.pts>i.pts?t++:(n++,a-=r.byteLength,s-=r.nalCount,l-=r.duration);return 0===n?e:n===e.length?null:((u=e.slice(n)).byteLength=a,u.duration=l,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,s,l;for(t=o.length-1,n=e.length-1,a=null,s=!1;t>=0&&n>=0;){if(i=o[t],r=e[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?t--:(t===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(0===(l=s?n:a))return e;var u=e.slice(l),c=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){o=e}},Nt.prototype=new V,Mt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Mt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},Mt.prototype=new V,Mt.prototype.flush=function(e){var t,n,i,r,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,Ut.forEach(function(e){o.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,Bt.forEach(function(e){o.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,i=ee.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(i.byteLength),o.initSegment.set(i),o.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)o.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=me.metadataTsToSeconds(t.startPts,s,this.keepOriginalTimestamps),t.endTime=me.metadataTsToSeconds(t.endPts,s,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=me.metadataTsToSeconds(n.pts,s,this.keepOriginalTimestamps),o.metadata.push(n);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),r=0;r<o.captions.length;r++)t=o.captions[r],this.trigger("caption",t);for(r=0;r<o.metadata.length;r++)n=o.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Mt.prototype.setRemux=function(e){this.remuxTracks=e},Ot=function(e){var t,n,i=this,r=!0;Ot.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new ht.MetadataStream,r.aacStream=new Rt,r.audioTimestampRolloverStream=new ht.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ht.TimestampRolloverStream("timed-metadata"),r.adtsStream=new gt,r.coalesceStream=new Mt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",function(e){r.aacStream.setTimestamp(e.timeStamp)}),r.aacStream.on("data",function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Dt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),qt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ht.MetadataStream,r.packetStream=new ht.TransportPacketStream,r.parseStream=new ht.TransportParseStream,r.elementaryStream=new ht.ElementaryStream,r.timestampRolloverStream=new ht.TimestampRolloverStream,r.adtsStream=new gt,r.h264Stream=new Ft,r.captionStream=new ht.CaptionStream(e),r.coalesceStream=new Mt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",function(a){var o;if("metadata"===a.type){for(o=a.tracks.length;o--;)t||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||((n=a.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Nt(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Dt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),qt(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,we.clearDtsInfo(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,we.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=jt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Ot.prototype=new V;var $t,Gt,Yt,Kt,Xt,Qt,Jt={Transmuxer:Ot,VideoSegmentStream:Nt,AudioSegmentStream:Dt,AUDIO_PROPERTIES:Bt,VIDEO_PROPERTIES:Ut,generateSegmentTimingInfo:Wt},Zt={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}},en=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},tn=Zt.toUnsigned,nn=function e(t,n){var i,r,a,o,s,l=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=tn(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=en(t.subarray(i+4,i+8)),o=r>1?i+r:t.byteLength,a===n[0]&&(1===n.length?l.push(t.subarray(i+8,o)):(s=e(t.subarray(i+8,o),n.slice(1))).length&&(l=l.concat(s))),i=o;return l},rn=nn,an=Zt.toUnsigned,on=H.getUint64,sn=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=on(e.subarray(4)):t.baseMediaDecodeTime=an(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},ln=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},un=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],o=1&n.flags[1],s=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&c&&(t={flags:ln(e.subarray(d,d+4))},d+=4,o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=ln(e.subarray(d,d+4)),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},cn=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],a=2&i.flags[2],o=8&i.flags[2],s=16&i.flags[2],l=32&i.flags[2],u=65536&i.flags[0],c=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(i.defaultSampleDuration=n.getUint32(t),t+=4),s&&(i.defaultSampleSize=n.getUint32(t),t+=4),l&&(i.defaultSampleFlags=n.getUint32(t)),u&&(i.durationIsEmpty=!0),!r&&c&&(i.baseDataOffsetIsMoof=!0),i},dn=cn,hn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},pn="undefined"!=typeof window?window:void 0!==hn?hn:"undefined"!=typeof self?self:{},fn=Pe.discardEmulationPreventionBytes,mn=Ve.CaptionStream,gn=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null},vn=function(e,t,n){var i,r,a,o,s=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=s.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var u=e.subarray(r+1,r+1+a),c=gn(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:fn(u),trackId:n},c)i.pts=c.pts,i.dts=c.dts,o=c;else{if(!o){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=o.pts,i.dts=o.dts}l.seiNals.push(i)}return l},yn=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,o=n.trackId,s=[];return e.forEach(function(e){var t=un(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=o,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+pn.BigInt(e.compositionTimeOffset),i+=pn.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)}),s=s.concat(t)}),s},bn=function(e,t){var n=rn(e,["moof","traf"]),i=rn(e,["mdat"]),r={},a=[];return i.forEach(function(e,t){var i=n[t];a.push({mdat:e,traf:i})}),a.forEach(function(e){var n,i,a=e.mdat,o=e.traf,s=rn(o,["tfhd"]),l=dn(s[0]),u=l.trackId,c=rn(o,["tfdt"]),d=c.length>0?sn(c[0]).baseMediaDecodeTime:0,h=rn(o,["trun"]);t===u&&h.length>0&&(n=yn(h,d,l),i=vn(a,n,u),r[u]||(r[u]={seiNals:[],logs:[]}),r[u].seiNals=r[u].seiNals.concat(i.seiNals),r[u].logs=r[u].logs.concat(i.logs))}),r},_n=function(e,t,n){if(null===t)return null;var i=bn(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}},Tn=function(){var e,t,n,i,r,a,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new mn,o=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStream
vendor: 6,334 bytes, line 475
475s[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||n===e[0]&&i===t[n])},this.parse=function(e,a,o){var s;if(!this.isInitialized())return null;if(!a||!o)return null;if(this.isNewInit(a,o))n=a[0],i=o[n];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,o)}return(s=_n(e,n,i))&&s.logs&&(r.logs=r.logs.concat(s.logs)),null!==s&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},wn=Tn,Sn=Zt.toUnsigned,kn=Zt.toHexString,En=H.getUint64;$t=function(e){var t={};return rn(e,["moov","trak"]).reduce(function(e,t){var n,i,r,a,o;return(n=rn(t,["tkhd"])[0])?(i=n[0],a=Sn(n[r=0===i?12:20]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3]),(o=rn(t,["mdia","mdhd"])[0])?(r=0===(i=o[0])?12:20,e[a]=Sn(o[r]<<24|o[r+1]<<16|o[r+2]<<8|o[r+3]),e):null):null},t)},Gt=function(e,t){var n=rn(t,["moof","traf"]).reduce(function(t,n){var i,r,a=rn(n,["tfhd"])[0],o=Sn(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),s=e[o]||9e4,l=rn(n,["tfdt"])[0],u=new DataView(l.buffer,l.byteOffset,l.byteLength);return"bigint"==typeof(i=1===l[0]?En(l.subarray(4,12)):u.getUint32(4))?r=i/pn.BigInt(s):"number"!=typeof i||isNaN(i)||(r=i/s),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<t&&(t=r),t},1/0);return"bigint"==typeof n||isFinite(n)?n:0},Yt=function(e,t){var n,i=rn(t,["moof","traf"]),r=0,a=0;if(i&&i.length){var o=rn(i[0],["tfhd"])[0],s=rn(i[0],["trun"])[0],l=rn(i[0],["tfdt"])[0];if(o&&(n=dn(o).trackId),l&&(r=sn(l).baseMediaDecodeTime),s){var u=un(s);u.samples&&u.samples.length&&(a=u.samples[0].compositionTimeOffset||0)}}var c=e[n]||9e4;"bigint"==typeof r&&(a=pn.BigInt(a),c=pn.BigInt(c));var d=(r+a)/c;return"bigint"==typeof d&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),d},Kt=function(e){var t=rn(e,["moov","trak"]),n=[];return t.forEach(function(e){var t=rn(e,["mdia","hdlr"]),i=rn(e,["tkhd"]);t.forEach(function(e,t){var r,a,o=en(e.subarray(8,12)),s=i[t];"vide"===o&&(a=0===(r=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),n.push(a))})}),n},Qt=function(e){var t=0===e[0]?12:20;return Sn(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Xt=function(e){var t=rn(e,["moov","trak"]),n=[];return t.forEach(function(e){var t,i,r={},a=rn(e,["tkhd"])[0];a&&(i=(t=new DataView(a.buffer,a.byteOffset,a.byteLength)).getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var o=rn(e,["mdia","hdlr"])[0];if(o){var s=en(o.subarray(8,12));r.type="vide"===s?"video":"soun"===s?"audio":s}var l=rn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=en(u.subarray(4,8));var c,d=rn(u,[r.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(r.codec)?(c=d.subarray(78),"avcC"===en(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=kn(c[9]),r.codec+=kn(c[10]),r.codec+=kn(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=d.subarray(28),"esds"===en(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+kn(c[19]),r.codec+="."+kn(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=rn(e,["mdia","mdhd"])[0];h&&(r.timescale=Qt(h)),n.push(r)}),n};var Cn={findBox:rn,parseType:en,timescale:$t,startTime:Gt,compositionStartTime:Yt,videoTrackIds:Kt,tracks:Xt,getTimescaleFromMediaHeader:Qt},xn=function(e){var t=31&e[1];return t<<=8,t|=e[2]},Pn=function(e){return!!(64&e[1])},An=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Ln=function(e){var t={},n=Pn(e),i=4+An(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r;r=3+((15&e[i+1])<<8|e[i+2])-4;for(var a=12+((15&e[i+10])<<8|e[i+11]);a<r;){var o=i+a;t[(31&e[o+1])<<8|e[o+2]]=e[o],a+=5+((15&e[o+3])<<8|e[o+4])}return t}},In=function(e){if(!Pn(e))return null;var t=4+An(e);if(t>=e.byteLength)return null;var n,i=null;return 192&(n=e[t+7])&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i},Nn=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Dn={parseType:function(e,t){var n=xn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=Pn(e),n=4+An(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:Ln,parsePayloadUnitStartIndicator:Pn,parsePesType:function(e,t){switch(t[xn(e)]){case qe.H264_STREAM_TYPE:return"video";case qe.ADTS_STREAM_TYPE:return"audio";case qe.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:In,videoPacketContainsKeyFrame:function(e){for(var t=4+An(e),n=e.subarray(t),i=0,r=0,a=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===Nn(31&n[r+3])&&(a=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Nn(31&n[r+3])&&(a=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===Nn(31&n[r+3])&&(a=!0),a}},On=Xe.handleRollover,Mn={};Mn.ts=Dn,Mn.aac=It;var Rn=me.ONE_SECOND_IN_TS,Bn=188,Un=71,Fn=function(e,t){for(var n,i=0,r=Bn;r<e.byteLength;)if(e[i]!==Un||e[r]!==Un)i++,r++;else{switch(n=e.subarray(i,r),Mn.ts.parseType(n,t.pid)){case"pat":t.pid=Mn.ts.parsePat(n);break;case"pmt":var a=Mn.ts.parsePmt(n);t.table=t.table||{}
475,Object.keys(a).forEach(function(e){t.table[e]=a[e]})}i+=Bn,r+=Bn}},jn=function(e,t,n){for(var i,r,a,o,s=0,l=Bn,u=!1;l<=e.byteLength;)if(e[s]!==Un||e[l]!==Un&&l!==e.byteLength)s++,l++;else{if(i=e.subarray(s,l),"pes"===Mn.ts.parseType(i,t.pid)&&(r=Mn.ts.parsePesType(i,t.table),a=Mn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(o=Mn.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),u=!0)),u)break;s+=Bn,l+=Bn}for(s=(l=e.byteLength)-Bn,u=!1;s>=0;)if(e[s]!==Un||e[l]!==Un&&l!==e.byteLength)s--,l--;else{if(i=e.subarray(s,l),"pes"===Mn.ts.parseType(i,t.pid)&&(r=Mn.ts.parsePesType(i,t.table),a=Mn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(o=Mn.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),u=!0)),u)break;s-=Bn,l-=Bn}},zn=function(e,t,n){for(var i,r,a,o,s,l,u,c=0,d=Bn,h=!1,p={data:[],size:0};d<e.byteLength;)if(e[c]!==Un||e[d]!==Un)c++,d++;else{if(i=e.subarray(c,d),"pes"===Mn.ts.parseType(i,t.pid)&&(r=Mn.ts.parsePesType(i,t.table),a=Mn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(a&&!h&&(o=Mn.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0),!n.firstKeyFrame))){if(a&&0!==p.size){for(s=new Uint8Array(p.size),l=0;p.data.length;)u=p.data.shift(),s.set(u,l),l+=u.byteLength;if(Mn.ts.videoPacketContainsKeyFrame(s)){var f=Mn.ts.parsePesTime(s);f?(n.firstKeyFrame=f,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(i),p.size+=i.byteLength}if(h&&n.firstKeyFrame)break;c+=Bn,d+=Bn}for(c=(d=e.byteLength)-Bn,h=!1;c>=0;)if(e[c]!==Un||e[d]!==Un)c--,d--;else{if(i=e.subarray(c,d),"pes"===Mn.ts.parseType(i,t.pid)&&(r=Mn.ts.parsePesType(i,t.table),a=Mn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&a&&(o=Mn.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0)),h)break;c-=Bn,d-=Bn}},Vn=function(e,t){if(e.audio&&e.audio.length){var n=t;(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=On(e.dts,n),e.pts=On(e.pts,n),e.dtsTime=e.dts/Rn,e.ptsTime=e.pts/Rn})}if(e.video&&e.video.length){var i=t;if((void 0===i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach(function(e){e.dts=On(e.dts,i),e.pts=On(e.pts,i),e.dtsTime=e.dts/Rn,e.ptsTime=e.pts/Rn}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=On(r.dts,i),r.pts=On(r.pts,i),r.dtsTime=r.dts/Rn,r.ptsTime=r.pts/Rn}}},qn=function(e){for(var t,n=!1,i=0,r=null,a=null,o=0,s=0;e.length-s>=3;){switch(Mn.aac.parseType(e,s)){case"timed-metadata":if(e.length-s<10){n=!0;break}if((o=Mn.aac.parseId3TagSize(e,s))>e.length){n=!0;break}null===a&&(t=e.subarray(s,s+o),a=Mn.aac.parseAacTimestamp(t)),s+=o;break;case"audio":if(e.length-s<7){n=!0;break}if((o=Mn.aac.parseAdtsSize(e,s))>e.length){n=!0;break}null===r&&(t=e.subarray(s,s+o),r=Mn.aac.parseSampleRate(t)),i++,s+=o;break;default:s++}if(n)return null}if(null===r||null===a)return null;var l=Rn/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*l,pts:a+1024*i*l}]}},Hn=function(e){var t={pid:null,table:null},n={};for(var i in Fn(e,t),t.table)if(t.table.hasOwnProperty(i))switch(t.table[i]){case qe.H264_STREAM_TYPE:n.video=[],zn(e,t,n),0===n.video.length&&delete n.video;break;case qe.ADTS_STREAM_TYPE:n.audio=[],jn(e,t,n),0===n.audio.length&&delete n.audio}return n},Wn={inspect:function(e,t){var n;return(n=Mn.aac.isLikelyAacData(e)?qn(e):Hn(e))&&(n.audio||n.video)?(Vn(n,t),n):null},parseAudioPes_:jn},$n=function(e,t){t.on("data",function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){var n={start:{decode:me.videoTsToSeconds(t.start.dts),presentation:me.videoTsToSeconds(t.start.pts)},end:{decode:me.videoTsToSeconds(t.end.dts),presentation:me.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:me.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=me.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),t.on("audioSegmentTimingInfo",function(t){var n={start:{decode:me.videoTsToSeconds(t.start.dts),presentation:me.videoTsToSeconds(t.start.pts)},end:{decode:me.videoTsToSeconds(t.end.dts),presentation:me.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:me.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=me.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:me.videoTsToSeconds(t.start),end:me.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:me.videoTsToSeconds(t.start),end:me.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})},Gn=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Jt.Transmuxer(this.options),$n(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new wn,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,n=e.data,i=Cn.startTime(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=Cn.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,i="number"!=typeof n||isNaN(n)?void 0:n*me.ONE_SECOND_IN_TS,r=Wn.inspect(t,i),a=null;r&&((a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(me.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(me.secondsToVideoTs(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();
475self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Gn(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new Gn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})),yp=fp(vp),bp=function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,o=i.captions,s=i.captionStreams,l=i.metadata,u=i.videoFrameDtsTime,c=i.videoFramePtsTime;t.buffer.push({captions:o,captionStreams:s,metadata:l});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==u&&(h.videoFrameDtsTime=u),void 0!==c&&(h.videoFramePtsTime=c),n(h)},_p=function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)},Tp=function(e,t){t.gopInfo=e.data.gopInfo},wp=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,o=e.onData,s=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,c=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,v=e.isEndOfTimeline,y={buffer:[]},b=v,_=function(n){t.currentTransmux===e&&("data"===n.data.action&&bp(n,y,o),"trackinfo"===n.data.action&&s(n.data.trackInfo),"gopInfo"===n.data.action&&Tp(n,y),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&u(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&p(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(b||(t.onmessage=null,_p({transmuxedData:y,callback:f}),Sp(t))))};if(t.onmessage=_,i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var T=n instanceof ArrayBuffer?n:n.buffer,w=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:T,byteOffset:w,byteLength:n.byteLength},[T])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Sp=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():wp(e.currentTransmux))},kp=function(e,t){e.postMessage({action:t}),Sp(e)},Ep=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void kp(t,e);t.transmuxQueue.push(kp.bind(null,t,e))},Cp=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void wp(e);e.transmuxer.transmuxQueue.push(e)},xp={reset:function(e){Ep("reset",e)},endTimeline:function(e){Ep("endTimeline",e)},transmux:Cp,createTransmuxer:function(e){var t=new yp;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t}},Pp=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=_({},e,{endAction:null,transmuxer:null,callback:null}),a=function r(a){a.data.action===n&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),i(a.data))};if(t.addEventListener("message",a),e.data){var o=e.data instanceof ArrayBuffer;r.byteOffset=o?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var s=[o?e.data:e.data.buffer];t.postMessage(r,s)}else t.postMessage(r)},Ap={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Lp=function(e){e.forEach(function(e){e.abort()})},Ip=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},Np=function(e){var t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n},Dp=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Ap.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Ap.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Ap.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Ap.FAILURE,xhr:t}:null},Op=function(e,t,n){return function(i,r){var a=r.response,o=Dp(i,r);if(o)return n(o,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Ap.FAILURE,xhr:r},e);for(var s=new DataView(a),l=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),u=0;u<t.length;u++)t[u].bytes=l;return n(null,e)}},Mp=function(e,t){var n=_d(e.map.bytes);if("mp4"!==n){var i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,
475code:Ap.FAILURE})}Pp({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return e.map.bytes=r,i.forEach(function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))}),t(null)}})},Rp=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=Dp(e,i);if(r)return n(r,t);var a=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,Mp(t,function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)})}},Bp=function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=Dp(e,r);if(a)return n(a,t);var o="arraybuffer"!==i&&r.responseText?dp(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=Ip(r),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),n(null,t)}},Up=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=t.map&&t.map.tracks||{},m=Boolean(f.audio&&f.video),g=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),b=r.bind(null,t,"video","end"),_=function(){return Cp({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(m&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){g&&void 0!==e.start&&(g(e.start),g=null),v&&void 0!==e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&void 0!==e.start&&(y(e.start),y=null),b&&void 0!==e.end&&b(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,n){s(t,e,n)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:u,onEndedTimeline:function(){c()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})};Pp({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var r=e.result;r&&(i(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),i=null,r.hasAudio&&!m&&g(r.audioStart),r.hasVideo&&y(r.videoStart),g=null,y=null),_()}})},Fp=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=new Uint8Array(n);if(Td(f)){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),i(t,g);var v=function(e){d(t,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};Pp({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=f=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),m.video&&i.byteLength&&t.transmuxer?Pp({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=f=e.data,e.logs.forEach(function(e){p(To.mergeOptions(e,{stream:"mp4CaptionParser"}))}),v(e.captions)}}):v()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=_d(f)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});Up({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,t,{})},jp=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,o=e.decryptionWorker,s=function e(n){if(n.data.source===i){o.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}};o.addEventListener("message",s),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),o.postMessage(Bh({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},zp=function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;jp({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t}
475,function(e){n.bytes=e,Fp({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})})},Vp=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,Lp(t),h(e,g);if((f+=1)===t.length){var v=function(){if(g.encryptedBytes)return zp({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p});Fp({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return jp({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},function(e){g.map.bytes=e,Mp(g,function(e){if(e)return Lp(t),h(e,g);v()})});v()}}}},qp=function(e){var t=e.loadendState,n=e.abortFn;return function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}},Hp=function(e){var t=e.segment,n=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn,function(e){if(!e.target.aborted)return t.stats=To.mergeOptions(t.stats,Np(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},Wp=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,o=e.progressFn,s=e.trackInfoFn,l=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,c=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,p=e.isEndOfTimeline,f=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,y=[],b=Vp({activeXhrs:y,decryptionWorker:i,trackInfoFn:s,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var _=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&_.push(r.map.key);var T=t(To.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),Op(r,_,b));y.push(T)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var w=t(To.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),Op(r,[r.map.key],b));y.push(w)}var S=t(To.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Dh(r.map)}),Rp({segment:r,finishProcessingFn:b}));y.push(S)}var k=To.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Dh(r)}),E=t(k,Bp({segment:r,finishProcessingFn:b,responseType:k.responseType}));E.addEventListener("progress",Hp({segment:r,progressFn:o,trackInfoFn:s,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m})),y.push(E);var C={};return y.forEach(function(e){e.addEventListener("loadend",qp({loadendState:C,abortFn:a}))}),function(){return Lp(y)}},$p=Cd("CodecUtils"),Gp=function(e){var t=e.attributes||{};if(t.CODECS)return Ho(t.CODECS)},Yp=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},Kp=function(e,t){if(!Yp(e,t))return!0;var n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1},Xp=function(e){var t={};return e.forEach(function(e){var n=e.mediaType,i=e.type,r=e.details;t[n]=t[n]||[],t[n].push(qo(""+i+r))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return $p("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]}),t},Qp=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Jp=function(e,t){var n=t.attributes||{},i=Xp(Gp(t)||[]);if(Yp(e,t)&&!i.audio&&!Kp(e,t)){var r=Xp(Wo(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Zp=Cd("PlaylistSelector"),ef=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},tf=function(e,t){if(!e)return"";var n=window.getComputedStyle(e);return n?n[t]:""},nf=function(e,t){var n=e.slice();e.sort(function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r})},rf=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||window.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),n-(i=i||window.Number.MAX_VALUE)},af=function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||window.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),n===(i=i||window.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},of=function(e,t,n,i,r,a){if(e){var o={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},s=e.playlists;sh.isAudioOnly(e)&&(s=a.getAudioTrackPlaylists_(),o.audioOnly=!0);var l=s.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||window.Number.MAX_VALUE,width:t,height:n,playlist:e}});nf(l,function(e,t){return e.bandwidth-t.bandwidth});var u=(l=l.filter(function(e){return!sh.isIncompatible(e.playlist)})).filter(function(e){return sh.isEnabled(e.playlist)});u.length||(u=l.filter(function(e){return!sh.isDisabled(e.playlist)}));var c=u.filter(function(e){return e.bandwidth*cp.BANDWIDTH_VARIANCE<t}),d=c[c.length-1],h=c.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(!1===r){var p=h||u[0]||l[0];if(p&&p.playlist){var f="sortedPlaylistReps";return h&&(f="bandwidthBestRep"),u[0]&&(f="enabledPlaylistReps"),Zp("choosing "+ef(p)+" using "+f+" with options",o),p.playlist}return Zp("could not choose a playlist with options",o),null}var m=c.filter(function(e){return e.width&&e.height});nf(m,function(e,t){return e.width-t.width});var g=m.filter(function(e){return e.width===n&&e.height===i});d=g[g.length-1];var v,y,b,_,T=g.filter(function(e){return e.bandwidth===d.bandwidth})[0];if(T||(y=(v=m.filter(function(e){return e.width>n||e.height>i})).filter(function(e){return e.width===v[0].width&&e.height===v[0].height}),d=y[y.length-1],b=y.filter(function(e){return e.bandwidth===d.bandwidth})[0]),a.experimentalLeastPixelDiffSelector){var w=m.map(function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e});nf(w,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),_=w[0]}var S=_||b||T||h||u[0]||l[0];if(S&&S.playlist){var k="sortedPlaylistReps";return _?k="leastPixelDiffRep":b?k="resolutionPlusOneRep":T?k="resolutionBestRep":h?k="bandwidthBestRep":u[0]&&(k="enabledPlaylistReps"),Zp("choosing "+ef(S)+" using "+k+" with options",o),S.playlist}return Zp("could not choose a playlist with options",o),null}},sf=function(){var e=this.useDevicePixelRatio&&window.devicePixelRatio||1;return of(this.playlists.master,this.systemBandwidth,parseInt(tf(this.tech_.el(),"width"),10)*e,parseInt(tf(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},lf=function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&window.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),of(this.playlists.master,t,parseInt(tf(this.tech_.el(),"width"),10)*i,parseInt(tf(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},uf=function(e){var t=e.master,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,o=e.timeUntilRebuffer,s=e.currentTimeline,l=e.syncController,u=t.playlists.filter(function(e){return!sh.isIncompatible(e)}
475),c=u.filter(sh.isEnabled);c.length||(c=u.filter(function(e){return!sh.isDisabled(e)}));var d=c.filter(sh.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=l.getSyncPoint(e,r,s,n)?1:2;return{playlist:e,rebufferingImpact:sh.estimateSegmentRequestTime(a,i,e)*t-o}}),h=d.filter(function(e){return e.rebufferingImpact<=0});return nf(h,function(e,t){return rf(t.playlist,e.playlist)}),h.length?h[0]:(nf(d,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),d[0]||null)},cf=function(){var e=this,t=this.playlists.master.playlists.filter(sh.isEnabled);return nf(t,function(e,t){return rf(e,t)}),t.filter(function(t){return!!Jp(e.playlists.master,t).video})[0]||null},df=function(e){var t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(function(e){t.set(e,n),n+=e.byteLength})),t},hf=function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var a=n,o=n,s=!1,l=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];l&&(a=l.label,o=l.language,s=l.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:s,label:a,language:o},!1).track}}},pf=function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var r=window.WebKitDataCue||window.VTTCue;n.forEach(function(e){var n=e.stream;t[n].addCue(new r(e.startTime+i,e.endTime+i,e.text))})}},ff=function(e){Object.defineProperties(e.frame,{id:{get:function(){return To.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return To.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return To.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},mf=function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var a=window.WebKitDataCue||window.VTTCue,o=t.metadataTrack_;if(o&&(n.forEach(function(e){var t=e.cueTime+i;!("number"!=typeof t||window.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach(function(e){var n=new a(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,ff(n),o.addCue(n)})}),o.cues&&o.cues.length)){for(var s=o.cues,l=[],u=0;u<s.length;u++)s[u]&&l.push(s[u]);var c=l.reduce(function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),d=Object.keys(c).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var n=c[e],i=Number(d[t+1])||r;n.forEach(function(e){e.endTime=i})})}}},gf=function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}
475,vf=function(e,t,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=e&&r.endTime<=t&&n.removeCue(r)},yf=function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var i=[],r=0,a=0;a<t.length;a++)t[n].startTime===t[a].startTime&&t[n].endTime===t[a].endTime&&t[n].text===t[a].text&&++r>1&&i.push(t[a]);i.length&&i.forEach(function(t){return e.removeCue(t)})}},bf=function(e,t,n){if(null==t||!e.length)return[];var i,r=Math.ceil((t-n+3)*Sd);for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)},_f=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var i=t[0].pts,r=0;r<e.length&&!(e[r].pts>=i);r++);return e.slice(0,r).concat(t)},Tf=function(e,t,n,i){for(var r=Math.ceil((t-i)*Sd),a=Math.ceil((n-i)*Sd),o=e.slice(),s=e.length;s--&&!(e[s].pts<=a););if(-1===s)return o;for(var l=s+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),o.splice(l,s-l+1),o},wf=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(a!==i[r])return!1;if(e[a]!==t[a])return!1}return!0},Sf=22,kf=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a<t.length;a++){var o=t[a];if(e===o.timeline&&(i.push(a),(r+=o.duration)>n))return a}return 0===i.length?0:i[i.length-1]},Ef=1,Cf=500,xf=function(e){return"number"==typeof e&&isFinite(e)},Pf=1/60,Af=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null},Lf=function(e,t,n){var i=t-cp.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));var r=t-n;return Math.min(r,i)},If=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,o=a.mediaSequence,s=a.id,l=a.segments,u=void 0===l?[]:l,c=e.mediaIndex,d=e.partIndex,h=e.timeline,p=u.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(f+=" with independent "+e.independent);var m="number"==typeof d,g=e.segment.uri?"segment":"pre-segment",v=m?Hd({preloadSegment:i})-1:0;return g+" ["+(o+c)+"/"+(o+p)+"]"+(m?" part ["+d+"/"+v+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+f+"] playlist ["+s+"]"},Nf=function(e){return e+"TimingInfo"},Df=function(e){var t=e.segmentTimeline,n=e.currentTimeline,i=e.startOfSegment,r=e.buffered;return e.overrideCheck||t!==n?t<n?i:r.length?r.end(r.length-1):i:null},Of=function(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(n===i)return!1;if("audio"===r){var o=t.lastTimelineChange({type:"main"});return!o||o.to!==i}if("main"===r&&a){var s=t.pendingTimelineChange({type:"audio"});return!s||s.to!==i}return!1},Mf=function(e){var t=0;return["video","audio"].forEach(function(n){var i=e[n+"TimingInfo"];if(i){var r,a=i.start,o=i.end;"bigint"==typeof a||"bigint"==typeof o?r=window.BigInt(o)-window.BigInt(a):"number"==typeof a&&"number"==typeof o&&(r=o-a),void 0!==r&&r>t&&(t=r)}}),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},Rf=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+xd},Bf=function(e,t){if("hls"!==t)return null;var n=Mf({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;var i=e.playlist.targetDuration,r=Rf({segmentDuration:n,maxDuration:2*i}),a=Rf({segmentDuration:n,maxDuration:i}),o="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+n+" when the reported duration is "+e.duration+" and the target duration is "+i+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";
475return r||a?{severity:r?"warn":"info",message:o}:null},Uf=function(e){function t(t,n){var i;if(i=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=To.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=Cd("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(At(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i}It(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return xp.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,window.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e
475:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&xp.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return To.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,i=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Uh(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Fh(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var s=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=s}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&xp.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){0===--r&&n()};for(var o in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=Tf(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)vf(e,t,this.inbandTextTracks_[o]);vf(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),Cf)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Ud(e)||0,n=Fd(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=kf(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var s=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;o.startOfSegment=s.end?s.end:t,s.parts&&s.parts[l+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=l+1):o.mediaIndex=this.mediaIndex+1}else{var u=sh.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=u.segmentIndex,d=u.startTime,h=u.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),o.mediaIndex=c,o.startOfSegment=d,o.partIndex=h}var p=a[o.mediaIndex],f=p&&"number"==typeof o.partIndex&&p.parts&&p.parts[o.partIndex];if(!p||"number"==typeof o.partIndex&&!f)return null;if("number"!=typeof o.partIndex&&p.parts&&(o.partIndex=0,f=p.parts[0]),!n&&f&&!f.independent)if(0===o.partIndex){var m=a[o.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(o.mediaIndex-=1,o.partIndex=m.parts.length-1,o.independent="previous segment")}else p.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");var v=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=a.length-1&&v&&!this.seeking_()?null:this.generateSegmentInfo_(o)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,o=e.partIndex,s=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=n.segments[i],c="number"==typeof o&&u.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:c?o:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==s?s:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});
475var p=Ud(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=bf(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return Df(e)},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=sh.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=Md(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var o=uf({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var s=r-a-o.rebufferingImpact,l=.5;a<=xd&&(l=1),!o.playlist||o.playlist.uri===this.playlist_.uri||s<l||(this.bandwidth=o.playlist.attributes.BANDWIDTH*cp.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+If(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},wf(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=Nf(t);r[a]=r[a]||{},r[a][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(function(e){r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)}),Object.keys(r).forEach(function(e){var t=r[e],a=t.startTime,o=t.endTime,s=t.captions,l=n.inbandTextTracks_;n.logger_("adding cues from "+a+" -> "+o+" for "+e),hf(l,n.vhs_.tech_,e),vf(a,o,l[e]),pf({captionArray:s,inbandTextTracks:l,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();gf(this.inbandTextTracks_,n,this.vhs_.tech_),mf({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&Of({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed;return!(i&&!e.videoTimingInfo||n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||Of({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.ke
475y,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Nf(t.type)].start;else{var i,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var o=this.chooseNextRequest_();if(o.mediaIndex!==n.mediaIndex||o.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var a=Uh(i);if(this.activeInitSegmentId_===a)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=a}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes,o=this.sourceUpdater_.audioBuffered(),s=this.sourceUpdater_.videoBuffered();o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Rd(o).join(", ")),s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Rd(s).join(", "));var l=o.length?o.start(0):0,u=o.length?o.end(o.length-1):0,c=s.length?s.start(0):0,d=s.length?s.end(s.length-1):0;if(u-l<=Ef&&d-c<=Ef)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+Rd(o).join(", ")+", video buffer: "+Rd(s).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:a}));var h=this.currentTime_()-Ef;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h),this.remove(0,h,function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in "+Ef+"s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=window.setTimeout(function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()},1e3*Ef)},!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(t.code!==Sf?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(e){var t=e.segmentInfo,n=e.type,i=e.initSegment,r=e.data,a=e.bytes;if(!a){var o=[r],s=r.byteLength;i&&(o.unshift(i),s+=i.byteLength),a=df({bytes:s,segments:o})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:a}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=e+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push(function(){var n=_({},e,{forceTimestampOffset:!0});_(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)})},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));
475var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,o=i||r&&a;this.logger_("Requesting "+If(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Wp({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,a=n.stream;t.logger_(If(e)+" logged from transmuxer stream "+a+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t=Lf(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=a}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<Pf?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+Pf):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Ap.ABORTED)return;return this.pause(),e.code===Ap.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=_f(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,o=e.useVideoTimingInfo,s=e.videoTimingInfo,l=e.audioTimingInfo;if(void 0!==t)return t;if(!o)return l.start;var u=n.segments[i-1];return 0!==i&&u&&void 0!==u.start&&u.end===r+a?s.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&i,o=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||
475(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=Af(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=e.timingInfo.start,e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=Bf(e,this.sourceType_);if(t&&("warn"===t.severity?To.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+If(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+If(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+If(e))},n.recordThroughput_=function(e){if(e.duration<Pf)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+Pf);else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(xf(n)&&xf(i)){vf(n,i,this.segmentMetadataTrack_);var r=window.WebKitDataCue||window.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},o=new r(n,i,JSON.stringify(a));o.value=a,this.segmentMetadataTrack_.addCue(o)}}},t}(To.EventTarget);function Ff(){}var jf,zf=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},Vf=["video","audio"],qf=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},Hf=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null},Wf=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!qf(t,n)){if(r.type!==t){if(null===(i=Hf(t,n.queue)))return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[t]=r,r.action(t,n),r.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n))}},$f=function(e,t){var n=t[e+"Buffer"],i=zf(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},Gf=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},Yf={appendBuffer:function(e,t,n){return function(i,r){var a=r[i+"Buffer"];if(Gf(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" b
475ytes to "+i+"Buffer");try{a.appendBuffer(e)}catch(e){r.logger_("Error with code "+e.code+" "+(e.code===Sf?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(e)}}}},remove:function(e,t){return function(n,i){var r=i[n+"Buffer"];if(Gf(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(r){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},timestampOffset:function(e){return function(t,n){var i=n[t+"Buffer"];Gf(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},callback:function(e){return function(t,n){e()}},endOfStream:function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(e){To.log.warn("Failed to call media source endOfStream",e)}}}},duration:function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(e){To.log.warn("Failed to set media source duration",e)}}},abort:function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(Gf(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(t){To.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},addSourceBuffer:function(e,t){return function(n){var i=zf(e),r=Yo(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=n.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),a.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=a}},removeSourceBuffer:function(e){return function(t){var n=t[e+"Buffer"];if($f(e,t),Gf(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(t){To.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},changeType:function(e){return function(t,n){var i=n[t+"Buffer"],r=Yo(e);Gf(n.mediaSource,i)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),i.changeType(r),n.codecs[t]=e)}}},Kf=function(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn,a=e.name;n.queue.push({type:t,action:i,doneFn:r,name:a}),Wf(t,n)},Xf=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}Wf(e,t)}},Qf=function(e){function t(t){var n;return(n=e.call(this)||this).mediaSource=t,n.sourceopenListener_=function(){return Wf("mediaSource",At(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Cd("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Xf("video",At(n)),n.onAudioUpdateEnd_=Xf("audio",At(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}It(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
475,n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){Kf({type:"mediaSource",sourceUpdater:this,action:Yf.addSourceBuffer(e,t),name:"addSourceBuffer"})},n.abort=function(e){Kf({type:e,sourceUpdater:this,action:Yf.abort(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Kf({type:"mediaSource",sourceUpdater:this,action:Yf.removeSourceBuffer(e),name:"removeSourceBuffer"}):To.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!To.browser.IE_VERSION&&!To.browser.IS_FIREFOX&&window.MediaSource&&window.MediaSource.prototype&&"function"==typeof window.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return window.SourceBuffer&&window.SourceBuffer.prototype&&"function"==typeof window.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?Kf({type:e,sourceUpdater:this,action:Yf.changeType(t),name:"changeType"}):To.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)})},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");var o=t;if(Kf({type:r,sourceUpdater:this,action:Yf.appendBuffer(a,i||{mediaIndex:-1},o),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var s=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+s.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,s.forEach(function(e){n.appendBuffer.apply(n,e)})}},n.audioBuffered=function(){return Gf(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:To.createTimeRange()},n.videoBuffered=function(){return Gf(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:To.createTimeRange()},n.buffered=function(){var e=Gf(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Gf(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():Dd(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=Ff),Kf({type:"mediaSource",sourceUpdater:this,action:Yf.duration(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=Ff),"string"!=typeof e&&(e=void 0),Kf({type:"mediaSource",sourceUpdater:this,action:Yf.endOfStream(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=Ff),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Kf({type:"audio",sourceUpdater:this,action:Yf.remove(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=Ff),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Kf({type:"video",sourceUpdater:this,action:Yf.remove(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!qf("audio",this)&&!qf("video",this))},n.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Kf({type:"audio",sourceUpdater:this,action:Yf.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Kf({type:"video",sourceUpdater:this,action:Yf.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&Kf({type:"audio",sourceUpdater:this,action:Yf.callback(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&Kf({type:"video",sourceUpdater:this,action:Yf.callback(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),Vf.forEach(function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"](function(){return $f(t,e)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(To.EventTarget),Jf=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Zf=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),em=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=t.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}It(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return To.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return To.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Uh(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=Zf.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(Zf,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){vf(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var n=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Ap.TIMEOUT&&this.handleTimeout_(),e.code===Ap.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof window.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o,s=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",o),i.stopForError({message:"Error loading vtt.js"})};return o=function(){i.subtitlesTrack_.tech_.off("vttjserror",s),i.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),void this.subtitlesTrack_.tech_.one("vttjserror",s)}a.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEac
475h(function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new window.VTTCue(e.startTime,e.endTime,e.text):e)}),yf(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"==typeof window.TextDecoder?t=new window.TextDecoder("utf8"):(t=window.WebVTT.StringDecoder(),n=!0);var i=new window.WebVTT.Parser(window,window.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){To.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=Jf(r)),i.parse(r)}var a=e.bytes;n&&(a=Jf(a)),i.parse(a),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/Sd-r.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=a,e.endTime+=a}),!n.syncInfo){var o=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(o,s-i.duration)}}}else i.empty=!0},t}(Uf),tm=function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},nm=function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i,r=n,a=0;a<e.segments.length;a++){var o=e.segments[a];if(i||(i=tm(t,r+o.duration/2)),i){if("cueIn"in o){i.endTime=r,i.adEndTime=r,r+=o.duration,i=null;continue}if(r<i.endTime){r+=o.duration;continue}i.endTime+=o.duration}else if("cueOut"in o&&((i=new window.VTTCue(r,r+o.duration,o.cueOut)).adStartTime=r,i.adEndTime=r+parseFloat(o.cueOut),t.addCue(i)),"cueOutCont"in o){var s=o.cueOutCont.split("/").map(parseFloat),l=s[0],u=s[1];(i=new window.VTTCue(r,r+o.duration,"")).adStartTime=r-l,i.adEndTime=i.adStartTime+u,t.addCue(i)}r+=o.duration}},im=86400,rm=[{name:"VOD",run:function(e,t,n,i,r){return n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,o=null,s=Vd(t);r=r||0;for(var l=0;l<s.length;l++){var u=s[t.endList||0===r?l:s.length-(l+1)],c=u.segment,d=e.timelineToDatetimeMappings[c.timeline];if(d&&c.dateTimeObject){var h=c.dateTimeObject.getTime()/1e3+d;if(c.parts&&"number"==typeof u.partIndex)for(var p=0;p<u.partIndex;p++)h+=c.parts[p].duration;var f=Math.abs(r-h);if(null!==o&&(0===f||o<f))break;o=f,a={time:h,segmentIndex:u.segmentIndex,partIndex:u.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,i,r){var a=null,o=null;r=r||0;for(var s=Vd(t),l=0;l<s.length;l++){var u=s[t.endList||0===r?l:s.length-(l+1)],c=u.segment,d=u.part&&u.part.start||c&&c.start;if(c.timeline===i&&void 0!==d){var h=Math.abs(r-d);if(null!==o&&o<h)break;(!a||null===o||o>=h)&&(o=h,a={time:d,segmentIndex:u.segmentIndex,partIndex:u.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,s=0;s<t.discontinuityStarts.length;s++){var l=t.discontinuityStarts[s],u=t.discontinuitySequence+s+1,c=e.discontinuities[u];if(c){var d=Math.abs(r-c.time);if(null!==o&&o<d)break;(!a||null===o||o>=d)&&(o=d,a={time:c.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],am=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=Cd("SyncController"),n}It(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+Xd({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a<rm.length;a++){var o=rm[a],s=o.run(this,e,t,n,i);s&&(s.strategy=o.name,r.push({strategy:o.name,syncPoint:s}))}return r},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var o=Math.abs(e[a].syncPoint[t.key]-t.value);o<i&&(i=o,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>im)To.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start}
475,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,a=e.segment,o=e.part,s=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)s={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=s,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+s.time+"] [mapping: "+s.mapping+"]")),i=e.startOfSegment,r=t.end+s.mapping;else{if(!s)return!1;i=t.start+s.mapping,r=t.end+s.mapping}return o&&(o.start=i,o.end=r),(!a.start||i<a.start)&&(a.start=i),a.end=r,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,o=r-e.mediaIndex,s=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>s){var l=void 0;l=o<0?n.start-Xd({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+Xd({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:s}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(To.EventTarget),om=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}It(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(To.EventTarget),sm=mp(gp(function(){function e(e,n,i){return e(i={path:n,exports:{},require:function(e,n){return t(e,null==n?i.path:n)}},i.exports),i.exports}function t(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n=e(function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0}),i=e(function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),r=e(function(e){function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),a=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);
475else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function o(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var s=function(){var e,t,n,i,r,a,o,s,l=[[[],[],[],[],[]],[[],[],[],[],[]]],u=l[0],c=l[1],d=u[4],h=c[4],p=[],f=[];for(e=0;e<256;e++)f[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!d[t];t^=i||1,n=f[n]||1)for(a=(a=n^n<<1^n<<2^n<<3^n<<4)>>8^255&a^99,d[t]=a,h[a]=t,s=16843009*p[r=p[i=p[t]]]^65537*r^257*i^16843008*t,o=257*p[a]^16843008*a,e=0;e<4;e++)u[e][t]=o=o<<24^o>>>8,c[e][a]=s=s<<24^s>>>8;for(e=0;e<5;e++)u[e]=u[e].slice(0),c[e]=c[e].slice(0);return l},l=null,u=function(){function e(e){var t,n,i;l||(l=s()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],o=e.length,u=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var c=e.slice(0),d=[];for(this._key=[c,d],t=o;t<4*o+28;t++)i=c[t-1],(t%o===0||8===o&&t%o===4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%o===0&&(i=i<<8^i>>>24^u<<24,u=u<<1^283*(u>>7))),c[t]=c[t-o]^i;for(n=0;t;n++,t--)i=c[3&n?t:t-4],d[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,a){var o,s,l,u,c=this._key[1],d=e^c[0],h=i^c[1],p=n^c[2],f=t^c[3],m=c.length/4-2,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],T=v[3],w=v[4];for(u=0;u<m;u++)o=y[d>>>24]^b[h>>16&255]^_[p>>8&255]^T[255&f]^c[g],s=y[h>>>24]^b[p>>16&255]^_[f>>8&255]^T[255&d]^c[g+1],l=y[p>>>24]^b[f>>16&255]^_[d>>8&255]^T[255&h]^c[g+2],f=y[f>>>24]^b[d>>16&255]^_[h>>8&255]^T[255&p]^c[g+3],g+=4,d=o,h=s,p=l;for(u=0;u<4;u++)r[(3&-u)+a]=w[d>>>24]<<24^w[h>>16&255]<<16^w[p>>8&255]<<8^w[255&f]^c[g++],o=d,d=h,h=p,p=f,f=o},e}(),c=function(e){function t(){var t;return(t=e.call(this,a)||this).jobs=[],t.delay=1,t.timeout_=null,t}r(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(a),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(e,t,n){var i,r,a,o,s,l,c,h,p,f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new u(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),v=new Int32Array(g.buffer);for(i=n[0],r=n[1],a=n[2],o=n[3],p=0;p<f.length;p+=4)s=d(f[p]),l=d(f[p+1]),c=d(f[p+2]),h=d(f[p+3]),m.decrypt(s,l,c,h,v,p),v[p]=d(v[p]^i),v[p+1]=d(v[p+1]^r),v[p+2]=d(v[p+2]^a),v[p+3]=d(v[p+3]^o),i=s,r=l,a=c,o=h;return g},p=function(){function e(t,n,i,r){var a=e.STEP,s=new Int32Array(t.buffer),l=new Uint8Array(t.byteLength),u=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+a),n,i,l)),u=a;u<s.length;u+=a)i=new Uint32Array([d(s[u-4]),d(s[u-3]),d(s[u-2]),d(s[u-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(u,u+a),n,i,l));this.asyncStream_.push(function(){r(null,o(l))})}return e.prototype.decryptChunk_=function(e,t,n,i){return function(){var r=h(e,t,n);i.set(r,e.byteOffset)}},n(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}(),f=function(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n];ArrayBuffer.isView(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i}),t};self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new p(n,i,r,function(e,n){self.postMessage(f({source:t.source,decrypted:n}),[n.buffer])})}})),lm=fp(sm),um=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},cm=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},dm=function(e,t){t.activePlaylistLoader=e,e.load()},hm=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],o=a.activeTrack(),s=a.getActiveGroup(),l=a.activePlaylistLoader,u=a.lastGroup_;s&&u&&s.id===u.id||(a.lastGroup_=s,a.lastTrack_=o,cm(i,a),s&&!s.isMasterPlaylist&&(s.playlistLoader?(i.resyncLoader(),dm(s.playlistLoader,a)):l&&r.resetEverything()))}},pm=function(e,t){return function(){var n=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,n.abort(),n.pause()}},fm=function(e,t){return function(){var n=t.masterPlaylistLoader,i=t.segmentLoaders,r=i[e],a=i.main,o=t.mediaTypes[e],s=o.activeTrack(),l=o.getActiveGroup(),u=o.activePlaylistLoader,c=o.lastTrack_;
475if((!c||!s||c.id!==s.id)&&(o.lastGroup_=l,o.lastTrack_=s,cm(r,o),l)){if(l.isMasterPlaylist){if(!s||!c||s.id===c.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return o.logger_("track change. Switching master audio from "+c.id+" to "+s.id),n.pause(),a.resetEverything(),void d.fastQualityChange_(h)}if("AUDIO"===e){if(!l.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}u!==l.playlistLoader?(r.track&&r.track(s),r.resetEverything(),dm(l.playlistLoader,o)):dm(l.playlistLoader,o)}}},mm={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;cm(n,i);var a=i.activeTrack(),o=i.activeGroup(),s=(o.filter(function(e){return e.default})[0]||o[0]).id,l=i.tracks[s];if(a!==l){for(var u in To.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[u].enabled=i.tracks[u]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];To.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),cm(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},gm={AUDIO:function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),i.paused()||a.load()}),t.on("error",mm[e](e,n))}},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],o=n.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(o.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),i.paused()||a.load()}),t.on("error",mm[e](e,n))}},vm={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,o=t.master.mediaGroups,s=t.mediaTypes[e],l=s.groups,u=s.tracks,c=s.logger_,d=t.masterPlaylistLoader,h=oh(d.master);for(var p in o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},h&&(o[e].main.default.playlists=d.master.playlists)),o[e])for(var f in l[p]||(l[p]=[]),o[e][p]){var m=o[e][p][f],g=void 0;if(h?(c("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&m.playlists?new xh(m.playlists[0],n,a):m.resolvedUri?new xh(m.resolvedUri,n,a):m.playlists&&"dash"===i?new up(m.playlists[0],n,a,d):null,m=To.mergeOptions({id:f,playlistLoader:g},m),gm[e](e,m.playlistLoader,t),l[p].push(m),void 0===u[f]){var v=new To.AudioTrack({id:f,kind:um(m),enabled:!1,language:m.language,default:m.default,label:f});u[f]=v}}r.on("error",mm[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],o=t.requestOptions,s=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,c=l.tracks,d=t.masterPlaylistLoader;for(var h in s[e])for(var p in u[h]||(u[h]=[]),s[e][h])if(!s[e][h][p].forced){var f=s[e][h][p],m=void 0;if("hls"===r)m=new xh(f.resolvedUri,i,o);else if("dash"===r){if(!f.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;m=new up(f.playlists[0],i,o,d)}else"vhs-json"===r&&(m=new xh(f.playlists?f.playlists[0]:f.resolvedUri,i,o));if(f=To.mergeOptions({id:p,playlistLoader:m},f),gm[e](e,f.playlistLoader,t),u[h].push(f),void 0===c[p]){var g=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;c[p]=g}}a.on("error",mm[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,o=r.tracks;for(var s in i[e])for(var l in a[s]||(a[s]=[]),i[e][s]){var u=i[e][s][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(c[d.instreamId]&&(d=To.mergeOptions(d,c[d.instreamId])),void 0===d.default&&delete d.default,a[s].push(To.mergeOptions({id:l},u)),void 0===o[l]){var h=n.addRemoteTextTrack({id:d.instreamId,
475kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;o[l]=h}}}}},ym=function e(t,n){for(var i=0;i<t.length;i++){if(rh(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},bm=function(e,t){return function(n){var i=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,a=i.media();if(!a)return null;var o=null;a.attributes[e]&&(o=r[a.attributes[e]]);var s=Object.keys(r);if(!o)if("AUDIO"===e&&s.length>1&&oh(t.master))for(var l=0;l<s.length;l++){var u=r[s[l]];if(ym(u,a)){o=u;break}}else r.main?o=r.main:1===s.length&&(o=r[s[0]]);return void 0===n?o:null!==n&&o&&o.filter(function(e){return e.id===n.id})[0]||null}},_m={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},Tm=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}},wm=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){vm[t](t,e)});var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.vhs,a=e.segmentLoaders,o=a.AUDIO,s=a.main;["AUDIO","SUBTITLES"].forEach(function(n){t[n].activeGroup=bm(n,e),t[n].activeTrack=_m[n](n,e),t[n].onGroupChanged=hm(n,e),t[n].onGroupChanging=pm(n,e),t[n].onTrackChanged=fm(n,e),t[n].getActiveGroup=Tm(n,e)});var l=t.AUDIO.activeGroup();if(l){var u=(l.filter(function(e){return e.default})[0]||l[0]).id;t.AUDIO.tracks[u].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(s.setAudio(!1),o.setAudio(!0)):s.setAudio(!0)}n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})}),n.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanging()})});var c=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var d in i.audioTracks().addEventListener("change",c),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",function(){i.audioTracks().removeEventListener("change",c),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[d])},Sm=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ff,activeTrack:Ff,getActiveGroup:Ff,onGroupChanged:Ff,onTrackChanged:Ff,lastTrack_:null,logger_:Cd("MediaGroups["+t+"]")}}),e},km=120,Em=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Cm=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},xm=function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,o=e.bufferHighWaterLine,s=e.duration,l=e.experimentalBufferBasedABR,u=e.log;if(!r)return To.log.warn("We received no playlist to switch to. Please check your stream."),!1;var c="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return u(c+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var d=Boolean(Ld(n,i).length);if(!t.endList)return d||"number"!=typeof t.partTargetDuration?(u(c+" as current playlist is live"),!0):(u("not "+c+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=Fd(n,i),p=l?cp.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:cp.MAX_BUFFER_LOW_WATER_LINE;if(s<p)return u(c+" as duration < max low water line ("+s+" < "+p+")"),!0;var f=r.attributes.BANDWIDTH,m=t.attributes.BANDWIDTH;if(f<m&&(!l||h<o)){var g=c+" as next bandwidth < current bandwidth ("+f+" < "+m+")";return l&&(g+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+o+")"),u(g),!0}if((!l||f>m)&&h>=a){var v=c+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(v+=" and next bandwidth > current bandwidth ("+f+" > "+m+")"),u(v),!0}return u("not "+c+" as no switching criteria met"),!1},Pm=function(e){function t(t){var n;n=e.call(this)||this;
475var i=t.src,r=t.handleManifestRedirects,a=t.withCredentials,o=t.tech,s=t.bandwidth,l=t.externVhs,u=t.useCueTags,c=t.blacklistDuration,d=t.enableLowInitialPlaylist,h=t.sourceType,p=t.cacheEncryptionKeys,f=t.experimentalBufferBasedABR,m=t.experimentalLeastPixelDiffSelector,g=t.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var v=t.maxPlaylistRetries;null==v&&(v=1/0),jf=l,n.experimentalBufferBasedABR=Boolean(f),n.experimentalLeastPixelDiffSelector=Boolean(m),n.withCredentials=a,n.tech_=o,n.vhs_=o.vhs,n.sourceType_=h,n.useCueTags_=u,n.blacklistDuration=c,n.maxPlaylistRetries=v,n.enableLowInitialPlaylist=d,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:a,handleManifestRedirects:r,maxPlaylistRetries:v,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=Sm(),n.mediaSource=new window.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(At(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(At(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(At(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=To.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new am(t),n.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new lm,n.sourceUpdater_=new Qf(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new om;var y={vhs:n.vhs_,parse708captions:t.parse708captions,captionServices:g,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:s,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:p,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new up(i,n.vhs_,n.requestOptions_):new xh(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Uf(To.mergeOptions(y,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new Uf(To.mergeOptions(y,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new em(To.mergeOptions(y,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",function(){return n.startABRTimer_()}),n.tech_.on("pause",function(){return n.stopABRTimer_()}),n.tech_.on("play",function(){return n.startABRTimer_()})),Em.forEach(function(e){n[e+"_"]=Cm.bind(At(n),e)}),n.logger_=Cd("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var b="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(b,function(){var e=Date.now();n.tech_.one("loadeddata",function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends})}),n}It(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},n.switchMedia_=function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=window.setInterval(function(){return e.checkABR_()},250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(window.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||r.length&&i[r[0]];for(var o in a)if(a[o].default){n={label:o};break}}if(!n)return t;var s=[];for(var l in i)if(i[l][n.label]){var u=i[l][n.label];if(u.playlists&&u.playlists.length)s.push.apply(s,u.playlists);else if(u.uri)s.push(u);else if(e.playlists.length)for(var c=0;c<e.playlists.length;c++){var d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===l&&s.push(d)}}return s.length?s:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;ih(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),wm({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;if(e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial"),"vhs-json"!==e.sourceType_||!e.initialMedia_.segments)return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)}
475),this.masterPlaylistLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;ih(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var t=e.masterPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var o in n.AUDIO[a])n.AUDIO[a][o].uri||(i=!1);i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),jf.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),a=this.tech_.buffered();return xm({buffered:a,currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},km))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){To.browser.IE_VERSION||To.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(To.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")}
475,n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var n=jf.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=Pd;var a=r.end(r.length-1);return a-i<=Pd&&n-a<=Pd},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(eh),o=1===a.length&&a[0]===n;if(1===r.length&&t!==1/0)return To.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o);if(o){var s=!1;r.forEach(function(e){if(e!==n){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(s=!0,delete e.excludeUntil)}}),s&&(To.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var u=e.internal?this.logger_:To.log.warn,c=e.message?" "+e.message:"";u((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+c+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=l.targetDuration/2*1e3||5e3,h="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=d;return this.switchMedia_(l,"exclude",o||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)}),i.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})},n.setCurrentTime=function(e){var t=Ld(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:jf.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=jf.Playlist.seekable(t,n,jf.Playlist.liveEdgeDelay(i,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=jf.Playlist.seekable(t,n,jf.Playlist.liveEdgeDelay(i,t))).length)return}var a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=To.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+Od(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),i=jf.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var n=e.mediaTypes_[t].groups;
475for(var i in n)n[i].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var n=Jp(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=n.video||t.main.videoCodec||Jo),t.main.isMuxed&&(i.video+=","+(n.audio||t.main.audioCodec||Qo)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(i.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||Qo,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),i.audio||i.video){var a,o=function(e,t){return e?Ko(t):Xo(t)},s={};if(["video","audio"].forEach(function(e){if(i.hasOwnProperty(e)&&!o(t[e].isFmp4,i[e])){var n=t[e].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(i[e]),"audio"===e&&(a=n)}}),r&&a&&this.media().attributes.AUDIO){var l=this.media().attributes.AUDIO;
475this.master().playlists.forEach(function(t){(t.attributes&&t.attributes.AUDIO)===l&&t!==e.media()&&(t.excludeUntil=1/0)}),this.logger_("excluding audio group "+l+" as "+a+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach(function(t){var n=(Ho(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Ho(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&u.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+i[t]+'"')}),u.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var c=Object.keys(s).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+s[t].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:c,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach(function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=Jp(e.master,r),o=[];!a.audio||Xo(a.audio)||Ko(a.audio)||o.push("audio codec "+a.audio),!a.video||Xo(a.video)||Ko(a.video)||o.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&o.push("text codec "+a.text),o.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+o.join(", ")))}})},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=Xp(Ho(e)),a=Qp(r),o=r.video&&Ho(r.video)[0]||null,s=r.audio&&Ho(r.audio)[0]||null;
475Object.keys(i).forEach(function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var l=[],u=Jp(t.masterPlaylistLoader_.master,r),c=Qp(u);if(u.audio||u.video){if(c!==a&&l.push('codec count "'+c+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=u.video&&Ho(u.video)[0]||null,h=u.audio&&Ho(u.audio)[0]||null;d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()&&l.push('video codec "'+d.type+'" !== "'+o.type+'"'),h&&s&&h.type.toLowerCase()!==s.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+s.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}})},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),nm(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=cp.GOAL_BUFFER_LENGTH,n=cp.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,cp.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=cp.BUFFER_LOW_WATER_LINE,n=cp.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,cp.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,cp.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return cp.BUFFER_HIGH_WATER_LINE},t}(To.EventTarget),Am=function(e,t,n){return function(i){var r=e.master.playlists[t],a=Zd(r),o=eh(r);return void 0===i?o:(i?delete r.disabled:r.disabled=!0,i===o||a||(n(),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)}},Lm=function(e,t,n){var i=e.masterPlaylistController_,r=i[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(i);if(t.attributes){var a=t.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=Jp(i.master(),t),this.playlist=t,this.id=n,this.enabled=Am(e.playlists,t.id,r)},Im=function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),n=oh(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(function(e){return!Zd(e)}).map(function(t,n){return new Lm(e,t,t.id)}):[]}},Nm=["seeking","seeked","pause","playing","error"],Dm=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Cd("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},i=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},a=function(){return t.cancelTimer_()},o=this.masterPlaylistController_,s=["main","subtitle","audio"],l={};s.forEach(function(e){l[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},o[e+"SegmentLoader_"].on("appendsdone",l[e].updateend),o[e+"SegmentLoader_"].on("playlistupdate",l[e].reset),t.tech_.on(["seeked","seeking"],l[e].reset)});var u=function(e){["main","audio"].forEach(function(n){o[n+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=function(){return u("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(Nm,a),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",r),t.tech_.off(Nm,a),t.tech_.off("canplay",i),t.tech_.off("play",n),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),s.forEach(function(e){o[e+"SegmentLoader_"].off("appendsdone",l[e].updateend),o[e+"SegmentLoader_"].off("playlistupdate",l[e].reset),t.tech_.off(["seeked","seeking"],l[e].reset)}),t.checkCurrentTimeTimeout_&&window.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&window.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=window.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=Bd(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Rd(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Pd>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,n)){var i=t.start(0);e=i+(i===t.end(0)?0:Pd)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Od(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,a=this.tech_.buffered(),o=r.audio
475Buffer?r.audioBuffered():null,s=r.videoBuffer?r.videoBuffered():null,l=this.media(),u=l.partTargetDuration?l.partTargetDuration:2*(l.targetDuration-xd),c=[o,s],d=0;d<c.length;d++)if(c[d]&&Fd(c[d],n)<u)return!1;var h=Id(a,n);return 0!==h.length&&(e=h.start(0)+Pd,this.logger_("Buffered region starts ("+h.start(0)+")  just beyond seek point ("+n+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Ld(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var a=Id(r,t);if(a.length>0){var o=a.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+o+", seeking to "+a.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+Pd;return!n.endList&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,i=e.currentTime;if(t){var r;if(t.length&&n.length){var a=Ld(t,i-3),o=Ld(t,i),s=Ld(n,i);s.length&&!o.length&&a.length&&(r={start:a.end(0),end:s.end(0)})}else Id(t,i).length||(r=this.gapFromVideoUnderflow_(t,i));return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=Id(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+xd),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=Nd(e),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(t-r<4&&t-r>2)return{start:r,end:a}}return null},e}(),Om={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Mm=function e(t,n){var i=0,r=0,a=To.mergeOptions(Om,n);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var o=function(){r&&t.currentTime(r)},s=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",o),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-i<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"==typeof a.getSource?(i=Date.now(),a.getSource.call(t,s)):void To.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function e(){t.off("loadedmetadata",o),t.off("error",l),t.off("dispose",e)},c=function(n){u(),e(t,n)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=c},Rm=function(e){Mm(this,e)},Bm="2.13.1",Um="6.0.1",Fm="0.21.0",jm="4.7.0",zm="3.1.2",Vm={PlaylistLoader:xh,Playlist:sh,utils:qh,STANDARD_PLAYLIST_SELECTOR:sf,INITIAL_PLAYLIST_SELECTOR:cf,lastBandwidthSelector:sf,movingAverageBandwidthSelector:lf,comparePlaylistBandwidth:rf,comparePlaylistResolution:af,xhr:Ih()};
475Object.keys(cp).forEach(function(e){Object.defineProperty(Vm,e,{get:function(){return To.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),cp[e]},set:function(t){To.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?To.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):cp[e]=t}})});var qm="videojs-vhs",Hm=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})},Wm=function(e,t){t.representations().forEach(function(t){e.addQualityLevel(t)}),Hm(e,t.playlists)};Vm.canPlaySource=function(){return To.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var $m=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=Xp(Ho(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=Yo(i.video),a=Yo(i.audio),o={};for(var s in e)o[s]={},a&&(o[s].audioContentType=a),r&&(o[s].videoContentType=r),t.contentProtection&&t.contentProtection[s]&&t.contentProtection[s].pssh&&(o[s].pssh=t.contentProtection[s].pssh),"string"==typeof e[s]&&(o[s].url=e[s]);return To.mergeOptions(e,o)},Gm=function(e,t){return e.reduce(function(e,n){if(!n.contentProtection)return e;var i=t.reduce(function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e},{});return Object.keys(i).length&&e.push(i),e},[])},Ym=function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=i?r.concat([i]):r,o=Gm(a,Object.keys(n)),s=[],l=[];return o.forEach(function(e){l.push(new Promise(function(e,n){t.tech_.one("keysessioncreated",e)})),s.push(new Promise(function(n,i){t.eme.initializeMediaKeys({keySystems:e},function(e){e?i(e):n()})}))}),Promise.race([Promise.all(s),Promise.race(l)])},Km=function(e){var t=e.player,n=e.sourceKeySystems,i=e.media,r=e.audioMedia,a=$m(n,i,r);return!(!a||(t.currentSource().keySystems=a,a&&!t.eme&&(To.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1)))},Xm=function(){if(!window.localStorage)return null;var e=window.localStorage.getItem(qm);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},Qm=function(e){if(!window.localStorage)return!1;var t=Xm();t=t?To.mergeOptions(t,e):e;try{window.localStorage.setItem(qm,JSON.stringify(t))}catch(e){return!1}return t},Jm=function(e){return 0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e};Vm.supportsNativeHls=function(){if(!document||!document.createElement)return!1;var e=document.createElement("video");return!!To.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),Vm.supportsNativeDash=!!(document&&document.createElement&&To.getTech("Html5").isSupported())&&/maybe|probably/i.test(document.createElement("video").canPlayType("application/dash+xml")),Vm.supportsTypeNatively=function(e){return"hls"===e?Vm.supportsNativeHls:"dash"===e&&Vm.supportsNativeDash},Vm.isSupported=function(){return To.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Zm=function(e){function t(t,n,i){var r;if(r=e.call(this,n,To.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&To.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=Cd("VhsHandler"),n.options_&&n.options_.playerId){var a=To(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return To.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),At(r)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return To.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),At(r)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return To.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),At(r)},configurable:!0}),r.player_=a}if(r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(document,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()}),r.on(r.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),r.on(r.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}It(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=Xm();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=cp.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===cp.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){this.setOptions_(),this.options_.src=Jm(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Vm,this.options_.sourceType=ts(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&To.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Pm(this.options_);var i=To.mergeOptions({liveRangeSafeTimeDelta:Pd},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Dm(i),this.masterPlaylistController_.on("error",function(){var e=To.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});var r=this.options_.experimentalBufferBasedABR?Vm.movingAverageBandwidthSelector(.55):Vm.
475STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Vm.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&t){var i=1e3*t.downlink*1e3;e=i>=n&&e>=n?Math.max(e,i):i}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){To.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Rd(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Rd(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&Qm({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){Im(n)}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=window.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Ym({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media ke
475ys for EME",code:3})})},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=Km({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",function(t){"output-restricted"===t.status&&e.masterPlaylistController_.blacklistCurrentPlaylist({playlist:e.masterPlaylistController_.media(),message:"DRM keystatus changed to "+t.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:1/0})}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==To.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=To.players[this.tech_.options_.playerId];
475t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){Wm(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){Hm(e.qualityLevels_,e.playlists)}))},t.version=function(){return{"@videojs/http-streaming":Bm,"mux.js":Um,"mpd-parser":Fm,"m3u8-parser":jm,"aes-decrypter":zm}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return Qf.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&window.URL.revokeObjectURL&&(window.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return Qh({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),Jh({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(To.getComponent("Component")),eg={name:"videojs-http-streaming",VERSION:Bm,canHandleSource:function(e,t){void 0===t&&(t={});var n=To.mergeOptions(To.options,t);return eg.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=To.mergeOptions(To.options,n);return t.vhs=new Zm(e,t,i),To.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return To.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Ih(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=To.mergeOptions(To.options,t),i=n.vhs,r=(i=void 0===i?{}:i).overrideNative,a=void 0===r?!To.browser.IS_ANY_SAFARI:r,o=n.hls,s=(o=void 0===o?{}:o).overrideNative,l=void 0!==s&&s,u=ts(e);return u&&(!Vm.supportsTypeNatively(u)||l||a)?"maybe":""}};return Ko("avc1.4d400d,mp4a.40.2")&&To.getTech("Html5").registerSourceHandler(eg,0),To.VhsHandler=Zm,Object.defineProperty(To,"HlsHandler",{get:function(){return To.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Zm},configurable:!0}),To.VhsSourceHandler=eg,Object.defineProperty(To,"HlsSourceHandler",{get:function(){return To.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),eg},configurable:!0}),To.Vhs=Vm,Object.defineProperty(To,"Hls",{get:function(){return To.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Vm},configurable:!0}),To.use||(To.registerComponent("Hls",Vm),To.registerComponent("Vhs",Vm)),To.options.vhs=To.options.vhs||{},To.options.hls=To.options.hls||{},To.getPlugin&&To.getPlugin("reloadSourceOnError")||(To.registerPlugin||To.plugin)("reloadSourceOnError",Rm),To}()},2313:(e,t,n)=>{var i={"./ar.json":4886,"./ba.json":4506,"./bg.json":2316,"./ca.json":2342,"./cs.json":5710,"./cy.json":4019,"./da.json":3424,"./de.json":88,"./el.json":4670,"./en.json":877,"./es.json":2038,"./fa.json":5570,"./fi.json":8585,"./fr.json":2773,"./gd.json":1858,"./gl.json":5193,"./he.json":5097,"./hi.json":2264,"./hr.json":5522,"./hu.json":8609,"./it.json":8222,"./ja.json":1492,"./ko.json":1298,"./lv.json":7456,"./nb.json":570,"./nl.json":5168,"./nn.json":6997,"./oc.json":7315,"./pl.json":8040,"./pt_br.json":5166,"./pt_pt.json":3129,"./ro.json":9056,"./ru.json":3178,"./sk.json":6225,"./sl.json":8565,"./sr.json":9275,"./sv.json":7046,"./te.json":4653,"./th.json":5708,"./tr.json":3832,"./uk.json":2161,"./vi.json":3155,"./zh_cn.json":3302,"./zh_hans.json":5313,"./zh_hant.json":4683,"./zh_tw.json":2619};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id=2313}
475,8823:(e,t,n)=>{const i={initialize:n(258)(),observer:{click:n(341),event:n(3721),link:n(6425),page:n(8907),video:n(5471)},track:n(9061),destroy:n(7736)};e.exports=i},7736:e=>{e.exports={}},3072:e=>{const t=function(e={}){let t=[];return e.module&&t.push(e.module),e.position&&t.push(e.position),e.label&&t.push(e.label),t.join("|")},n=(e={})=>{let t=[];return e.moduleName&&t.push(e.moduleName),e.regionName&&t.push(e.regionName),e.label&&t.push(e.label),e.pageName&&t.push(e.pageName),t.join("|")},i=e=>e||"",r={pageView:{event:"pageView",data:function(e){if(e)return window.articlePublishDate&&(e.content.articleDaysLive=function(e){let t=Date.now()-e;return Math.ceil(t/864e5)}(window.articlePublishDate)),e}},siteClick:{event:"siteClick",data:function(e){let n={action:{}};return n.action.linkLocation=t(e),e.articlePosition&&(n.action.articlePosition=e.articlePosition),e.viewMoreClick&&(n.action.viewMoreClick=e.viewMoreClick),n}},subPageView:{event:"subPageView",data:function(e){return{content:{subPageName:i(e.subPageName)}}}},cta:{event:"ctaClick",data:function(e){return{action:{ctaName:t(e)}}}},campaign:{event:"intCamp",data:function(e){return{action:{intCampName:i(e.label)}}}},search:{event:"search",data:function(e){let t={action:{search:{term:e.term,type:e.type,userSearchType:e.userSearchType}}};return e.resultsCount>=0&&(t.action.search.resultsCount=e.resultsCount),t}},searchResult:{event:"searchResult",data:function(e){return{action:{search:{termSelected:e.termSelected,type:e.type,category:e.category}}}}},buy:{event:"buy",data:function(e){let t={action:{destinationLink:i(e.label)},cart:{purchase:!0,item:[]}},n={},r=e.cart;return Array.isArray(r)?(t.action.skuList=r.reduce((e,t,n)=>`${e}${n>0?"|":""}${t.sku},${t.quantity}`,""),t.action.productList=Object.entries(r.reduce((e,t)=>(e[t.productNameAnalytics]=(e[t.productNameAnalytics]||0)+t.quantity,e),{})).map(([e,t])=>`${e},${t}`).join("|"),t.cart.item=r.map(e=>({productInfo:{quantity:e.quantity,sku:e.sku,category:e.productFamily||e.productKey||"",color:e.urlVariant||e.variant||e.color||"",price:e.offerPriceNumeric||e.numericPrice||e.offerPrice||e.originalPrice||"",features:Object.keys(e?.productFeatures??{}).join(",")}}))):(n.quantity=1,n.sku=r.sku,n.category=r.category,n.color=r.color,n.price=r.price,n.features=Object.keys(r?.productFeatures??{}).join(","),t.cart.item.push({productInfo:n})),t}},colorSelector:{event:"colorSelector",data:function(e){return{cart:{item:e.item}}}},regStart:{event:"regStart",data:function(e){return{cart:{item:e.item}}}},regComplete:{event:"regComplete",data:function(e){return{cart:{item:e.item}}}},supportExit:{event:"supportExit",data:function(e){return{action:{destinationLink:i(e.label)}}}},supportClick:{event:"supportClick",data:function(e){return{action:{supportInteraction:i(e.label)}}}},appleExit:{event:"appleExit",data:function(e){return{action:{destinationLink:i(e.label)}}}},socialShare:{event:"socialShare",data:function(e){return{action:{socialPlatform:i(e.socialPlatform),socialContent:i(e.socialContent)}}}},socialFollow:{event:"socialFollow",data:function(e){return{action:{socialPlatform:i(e.label)}}}},videoPlay:{event:"videoPlay",data:function(e){return{action:{videoName:i(e.videoName),videoLength:e.videoLength}}}},videoPlay25:{event:"videoPlay25",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoPlay50:{event:"videoPlay50",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoPlay75:{event:"videoPlay75",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoComplete:{event:"videoComplete",data:function(e){return{action:{videoName:i(e.videoName),videoTime:e.duration}}}},videoStop:{event:"videoStop",data:function(e){return{action:{videoName:i(e.videoName),videoTime:e.currentTime,maxPlayedTime:e.maxPlayedTime}}}},videoSegment:{event:"videoSegment",data:function(e){return{action:{videoName:i(e.videoName),videoSegComplete:e.videoSegComplete}}}},videoCaptionOff:{event:"videoCaptionOff",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoCaptionOn:{event:"videoCaptionOn",data:function(e){return{action:{videoName:i(e.videoName)}}}},videoTranscriptDownload:{event:"videoTranscriptDownload",data:function(e){return{action:{videoName:i(e.videoName)}}}},newsletterSignUp:{event:"newsletterSignUp",data:function(e){return{content:{subPageName:i(e.subPageName)}}}},emailOptIn:{event:"emailOptIn",data:function(e){return{}}},carouselClick:{event:"carouselClick",data:function(e){return{action:{carouselName:i(e.carouselName)}}}},pageScroll:{event:"pageScroll",data:function(e){return{content:{moduleName:i(e.moduleName),regionName:i(e.regionName),scrollElements:n(e)}}}},allClick:{event:"allClick",data:function(e){return{content:{moduleName:i(e.moduleName),regionName:i(e.regionName),linkLabel:i(e.label),clickElements:n(e)}}}},otherInteraction:{event:"OtherInteractions",data:function(e){return{action:{interactionType:i(e.interactionName),interactionItem:`${i(e.moduleName)}|${i(e.regionName)}|${i(e.itemName)}`}}
475}},compareProducts:{event:"compareProducts",data:function(e){return{content:{modelList:i(e.modelList)}}}},localeSwitcher:{event:"localeSwitcher",data:function(e){return{content:{modalType:e.modalType,switchLocale:e.switchLocale}}}},QRRedirect:{event:"QRRedirect",data:function(e){return{content:{quickStartGuide:e?.url||""}}}},addToCart:{event:"addToCart",data:function(e){let t={action:{addToCartSource:e.source||"",addToCartCount:e?.items?.length??1},content:{moduleName:e.module||"",regionName:e.region||""}};if(Array.isArray(e?.items))t.action.cartItem=e.items.map(e=>`${e.productName||""}|${e.category||""}|${e.sku||""}|${e.color||""}${e.features?"|"+e.features:""}`);else{const{productName:n,category:i,sku:r,color:a,features:o}=e;t.action.cartItem=[`${n}|${i}|${r}|${a}${item.features?"|"+item.features:""}`]}return t}},removeFromCart:{event:"removeFromCart",data:function(e){const{productName:t,category:n,sku:i,color:r,features:a}=e;return{action:{cartItem:`${t}|${n}|${i}|${r}${a?"|"+a:""}`}}}},updateCartQuantity:{event:"updateCartQuantity",data:function(e){const{productName:t,category:n,sku:i,color:r,features:a,fromQuantity:o,toQuantity:s}=e;return{action:{cartItem:`${t}|${n}|${i}|${r}${a?"|"+a:""}`,cartQuantityChange:`${o}:${s}`}}}},undoRemoveFromCart:{event:"undoRemoveFromCart",data:function(e){const{productName:t,category:n,sku:i,color:r,features:a}=e;return{action:{cartItem:`${t}|${n}|${i}|${r}${a?"|"+a:""}`}}}},maxQuantityLimit:{event:"maxQuantityLimit",data:function(e){const{productName:t,category:n,sku:i,color:r,productSubFamily:a,checkoutLimitType:o,maxQuantityLimit:s,features:l}=e;return{action:{cartItem:`${t}|${n}|${i}|${r}${l?"|"+l:""}`,productSubFamily:a,checkoutLimitType:o,checkoutMaxLimit:s}}}},addOnColorSelectError:{event:"addOnColorSelectError",data:function(e){return{action:{addOnItem:e.addOnItem}}}}};e.exports=r},258:(e,t,n)=>{const i=n(8907),r=n(6425),a=n(341),o=n(5471),s=n(3721),l=n(6245),u=n(2500);e.exports=function(e){const t=function(){let e={page:new i,link:new r,click:new a,video:new o,event:new s};return Object.keys(e).forEach(t=>{e[t].initialize()}),e}();return function(){const e={};u(()=>{Object.keys(e).forEach(t=>{e[t].initialize()}),l.initAnalyticsIntersectObserver()})}(),t}},341:(e,t,n)=>{const{allClick:i}=n(3072),r=n(9061),a={linkType:"siteClick",dataAttribute:"analytics-click",titleDataAttribute:"analytics-label",positionAttribute:"analytics-region",moduleAttribute:"analytics-module",linkTypeAttribute:"analytics-link-type",articlePositionAttribute:"analytics-article-position",viewMore:"analytics-viewmore"},o={skuAttr:"selected-sku",categoryAttr:"selected-productfamily",colorAttr:"selected-color",priceAttr:"selected-price"};e.exports=function(){this.initialize=(e={})=>{this.options=a,this.buyOptions=o,this.tracker=r,this.isInitialized=!1,this._boundOnInteraction=this._onInteraction.bind(this),this.addListener()},this.addListener=()=>{this.isInitialized||(window.addEventListener("click",this._boundOnInteraction),this.isInitialized=!0)},this.removeListener=()=>{window.removeEventListener("click",this._boundOnInteraction)},this._onInteraction=e=>{let t,n,i,r,a=e.target,o=`data-${this.options.dataAttribute}`,s=`data-${this.options.moduleAttribute}`,l=`data-${this.options.positionAttribute}`,u=`data-${this.options.linkTypeAttribute}`,c=`data-${this.options.titleDataAttribute}`,d=`data-${this.options.articlePositionAttribute}`,h=`data-${this.options.viewMore}`,p={type:null,module:null,position:null,label:null,articlePosition:null,viewMoreClick:null};allClickObj={type:"allClick",moduleName:null,regionName:null,label:null,text:null,pageName:null},t=a.hasAttribute(o)?a:a.closest(`[${o}]`),t&&!t.hasAttribute("disabled")&&(r=t.getAttribute(u),r||(r=this.options.linkType),"thirdPartyClick"!==r&&(n=t.closest(`[${s}]`),i=t.closest(`[${l}]`),n&&(p.module=n.getAttribute(s),allClickObj.moduleName=n.getAttribute(s)),i&&(p.position=i.getAttribute(l),allClickObj.regionName=i.getAttribute(l)),"buy"===r&&(p.cart=this.getCartOptions(t)),p.label=t.getAttribute(c),p.articlePosition=t.getAttribute(d),p.viewMoreClick=t.getAttribute(h),p.type=r,this.track(e,p),"buy"!==r&&(allClickObj.label=t.getAttribute(c)||t.innerText,allClickObj.pageName=getPageName(),this.track(e,allClickObj))))},getPageName=()=>{let e="";return window.pageTrackData&&(e=window.pageTrackData.content.pageName?window.pageTrackData.content.pageName:""),e},this.getCartOptions=e=>{let t={},n=`data-${this.buyOptions.skuAttr}`,i=`data-${this.buyOptions.categoryAttr}`,r=`data-${this.buyOptions.colorAttr}`,a=`data-${this.buyOptions.priceAttr}`;return t.sku=e.getAttribute(n),t.category=e.getAttribute(i),t.color=e.getAttribute(r),t.price=e.getAttribute(a),t},this.track=(e,t)=>{this.tracker&&this.tracker.track({type:t.type,event:e,data:t})},this.destroy=()=>{this.removeListener(),this.tracker=null,this.isInitialized=null,this._boundOnInteraction=null}}},3721:(e,t,n)=>{const i=n(9061);e.exports=function(){this.initialize=()=>{this.initialized=!1,this.tracker=i,this.addListener()},this.addListener=e=>{this.initialized||(window.addEventListener("analytics-track",e=>{this.track(e.detail)}),this.initialized=!0)},this.removeListener=e=>{window.removeEventListener("analytics-track",e=>{this.track(e.detail)})},this.track=e=>{this.tracker&&this.tracker.track({type:e.eventType,data:e.data})},this.destroy=()=>{this.removeEventListener(),this.tracker=null,this.initialized=!1}}},6425:(e,t,n)=>{const i=n(9061);e.exports=function(e){this.initialize=()=>{this.isInitialized=!1,this.tracker=i,this.addListener()},this.addListener=()=>{this.isInitialized||(document.body.addEventListener("mouseup",this.track),this.isInitialized=!0)},this.removeListener=()=>{document.body.removeEventListener("mouseup",this.track)},this.track=e=>{},this.destroy=()=>{this.removeListener(),this.options=null,this.tracker=null,this.isEnabled=null}}},8907:(e,t,n)=>{const i=n(9061),r=n(2500);e.exports=function(e){this.initialize=()=>{this.tracker=i,this.initialized=!1;this.onReadyTracking=this.track.bind(this,"readyStateComplete",{silent:!0}),this.addEventListener()},this.addEventListener=()=>{this.initialized||(this.initialized=!0,setTimeout(()=>{r(this.onReadyTracking)},0))},this.removeEventListener=()=>{},this.track=(e,t,n)=>{if(!this.tracker)return;let i=window.pageTrackData?window.pageTrackData:{};this.tracker.track({type:"pageView",data:i})},this.destroy=()=>{this.removeEventListener(),this.tracker=null,this.initialized=null}}},5471:(e,t,n)=>{const i=n(9061);e.exports=function(){this.initialize=(e={})=>{this.tracker=i,this.progress={quarter:!1,half:!1,threeQuarters:!1,full:!1},this.videoTrack=this.track.bind(this),this.addListener()},this.addListener=()=>{window.addEventListener("analytics-track-video",this.videoTrack)},this.removeListener=()=>{window.removeEventListener("analytics-track-video",this.videoTrack)},this.track=e=>{if(e&&e.detail.eventType&&e.detail.data){let t=e.detail.eventType,n=e.detail.data,i=e.detail?.maxPlayedTime,r=e.detail?.videoLe
475ngth;switch(t){case"videoPlay":this.play(t,n,r);break;case"videoComplete":this.complete(t,n);break;case"videoStop":this.stop(t,n,i);break;case"videoMilestone":this.milestones(t,n);break;case"videoSegment":this.segment(t,n);break;case"videoCaptionOff":case"videoCaptionOn":case"videoTranscriptDownload":this.caption(t,n)}}},this.play=(e,t,n)=>{let i={};e&&t&&(i.videoName=t.getAttribute("data-analytics-label"),i.videoLength=n,this.tracker.track({type:e,data:i}))},this.stop=(e,t,n)=>{let i={};t.player.ended()?this.progress={quarter:!1,half:!1,threeQuarters:!1,full:!1}:e&&t&&(i.videoName=t.getAttribute("data-analytics-label"),i.currentTime=t.player.currentTime().toFixed(0),i.maxPlayedTime=n,this.tracker.track({type:e,data:i}))},this.complete=(e,t)=>{let n={};e&&t&&(n.videoName=t.getAttribute("data-analytics-label"),n.duration=t.player.duration().toFixed(0),this.tracker.track({type:e,data:n}))},this.milestones=(e,t)=>{if(t&&t.player){let e=Math.round(t.player.currentTime()),n=Math.round(t.player.duration()),i=Math.round(e/n*100),r={};r.videoName=t.getAttribute("data-analytics-label"),!this.progress.quarter&&i>25&&(this.tracker.track({type:"videoPlay25",data:r}),this.progress.quarter=!0),!this.progress.half&&i>50&&(this.tracker.track({type:"videoPlay50",data:r}),this.progress.half=!0),!this.progress.threeQuarters&&i>75&&(this.tracker.track({type:"videoPlay75",data:r}),this.progress.threeQuarters=!0)}},this.segment=e=>{},this.caption=(e,t)=>{let n={};e&&t&&(n.videoName=t.getAttribute("data-analytics-label"),this.tracker.track({type:e,data:n}))}}},9061:(e,t,n)=>{const i=n(3072),{stripHtmlTags:r}=n(2050);function a(e){return"string"==typeof e?r(e):Array.isArray(e)?e.map(a):e&&"object"==typeof e?Object.keys(e).reduce((t,n)=>(t[n]=a(e[n]),t),{}):e}window.adobeDataLayer=window.adobeDataLayer||[],e.exports=new function(){this.initialize=()=>{},this.track=e=>{if(!e||"object"!=typeof e||!e.type)return void console.log(e+" is not a valid request object");let t=e.type;if(!i[t])return;let n=e.data||e,r=a(i[t].data(n)||{}),o=i[t].event,s={data:r,event:o};console.log(`Analytics event fired: ${o}`),console.log(JSON.stringify(s,null,2)),adobeDataLayer.push(s)},this.destroy=()=>{}}},2124:function(e,t,n){const i=n(5355),r=n(4730),a=n(722),o={shown:!1,expanded:!1},s="subPageView",l="newsletterSignUp",u="emailOptIn";e.exports=()=>(this.$html=$("html"),this.$el=$(".newsletter"),this.$template=$("#newsletter-content"),this.cookieName="bbd.storage.newsletter",this.init=e=>{this.setup(),this.canShowPopover(e)&&(this.options=e||{},this.subscribed=!1,this.isPopoverDismissed=!1,this.render(),this.showPopover(),this.setupMediaQuery(),this.addEventListeners())},this.setup=()=>{this.$html.length||(this.$html=$("html")),this.$el.length||(this.$el=$(".newsletter")),this.$template.length||(this.$template=$("#newsletter-content")),this.$cookieName||(this.cookieName="bbd.storage.newsletter")},this.canShowPopover=e=>this.$template.length&&!o.shown&&(e.expanded||!i.getItem(this.cookieName,"LOCAL")&&!i.getItem(this.cookieName,"SESSION")),this.render=()=>{this.$el.empty().append(this.$template.html()),this.$container=this.$el.find(".newsletter__section"),this.$form=this.$el.find(".newsletter__form"),this.$collapsed=this.$el.find(".section--collapsed"),this.$expanded=this.$el.find(".section--expanded"),this.$inputPage=this.$el.find(".form__content--inputpage"),this.$successPage=this.$el.find(".form__content--successpage"),this.$email=this.$el.find(".email-section__email"),this.$emailError=this.$el.find(".email-section__error-message"),this.$mandatoryError=this.$el.find(".gdpr-section__error-message"),this.$subscriptionError=this.$el.find(".form__error-message"),this.$error_row_1=this.$el.find(".error_1"),this.$error_row_2=this.$el.find(".error_2"),this.$error_text_1=this.$error_row_1.find(".error-row__text"),this.$error_text_2=this.$error_row_2.find(".error-row__text"),this.$checks=this.$el.find(".gdpr-item__checkbox"),this.$submit=this.$el.find(".submit"),this.$optinId=this.$el.find(".optin-id"),this.$gdprEmail=this.$el.find("#gdpr-item__emails"),this.$validAge=this.$el.find("#gdpr-item__age"),this.moduleName=this.$el.attr("data-analytics-module"),this.emailOptIn=!1,this.scrollLock=!1,this.setFocusableItem=this.$expanded.find('button, [href], input, select, textarea, [tabindex]:not
475([tabindex="-1"])').eq(0),o.shown=!0},this.setupMediaQuery=()=>{window.matchMedia("(max-width: 734px)").addListener(e=>{e.matches?setTimeout(()=>{o.expanded&&this.setScrollLock(!0,"newsletter")},0):setTimeout(()=>{o.expanded&&this.setScrollLock(!1,"newsletter")},0)})},this.isMobileViewport=()=>window.matchMedia("(max-width: 734px)").matches,this.showPopover=()=>{this.options.expanded?(()=>{o.expanded=!0,this.$collapsed.addClass("newsletter-hidden"),this.$expanded.removeClass("newsletter-hidden"),this.isMobileViewport()?TweenMax.fromTo(this.$expanded,1.5,{y:"100%",opacity:.5},{y:"0%",opacity:1,ease:Cubic.easeOut,onComplete:()=>{this.setScrollLock(!0,"newsletter"),this.setFocusableItem&&this.setFocusableItem.focus()}}):TweenMax.fromTo(this.$expanded,1.5,{scale:0,opacity:.5},{scale:1,opacity:1,ease:Cubic.easeOut,onComplete:()=>{this.setFocusableItem&&this.setFocusableItem.focus()}}),this.triggerAnalytics(s,{subPageName:this.moduleName?this.moduleName+" - Main Modal":"Main Modal"})})():(()=>{this.isMobileViewport()?TweenMax.fromTo(this.$collapsed,1.5,{y:"100%"},{y:"0%",ease:Cubic.easeInOut}):TweenMax.fromTo(this.$collapsed,1.5,{x:"100%"},{x:"0%",ease:Cubic.easeInOut}),this.triggerAnalytics(s,{subPageName:this.moduleName?this.moduleName+" - Min Modal":"Min Modal"})})()},this.expandPopover=e=>{$(e.target).attr("disabled","disabled");let t=this.$container.outerHeight(),n=this.$container.outerWidth();if(o.expanded=!0,this.$expanded.removeClass("newsletter-hidden"),TweenMax.to(this.$collapsed,1.5,{opacity:0,ease:Cubic.easeOut,onComplete:()=>{this.$collapsed.addClass("newsletter-hidden")}}),this.isMobileViewport()){let e=this.$expanded.height(),n=100*(e-t)/e;TweenMax.fromTo(this.$expanded,1.5,{y:n+"%",opacity:.5},{y:"0%",opacity:1,ease:Cubic.easeOut,onComplete:()=>{this.setScrollLock(!0,"newsletter"),this.setFocusableItem&&this.setFocusableItem.focus()}})}else TweenMax.fromTo(this.$expanded,1.5,{scaleX:n/860,scaleY:t/513,opacity:.5},{scaleX:1,scaleY:1,opacity:1,ease:Cubic.easeOut,onComplete:()=>{this.setFocusableItem&&this.setFocusableItem.focus()}});this.triggerAnalytics(s,{subPageName:this.moduleName?this.moduleName+" - Main Modal":"Main Modal"})},this.closePopover=e=>{e.preventDefault(),this.hidePopover()},this.setScrollLock=(e,t)=>{r.scrollLock(e,t),this.scrollLock=e},this.hidePopover=e=>{i.setItem(this.cookieName,!0,this.subscribed?"LOCAL":"SESSION"),this.scrollLock&&this.setScrollLock(!1,"newsletter"),TweenMax.to(this.$container,1.5,{opacity:0,ease:Cubic.easeInOut,onComplete:()=>{this.destroy(),this.isPopoverDismissed=!0}})},this.addEventListeners=()=>{$(".cta__email-placeholder").on("focus click",this.expandPopover),$(".newsletter__close").on("click touchstart",this.closePopover),$(".email-section__email").on("focusout",this.onEmailFocusOut),$(".email-section__email").on("keydown",this.handleKeyDown),$(this.$checks).on("focus click",this.updateMandatoryChecks),$(".newsletter__form").on("submit",this.onSubmit)},this.handleKeyDown=e=>{if(this.updateEmailValidity(!0),13===e.keyCode)return e.preventDefault(),isValidEmail=this.onEmailFocusOut(),!0===isValidEmail&&this.onSubmit.call(this,e),!1},this.onEmailFocusOut=()=>{let e=this.$email.val(),t=this.validEmail(e.trim());return e.length>0?this.updateEmailValidity(t):this.$submit.addClass("disabled"),t},this.validEmail=e=>/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(e),this.validMandatoryChecks=()=>{var e=!0;return this.$checks.each(function(){"true"!=$(this).attr("aria-required")||this.checked||($(this).attr("aria-invalid","true"),e=!1)}),e},this.updateEmailValidity=e=>{e?(this.$form.removeAttr("aria-invalid"),this.$email.removeAttr("aria-invalid"),this.$submit.removeClass("disabled").prop("disabled",!1),this.$error_text_1.text(""),TweenMax.fromTo(this.$error_row_1,.25,{opacity:1},{opacity:0,ease:Cubic.easeOut,onComplete:()=>{this.$error_row_1.addClass("no-error")}})):(this.$form.attr("aria-invalid","true"),this.$email.attr("aria-invalid","true"),this.$error_text_1.text(this.$emailError.text()),this.$submit.addClass("disabled").prop("disabled",!0),this.$error_row_1.removeClass("no-error"),TweenMax.fromTo(this.$error_row_1,.25,{opacity:0}
475,{opacity:1,ease:Cubic.easeIn,onComplete:()=>{TweenMax.fromTo(this.$error_row_1,.1,{x:"-10px"},{x:"0%",ease:Cubic.easeInOut})}}))},this.updateMandatoryChecks=e=>{e?(this.$form.removeAttr("aria-invalid"),this.$checks.each(function(){"true"!=$(this).attr("aria-required")||this.checked||$(this).removeAttr("aria-invalid")}),TweenMax.fromTo(this.$error_row_2,.25,{opacity:1},{opacity:0,ease:Cubic.easeOut,onComplete:()=>{this.$error_row_2.addClass("no-error"),this.$error_text_2.text("")}})):(this.$form.attr("aria-invalid","true"),this.$error_text_2.text(this.$mandatoryError.text()),this.$error_row_2.removeClass("no-error"),TweenMax.fromTo(this.$error_row_2,.25,{opacity:0},{opacity:1,ease:Cubic.easeIn,onComplete:()=>{TweenMax.fromTo(this.$error_row_2,.1,{x:"-10px"},{x:"0%",ease:Cubic.easeInOut})}}))},this.resetForm=()=>{this.$form.get(0).reset(),this.$form.attr("aria-invalid","false"),this.$email.attr("aria-invalid","false"),this.$checks.attr("aria-invalid","false"),this.$error_row_1.addClass("no-error"),this.$error_text_1.text(""),this.$error_row_2.addClass("no-error"),this.$error_text_2.text("")},this.onSubmit=e=>{e.preventDefault();let t=this.$email.val(),n=this.validMandatoryChecks(),i=t.length>0&&this.validEmail(t.trim());this.updateMandatoryChecks(n),this.updateEmailValidity(i),i||this.$email.focus(),n&&i&&(this.$gdprEmail.is(":checked")&&(this.emailOptIn=!0),this._submit())},this._submit=()=>{let e={emailId:this.$email.val().trim(),localeCode:localeCountryKey,optinId:this.$optinId.html().trim()};this.$validAge.length&&(e=$.extend(e,{isValidAge:this.$validAge.is(":checked")})),this.emailOptIn&&this.triggerAnalytics(u),$.ajax({url:"/beats/communities/crm/rest/v1/user/subscribe",contentType:"application/json",data:JSON.stringify(e),type:"POST",beforeSend:()=>{},complete:e=>{200===e.status?(this.resetForm(),this.handleSuccess()):this.handleFailure()}})},this.handleSuccess=()=>{this.subscribed=!0,this.$successPage.removeClass("newsletter-hidden"),TweenMax.delayedCall(4,()=>{this.subscribed&&!this.isPopoverDismissed&&this.hidePopover()}),TweenMax.to(this.$inputPage,1.5,{opacity:0,ease:Cubic.easeOut,onComplete:()=>{this.$inputPage.addClass("newsletter-hidden")}}),TweenMax.fromTo(this.$successPage,1.5,{opacity:0},{opacity:1,ease:Cubic.easeIn,onStart:()=>{TweenMax.delayedCall(.9,()=>
475{this.$successPage.find(".icon-holder--success").removeClass("hide").addClass("lightSpeedInLeft")})}}),this.triggerAnalytics(s,{subPageName:this.moduleName?this.moduleName+" - Confirmation Modal":"Confirmation Modal"}),this.triggerAnalytics(l,{subPageName:this.moduleName||"Newsletter Pop Up"})},this.handleFailure=()=>{this.$form.attr("aria-invalid","true"),this.$error_text_1.text(this.$subscriptionError.text()),this.$error_row_1.removeClass("no-error"),TweenMax.fromTo(this.$error_row_1,.25,{opacity:0},{opacity:1,ease:Cubic.easeIn,onComplete:()=>{TweenMax.fromTo(this.$error_row_1,.1,{x:"-10px"},{x:"0%",ease:Cubic.easeInOut})}})},this.triggerAnalytics=(e,t)=>{a("analytics-track",{eventType:e,data:t})},this.destroy=()=>{this.removeEventListeners(),this.$el.empty(),o.shown=!1,o.expanded=!1},this.removeEventListeners=()=>{$(".cta__email-placeholder").off("focus click",this.expandPopover),$(".newsletter__close").off("click touchstart",this.closePopover),$(".email-section__email").off("focusout",this.onEmailFocusOut),$(".email-section__email").off("keydown",this.handleKeyDown),$(this.$checks).off("focus click",this.updateMandatoryChecks),$(".submit").off("click",this.onSubmit)},{init:this.init})},4211:function(e){e.exports=()=>{this.basicView=null,this.acceptBtn=null,this.cookieName=null,this.ele=null,this.initialize=function(e){if(e.el){var t=this;t.ele=e.el,t.cookieName="_beatsCookieBar",t.onDomReady(),t.onAddListeners()}else document.body.classList.remove("cookie-bar-enabled")},this.isLocalStorageAvailable=function(){return!("undefined"==typeof localStorage)},this.onDomReady=function(){var e=this;e.acceptBtn=e.ele.querySelector(".cookie-btn--accept"),e.isLocalStorageAvailable()&&localStorage.getItem(e.cookieName)||(e.ele.classList.remove("hide"),e.ele&&document.body.classList.add("cookie-bar-enabled"))},this.onAddListeners=function(){var e=this;e.acceptBtn.addEventListener("click",e.onCloseClick.bind(e))},this.onRemoveListeners=function(){var e=this;e.acceptBtn.removeEventListener("click",e.onCloseClick.bind(e))},this.onCloseClick=function(e){e.preventDefault(),e.stopPropagation(),this._close()},this._close=function(){var e=this;e.isLocalStorageAvailable()&&localStorage.setItem(e.cookieName,"1"),requestAnimationFrame(()=>{e.ele.classList.add("animate"),setTimeout(()=>{e.ele.classList.remove("hide"),e.ele.classList.add("hide"),e.onRemoveListeners(),e.ele.remove(),document.body.classList.remove("cookie-bar-enabled")},800)})},this.initialize({el:document.querySelector(".cookie-bar")})}},5702:(e,t,n)=>{n(722),n(8954).Z},8187:function(e,t,n){const i=n(523),r=n(2124)();e.exports=()=>{init=()=>{i.polyfill(),this.addEventListeners(),this.setupSocialImages()},this.addEventListeners=()=>{$(".newsletter-cta").on("click",this.showNewsLetter),$(".back-to-top").on("click",this.backToTop)},this.backToTop=()=>{window.scroll({top:0,left:0,behavior:"smooth"}),document.body.querySelector(".nav-item--logo a").focus()},this.showNewsLetter=e=>{e.preventDefault();r.init({expanded:!0})},this.setupSocialImages=()=>{document.querySelectorAll(".social img").forEach(e=>{e.src=e.src.replace("gray","black")})},init()}},9703:function(e){e.exports=()=>{this.promotionBarKey="BeatsPromotionBar",this.initialize=function(e){this.$el=e.el,this.onDomReady(),this.onAddListeners()},this.isSessionStorageAvailable=function(){return!("undefined"==typeof sessionStorage)},this.onDomReady=function(){var e=this;e.$close=e.$el.find(".close"),e.isSessionStorageAvailable()&&sessionStorage.getItem(e.promotionBarKey)||e.$el.removeClass("hide")},this.onAddListeners=function(){var e=this;e.$close.on("click",$.proxy(e.onCloseClick,e))},this.onCloseClick=function(){var e=this;if(e.isSessionStorageAvailable())try{sessionStorage.setItem(e.promotionBarKey,"0")}catch(e){}e.$el.addClass("hide"),event.preventDefault()},this.initialize({el:$(".promotionBar")})}},8661:(e,t,n)=>{n(4730);const i=n(4430);e.exports=function(){const e=function(e){let n,i,a,o;n=e||document,i=n.querySelectorAll("section.bbd-img-text-component, section.bbd-img-text-component [data-bbd-anim-target]"),i.forEach(e=>{r(e),o=e.querySelectorAll("img[data-link]:not(.img-clickable)"),o.forEach(e
475=>{let t=e.getAttribute("data-link");t&&(e.classList.add("img-clickable"),e.addEventListener("click",()=>{window.location=t}))}),a=e.querySelector(".asset-3d"),a&&a.addEventListener("load",()=>{t(a,e)})}),document.querySelectorAll(".sticky-text").length>0&&i.length>0&&document.querySelectorAll("body, html").forEach(e=>{e.setAttribute("overflow-unset","")})},t=function(e,t){i.userInteraction(e),e.shadowRoot.querySelector("#default-ar-button")&&i.arInteraction(e.shadowRoot.querySelector("#default-ar-button"),t);try{var n=new CSSStyleSheet;n.replaceSync(":focus-visible {\n                outline: 3px solid var(--outline);\n                outline-offset: -3px;\n            }"),e.shadowRoot.adoptedStyleSheets.push(n)}catch(e){console.log("Support CSSStyleSheet error",e)}if(e.dataset.color&&e.model){const[t]=e.model.materials;t.pbrMetallicRoughness.setBaseColorFactor(e.dataset.color)}};let n=new IntersectionObserver((e,t)=>{e.forEach(e=>{if(e.target&&e.intersectionRatio>.1){let t=e.target.querySelector('img[loading="lazy"]');t&&!t.classList.contains("loaded")&&!t.classList.contains("error")?t.addEventListener("img-loaded",()=>{e.target.classList.add("animate")}):e.target.classList.add("animate")}e.target&&e.intersectionRatio<.1&&e.target.classList.remove("animate")})},{rootMargin:"0px 0px 0px 0px",threshold:[.1]});const r=function(e){n.observe(e)};document.addEventListener("at-content-rendering-succeeded",t=>{let n=Array.from(document.querySelectorAll(".root"));n.length>0&&n.map(t=>{Array.from(t.querySelectorAll("section.bbd-img-text-component, section.bbd-img-text-component [data-bbd-anim-target]")).map(t=>{e(t.parentElement)})})}),e(),window.initImgTxt=function(t){e(t)}}},1912:function(e,t,n){const i=n(5355);e.exports=()=>{this.cookieName="bbd.storage.relatedContent",this.init=()=>{const e=new URL(window.location);pageRelativePath=e.pathname,this.pageOrigin=e.origin,this.pageUrl=this.getAbsoluteUrl(pageRelativePath),this.initPageTracking(),this.initRelatedContent()},this.initPageTracking=()=>{"true"===window.articlePage&&this.updateStorage()},this.updateStorage=()=>{let e=JSON.parse(i.getItem(this.cookieName,"SESSION"))||[];e.includes(this.pageUrl)||(e.push(this.pageUrl),i.setItem(this.cookieName,JSON.stringify(e),"SESSION"))},this.initRelatedContent=()=>{this.$container=$(".related-content-wrapper"),this.$container&&this.$container.length&&"undefined"!=typeof rcTiles&&(this.$tilesList=this.$container.find(".tiles-list"),this.$tiles=this.$tilesList.find(".tile"),this.rcTilesMap={},this.renderList=[],this.targetList=[],this.tileNumberMap={0:"tileOne",1:"tileTwo",2:"tileThree"},this.maxTiles=3,this.rcTilesMap=JSON.parse(rcTiles),this.addEventListeners(),this.render())},this.addEventListeners=()=>{window.addEventListener("pageshow",this.onPageShow)},this.render=()=>{this.updateTilesToRender(),this.renderTiles()},this.renderTiles=()=>{for(let e=0;e<this.$tiles.length;e++){let t=$(this.$tiles[e]),n=this.renderList[e];if(t.removeClass("hide"),t&&t.length){if(!n){t.addClass("hide");continue}t.load(n,(e,n,i)=>{200===i.status?this.lazyLoadTrigger():t.addClass("hide")})}}},this.lazyLoadTrigger=()=>{let e=new CustomEvent("lazyload-update");window.dispatchEvent(e)},this.updateTilesToRender=()=>{for(let e=0;e<this.maxTiles;e++){let t,n=this.rcTilesMap[this.tileNumberMap[e]],i=this.rcTilesMap.selectorExtension,r=null,a=null;n&&n.urls.length&&(t=this.getTileURL(n),t&&(r=this.getAbsoluteUrl(t.articleUrl)+i,a=this.getAbsoluteUrl(t.targetUrl)),this.renderList.push(r),this.targetList.push(a))}},this.getTileURL=e=>{let t=e.urls;return this.isCuratedTile(e)?t[0]:this.getUniqueTilePath(t)||this.getUniqueRepeatTilePath(t)},this.getUniqueTilePath=e=>{let t=[...e],n=t.shift();return n?this.isCurrentPage(n)||this.isVisited(n)||this.isDuplicate(n)?this.getUniqueTilePath(t):n:null},this.getUniqueRepeatTilePath=e=>{let t=[...e],n=t.shift();return n?this.isCurrentPage(n)||this.isDuplicate(n)?this.getUniqueRepeatTilePath(t):n:null},this.isCurrentPage=e=>[this.getAbsoluteUrl(e.articleUrl),this.getAbsoluteUrl(e.targetUrl)].includes(this.pageUrl),this.isVisited=e=>{let t=JSON.parse(i.getItem(this.cookieName,"SESSION"))||[],n=this.getAbsoluteUrl(e.targetUrl);return t.includes(n)},this.isDuplicate=e=>this.targetList.includes(this.getAbsoluteUrl(e.targetUrl)),this.getAbsoluteUrl=e=>{let t,n;if(!e)return null;try{t=new URL(e)}catch(n){t=new URL(this.pageOrigin+e)}return n=(t.origin+t.pathname).split(".html").join(""),n},this.isCuratedTile=e=>"true"===e.curated,this.onPageShow=e=>{e.persisted&&rcTiles&&(this.renderList=[],this.targetList=[],this.render())},this.init()}},5355:e=>{const t=Object.freeze({LOCAL:localStorage,SESSION:sessionStorage}),n=e=>{try{let n=t[e],i="__storage_test__";return n.setItem(i,i),n.removeItem(i),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&e&&0!==e.length}},i={setItem:(e,i,r)=>{if(!n(r)||!(e=>e&&e.startsWith("bbd.storage."))(e))return console.log("Storage Error: Please check browser support and your project naming convention for storage items."),!1;t[r].setItem(e,i)},getItem:(e,i)=>!!n(i)&&t[i].getItem(e),removeItem:(e,i)=>{n(i)&&t[i].removeItem(e)},clearStorage:e=>{n(e)&&t[e].clear()}};window.onStorage=e=>{console.debug("The "+e.key+" key has been changed from "+e.oldValue+" to "+e.newValue+".")},e.exports=i},4730:e=>{const t={hasAttributeCheck:(e,t)=>{if(t)return e.hasAttribute(t)},getAttributeValue:(e,t)=>
475{if(e&&t)return e.getAttribute(t)},copyChildNode:(e,t)=>{if(e&&t){e.childNodes.forEach(function(e){let n=e.cloneNode(!0);t.appendChild(n)})}return t},getNodeArrayFromQuerySelector:(e,t)=>(t=t||document,[].slice.call(t.querySelectorAll(e))),maxZIndexPlus1000:(e=0)=>{let t=Array.from(document.querySelectorAll("body *")).map(e=>parseFloat(window.getComputedStyle(e).zIndex)).filter(e=>!isNaN(e)).sort(function(e,t){return e>t?1:e<t?-1:0}).pop();return parseInt(t)+1e3+e},removeListeners:e=>{e.length>0&&(e.forEach(e=>{e.elem.removeEventListener(e.event,e.funcHandler)}),e.length=0)},assignEventStatus:(e,t,n)=>{if(e instanceof Element){let i=e;Array.isArray(t)&&t.forEach(function(e){i.classList.add(e)}),Array.isArray(n)&&n.forEach(function(e){i.classList.remove(e)})}},getArticleDateText:function(e,t){return function(e,t){var n;try{n=e.toLocaleString(t,{month:"long"})}catch(t){n=e.toLocaleString("en-US",{month:"long"})}return n}(e,t=t.replace("_","-"))+" "+e.getDate()+", "+e.getFullYear()},lazyLoadingSourceChange:e=>{e&&"PICTURE"===e.tagName&&Array.prototype.slice.call(e.children).forEach(function(e){!e.hasAttribute("srcset")&&e.hasAttribute("data-lazy-srcset")&&e.setAttribute("srcset",e.getAttribute("data-lazy-srcset")),!e.hasAttribute("src")&&e.hasAttribute("data-lazy-src")&&e.setAttribute("src",e.getAttribute("data-lazy-src"))})},getParamFromUrl:e=>{e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},setParamsToUrl:(e,t,n=!1)=>
475{if(!e)return;let i=new URLSearchParams(window.location.search);i.set(e,t);const r=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+i.toString();history.pushState&&!n?window.history.pushState({path:r},"",r):history.replaceState&&n&&window.history.replaceState({path:r},"",r)},stringToBoolean:(e,t=null)=>e?"true"==e:t,scrollLock:(e,t)=>{window.scrollLockArray?window.scrollLockArray:window.scrollLockArray=[],e?window.scrollLockArray.push(t):window.scrollLockArray=[...window.scrollLockArray].filter(e=>e!=t),window.scrollLockArray.length?$("html").addClass("noscroll"):$("html").removeClass("noscroll")},rgbToHex:e=>"#"+t._componentToHex(e[0])+t._componentToHex(e[1])+t._componentToHex(e[2]),_componentToHex:e=>{var t=null==e?"0":e.toString(16);return 1==t.length?"0"+t:t},hexToRGB:e=>{var t=e.match(/[^#]{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]},isColorInRange:(e,t)=>{for(var n=0;n<3;n++)if(e[n]-40>t[n]||e[n]+40<t[n])return!1;return!0},getDeviceFeatures:()=>({p3Gamut:window.matchMedia("(color-gamut: p3)").matches,srgbGamut:window.matchMedia("(color-gamut: srgb)").matches,REC2020Gamut:window.matchMedia("(color-gamut: rec2020)").matches,SDR:window.matchMedia("(dynamic-range: standard)").matches,HDR:window.matchMedia("(dynamic-range: high)").matches,pixelDepth:window.screen.pixelDepth,colorDepth:window.screen.colorDepth,colorModuleSupport:CSS.supports("background-color","color(display-p3 1 1 1)")}),isValidColorHex:e=>e.match(/^#([A-Fa-f0-9]{6})$/),isUAT:()=>0==window.location.host.indexOf("beatsbydre-uat"),removeHTMLTags:e=>null===e||""===e?"":(e=e.toString()).replace(/(<([^>]+)>)/gi,""),adobeTargetExists:()=>{let e=Date.now();return new Promise(function t(n,i){window.adobe&&window.adobe.target&&window.adobe.target.event?n():Date.now()-e>=1e4?i(new Error("timeout")):setTimeout(t.bind(this,n,i),100)})},getFilterValueDisplayName:(e,t=!1)=>{const n=t?window.productCarouselJson?.addOns?.length?window.productCarouselJson.addOns:[]:window.productCarouselJson?.productFilters?[{productFilters:window.productCarouselJson.productFilters}]:[];return(Array.isArray(e)?e:[e]).map(e=>{for(const t of n){const n=t.productFilters||{};for(const t of Object.keys(n)){const i=n[t].values?.find(t=>t.id===e);if(i)return i.displayName}}}).filter(Boolean)},getFilterGroupNameByFilterId:(e,t=!1)=>{const n=t?window.productCarouselJson?.addOns?.length?window.productCarouselJson.addOns:[]:window.productCarouselJson?.productFilters?[{productFilters:window.productCarouselJson.productFilters}]:[];return(Array.isArray(e)?e:[e]).map(e=>{for(const t of n){const n=t.productFilters??{};for(const t of Object.values(n)){const n=t.values?.find(t=>t.id===e);if(n)return n.analyticsLabel}}}).filter(Boolean).join(":")}};e.exports=t},3569:e=>{e.exports={debounce:function(e,t=300){let n;return(...i)=>{clearTimeout(n),n=setTimeout(()=>e(...i),t)}}}},722:e=>{e.exports=function(e,t){const n=new CustomEvent(e,{detail:t});if(window.dispatchEvent)window.dispatchEvent(n);else{if(!window.fireEvent)throw"this browser does not support custom events";window.fireEvent(n)}}},2611:(e,t,n)=>{let i={client:n(820)};e.exports=i},2050:(e,t,n)=>{"use strict";function i(e,t=""){return window.localized?.[e]||t}function r(e,t=""){return window.miniCartConfig?.[e]||t}function a(){return window.locale||"en_US"}function o(e){return"string"!=typeof e?e:e.replace(/<[^>]*>/g,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&apos;/g,"'").trim()}function s(e,t,n=!1){if("string"!=typeof e)return e||"";if(!t||"object"!=typeof t)return e;let i=e.replace(/\$?\{(\w+)\}/g,(e,n)=>void 0!==t[n]?String(t[n]):e);return n&&(i=o(i)),i}n.r(t),n.d(t,{getLocalized:()=>i,getLocalizedValueFromMiniCartConfig:()=>r,getLocale:()=>a,interpolateTemplate:()=>s,stripHtmlTags:()=>o,default:()=>l});const l={getLocalized:i,getLocalizedValueFromMiniCartConfig:r,getLocale:a,interpolateTemplate:s,stripHtmlTags:o}},2500:e=>{e.exports=function(e){"complete"===document.readyState?e():document.addEventListener("readystatechange",function t(){"complete"===document.readyState&&(e(),document.removeEventListener("readystatechange",t))})}}
475,9235:e=>{e.exports=(()=>{let e=0,t=!1;const n=()=>{t||(e=document.scrollingElement.scrollTop)},i=e=>{document.scrollingElement.scrollTop=e};return document.addEventListener("scroll",n),{getScrollTop:function(){return e},disableScrollTrack:()=>{t=!0},enableScrollTrack:()=>{t=!1},setScrollTop:i,setPreservedScrollTop:()=>{i(e)}}})()},7754:e=>{function t(e,t='\n    a[href],\n    area[href],\n    input:not([disabled]):not([tabindex="-1"]),\n    button:not([disabled]):not([tabindex="-1"]),\n    select:not([disabled]):not([tabindex="-1"]),\n    textarea:not([disabled]):not([tabindex="-1"]),\n    iframe,\n    object,\n    embed,\n    *[tabindex]:not([tabindex="-1"]),\n    *[contenteditable=true]\n'){const n=e.querySelectorAll(t);return n?Array.prototype.filter.call(n,e=>function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)):n}e.exports={cycleTabs:function(e,n){if("Tab"===e.key){const i=t(n);let r=!1;e.shiftKey?(function(e,t){return t.length>0&&(e.target||e.srcElement)===t[0]}(e,i)||function(e,t){return(e.target||e.srcElement)===t}(e,n))&&(r=function(e){return e.length>0&&(e[e.length-1].focus(),!0)}(i)):function(e,t){return t.length>0&&(e.target||e.srcElement)===t[t.length-1]}(e,i)&&(r=function(e){return e.length>0&&(e[0].focus(),!0)}(i)),r&&(e.preventDefault(),e.stopPropagation())}},focusNextFocusableElement:function(e=document.body){const n=document.activeElement,i=t(e),r=i.findIndex(e=>e===n),a=r>=0?i[r+1]:i[0];a&&a.focus()},focusPrevFocusableElement:function(e=document.body){const n=document.activeElement,i=t(e),r=i.findIndex(e=>e===n),a=r>0?i[r-1]:i[0];a&&a.focus()}}},3452:e=>{e.exports=function(e,t){let n,i,r=0;void 0!==document.hidden?(n="hidden",i="visibilitychange"):void 0!==document.msHidden?(n="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(n="webkitHidden",i="webkitvisibilitychange");const a=function(n){document.hasFocus()?t(n):e(n)};void 0!==document.addEventListener&&void 0!==n&&(document.removeEventListener(i,a),document.addEventListener(i,a,!1)),window.addEventListener("blur",a),window.addEventListener("focus",a),window.addEventListener("resize",e=>{r++,3===r&&(a(e),r=0)})}},8787:(e,t,n)=>{const i=n(4730),r=n(9235);var{cycleTabs:a}=n(7754);const o={create:e=>{let t=document.createElement("div");t.setAttribute("class","beats-modal"),t.style.zIndex=i.maxZIndexPlus1000();let n=document.createElement("div");n.setAttribute("tabindex","-1"),n.setAttribute("class","beats-modal-focus"),t.appendChild(n);let a=document.createElement("div");a.setAttribute("class","beats-modal-content"),n.appendChild(a);let s=document.createElement("a");return s.setAttribute("class","beats-modal-close"),s.setAttribute("href","#"),s.setAttribute("aria-label","Close Modal"),s.setAttribute("role","button"),s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12.02 12">\n        <path d="M7,6l4.84-4.83a0.68,0.68,0,0,0-1-1L6,5,1.17,0.2a0.68,0.68,0,0,0-1,1L5,6,0.2,10.83a0.68,0.68,0,1,0,1,1L6,7l4.83,4.83a0.68,0.68,0,1,0,1-1Z" fill="#fff" stroke="#fff" stroke-width="1"></path>\n        </svg>',n.appendChild(s),s.style.zIndex=i.maxZIndexPlus1000(1e3),s.addEventListener("click",n=>{o.destroy(t,e),n.preventDefault()}),s.addEventListener("keydown",n=>{if(" "===n.key)o.destroy(t,e),n.preventDefault()}),r.disableScrollTrack(),t.addEventListener("keydown",e=>{o.keyDown(t,e)}),requestAnimationFrame(()=>{setTimeout(()=>{document.querySelector("html").classList.add("beats-modal-open")},500),requestAnimationFrame(()=>{window.scrollTo(0,0)})}),t},keyDown:(e,t)=>{},destroy:(e,t,n=!1,i=!0)=>{i&&document.querySelector("html").classList.remove("beats-modal-open","beats-modal-minimize","beats-modal-pip"),e.remove(),t&&!n&&r.setPreservedScrollTop(),setTimeout(()=>{r.enableScrollTrack()},5),requestAnimationFrame(()=>{window.lastActiveElement&&window.lastActiveElement.focus()})},minimize:()=>{document.querySelector("html").classList.add("beats-modal-minimize"),r.enableScrollTrack()},maximize:()=>{r.disableScrollTrack(),document.querySelector("html").classList.remove("beats-modal-minimize")}};e.exports=o}
475,1602:(e,t,n)=>{const i=n(7545),r=n(820),a=n(3452),o=n(991),s=n(2497),l=n(289),u=n(9179),c=n(4730),d=n(8787),h=n(9235),p=n(722),f=n(9061),m=n(8652);var{getLocalized:g}=n(2050);const{debounce:v}=n(3569);let y=0;const b=e=>{let t,b=[];const _=i.log;let T={},w=f;const S=[];let k=i.browser;const E=!0===k.TOUCH_ENABLED&&k.IS_SAFARI,C=!0===k.TOUCH_ENABLED&&k.IS_IPAD,x=!0===k.TOUCH_ENABLED&&k.IS_IPHONE,P=!0===k.TOUCH_ENABLED&&k.IS_ANDROID,A=r.browser.version.string||"",L=c.getDeviceFeatures(),I=L.colorModuleSupport&&L.pixelDepth>30||P,N={USER_PLAYBACK:"user-playback",LOOPING:"looping",PLAY_ONCE:"play-once",INLINE_USER_PLAYBACK:"inline-user-playback"},D="btn-color-dark",O="#FFF",M="#000",R="0.5";let B="",U=!1;window.activeBeatsVideoPlayers=[],window.activeBeatsVideoPlayersIds=[];const F=(window.locale||"en").toLowerCase(),j=F.split("_")[0],z=e=>{c.getNodeArrayFromQuerySelector(".video-block:not([data-video-initialized]), .ctaPlayBack:not([data-video-initialized])",e).forEach(function(e){if(e.querySelector("beats-video"))return void V(e.querySelector("beats-video"));e.setAttribute("data-video-initialized",!0);let t=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.target&&e.intersectionRatio>.1&&e.target.getAttribute("data-video-type")!==N.USER_PLAYBACK&&V(e.target.querySelector("beats-video"))})},{rootMargin:"0px 0px 500px 0px",threshold:[.1]});if(e.classList.contains("video-block")&&!e.classList.contains("ctaPlayBack"))t.observe(e);else if(e.classList.contains("ctaPlayBack")){let t;e.addEventListener("click",function(t){t.preventDefault(),window.lastActiveElement=e,n(e)}),e.addEventListener("keydown",function(t){if(" "===t.key)t.preventDefault(),window.lastActiveElement=e,n(e)}),e.classList.forEach(function(e){if(e&&e.startsWith("video-cta")){let n=e.split("video-cta-")[1];t=document.querySelector(".transcript-id-"+n)}});const i=e.getAttribute("data-analytics-label"),r=e.classList.contains("has-transcript-event");t&&!r&&(e.classList.add("has-transcript-event"),t.addEventListener("click",()=>{w.track({type:"videoTranscriptDownload",data:{videoName:i}})}))}const n=function(e){const t={videoType:e.dataset.videoType,fallbackImageSrc:e.dataset.fallbackImageSrc,fallbackImageAlt:e.dataset.fallbackImageAlt||"",transparent:e.dataset.transparent||"",lastFrame:e.dataset.lastFrame,videoSrc:e.dataset.videoSrc,btnColor:e.dataset.btnColor,imageFileExtension:e.dataset.imageFileExtension,srcElement:e,videoName:e.dataset.analyticsLabel||"",videoTrack:e.querySelector("beats-video-track")||"",ariaLabel:e.dataset.ariaLabel,videoLength:e.dataset.videoLength};t.videoType&&t.lastFrame&&t.videoSrc&&t.srcElement&&t.fallbackImageSrc&&t.imageFileExtension&&V(t)}})};document.addEventListener("at-content-rendering-succeeded",e=>{let t=Array.from(document.querySelectorAll(".root"));t.length>0&&t.map(e=>{Array.from(e.querySelectorAll(".video-block, .ctaPlayBack")).map(e=>{z(e.parentElement)})})}),document.addEventListener("DOMContentLoaded",()=>{z()}),window.initBeatsVideo=function(e){z(e)},window.addEventListener("orientationchange",e=>{window.activeBeatsVideoPlayers&&window.activeBeatsVideoPlayers.length>0&&window.activeBeatsVideoPlayers.map(e=>xe(e))});const V=e=>{if(e)if("BEATS-VIDEO"===e.tagName)H(e);else if("object"==typeof e){const t=q(e);t&&H(t.querySelector("beats-video"),e.srcElement,e)}else{c.getNodeArrayFromQuerySelector("beats-video",e).forEach(e=>{H(e)})}},q=e=>{let t;if(e){const i=`<picture-element>\n            <source media="(min-width: 1069px)" srcset="${e.fallbackImageSrc}.large.2x${e.imageFileExtension} 2x">\n            <source media="(min-width: 735px) and (max-width: 1068px)" srcset="${e.fallbackImageSrc}.medium.2x${e.imageFileExtension} 2x">\n            <source media="(max-width: 734px)" srcset="${e.fallbackImageSrc}.small.2x${e.imageFileExtension} 2x">\n            <fallback-img class="bbd-media-image" src="${e.fallbackImageSrc}.large.2x${e.imageFileExtension}" \n                srcset="${e.fallbackImageSrc}.large.2x${e.imageFileExtension} 2x" alt="${e.fallbackImageAlt}">\n        </picture-element>
475\n        <beats-video controls="true" playsInline="" data-video-type="${e.videoType}" data-last-frame="${e.lastFrame}"\n          data-btn-color="${e.btnColor}" fallback-img-src="${e.fallbackImageSrc}" data-analytics-label="${e.videoName}" data-aria-label="${e.ariaLabel}"\n          data-video-length="${e.videoLength}">\n          <source src="${e.videoSrc}.rendition.mp4" type="${"true"==e.transparent?"video/mp4; codecs=hvc1":"video/mp4"}" />\n          <source src="${e.videoSrc}.rendition.webm" type="video/webm" />\n          <div class="preload-svg">\n            <img src="/assets/resources/images/captions-bubble.svg" alt="" role="presentation" />\n            <img src="/assets/resources/images/captions-bubble-fill.svg" alt="" role="presentation" />\n          </div>\n        </beats-video>`;if(t=document.createElement("div"),t.setAttribute("class","video-block video-block--transparent video-ratio-parent"),t.innerHTML=i,e.videoTrack){var n=e.videoTrack.cloneNode(!0);t.querySelector("beats-video").appendChild(n)}}return t},H=(e,t="",n="")=>{if(!c.hasAttributeCheck(e,"data-lazy")||"loaded"!==c.getAttributeValue(e,"data-lazy")&&!e.classList.contains("video-source-error")){let i=c.getAttributeValue(e,"data-video-type");W(e,i,t,n)}},W=(e,n,i,r)=>{let a,o,s,l=c.hasAttributeCheck(e,"data-last-frame")?c.getAttributeValue(e,"data-last-frame"):"",u=e.closest(".video-block");if(o=u?u.querySelector("picture"):"",u){if(N.USER_PLAYBACK===n){let e=document.querySelector(".modal"),n=e?document.querySelector(".modal video-js")?.player:"";if(!e){if(e||n)return t=e,$(e,r),!0;if(a=Y(i).modal,t=a,a){let e=a.querySelector(".modal-content"),t=document.createElement("div");t.classList.add("modal-content__inner");let n=document.createElement("div");n.classList.add("modal-video-container");let i=document.createElement("div");i.classList.add("modal-video-container__inner"),i.appendChild(u),n.appendChild(i),t.appendChild(n),e.appendChild(t)}}}te(e,n,o,l),s=N.USER_PLAYBACK===n?document.querySelector(".modal").querySelector("video-js"):e.parentNode.querySelector("video-js"),J(n,s),X(s,T,n,e,i)}},$=(e,t)=>{let n=e.querySelector(".video-block"),i=e.querySelector("video-js").player,r=e.querySelector("picture"),a=e.querySelector("video-js .vjs-loading-spinner");if(i&&r){i.src([{type:"video/mp4",src:t.videoSrc+".rendition.mp4"},{type:"video/webm",src:t.videoSrc+".rendition.webm"}]);let e=G(t);n.replaceChild(e,r)}a.style.display="none",i.play().catch(e=>{_(e)})},G=e=>{const t=`\n        <source media="(min-width: 1069px)" srcset="${e.fallbackImageSrc}.large.2x${e.imageFileExtension} 2x">\n        <source media="(min-width: 735px) and (max-width: 1068px)" srcset="${e.fallbackImageSrc}.medium.2x${e.imageFileExtension} 2x">\n        <source media="(max-width: 734px)" srcset="${e.fallbackImageSrc}.small.2x${e.imageFileExtension} 2x">\n        <img class="bbd-media-image" src="${e.fallbackImageSrc}.large.2x${e.imageFileExtension}" \n            srcset="${e.fallbackImageSrc}.large.2x${e.imageFileExtension} 2x"\n            alt="${e.fallbackImageAlt}" />\n        `;return element=document.createElement("picture"),element.setAttribute("class","beats-picture"),element.innerHTML=t,element},Y=e=>{let t=new m.default(e,null," ");return t.open(),t},K=(e,t)=>{let n=!1;document.querySelector("html").classList.contains("beats-modal-minimize")&&(n=!0),e&&(ae(e.querySelector("video-js").id),e.dispatchEvent(new CustomEvent("close")),c.removeListeners(S))},X=(e,t,n,r,o)=>{t.retryOnError=!0,U=!1;let s=i(e,t,function(){this.video=e,this.isLooping=t.loop,this.isAutoPlay=t.autoplay,this.isMuted=t.muted,this.isPausedByUser=!1,this.isInViewPort=!1,this.pausedByOffScreen=!1,this.captionAnalyticsFlag=!1,this.hasLoaded=!1,b[this.id_]=this;const i=new CustomEvent("video-ready");document.dispatchEvent(i),this.on("play",e=>oe(e,n,o)),this.on("pause",e=>se(e,n,o)),this.on("ended",e=>ce(e,n,o)),this.on("error",e=>de(e,r,n)),this.on("resize",e=>ue(e,this.el())),this.on("loadeddata",he),this.on("loadedmetadata",ye),this.on("timeupdate",e=>be(e,n,o)),this.on("useractive",e=>_e(e,n)),this.on("userinactive",e=>Te(e,n)),this.on("volumechange",we),this.on("dispose",e=>pe(e,r,n)),this.on("fullscreenchange",e=>me(e,o)),this.on("seeking",Se),this.on("seeked",ke),this.on("enterpictureinpicture",Ee),this.on("leavepictureinpicture",Ce),this.on("contextmenu",e=>e.preventDefault()),this.el().children.item("video").addEventListener("webkitendfullscreen",e=>{let t=document.querySelector(".modal");
475C||!x||e.target.attributes["data-video-type"].value!==N.USER_PLAYBACK||document.querySelector("html").classList.contains("beats-modal-minimize")||K(t)});const s=v(e=>le(e),150);window.addEventListener("resize",()=>{s(this)}),this.el().children.item("video").addEventListener("webkitpresentationmodechanged",e=>{let t=e.target.closest(".modal"),n=t?t.querySelector("video-js").player:"";n&&e.target&&(n.isFullscreen()&&("picture-in-picture"===e.target.webkitPresentationMode&&Ee(e),"fullscreen"===e.target.webkitPresentationMode&&d.maximize()),"inline"===e.target.webkitPresentationMode&&"hidden"==t.style.visibility&&(n.ended()&&document.querySelector("html").classList.contains("beats-modal-minimize")?(n.exitPictureInPicture(),K(t)):(n.ended()||!n.ended()&&document.querySelector("html").classList.contains("beats-modal-open"))&&(t.style.visibility="visible")))}),ee(this,o),n===N.USER_PLAYBACK&&this.ready(()=>{const e=document.querySelector(".modal");if(e){const t=e.querySelector(".modal-content picture");t&&(t.style.display="none")}this.play().catch(e=>{_(e)})}),Pe.observe(e.closest(".video-block, .beats-video-block")),Ae.observe(e.closest(".video-block, .beats-video-block"));a(function(t){["blur","resize"].includes(t.type)||function(e){let t=e.player;t&&b[t.id()]&&fe(t)&&t.isInViewPort&&!t.isInPictureInPicture()&&(t.pausedByOffScreen=!0,t.pause())}(e)},function(){const t="true"===getComputedStyle(e).getPropertyValue("--animation-disabled");n==N.INLINE_USER_PLAYBACK||"false"===e.getAttribute("data-autoplay-override")&&!t||window.matchMedia("(prefers-reduced-motion: reduce)").matches||function(e){let t=e.player;t&&b[t.id()]&&!t.isPausedByUser&&t.isInViewPort&&(n==N.USER_PLAYBACK&&!t.ended()&&t.pausedByOffScreen||n==N.PLAY_ONCE&&!t.ended()||n==N.LOOPING||n==N.INLINE_USER_PLAYBACK)&&setTimeout(()=>{t.play().catch(e=>{_(e)}),t.pausedByOffScreen=!1},400)}(e)})});if(s){r.getAttribute("data-aria-label")&&s.setAttribute("aria-label",`${r.getAttribute("data-aria-label")} ${g("videoPlayer","video player")}`),r.setAttribute("data-lazy","loaded"),r.setAttribute("data-video-guid",s.id()),s.removeChild("bigPlayButton"),s.on("error",e=>de(e,r,n));let e=r.querySelector("beats-video-track");if(n===N.INLINE_USER_PLAYBACK&&(e=r.parentElement.querySelector("beats-video-track")),(n===N.USER_PLAYBACK||N.INLINE_USER_PLAYBACK)&&e){s.getChild("ControlBar").removeChild("SubsCapsButton");let t=e.getAttribute("caption-path");t&&s.ready(function(){let n="true"===e.getAttribute("auto-enable-caption");s.addRemoteTextTrack({src:t,kind:"subtitles",default:n,srclang:e.getAttribute("caption-lang-code")||"en",label:e.getAttribute("caption-label")||"English"},!1);const i=new u(s,{className:"custom-toggle",showing:n});s.getChild("controlBar").addChild(i,{});let r=s.video.querySelector(".vjs-control-bar"),a=s.video.querySelector(".vjs-fullscreen-control");r.insertBefore(i.el_,a),s.textTrackSettings.setValues({color:O,backgroundColor:M,backgroundOpacity:R}),s.video.querySelector("video").textTracks.onchange=function(e){if(!s.captionAnalyticsFlag){let t,n=e.target[0]?e.target[0].mode:"";n&&("showing"===n?t="videoCaptionOn":"disabled"===n&&(t="videoCaptionOff"),p("analytics-track-video",{eventType:t,data:s}))}}});let n=e.getAttribute("transcript-path"),i=e.getAttribute("transcript-label")||"Download transcript";if(n&&i){let e=o.closest(".media-carousel__item.active"),t=e?e.querySelector(".media-carousel__title"):null,a=t?t.innerHTML:"",l=e?e.querySelector(".media-carousel__description"):null,u=e?e.querySelector(".media-carousel__description-long"):null,c=u?u.innerHTML:l?l.innerHTML:"",d=`<a href="${n}" role="button" class="transcript-link" onKeyDown="if (event.key == ' ') {event.preventDefault();this.click()}" download>${i}</a>`;element=document.createElement("div"),element.setAttribute("class","transcript-container"),element.innerHTML=`\n            ${a?`<div class="transcript-title">${a}</div>`:""}\n            ${c?`<div class="transcript-desc"> ${c} </div>`:""} \n            ${d}\n          `;let h=r.closest(".video-block");(h.closest(".modal-content__inner")||h.parentElement).appendChild(element),element.querySelector("a.transcript-link").addEventListener("click",()=>{p("analytics-track-video",{eventType:"videoTranscriptDownload",data:s})})}}}},Q=e=>{try{return n(2313)(`./${e}.json`)}catch(e){return null}},J=(e,t)=>
475{let n={language:(()=>{let e=Q(F),t=F;return e||j===F||(e=Q(j),t=j),e||(e=Q("en"),t="en"),e&&i.addLanguage(t,e),t})(),errorDisplay:!1,id:Math.floor(1e4*Math.random())+1};switch(e){case N.LOOPING:{const e={loop:!0,autoplay:!0,muted:"muted",playsinline:!0,preload:"auto"};T=Object.assign(e,n)}break;case N.USER_PLAYBACK:{const e={controls:!0,inactivityTimeout:1e3,playsinline:!0,controlBar:{pictureInPictureToggle:!1,remainingTimeDisplay:!0},nativeControlsForTouch:!P,html5:{nativeTextTracks:!0}};T=Object.assign(e,n)}break;case N.PLAY_ONCE:{const e={muted:"muted",playsinline:!0,autoplay:!0,preload:"auto"};T=Object.assign(e,n)}break;case N.INLINE_USER_PLAYBACK:{const e={controls:!0,playsinline:!0,preload:"auto",autoplay:!0,inactivityTimeout:1e3,controlBar:{pictureInPictureToggle:!1,remainingTimeDisplay:!0},nativeControlsForTouch:!P,html5:{nativeTextTracks:!0}};T=Object.assign(e,n)}}},Z=(e,t,n)=>{let i=c.getAttributeValue(t,"data-btn-color"),r=i&&"undefined"!==i?i:D,a=n.closest(".video-block, .beats-video-block");if(null==a.querySelector(".vjs-controls-container"))switch(e){case N.LOOPING:{const e=new s(t,{className:N.LOOPING,videoName:c.getAttributeValue(t,"data-aria-label")});a.appendChild(e.el()),a.querySelector(".vjs-controls-container.looping").classList.add(r)}break;case N.USER_PLAYBACK:{const e=new o(t,{className:N.USER_PLAYBACK,videoName:c.getAttributeValue(t,"data-aria-label")});let n=t.usingNativeControls_?"native-controls":"videojs-controls";a.appendChild(e.el()),a.querySelector(".vjs-controls-container.user-playback").classList.add(r,n)}break;case N.PLAY_ONCE:{const e=new l(t,{className:N.PLAY_ONCE,videoName:c.getAttributeValue(t,"data-aria-label")});a.appendChild(e.el()),a.querySelector(".vjs-controls-container.play-once").classList.add(r)}break;case N.INLINE_USER_PLAYBACK:{const e=new o(t,{className:N.INLINE_USER_PLAYBACK,videoName:c.getAttributeValue(t,"data-aria-label")});let n=t.usingNativeControls_?"native-controls":"videojs-controls";a.appendChild(e.el()),a.querySelector(".vjs-controls-container.inline-user-playback").classList.add(r,n),a.querySelector(".vjs-controls-container.inline-user-playback button.play-btn").style.display="block"}}},ee=(e,t)=>{e.setAttribute("data-video-id",e.id()),t&&(t.setAttribute("data-video-id",e.id()),e.removeAttribute("aria-label"),t.getAttribute("data-aria-label")?e.video.querySelector("video").setAttribute("aria-label",t.getAttribute("data-aria-label")):e.video.querySelector("video").setAttribute("aria-label",t.getAttribute("aria-label")))},te=(e,t,n)=>{let i=document.createElement("video-js");i.setAttribute("id",`video-js-${y}`),y++;let r=e.closest(".video-block");if(n=r?r.querySelector("picture"):"",N.USER_PLAYBACK===t){let t=document.querySelector(".modal-content .video-block, .modal-content .beats-video-block"),n=ne(e);t.appendChild(n),t.querySelector("picture").classList.remove("position-relative"),t.appendChild(i)}else r.appendChild(i);return N.INLINE_USER_PLAYBACK===t&&(r.querySelector("video-js").style.display="none"),N.LOOPING!==t&&N.PLAY_ONCE!==t||!n||(n.style.display="none"),i.setAttribute("class","video-js vjs-fluid"),[...e.attributes].filter(e=>e.name.match("data-")).map(({name:e,value:t})=>{i.setAttribute(e,t)}),N.USER_PLAYBACK!=t&&(e.hasAttribute("data-mobile-video")&&window.matchMedia("(max-width: 734px)").matches&&!e.hasAttribute("data-mobile-forced-fallback-disable-video")?e.querySelectorAll("SOURCE").forEach(e=>{e.removeAttribute("src"),e.hasAttribute("data-mobile-src")&&e.setAttribute("src",e.getAttribute("data-mobile-src")),e.hasAttribute("data-mobile-mp4-src")&&e.setAttribute("src",e.getAttribute("data-mobile-mp4-src")),e.hasAttribute("data-mobile-webm-src")&&e.setAttribute("src",e.getAttribute("data-mobile-webm-src"))}):e.querySelectorAll("SOURCE").forEach(e=>{e.removeAttribute("src"),e.hasAttribute("data-desktop-src")&&e.setAttribute("src",e.getAttribute("data-desktop-src")),e.hasAttribute("data-desktop-mp4-src")&&e.setAttribute("src",e.getAttribute("data-desktop-mp4-src")),e.hasAttribute("data-desktop-webm-src")&&e.setAttribute("src",e.getAttribute("data-desktop-webm-src"))})),i=c.copyChildNode(e,i),e},ne=e=>{let t,n,i=e.closest(".video-block"),r=i?i.querySelector("picture"):"",a=i?i.querySelector("picture-element"):"";if(r)n=r.querySelector("img");else{let e=document.createElement("picture");e.setAttribute("class","beats-picture"),e.style.display="none",t=c.copyChildNode(a,e),n=document.createElement("img"),e.appendChild(n),n.setAttribute("src",c.getAttributeValue(a.querySelector("fallback-img"),"src")),n.setAttribute("alt",c.getAttributeValue(a.querySelector("fallback-img"),"alt"))}return n.addEventListener("error",elemErrorHandler=e=>{e.target.classList.add("fallback-image-error"),e.preventDefault()}),S.push({elem:n,event:"error",funcHandler:elemErrorHandler}),t},ie=(e,t="VideoEvents")=>{let n=new CustomEvent(t,{detail:{videoEvent:e,videoEventType:e.type,videoId:e.target.id,videoElement:e.target}});(e.target.parentElement.querySelector("beats-video")?e.target.parentElement.querySelector("beats-video"):document).dispatchEvent(n)},re=e=>i.getPlayer(e),ae=e=>{re(e).dispose(),e in b&&delete b[e]},oe=(e,t,n)=>{if((N.LOOPING===t||N.PLAY_ONCE===t)&&e?.target&&e.target?.childElementCount>0){let t=Array.from(e.target.children);
475t?.forEach(e=>{e&&e.setAttribute("aria-hidden",!0)})}ge(e),ie(e);let i=e.target.closest(".video-block");if(N.USER_PLAYBACK===t){i=e.target.closest(".modal-content");let t=i.querySelector(".vjs-controls-container");t&&t.classList.contains("video-ended")&&t.classList.remove("video-ended")}let r=i?i.querySelector("picture"):"";r&&(r.style.display="none",r.style.zIndex=0),i.querySelector("video-js").style.display="block";const a={eventType:"videoPlay",data:e.target};U||(i.querySelector("beats-video").hasAttribute("data-video-length")&&(a.videoLength=i.querySelector("beats-video").getAttribute("data-video-length")),n&&(a.videoLength=n.getAttribute("data-video-length"))),N.INLINE_USER_PLAYBACK===t&&i.hasAttribute("data-analytics-video")&&(i.querySelector("video").style.display="block",p("analytics-track-video",a),U=!0),N.USER_PLAYBACK===t&&n.hasAttribute("data-analytics-video")&&(p("analytics-track-video",a),U=!0)},se=(e,t,n)=>{let i;B&&B>e.target.player.currentTime()&&(i=B),B=e.target.player.currentTime().toFixed(0),ie(e),N.USER_PLAYBACK===t&&n.hasAttribute("data-analytics-video")&&(p("analytics-track-video",{eventType:"videoStop",data:e.target,maxPlayedTime:i||e.target.player.currentTime().toFixed(0)}),n.setAttribute("data-video-played","")),N.INLINE_USER_PLAYBACK===t&&e.target.closest(".video-block").hasAttribute("data-analytics-video")&&(p("analytics-track-video",{eventType:"videoStop",data:e.target,maxPlayedTime:i||e.target.player.currentTime().toFixed(0)}),e.target.closest(".video-block").setAttribute("data-video-played",""))},le=e=>{const t="true"===getComputedStyle(e.video).getPropertyValue("--animation-disabled"),n="false"===e.getAttribute("data-autoplay-override");if(e.isAutoPlay&&n){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void e.pause();if(t)return void(e.isPausedByUser||e.play());e.pause()}},ue=(e,t)=>
475{requestAnimationFrame(()=>{if(!t)return;parseInt(getComputedStyle(t).width.replace("px","")),parseInt(getComputedStyle(t).height.replace("px","")),t.closest(".video-block"),t.closest(".modal")})},ce=(e,t,n)=>{ie(e),N.USER_PLAYBACK===t&&n.hasAttribute("data-analytics-video")&&p("analytics-track-video",{eventType:"videoComplete",data:e.target}),N.INLINE_USER_PLAYBACK===t&&e.target.closest(".video-block").hasAttribute("data-analytics-video")&&p("analytics-track-video",{eventType:"videoComplete",data:e.target});const r=c.hasAttributeCheck(e.target,"data-last-frame")?c.getAttributeValue(e.target,"data-last-frame"):"";let a=e.target.closest(".video-block");if(e.target.player&&e.target.player.isInPictureInPicture()){const{IOS_VERSION:t}=i.browser;return(A&&parseInt(A)>=14||t>="14")&&e.target.player.exitPictureInPicture(),K(document.querySelector(".modal")),!0}if(N.USER_PLAYBACK===t&&(a=e.target.closest(".modal-content"),a.querySelector(".vjs-controls-container").classList.add("video-ended")),a&&N.LOOPING!=t&&"asset"===r&&(a.querySelector("picture img").style.opacity=1,a.querySelector("picture").style.display="block",a.querySelector("video-js").style.display="none",ve(e)),e.target.player.isFullscreen()){const t=e.target.querySelector(".vjs-controls-container .play-btn");e.target.player.exitFullscreen(),E&&e.target.querySelector("video")&&e.target.querySelector("video").webkitExitFullscreen(),t&&t.focus()}},de=(e,t,n)=>{if(!t.classList.contains("video-source-error")){ie(e);let i=e.target.closest(".modal"),r=e.target.classList.contains("vjs-error");e.target.player;if(r){e.target.player&&e.target.player.isInPictureInPicture()&&e.target.player.exitPictureInPicture();let r=N.USER_PLAYBACK===n?e.target.closest(".modal-content"):e.target.closest(".video-block");r&&(N.USER_PLAYBACK===n&&i&&r.classList.add("video-error"),r.querySelector("picture img").style.opacity=1,r.querySelector("video-js").style.zIndex=-1,r.querySelector("picture").style.display="block",r.querySelector("video-js").style.display="none",ve(e)),t.classList.add("video-source-error")}}},he=e=>{let t=c.getAttributeValue(e.target,"data-video-type");if(t!=N.INLINE_USER_PLAYBACK&&(Z(t,e.target.player,e.target),ie(e),!1===e.target.player.hasStarted_&&!0===e.target.player.isAutoPlay&&("false"!==e.target.player.tagAttributes["data-autoplay-override"]||document.body.classList.contains("low-battery")))){let t=e.target.closest(".video-block");t.querySelector("picture img").style.opacity=1,t.querySelector("picture").style.display="block",t.querySelector("video-js").style.display="none",ve(e)}},pe=(e,t,n)=>{e.target.id in b&&delete b[e.target.id],ie(e);let i=N.USER_PLAYBACK===n?e.target.closest(".modal-content"):e.target.closest(".video-block");i&&i.querySelector("picture").classList.add("position-relative"),t.setAttribute("data-lazy","loading")},fe=e=>e.hasStarted_&&!e.paused(),me=(e,t)=>{let n=e.target.player;setTimeout(()=>{e.target.player&&!e.target.player.isFullscreen_&&fe(e.target.player)&&!n.isInPictureInPicture()&&e.target.player.pause()})},ge=e=>{let t=e.target.closest(".video-ratio-parent");if(t){let n=e.target.querySelector("video"),i=t.querySelector("video-js"),r=n.videoWidth,a=n.videoHeight;0!=r&&0!=a&&(t.style.aspectRatio=`${r} / ${a}`,i.style.aspectRatio=`${r} / ${a}`,i.style.height="auto",i.style.paddingTop="0px",i.style.maxHeight="100%")}},ve=e=>{let t=e.target.closest(".video-ratio-parent");t&&t.style.removeProperty("aspect-ratio")},ye=e=>{ge(e);let t=e.target.closest(".video-block, .beats-video-block");t.querySelector("video-js").classList.add("is-active");let n=c.getAttributeValue(e.target,"data-video-type");n===N.INLINE_USER_PLAYBACK&&(t.querySelector("picture img").style.opacity=1,t.querySelector("picture").style.display="block",t.querySelector("video-js").style.display="none",Z(n,e.target.player,e.target));let i=e.target.player.video.closest(".bbd-full-width-container");[N.LOOPING,N.PLAY_ONCE].includes(c.getAttributeValue(e.target,"data-video-type"))&&I&&"true"===c.getAttributeValue(e.target,"data-bg-match")&&i&&c.isValidColorHex(i.getAttribute("data-desktop-bg-color"))&&setTimeout(()=>{Le(e.target.player,i)},500);let r=e.target.player;if(r){let e=r.video.querySelector(".beats-video-captions"),t=r.video.querySelector("video").textTracks;t&&t.length>0&&("showing"===t[0].mode&&e.classList.add("beats-video-captions-off"),"hidden"===t[0].mode&&e.classList.remove("beats-video-captions-off"))}setTimeout(()=>{if(n===N.INLINE_USER_PLAYBACK){e.target.closest(".video-block").querySelector(".vjs-controls-container.inline-user-playback button.play-btn").click()}},300)}
475,be=(e,t,n)=>{N.USER_PLAYBACK===t&&n.hasAttribute("data-analytics-video")&&!n.hasAttribute("data-video-played")&&p("analytics-track-video",{eventType:"videoMilestone",data:e.target}),N.INLINE_USER_PLAYBACK===t&&e.target.closest(".video-block").hasAttribute("data-analytics-video")&&!e.target.closest(".video-block").hasAttribute("data-video-played")&&p("analytics-track-video",{eventType:"videoMilestone",data:e.target})},_e=(e,t)=>{let n=e.target.querySelector(".vjs-control-bar"),i=e.target.player?e.target.player:"";n&&i&&(t!==N.USER_PLAYBACK||i.ended()||i.isInPictureInPicture()||(n.style.opacity=1))},Te=(e,t)=>{let n=e.target.querySelector(".vjs-control-bar");n&&t===N.USER_PLAYBACK&&document.body.classList.contains("using-mouse")&&(n.style.opacity=0)},we=e=>{},Se=e=>{let t=e.target.querySelector(".vjs-controls-container.user-playback");t&&(e.target.classList.contains("vjs-seeking")?t.style.display="none":t.style.display="block")},ke=e=>{let t=e.target.querySelector(".vjs-controls-container.user-playback");t&&e.target.player.isPausedByUser&&(t.style.display="block")},Ee=e=>{let t=e.target.closest(".modal");t.style.visibility="hidden",t.querySelector("video.vjs-tech").style.visibility="visible",d.minimize(),h.setPreservedScrollTop()},Ce=e=>{e.target.closest(".modal").style.visibility="visible",d.maximize()},xe=e=>{const t="true"===getComputedStyle(e.video).getPropertyValue("--animation-disabled");if(window.matchMedia("(max-width: 734px)").matches&&!e.el_.hasAttribute("active-mobile")&&e.el_.hasAttribute("data-mobile-video")&&!e.el_.hasAttribute("data-mobile-forced-fallback-disable-video")){let n=[];e.el_.querySelectorAll("source").forEach(e=>{let t={};e.hasAttribute("data-mobile-src")&&(t.src=e.getAttribute("data-mobile-src")),e.hasAttribute("data-mobile-mp4-src")&&(t.src=e.getAttribute("data-mobile-mp4-src")),e.hasAttribute("data-mobile-webm-src")&&(t.src=e.getAttribute("data-mobile-webm-src")),e.type&&t.src&&(t.type=e.type),Object.keys(t).length&&n.push(t)}),n.length&&(n.map(e=>e.src).includes(e.currentSrc())||(e.src(n),e.updateSourceCaches_(n)),window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===e.el_.getAttribute("data-autoplay-override")&&!e.isAutoPlay||!t?e.pause():e.play().then(e=>{}).catch(e=>{})),e.removeAttribute("data-active-desktop-source"),e.el_.setAttribute("active-mobile","true")}else if(!window.matchMedia("(max-width: 734px)").matches&&!e.el_.hasAttribute("data-active-desktop-source")){let n=[];Array.from(e.el_.querySelectorAll("source")).forEach(e=>{let t={};e.hasAttribute("data-desktop-src")&&(t.src=e.getAttribute("data-desktop-src")),e.hasAttribute("data-desktop-mp4-src")&&(t.src=e.getAttribute("data-desktop-mp4-src")),e.hasAttribute("data-desktop-webm-src")&&(t.src=e.getAttribute("data-desktop-webm-src")),e.type&&t.src&&(t.type=e.type),Object.keys(t).length&&n.push(t)}),n.length&&(n.map(e=>e.src).includes(e.currentSrc())||(e.src(n),e.updateSourceCaches_(n)),window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===e.el_.getAttribute("data-autoplay-override")&&!e.isAutoPlay||!t?e.pause():e.play().then(e=>{}).catch(e=>{})),e.el_.removeAttribute("active-mobile"),e.el_.setAttribute("data-active-desktop-source","true")}};let Pe=new IntersectionObserver((e,t)=>{e.forEach(e=>{let t;if(e.target.querySelector("video-js")&&(t=e.target.querySelector("video-js").player),t){let n=c.getAttributeValue(e.target.querySelector("video-js"),"data-video-type");const i=e.intersectionRatio,r="true"===getComputedStyle(t.video).getPropertyValue("--animation-disabled");i>.2&&i>=.3&&(t.isInViewPort=!0,t.isPausedByUser||(n!==N.LOOPING||window.matchMedia("(prefers-reduced-motion: reduce)").matches)&&(n!==N.PLAY_ONCE||window.matchMedia("(prefers-reduced-motion: reduce)").matches||t.ended())||((t.el_.hasAttribute("mobile-forced-fallback-disable-video")&&window.matchMedia("(max-width: 734px)").matches||"false"===c.getAttributeValue(e.target.querySelector("video-js"),"data-autoplay-override"))&&!r?t.pause():(document.activeElement.classList.contains("play-btn")&&t.video?.parentElement?.querySelector(".pause-btn")&&requestAnimationFrame(()=>{t.video.parentElement.querySelector(".pause-btn").focus()}),"false"!==c.getAttributeValue(e.target.querySelector("video-js"),"data-autoplay-override")&&t.play().then(e=>{t.hasLoaded=!0}).catch(e=>{})))),i<.1&&(t.isInViewPort=!1,1!=t.hasStarted_||t.isPausedByUser||n!==N.LOOPING&&(n!==N.PLAY_ONCE||t.ended())||!t.hasLoaded||t.pause())}})},{rootMargin:"0px 0px 0px 0px",threshold:[.1,.3]}),Ae=new IntersectionObserver((e,t)=>
475{e.forEach(e=>{let t;if(e.target.querySelector("video-js")&&(t=e.target.querySelector("video-js").player),t){let n=c.getAttributeValue(e.target.querySelector("video-js"),"data-video-type");const i=e.intersectionRatio;i>.1&&([N.USER_PLAYBACK,N.INLINE_USER_PLAYBACK].includes(n)||(window.activeBeatsVideoPlayersIds.includes(t.id_)||(window.activeBeatsVideoPlayersIds.push(t.id_),window.activeBeatsVideoPlayers.push(t)),xe(t))),i<.1&&(window.activeBeatsVideoPlayers=window.activeBeatsVideoPlayers.filter(e=>e.id_!=t.id_),window.activeBeatsVideoPlayersIds=window.activeBeatsVideoPlayersIds.filter(e=>e!=t.id_))}})},{rootMargin:"0px 0px 0px 0px",threshold:[.1,.9]}),Le=async(e,t)=>{let n=document.createElement("canvas");n.width=8,n.height=8;let i={};(L.p3Gamut||L.srgbBGamut)&&(i={colorSpace:"srgb"}),ctx=n.getContext("2d",i),await ctx.drawImage(e.video.getElementsByTagName("video")[0],0,0,10,10);let r=await ctx.getImageData(0,0,8,8,i);if(null!=r.data){let i=r.data.slice(0,3),a=t.getAttribute("data-desktop-bg-color");(a?["transparent","#000000",""].includes(a)?null:a:null)&&("#000000"!=c.rgbToHex(i)?requestAnimationFrame(()=>{let e=c.rgbToHex(i);""!=e&&(t.style.background=e,t.classList.add("bg-color-match-enabled")),n=i=null}):(n=i=null,setTimeout(()=>{Le(e,t)},200)))}};return{getPlayerInstance:e=>{let t;const n="Player not found!";return t=!!re(e),{play:()=>{t&&re(e).ready(re(e).play())},pause:()=>{t&&re(e).ready(re(e).pause())},mute:()=>{if(!t)return n;{let t=re(e).muted();re(e).muted(!t)}},dispose:()=>{t&&re(e).dispose()}}},getModalInstance:()=>t,playerinstances:b,initializeVideo:V,initialize:z,disposeVideo:ae,removeSupportElements:e=>{e.querySelector(".vjs-controls-container")&&e.querySelector(".vjs-controls-container").remove(),e.querySelector(".transcript-container")&&e.querySelector(".transcript-container").remove(),e.querySelector("beats-video")&&e.querySelector("beats-video").removeAttribute("class"),e.querySelector("picture")&&e.querySelector("picture").removeAttribute("style")}}};window.beatsVideoManager||(window.beatsVideoManager=b()),e.exports=window.beatsVideoManager},2497:(e,t,n)=>{var{getLocalized:i}=n(2050);const r=`\n  <div class="loader-container loader" style="display: block; opacity: 1; visibility: visible;"></div>\n  <button class="play-btn control-btn" role="button" aria-label="${i("playVideo","Play Video")}"\n        style="display: none;"></button>\n  <button class="pause-btn control-btn" role="button" aria-label="${i("pauseVideo","Pause Video")}"\n        style="display: none;"></button>\n  `,a=n(7545);let o=a.getComponent("Component"),s=a.extend(o,{constructor:function(e,t){o.apply(this,arguments),this.player=e,this.playBtn=this.el_.querySelector(".play-btn"),this.pauseBtn=this.el_.querySelector(".pause-btn"),this.loader=this.el_.querySelector(".loader-container"),this.updateClassName(t.className),this.updateAriaLabel(t.videoName),this.addEvents()},createEl:function(){return a.dom.createEl("div",{className:"vjs-controls-container",innerHTML:r})},updateClassName:function(e){e&&("string"!=typeof e&&(e=""),a.dom.addClass(this.el(),e))},updateAriaLabel:function(e){e&&"undefined"!==e&&("string"!=typeof e&&(e=""),this.playBtn.setAttribute("aria-label",i("playVideo","Play Video")+" - "+e),this.pauseBtn.setAttribute("aria-label",i("pauseVideo","Pause Video")+" - "+e))},addEvents:function(){this.playBtn.addEventListener("click",e=>this.playVideo(e)),this.pauseBtn.addEventListener("click",e=>this.pauseVideo(e)),this.player.ready(this.loadeddata()),this.player.on("playing",()=>this.onPlay()),this.player.on("pause",()=>this.onPause()),document.addEventListener("visibilitychange",()=>{(window.matchMedia("(prefers-reduced-motion: reduce)").matches||!0===window.lowBatteryMode)&&this.player.pause()})},playVideo:function(e){e.stopPropagation(),this.player.play(),this.player.isPausedByUser=!1,this.playBtn.style.display="none",this.loader.style.display="none",this.pauseBtn.style.display="block",this.pauseBtn.focus()},pauseVideo:function(e){e.stopPropagation(),this.player.pause(),this.player.isPausedByUser=!0,this.pauseBtn.style.display="none",this.loader.style.display="none",this.playBtn.style.display="block",this.playBtn.focus()},loadeddata:function(){const e=new CustomEvent("video-loaded");document.dispatchEvent(e),this.loader.style.display="none",this.pauseBtn.style.display="block";const t="true"===getComputedStyle(this.player.video).getPropertyValue("--animation-disabled");window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===this.player.tagAttributes["data-autoplay-override"]&&!t||!0===window.lowBatteryMode?this.player.pause():this.player.play(),window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===this.player.tagAttributes["data-autoplay-override"]||!0===window.lowBatteryMode||!1===this.player.hasStarted_&&!0===this.player.isLooping&&!0===this.player.isAutoPlay?(this.playBtn.style.display="block",this.pauseBtn.style.display="none"):(this.playBtn.style.display="none",this.pauseBtn.style.display="block")},onPlay:function(){this.playBtn.style.display="none",this.pauseBtn.style.display="block"},onPause:function(){this.pauseBtn.style.display="none",this.playBtn.style.display="block"}});e.exports=s}
475,289:(e,t,n)=>{var{getLocalized:i}=n(2050);const r=`\n  <div class="loader-container loader" style="display: none; opacity: 1; visibility: visible;"></div>\n  <button class="play-btn control-btn" role="button" aria-label="${i("playVideo","Play Video")}"\n            style="display: none;"></button>\n  <button class="pause-btn control-btn" role="button" aria-label="${i("pauseVideo","Pause Video")}"\n            style="display: none;"></button>\n  <button class="replay-btn control-btn" role="button" aria-label="${i("replayVideo","Replay Video")}"\n        style="display: none;"></button>`,a=n(7545);let o=a.getComponent("Component"),s=a.extend(o,{constructor:function(e,t){o.apply(this,arguments),this.player=e,this.playBtn=this.el_.querySelector(".play-btn"),this.pauseBtn=this.el_.querySelector(".pause-btn"),this.replayBtn=this.el_.querySelector(".replay-btn"),this.loader=this.el_.querySelector(".loader-container"),this.updateClassName(t.className),this.updateAriaLabel(t.videoName),this.addEvents()},createEl:function(){return a.dom.createEl("div",{className:"vjs-controls-container",innerHTML:r})},updateClassName:function(e){e&&("string"!=typeof e&&(e=""),a.dom.addClass(this.el(),e))},updateAriaLabel:function(e){e&&"undefined"!==e&&("string"!=typeof e&&(e=""),this.replayBtn.setAttribute("aria-label",i("replayVideo","Replay Video")+" - "+e),this.playBtn.setAttribute("aria-label",i("playVideo","Play Video")+" - "+e),this.pauseBtn.setAttribute("aria-label",i("pauseVideo","Pause Video")+" - "+e))},addEvents:function(){this.replayBtn.addEventListener("click",()=>this.playVideo()),this.playBtn.addEventListener("click",()=>this.playVideo()),this.pauseBtn.addEventListener("click",()=>this.pauseVideo()),this.player.ready(this.loadedVideo()),this.player.on("playing",()=>this.onPlay()),this.player.on("pause",()=>this.onPause()),this.player.on("ended",()=>this.onEnd()),document.addEventListener("visibilitychange",()=>{(window.matchMedia("(prefers-reduced-motion: reduce)").matches||!0===window.lowBatteryMode)&&this.player.pause()})},playVideo:function(){this.player.play(),this.player.isPausedByUser=!1,this.replayBtn.style.display="none",this.playBtn.style.display="none",this.pauseBtn.style.display="block",this.pauseBtn.focus()},pauseVideo:function(){this.player.pause(),this.player.isPausedByUser=!0,this.pauseBtn.style.display="none",this.playBtn.style.display="block",this.playBtn.focus()},loadedVideo:function(){const e=new CustomEvent("video-loaded");document.dispatchEvent(e),this.loader.style.display="none";const t=getComputedStyle(this.player.video).getPropertyValue("--animation-disabled");window.matchMedia("(prefers-reduced-motion: reduce)").matches||"false"===this.player.tagAttributes["data-autoplay-override"]&&!t||!0===window.lowBatteryMode?this.player.pause():this.player.play(),!1===this.player.hasStarted_||window.matchMedia("(prefers-reduced-motion: reduce)").matches||!0===window.lowBatteryMode?(this.playBtn.style.display="block",this.pauseBtn.style.display="none"):(this.playBtn.style.display="none",this.pauseBtn.style.display="block")},onPlay:function(){this.replayBtn.style.display="none",this.playBtn.style.display="none",this.pauseBtn.style.display="block"},onPause:function(){this.replayBtn.style.display="none",this.pauseBtn.style.display="none",this.playBtn.style.display="block"},onEnd:function(){this.replayBtn.style.display="block",this.pauseBtn.style.display="none",this.playBtn.style.display="none",this.pauseBtn===document.activeElement&&this.replayBtn.focus()}});e.exports=s},9179:(e,t,n)=>{const i=n(7545),r=n(722);let a=i.getComponent("Component");var{getLocalized:o}=n(2050);let s=i.extend(a,{constructor:function(e,t){a.apply(this,arguments),this.player=e,this.captionsButton=this.el_,this.addEvents(),t&&1==t.showing&&(this.captionsButton.classList.add("beats-video-captions-off"),this.captionsButton.setAttribute("aria-pressed",!0))},createEl:function(){return i.dom.createEl("button",{className:"beats-video-captions",title:o("captions","Captions"),"aria-pressed":"false"})},addEvents:function(){this.captionsButton.addEventListener("click",()=>this.handleClick())},handleClick:function(){this.player.captionAnalyticsFlag=!0;const e=this.player.textTracks();for(let t=0;t<e.length;t++){let n,i=this.captionsButton.getAttribute("aria-pressed"),a="true";"showing"===e[t].mode?(e[t].mode="hidden",n="videoCaptionOff"):(e[t].mode="showing",n="videoCaptionOn"),this.captionsButton.classList.toggle("beats-video-captions-off"),"true"===i&&(a="false"),this.captionsButton.setAttribute("aria-pressed",a),r("analytics-track-video",{eventType:n,data:this.player})}}});e.exports=s},991:(e,t,n)=>{var{getLocalized:i}=n(2050);const r=`\n  <div class="loader-container loader" style="display: none; opacity: 1; visibility: visible;"></div>\n  <button class="play-btn control-btn" role="button" aria-label="${i("playVideo","Play Video")}" aria-hidden="true" style="display: none;">\n    <div class="focus-outline-overwrite-for-click" tabindex="-1"></div>\n  </button>
475\n  <button class="pause-btn control-btn" role="button" aria-label="${i("pauseVideo","Pause Video")}" aria-hidden="true" style="display: none;">\n    <div class="focus-outline-overwrite-for-click" tabindex="-1"></div>\n  </button>`,a=n(7545);var o=a.getComponent("Component");let s=a.extend(o,{constructor:function(e,t){o.apply(this,arguments),this.player=e,this.playBtn=this.el_.querySelector(".play-btn"),this.pauseBtn=this.el_.querySelector(".pause-btn"),this.loader=this.el_.querySelector(".loader-container"),this.updateClassName(t.className),this.updateAriaLabel(t.videoName),this.addEvents()},createEl:function(){return a.dom.createEl("div",{className:"vjs-controls-container",innerHTML:r},{"aria-hidden":!0})},updateClassName:function(e){e&&("string"!=typeof e&&(e=""),a.dom.addClass(this.el(),e))},updateAriaLabel:function(e){e&&"undefined"!==e&&("string"!=typeof e&&(e=""),this.playBtn.setAttribute("aria-label",i("playVideo","Play Video")+" - "+e),this.pauseBtn.setAttribute("aria-label",i("pauseVideo","Pause Video")+" - "+e))},addEvents:function(){this.playBtn.addEventListener("click",()=>this.playVideo()),this.player.on("pause",()=>this.onPause()),this.player.on("playing",()=>this.onPlay()),this.player.on("ended",()=>this.onEnded())},playVideo:function(){this.player.isPausedByUser=!1,this.player.play()},onPause:function(){this.el_.style.display="block",this.playBtn.style.display="block"},onPlay:function(){this.el_.style.display="none"},onEnded:function(){this.el_.style.display="block",this.playBtn.style.display="block"}});e.exports=s},6015:()=>{window.transitionEvent=function(){var e,t=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==t.style[e])return n[e]}()},3897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i},e.exports.__esModule=!0,e.exports.default=e.exports},3405:(e,t,n)=>{var i=n(3897);e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6115:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},7156:e=>{function t(e,t,n,i,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}e.exports=function(e){return function(){var n=this,i=arguments;return new Promise(function(r,a){var o=e.apply(n,i);function s(e){t(o,r,a,s,l,"next",e)}function l(e){t(o,r,a,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},6690:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},9728:(e,t,n)=>{var i=n(4062);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},8416:(e,t,n)=>{var i=n(4062);e.exports=function(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},3808:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:(e,t,n)=>{var i=n(5445);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>
475{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},9498:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},2281:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},4993:(e,t,n)=>{var i=n(8698).default,r=n(6115);e.exports=function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},5445:e=>{function t(n,i){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},861:(e,t,n)=>{var i=n(3405),r=n(9498),a=n(6116),o=n(2281);e.exports=function(e){return i(e)||r(e)||a(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},5036:(e,t,n)=>{var i=n(8698).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:(e,t,n)=>{var i=n(8698).default,r=n(5036);e.exports=function(e){var t=r(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:(e,t,n)=>{var i=n(3897);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},8593:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.
4750","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},4886:e=>{"use strict";e.exports=JSON.parse('{"Play":"تشغيل","Pause":"إيقاف","Current Time":"الوقت الحالي","Duration":"مدة","Remaining Time":"الوقت المتبقي","Stream Type":"نوع التيار","LIVE":"مباشر","Loaded":"تم التحميل","Progress":"التقدم","Fullscreen":"ملء الشاشة","Non-Fullscreen":"تعطيل ملء الشاشة","Mute":"صامت","Unmute":"غير الصامت","Playback Rate":"معدل التشغيل","Subtitles":"الترجمة","subtitles off":"إيقاف الترجمة","Captions":"التعليقات","captions off":"إيقاف التعليقات","Chapters":"فصول","You aborted the media playback":"لقد ألغيت تشغيل الفيديو","A network error caused the media download to fail part-way.":"تسبب خطأ في الشبكة بفشل تحميل الفيديو بالكامل.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"لا يمكن تحميل الفيديو بسبب فشل في الخادوم أو الشبكة ، أو فشل بسبب عدم إمكانية قراءة تنسيق الفيديو.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"تم إيقاف تشغيل الفيديو بسبب مشكلة فساد أو لأن الفيديو المستخدم يستخدم ميزات غير مدعومة من متصفحك.","No compatible source was found for this media.":"فشل العثور على أي مصدر متوافق مع هذا الفيديو.","Play Video":"تشغيل الفيديو","Close":"أغلق","Modal Window":"نافذة مشروطة","This is a modal window":"هذه نافذة مشروطة","This modal can be closed by pressing the Escape key or activating the close button.":"يمكن غلق هذه النافذة المشروطة عن طريق الضغط على زر الخروج أو تفعيل زر الإغلاق",", opens captions settings dialog":", تفتح نافذة  خيارات التعليقات",", opens subtitles settings dialog":", تفتح نافذة  خيارات الترجمة",", selected":", مختار","Audio Player":"مشغل الصوت","Video Player":"مشغل الفيديو","Replay":"إعادة التشغيل","Seek to live, currently behind live":"ذهاب إلى نقطة البث المباشر، متأخر عن البث المباشر حاليًا","Seek to live, currently playing live":"ذهاب إلى نقطة البث المباشر، البث المباشر قيد التشغيل حاليًا","Progress Bar":"شريط التقدم","Descriptions":"الأوصاف","descriptions off":"إخفاء الأوصاف","Audio Track":"المسار الصوتي","Volume Level":"مستوى الصوت","The media is encrypted and we do not have the keys to decrypt it.":"الوسائط مشفرة وليس لدينا الرموز اللازمة لفك شفرتها.","Close Modal Dialog":"إغلاق مربع الحوار المشروط",", opens descriptions settings dialog":"، يفتح مربع حوار إعدادات الأوصاف","captions settings":"إعدادات التعليقات التوضيحية","subtitles settings":"إعدادات الترجمات","descriptions settings":"إعدادات الأوصاف","Text":"النص","White":"أبيض","Black":"أسود","Red":"أحمر","Green":"أخضر","Blue":"أزرق","Yellow":"أصفر","Magenta":"أرجواني","Cyan":"أزرق سماوي","Background":"الخلفية","Window":"نافذة","Transparent":"شفاف","Semi-Transparent":"نصف شفاف","Opaque":"معتم","Font Size":"حجم الخط","Text Edge Style":"نمط حواف النص","None":"لا شيء","Raised":"بارز","Depressed":"منخفض","Uniform":"منتظم","Dropshadow":"ظل خلفي","Font Family":"عائلة الخطوط","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"إعادة الضبط","restore all settings to the default values":"استعادة كل الإعدادات إلى القيم الافتراضية","Done":"تم","Caption Settings Dialog":"مربع حوار إعدادات التعليقات التوضيحية","Beginning of dialog window. Escape will cancel and close the window.":"بداية نافذة مربع حوار. الضغط على زر \\"Escape\\" سيؤدي إلى الإلغاء وإغلاق النافذة.","End of dialog window.":"نهاية نافذة مربع حوار.","{1} is loading.":"{1} قيد التحميل."}')},4506:e=>{"use strict";e.exports=JSON.parse('{"Play":"Pusti","Pause":"Pauza","Current Time":"Trenutno vrijeme","Duration":"Vrijeme trajanja","Remaining Time":"Preostalo vrijeme","Stream Type":"Način strimovanja","LIVE":"UŽIVO","Loaded":"Učitan","Progress":"Progres","Fullscreen":"Puni ekran","Non-Fullscreen":"Mali ekran","Mute":"Prigušen","Unmute":"Ne-prigušen","Playback Rate":"Stopa reprodukcije","Subt
475itles":"Podnaslov","subtitles off":"Podnaslov deaktiviran","Captions":"Titlovi","captions off":"Titlovi deaktivirani","Chapters":"Poglavlja","You aborted the media playback":"Isključili ste reprodukciju videa.","A network error caused the media download to fail part-way.":"Video se prestao preuzimati zbog greške na mreži.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video se ne može reproducirati zbog servera, greške u mreži ili je format ne podržan.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Reprodukcija videa je zaustavljenja zbog greške u formatu ili zbog verzije vašeg pretraživača.","No compatible source was found for this media.":"Nije nađen nijedan kompatibilan izvor ovog videa."}')},2316:e=>{"use strict";e.exports=JSON.parse('{"Play":"Възпроизвеждане","Pause":"Пауза","Current Time":"Текущо време","Duration":"Продължителност","Remaining Time":"Оставащо време","Stream Type":"Тип на потока","LIVE":"НА ЖИВО","Loaded":"Заредено","Progress":"Прогрес","Fullscreen":"Цял екран","Non-Fullscreen":"Спиране на цял екран","Mute":"Без звук","Unmute":"Със звук","Playback Rate":"Скорост на възпроизвеждане","Subtitles":"Субтитри","subtitles off":"Спряни субтитри","Captions":"Аудио надписи","captions off":"Спряни аудио надписи","Chapters":"Глави","You aborted the media playback":"Спряхте възпроизвеждането на видеото","A network error caused the media download to fail part-way.":"Грешка в мрежата провали изтеглянето на видеото.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Видеото не може да бъде заредено заради проблем със сървъра или мрежата или защото този формат не е поддържан.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Възпроизвеждането на видеото беше прекъснато заради проблем с файла или защото видеото използва опции които браузърът Ви не поддържа.","No compatible source was found for this media.":"Не беше намерен съвместим източник за това видео."}')},2342:e=>{"use strict";e.exports=JSON.parse('{"Play":"Reproducció","Pause":"Pausa","Current Time":"Temps reproduït","Duration":"Durada total","Remaining Time":"Temps restant","Stream Type":"Tipus de seqüència","LIVE":"EN DIRECTE","Loaded":"Carregat","Progress":"Progrés","Fullscreen":"Pantalla completa","Non-Fullscreen":"Pantalla no completa","Mute":"Silencia","Unmute":"Amb so","Playback Rate":"Velocitat de reproducció","Subtitles":"Subtítols","subtitles off":"Subtítols desactivats","Captions":"Llegendes","captions off":"Llegendes desactivades","Chapters":"Capítols","You aborted the media playback":"Heu interromput la reproducció del vídeo.","A network error caused the media download to fail part-way.":"Un error de la xarxa ha interromput la baixada del vídeo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"No s\'ha pogut carregar el vídeo perquè el servidor o la xarxa han fallat, o bé perquè el seu format no és compatible.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La reproducció de vídeo s\'ha interrumput per un problema de corrupció de dades o bé perquè el vídeo demanava funcions que el vostre navegador no ofereix.","No compatible source was found for this media.":"No s\'ha trobat cap font compatible amb el vídeo."}')},5710:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Audio Přehravač","Video Player":"
475Video Přehravač","Play":"Přehrát","Pause":"Pauza","Replay":"Spustit znovu","Current Time":"Aktuální čas","Duration":"Doba trvání","Remaining Time":"Zbývající čas","Stream Type":"Typ streamu","LIVE":"ŽIVĚ","Loaded":"Načteno","Progress":"Stav","Progress Bar":"Ukazatel průběhu","progress bar timing: currentTime={1} duration={2}":"{1} z {2}","Fullscreen":"Celá obrazovka","Non-Fullscreen":"Běžné zobrazení","Mute":"Ztlumit zvuk","Unmute":"Zapnout zvuk","Playback Rate":"Rychlost přehrávání","Subtitles":"Titulky","subtitles off":"Bez titulků","Captions":"Popisky","captions off":"Popisky vypnuty","Chapters":"Kapitoly","Descriptions":"Popisy","descriptions off":"Bez popisů","Audio Track":"Zvuková stopa","Volume Level":"Hlasitost","You aborted the media playback":"Přehrávání videa bylo přerušeno.","A network error caused the media download to fail part-way.":"Video nemohlo být načteno kvůli chybě v síti.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video nemohlo být načteno, buď kvůli chybě serveru, sítě nebo proto, že daný formát není podporován.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Váš prohlížeč nepodporuje tento formát videa.","No compatible source was found for this media.":"Nevalidní zadaný zdroj videa.","The media is encrypted and we do not have the keys to decrypt it.":"Chyba při dešifrování videa.","Play Video":"Přehrát video","Close":"Zavřit","Close Modal Dialog":"Zavřít okno","Modal Window":"Modální okno","This is a modal window":"Toto je modální okno","This modal can be closed by pressing the Escape key or activating the close button.":"Toto okno se dá zavřít křížkem nebo klávesou Esc.",", opens captions settings dialog":", otevřít okno pro nastavení popisků",", opens subtitles settings dialog":", otevřít okno pro nastavení titulků",", opens descriptions settings dialog":", otevře okno pro nastavení popisků pro nevidomé",", selected":", vybráno","captions settings":"nastavení popisků","subtitles settings":"nastavení titulků","descriptions settings":"nastavení popisků pro nevidomé","Text":"Titulky","White":"Bílé","Black":"Černé","Red":"Červené","Green":"Zelené","Blue":"Modré","Yellow":"Žluté","Magenta":"Fialové","Cyan":"Azurové","Background":"Pozadí titulků","Window":"Okno","Transparent":"Průhledné","Semi-Transparent":"Poloprůhledné","Opaque":"Neprůhledné","Font Size":"Velikost písma","Text Edge Style":"Okraje písma","None":"Bez okraje","Raised":"Zvýšený","Depressed":"Propadlý","Uniform":"Rovnoměrný","Dropshadow":"Stínovaný","Font Family":"Rodina písma","Proportional Sans-Serif":"Proporcionální bezpatkové","Monospace Sans-Serif":"Monospace bezpatkové","Proportional Serif":"Proporcionální patkové","Monospace Serif":"Monospace patkové","Casual":"Hravé","Script":"Ručně psané","Small Caps":"Malé kapitálky","Reset":"Obnovit","restore all settings to the default values":"Vrátit nastavení do výchozího stavu","Done":"Hotovo","Caption Settings Dialog":"Okno s nastavením titulků","Beginning of dialog window. Escape will cancel and close the window.":"Začátek dialogového okna. Klávesa Esc okno zavře.","End of dialog window.":"Konec dialogového okna.","{1} is loading.":"{1} se načítá."}')},4019:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Chwaraewr sain","Video Player":"Chwaraewr fideo","Play":"Chwarae","Pause":"Oedi","Replay":"Ailchwarae","Current Time":"Amser Cyfredol","Duration":"Parhad","Remaining Time":"Amser ar ôl","Stream Type":"Math o Ffrwd","LIVE":"YN FYW","Loaded":"Llwythwyd","Progress":"Cynnydd","Progress Bar":"Bar Cynnydd","progress bar timing: currentTime={1} duration={2}":"{1} o {2}","Fullscreen":"Sgrîn Lawn","Non-Fullscreen":"Ffenestr","Mute":"Pylu","Unmute":"Dad-bylu","Playback Rate":"Cyfradd Chwarae","Subtitles":"Isdeitlau","subtitles off":"Isdeitlau i ffwrdd","Captions":"Capsiynau","captions off":"Capsiynau i ffwrdd","Chapters":"Penodau","Descriptions":"Disgrifiadau","descriptions off":"disgrifiadau i ffwrdd","Audio Track":"Trac Sain","Volume Level":"Lefel Sain","You aborted the media playback":"Atalwyd y fideo gennych","A network error caused the media download to fail part-way.":"Mae gwall rhwydwaith wedi achosi methiant lawrlwytho.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Ni lwythodd y fideo, oherwydd methiant gweinydd neu rwydwaith, neu achos nid yw\'r system yn cefnogi\'r fformat.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Atalwyd y fideo oherwydd problem llygredd data neu oherwydd nid yw\'ch porwr yn cefnogi nodweddion penodol o\'r fideo.","No compatible source was found for this media.":"Nid oedd modd canfod ffynhonnell cytûn am y fideo hwn.","The media is encrypted and we do not have the keys to decrypt it."
475:"Mae\'r fideo wedi ei amgryptio ac nid oes allweddion gennym.","Play Video":"Chwarae Fideo","Close":"Cau","Close Modal Dialog":"Cau Blwch Deialog Moddol","Modal Window":"Ffenestr Foddol","This is a modal window":"Mae hon yn ffenestr foddol","This modal can be closed by pressing the Escape key or activating the close button.":"Gallech chi gau\'r ffenestr foddol hon trwy wasgu Escape neu glicio\'r botwm cau.",", opens captions settings dialog":", yn agor gosodiadau capsiynau",", opens subtitles settings dialog":", yn agor gosodiadau isdeitlau",", opens descriptions settings dialog":", yn agor gosodiadau disgrifiadau",", selected":", detholwyd","captions settings":"gosodiadau capsiynau","subtitles settings":"gosodiadau isdeitlau","descriptions settings":"gosodiadau disgrifiadau","Text":"Testun","White":"Gwyn","Black":"Du","Red":"Coch","Green":"Gwyrdd","Blue":"Glas","Yellow":"Melyn","Magenta":"Piws","Cyan":"Cyan","Background":"Cefndir","Window":"Ffenestr","Transparent":"Tryloyw","Semi-Transparent":"Hanner-dryloyw","Opaque":"Di-draidd","Font Size":"Maint y Ffont","Text Edge Style":"Arddull Ymylon Testun","None":"Dim","Raised":"Uwch","Depressed":"Is","Uniform":"Unffurf","Dropshadow":"Cysgod cefn","Font Family":"Teulu y Ffont","Proportional Sans-Serif":"Heb-Seriff Cyfraneddol","Monospace Sans-Serif":"Heb-Seriff Unlled","Proportional Serif":"Seriff Gyfraneddol","Monospace Serif":"Seriff Unlled","Casual":"Llawysgrif","Script":"Sgript","Small Caps":"Prif Lythyrennau Bychain","Reset":"Ailosod","restore all settings to the default values":"Adfer yr holl osodiadau diofyn","Done":"Gorffenwyd","Caption Settings Dialog":"Blwch Gosodiadau Capsiynau","Beginning of dialog window. Escape will cancel and close the window.":"Dechrau ffenestr deialog. Bydd Escape yn canslo a chau\'r ffenestr.","End of dialog window.":"Diwedd ffenestr deialog.","{1} is loading.":"{1} yn llwytho."}')},3424:e=>{"use strict";e.exports=JSON.parse('{"Play":"Afspil","Pause":"Pause","Current Time":"Aktuel tid","Duration":"Varighed","Remaining Time":"Resterende tid","Stream Type":"Stream-type","LIVE":"LIVE","Loaded":"Indlæst","Progress":"Status","Fullscreen":"Fuldskærm","Non-Fullscreen":"Luk fuldskærm","Mute":"Uden lyd","Unmute":"Med lyd","Playback Rate":"Afspilningsrate","Subtitles":"Undertekster","subtitles off":"Uden undertekster","Captions":"Undertekster for hørehæmmede","captions off":"Uden undertekster for hørehæmmede","Chapters":"Kapitler","You aborted the media playback":"Du afbrød videoafspilningen.","A network error caused the media download to fail part-way.":"En netværksfejl fik download af videoen til at fejle.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Videoen kunne ikke indlæses, enten fordi serveren eller netværket fejlede, eller fordi formatet ikke er understøttet.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Videoafspilningen blev afbrudt på grund af ødelagte data eller fordi videoen benyttede faciliteter som din browser ikke understøtter.","No compatible source was found for this media.":"Fandt ikke en kompatibel kilde for denne media."}')},88:e=>{"use strict";e.exports=JSON.parse('{"Play":"Wiedergabe","Pause":"Pause","Replay":"Erneut abspielen","Current Time":"Aktueller Zeitpunkt","Duration":"Dauer","Remaining Time":"Verbleibende Zeit","Stream Type":"Streamtyp","LIVE":"LIVE","Loaded":"Geladen","Progress":"Status","Fullscreen":"Vollbild","Non-Fullscreen":"Vollbildmodus beenden","Mute":"Ton aus","Unmute":"Ton ein","Playback Rate":"Wiedergabegeschwindigkeit","Subtitles":"Untertitel","subtitles off":"Untertitel aus","Captions":"Untertitel","captions off":"Untertitel aus","Chapters":"Kapitel","You aborted the media playback":"Sie haben die Videowiedergabe abgebrochen.","A network error caused the media download to fail part-way.":"Der Videodownload ist aufgrund eines Netzwerkfehlers fehlgeschlagen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Das Video konnte nicht geladen werden, da entweder ein Server- oder Netzwerkfehler auftrat oder das Format nicht unterstützt wird.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Die Videowiedergabe wurde entweder wegen eines Problems mit einem beschädigten Video oder wegen verwendeten Funktionen, die vom Browser nicht unterstützt werden, abgebrochen.","No compatible source was found for this media.":"Für dieses Video wurde keine kompatible Quelle gefunden.","Play Video":"Video abspielen","Close":"Schließen","Modal Window":"Modales Fenster","This is a modal window":"Dies ist ein modales Fenster","This modal can be closed by pressing the Escape key or activating the close button.":"Durch Drücken der Esc-Taste bzw. Betätigung der Schaltfläche \\"Schließen\\" wird dieses modale Fenster geschlossen.",", opens captions settings dialog":", öffnet Einstellungen für Untertitel",", opens subtitles settings dialog":", öffnet Einstellungen für Untertitel",", selected":", ausgewählt","captions settings":"Untertiteleinstellungen","subtitles settings":"Untertiteleinstellungen","de
475scriptions settings":"Einstellungen für Beschreibungen","Close Modal Dialog":"Modales Fenster schließen","Descriptions":"Beschreibungen","descriptions off":"Beschreibungen aus","The media is encrypted and we do not have the keys to decrypt it.":"Die Entschlüsselungsschlüssel für den verschlüsselten Medieninhalt sind nicht verfügbar.",", opens descriptions settings dialog":", öffnet Einstellungen für Beschreibungen","Audio Track":"Tonspur","Text":"Schrift","White":"Weiß","Black":"Schwarz","Red":"Rot","Green":"Grün","Blue":"Blau","Yellow":"Gelb","Magenta":"Magenta","Cyan":"Türkis","Background":"Hintergrund","Window":"Fenster","Transparent":"Durchsichtig","Semi-Transparent":"Halbdurchsichtig","Opaque":"Undurchsichtig","Font Size":"Schriftgröße","Text Edge Style":"Textkantenstil","None":"Kein","Raised":"Erhoben","Depressed":"Gedrückt","Uniform":"Uniform","Dropshadow":"Schlagschatten","Font Family":"Schriftfamilie","Proportional Sans-Serif":"Proportionale Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportionale Serif","Monospace Serif":"Monospace Serif","Casual":"Zwanglos","Script":"Schreibschrift","Small Caps":"Small-Caps","Reset":"Zurücksetzen","restore all settings to the default values":"Alle Einstellungen auf die Standardwerte zurücksetzen","Done":"Fertig","Caption Settings Dialog":"Einstellungsdialog für Untertitel","Beginning of dialog window. Escape will cancel and close the window.":"Anfang des Dialogfensters. Esc bricht ab und schließt das Fenster.","End of dialog window.":"Ende des Dialogfensters.","Audio Player":"Audio-Player","Video Player":"Video-Player","Progress Bar":"Fortschrittsbalken","progress bar timing: currentTime={1} duration={2}":"{1} von {2}","Volume Level":"Lautstärke","{1} is loading.":"{1} wird geladen.","Seek to live, currently behind live":"Zur Live-Übertragung wechseln. Aktuell wird es nicht live abgespielt.","Seek to live, currently playing live":"Zur Live-Übertragung wechseln. Es wird aktuell live abgespielt.","Exit Picture-in-Picture":"Bild-im-Bild-Modus beenden","Picture-in-Picture":"Bild-im-Bild-Modus"}')},4670:e=>{"use strict";e.exports=JSON.parse('{"Play":"Aναπαραγωγή","Pause":"Παύση","Current Time":"Τρέχων χρόνος","Duration":"Συνολικός χρόνος","Remaining Time":"Υπολοιπόμενος χρόνος","Stream Type":"Τύπος ροής","LIVE":"ΖΩΝΤΑΝΑ","Loaded":"Φόρτωση επιτυχής","Progress":"Πρόοδος","Fullscreen":"Πλήρης οθόνη","Non-Fullscreen":"Έξοδος από πλήρη οθόνη","Mute":"Σίγαση","Unmute":"Kατάργηση σίγασης","Playback Rate":"Ρυθμός αναπαραγωγής","Subtitles":"Υπότιτλοι","subtitles off":"απόκρυψη υπότιτλων","Captions":"Λεζάντες","captions off":"απόκρυψη λεζάντων","Chapters":"Κεφάλαια","Close Modal Dialog":"Κλείσιμο παραθύρου","Descriptions":"Περιγραφές","descriptions off":"απόκρυψη περιγραφών","Audio Track":"Ροή ήχου","You aborted the media playback":"Ακυρώσατε την αναπαραγωγή","A network error caused the media download to fail part-way.":"Ένα σφάλμα δικτύου προκάλεσε την αποτυχία μεταφόρτωσης του αρχείου προς αναπαραγωγή.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Το αρχείο προς αναπαραγωγή δεν ήταν δυνατό να φορτωθεί είτε γιατί υπήρξε σφάλμα στον διακομιστή ή το δίκτυο, είτε γιατί ο τύπος του αρχείου δεν υποστηρίζεται.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Η αναπαραγωγή ακυρώθηκε είτε λόγω κατεστραμμένου αρχείου, είτε γιατί το αρχείο απαιτεί λειτουργίες που δεν υποστηρίζονται από το πρόγραμμα περιήγησης που χρησιμοποιείτε.","No compatible source was found for this media.":"Δεν βρέθηκε συμβατή πηγή αναπαραγωγής για το συγκεκριμένο αρχείο.","The media is encrypted and we do not have the keys to decrypt it."
475:"Το αρχείο προς αναπαραγωγή είναι κρυπτογραφημένo και δεν υπάρχουν τα απαραίτητα κλειδιά αποκρυπτογράφησης.","Play Video":"Αναπαραγωγή βίντεο","Close":"Κλείσιμο","Modal Window":"Aναδυόμενο παράθυρο","This is a modal window":"Το παρών είναι ένα αναδυόμενο παράθυρο","This modal can be closed by pressing the Escape key or activating the close button.":"Αυτό το παράθυρο μπορεί να εξαφανιστεί πατώντας το πλήκτρο Escape ή πατώντας το κουμπί κλεισίματος.",", opens captions settings dialog":", εμφανίζει τις ρυθμίσεις για τις λεζάντες",", opens subtitles settings dialog":", εμφανίζει τις ρυθμίσεις για τους υπότιτλους",", opens descriptions settings dialog":", εμφανίζει τις ρυθμίσεις για τις περιγραφές",", selected":", επιλεγμένο"}')},877:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Audio Player","Video Player":"Video Player","Play":"Play","Pause":"Pause","Replay":"Replay","Current Time":"Current Time","Duration":"Duration","Remaining Time":"Remaining Time","Stream Type":"Stream Type","LIVE":"LIVE","Seek to live, currently behind live":"Seek to live, currently behind live","Seek to live, currently playing live":"Seek to live, currently playing live","Loaded":"Loaded","Progress":"Progress","Progress Bar":"Progress Bar","progress bar timing: currentTime={1} duration={2}":"{1} of {2}","Fullscreen":"Fullscreen","Non-Fullscreen":"Exit Fullscreen","Mute":"Mute","Unmute":"Unmute","Playback Rate":"Playback Rate","Subtitles":"Subtitles","subtitles off":"subtitles off","Captions":"Captions","captions off":"captions off","Chapters":"Chapters","Descriptions":"Descriptions","descriptions off":"descriptions off","Audio Track":"Audio Track","Volume Level":"Volume Level","You aborted the media playback":"You aborted the media playback","A network error caused the media download to fail part-way.":"A network error caused the media download to fail part-way.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"The media could not be loaded, either because the server or network failed or because the format is not supported.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.","No compatible source was found for this media.":"No compatible source was found for this media.","The media is encrypted and we do not have the keys to decrypt it.":"The media is encrypted and we do not have the keys to decrypt it.","Play Video":"Play Video","Close":"Close","Close Modal Dialog":"Close Modal Dialog","Modal Window":"Modal Window","This is a modal window":"This is a modal window","This modal can be closed by pressing the Escape key or activating the close button.":"This modal can be closed by pressing the Escape key or activating the close button.",", opens captions settings dialog":", opens captions settings dialog",", opens subtitles settings dialog":", opens subtitles settings dialog",", opens descriptions settings dialog":", opens descriptions settings dialog",", selected":", selected","captions settings":"captions settings","subtitles settings":"subtitles settings","descriptions settings":"descriptions settings","Text":"Text","White":"White","Black":"Black","Red":"Red","Green":"Green","Blue":"Blue","Yellow":"Yellow","Magenta":"Magenta","Cyan":"Cyan","Background":"Background","Window":"Window","Transparent":"Transparent","Semi-Transparent":"Semi-Transparent","Opaque":"Opaque","Font Size":"Font Size","Text Edge Style":"Text Edge Style","None":"None","Raised":"Raised","Depressed":"Depressed","Uniform":"Uniform","Dropshadow":"Dropshadow","Font Family":"Font Family","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"Reset","restore all settings to the default values":"restore all settings to the default values","Done":"Done","Caption Settings Dialog":"Caption Settings Dialog","Beginning of dialog window. Escape will cancel and close the window.":"Beginning of dialog window. Escape will cancel and close the window.","End of dialog window.":"End of dialog window.","{1} is loading.":"{1} is loading.","Exit Picture-in-Picture":"Exit Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture"}')},2038:e=>{"use strict";e.exports=JSON.parse('{"Play":"Reproducir","Play Video":"Reproducir Vídeo","Pause":"Pausa","Current Time":"Tiempo reproducido","Duration":"Duración total","Remaining Time":"Tiempo restante","Stream Type":"Tipo de secuencia","LIVE":"DIRECTO","Loaded":"Cargado","Progress":"Progreso","Fullscreen":"Pantalla completa","Non-Fullscreen":"Pantalla no completa","Mute":"Silenciar","Unmute":"No silenciado","Playback Rate":"Velocidad de reproducción","Subtitles":"Subtítulos","subtitles off":"Subtítulos desactivados","Captions":"Subtítulos especiales","captions off":"Subtítulos especiales desactivados","Chapters":"Capítulos","You aborted the media playback":"Ha interrumpido la reproducción del vídeo.","A network error caused the media download to fail part-way.":"Un error de red ha interrumpido la descarga del vídeo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.","No compatible source was found for this media.":"No se ha encontrado ninguna fuente compatible con este vídeo.","Audio Player":"Reproductor de audio","Video Player":"Reproductor de video","Replay":"Volver a reproducir","Seek to live, currently behind live":"Buscar en vivo, actualmente demorado con respecto a la transmisión en vivo","Seek to live, currently playing live":"Buscar en vivo, actualmente reproduciendo en vivo","Progress Bar":"Barra de progreso","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Descriptions":"Descripciones","descriptions off":"descripciones desactivadas","Audio Track":"Pista de audio","Volume Level":"Nivel de volumen","The media is encrypted and we do not have the keys to decrypt it."
475:"El material audiovisual está cifrado y no tenemos las claves para descifrarlo.","Close":"Cerrar","Modal Window":"Ventana modal","This is a modal window":"Esta es una ventana modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta ventana modal puede cerrarse presionando la tecla Escape o activando el botón de cierre.",", opens captions settings dialog":", abre el diálogo de configuración de leyendas",", opens subtitles settings dialog":", abre el diálogo de configuración de subtítulos",", selected":", seleccionado","Close Modal Dialog":"Cierra cuadro de diálogo modal",", opens descriptions settings dialog":", abre el diálogo de configuración de las descripciones","captions settings":"configuración de leyendas","subtitles settings":"configuración de subtítulos","descriptions settings":"configuración de descripciones","Text":"Texto","White":"Blanco","Black":"Negro","Red":"Rojo","Green":"Verde","Blue":"Azul","Yellow":"Amarillo","Magenta":"Magenta","Cyan":"Cian","Background":"Fondo","Window":"Ventana","Transparent":"Transparente","Semi-Transparent":"Semitransparente","Opaque":"Opaca","Font Size":"Tamaño de fuente","Text Edge Style":"Estilo de borde del texto","None":"Ninguno","Raised":"En relieve","Depressed":"Hundido","Uniform":"Uniforme","Dropshadow":"Sombra paralela","Font Family":"Familia de fuente","Proportional Sans-Serif":"Sans-Serif proporcional","Monospace Sans-Serif":"Sans-Serif monoespacio","Proportional Serif":"Serif proporcional","Monospace Serif":"Serif monoespacio","Casual":"Informal","Script":"Cursiva","Small Caps":"Minúsculas","Reset":"Restablecer","restore all settings to the default values":"restablece todas las configuraciones a los valores predeterminados","Done":"Listo","Caption Settings Dialog":"Diálogo de configuración de leyendas","Beginning of dialog window. Escape will cancel and close the window.":"Comienzo de la ventana de diálogo. La tecla Escape cancelará la operación y cerrará la ventana.","End of dialog window.":"Final de la ventana de diálogo.","{1} is loading.":"{1} se está cargando.","Exit Picture-in-Picture":"Salir de imagen sobre imagen","Picture-in-Picture":"Imagen sobre imagen"}')},5570:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"پخش کننده صوت","Video Player":"پخش کننده ویدیو","Play":"پخش","Pause":"توقف","Replay":"پخش مجدد","Current Time":"زمان فعلی","Duration":"مدت","Remaining Time":"زمان باقی‌مانده","Stream Type":"نوع استریم","LIVE":"زنده","Seek to live, currently behind live":"پخش زنده، هم اکنون عقب تر از پخش زنده","Seek to live, currently playing live":"پخش زنده، در حال پخش زنده","Loaded":"بارگیری شده","Progress":"پیشرفت","Progress Bar":"نوار پیشرفت","progress bar timing: currentTime={1} duration={2}":"{1} از {2}","Fullscreen":"تمام‌صفحه","Non-Fullscreen":"غیر تمام‌صفحه","Mute":"بی صدا","Unmute":"صدادار","Playback Rate":"سرعت پخش","Subtitles":"زیرنویس ها","subtitles off":"بدون زیرنویس","Captions":"توضیحات","captions off":"بدون توضیحات","Chapters":"بخش‌ها","Descriptions":"توصیفات","descriptions off":"بدون توصیفات","Audio Track":"ترَک صوتی","Volume Level":"سطح صدا","You aborted the media playback":"شما پخش رسانه را قطع نمودید","A network error caused the media download to fail part-way.":"وقوع مشکلی در شبکه باعث اختلال در دانلود رسانه شد.","The media could not be loaded, either because the server or network failed or because the format is not supported.":".رسانه قابل بارگیری نیست. ممکن است مشکلی در شبکه یا سرور رخ داده باشد یا فرمت رسانه در دستگاه شما پشتیبانی نشود","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"پخش  رسانه به علت اشکال در آن یا عدم پشتیبانی مرورگر شما قطع شد.","No compatible source was found for this media.":"هیچ منبع سازگاری برای پخش این رسانه پیدا نشد.","The media is encrypted and we do not have the keys to decrypt it."
475:"این رسانه رمزنگاری شده است و کلیدهای رمزگشایی آن موجود نیست.","Play Video":"پخش ویدیو","Close":"بستن","Close Modal Dialog":"بستن پنجره","Modal Window":"پنجره محاوره","This is a modal window":"این پنجره قابل بستن است","This modal can be closed by pressing the Escape key or activating the close button.":"این پنجره با کلید Escape یا دکمه بستن قابل بسته شدن میباشد.",", opens captions settings dialog":", تنظیمات توضیجات را باز میکند",", opens subtitles settings dialog":", تنظیمات زیرنویس را باز میکند",", opens descriptions settings dialog":", تنظیمات توصیفات را باز میکند",", selected":"، انتخاب شد","captions settings":"تنظیمات توضیحات","subtitles settings":"تنظیمات زیرنویس","descriptions settings":"تنظیمات توصیفات","Text":"متن","White":"سفید","Black":"سیاه","Red":"قرمز","Green":"سبز","Blue":"آبی","Yellow":"زرد","Magenta":"ارغوانی","Cyan":"فیروزه‌ای","Background":"پس زمینه","Window":"پنجره","Transparent":"شفاف","Semi-Transparent":"نیمه شفاف","Opaque":"مات","Font Size":"اندازه قلم","Text Edge Style":"سبک لبه متن","None":"هیچ","Raised":"برجسته","Depressed":"فرورفته","Uniform":"یکنواخت","Dropshadow":"سایه دار","Font Family":"نوع قلم","Proportional Sans-Serif":"Sans-Serif متناسب","Monospace Sans-Serif":"Sans-Serif هم عرض","Proportional Serif":"Serif متناسب","Monospace Serif":"Serif هم عرض","Casual":"فانتزی","Script":"دست خط","Small Caps":"حروف بزرگ کوچک","Reset":"تنظیم مجدد","restore all settings to the default values":"بازنشانی همه تنظیمات به مقادیر پیش‌فرض","Done":"انجام","Caption Settings Dialog":"پنجره تنظیمات توضیحات","Beginning of dialog window. Escape will cancel and close the window.":"شروع پنجره محاوره‌ای. دکمه Escape عملیات را لغو کرده و پنجره را میبندد.","End of dialog window.":"پایان پنجره محاوره‌ای.","{1} is loading.":"{1} در حال بارگیری است.","Exit Picture-in-Picture":"خروج از حالت تصویر در تصویر","Picture-in-Picture":"تصویر در تصویر"}')},8585:e=>{"use strict";e.exports=JSON.parse('{"Play":"Toisto","Pause":"Tauko","Current Time":"Tämänhetkinen aika","Duration":"Kokonaisaika","Remaining Time":"Jäljellä oleva aika","Stream Type":"Lähetystyyppi","LIVE":"LIVE","Loaded":"Ladattu","Progress":"Edistyminen","Fullscreen":"Koko näyttö","Non-Fullscreen":"Koko näyttö pois","Mute":"Ääni pois","Unmute":"Ääni päällä","Playback Rate":"Toistonopeus","Subtitles":"Tekstitys","subtitles off":"Tekstitys pois","Captions":"Tekstitys","captions off":"Tekstitys pois","Chapters":"Kappaleet","You aborted the media playback":"Olet keskeyttänyt videotoiston.","A network error caused the media download to fail part-way.":"Verkkovirhe keskeytti videon latauksen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Videon lataus ei onnistunut joko palvelin- tai verkkovirheestä tai väärästä formaatista johtuen.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Videon toisto keskeytyi, koska media on vaurioitunut tai käyttää käyttää toimintoja, joita selaimesi ei tue.","No compatible source was found for this media.":"Tälle videolle ei löytynyt yhteensopivaa lähdettä."}')},2773:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lecteur audio","Video Player":"Lecteur vidéo","Play":"Lecture","Pause":"Pause","Replay":"Revoir","Current Time":"Temps actuel","Duration":"Durée","Remaining Time":"Temps restant","Stream Type":"Type de flux","LIVE":"EN DIRECT","Loaded":"Chargé","Progress":"Progression","Progress Bar":"Barre de progression","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Plein écran","Non-Fullscreen":"Fenêtré","Mute":"Sourdine","Unmute":"Son activé","Playback Rate":"Vitesse de lecture","Subtitles":"Sous-titres","subtitles off":"Sous-titres désactivés","Captions":"Sous-titres transcrits","captions off":"Sous-titres transcrits désactivés","Chapters":"Chapitres","Descriptions":"Descriptions","descriptions off":"descriptions désactivées","Audio Track":"Piste audio","Volume Level":"Niveau de volume","You aborted the media playback":"Vous avez interrompu la lecture de la vidéo.","A network error caused the media download to fail part-way.":"Une erreur de réseau a interrompu le téléchargement de la vidéo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Cette vidéo 
475n\'a pas pu être chargée, soit parce que le serveur ou le réseau a échoué ou parce que le format n\'est pas reconnu.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La lecture de la vidéo a été interrompue à cause d\'un problème de corruption ou parce que la vidéo utilise des fonctionnalités non prises en charge par votre navigateur.","No compatible source was found for this media.":"Aucune source compatible n\'a été trouvée pour cette vidéo.","The media is encrypted and we do not have the keys to decrypt it.":"Le média est chiffré et nous n\'avons pas les clés pour le déchiffrer.","Play Video":"Lire la vidéo","Close":"Fermer","Close Modal Dialog":"Fermer la boîte de dialogue modale","Modal Window":"Fenêtre modale","This is a modal window":"Ceci est une fenêtre modale","This modal can be closed by pressing the Escape key or activating the close button.":"Ce modal peut être fermé en appuyant sur la touche Échap ou activer le bouton de fermeture.",", opens captions settings dialog":", ouvrir les paramètres des sous-titres transcrits",", opens subtitles settings dialog":", ouvrir les paramètres des sous-titres",", opens descriptions settings dialog":", ouvrir les paramètres des descriptions",", selected":", sélectionné","captions settings":"Paramètres des sous-titres transcrits","subtitles settings":"Paramètres des sous-titres","descriptions settings":"Paramètres des descriptions","Text":"Texte","White":"Blanc","Black":"Noir","Red":"Rouge","Green":"Vert","Blue":"Bleu","Yellow":"Jaune","Magenta":"Magenta","Cyan":"Cyan","Background":"Arrière-plan","Window":"Fenêtre","Transparent":"Transparent","Semi-Transparent":"Semi-transparent","Opaque":"Opaque","Font Size":"Taille des caractères","Text Edge Style":"Style des contours du texte","None":"Aucun","Raised":"Élevé","Depressed":"Enfoncé","Uniform":"Uniforme","Dropshadow":"Ombre portée","Font Family":"Famille de polices","Proportional Sans-Serif":"Polices à chasse variable sans empattement (Proportional Sans-Serif)","Monospace Sans-Serif":"Polices à chasse fixe sans empattement (Monospace Sans-Serif)","Proportional Serif":"Polices à chasse variable avec empattement (Proportional Serif)","Monospace Serif":"Polices à chasse fixe avec empattement (Monospace Serif)","Casual":"Manuscrite","Script":"Scripte","Small Caps":"Petites capitales","Reset":"Réinitialiser","restore all settings to the default values":"Restaurer tous les paramètres aux valeurs par défaut","Done":"Terminé","Caption Settings Dialog":"Boîte de dialogue des paramètres des sous-titres transcrits","Beginning of dialog window. Escape will cancel and close the window.":"Début de la fenêtre de dialogue. La touche d\'échappement annulera et fermera la fenêtre.","End of dialog window.":"Fin de la fenêtre de dialogue.","Exit Picture-in-Picture ":"Quitter le mode image dans l\'image","Picture-in-Picture ":"Image dans l\'image","{1} is loading.":"{1} en cours de chargement."}')},1858:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Cluicheadair fuaime","Video Player":"Cluicheadair video","Play":"Cluich","Pause":"Cuir ’na stad","Replay":"Cluich a-rithist","Current Time":"An ùine làithreach","Duration":"Faide","Remaining Time":"An ùine air fhàgail","Stream Type":"Seòrsa an t-sruthaidh","LIVE":"BEÒ","Seek to live, currently behind live":"A’ sireadh sruth beò ’s air dheireadh","Seek to live, currently playing live":"A’ sireadh sruth beò ’s ‘ga chluich","Loaded":"Air a luchdadh","Progress":"Adhartas","Progress Bar":"Bàr adhartais","progress bar timing: currentTime={1} duration={2}":"{1} à {2}","Fullscreen":"Làn-sgrìn","Non-Fullscreen":"Fàg modh làn-sgrìn","Mute":"Mùch","Unmute":"Dì-mhùch","Playback Rate":"Reat na cluiche","Subtitles":"Fo-thiotalan","subtitles off":"fo-thiotalan dheth","Captions":"Caipseanan","captions off":"caipseanan dheth","Chapters":"Caibideil","Descriptions":"Tuairisgeulan","descriptions off":"tuairisgeulan dheth","Audio Track":"Traca fuaime","Volume Level":"Àirde na fuaime","You aborted the media playback":"Sguir thu de chluich a’ mheadhain","A network error caused the media download to fail part-way.":"Cha deach leinn an còrr dhen mheadhan a luchdadh a-nuas ri linn mearachd lìonraidh.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Cha b’ urrainn dhuinn am meadhan a luchdadh – dh’fhaoidte gun do dh’fhàillig leis an fhrithealaiche no an lìonra no nach cuir sinn taic ris an fhòrmat.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Sguir sinn de chluich a’ mheadhain – dh’fhaoidte gu bheil e coirbte no gu bhe
475il gleus aig a’ mheadhan nach cuir am brabhsair taic ris.","No compatible source was found for this media.":"Cha ceach tùs co-chòrdail a lorg airson a’ mheadhain seo.","The media is encrypted and we do not have the keys to decrypt it.":"Tha am meadhan crioptaichte ’s chan eil iuchair dì-chrioptachaidh againn dha.","Play Video":"Cluich video","Close":"Dùin","Close Modal Dialog":"Dùin an còmhradh","Modal Window":"Uinneag mòdach","This is a modal window":"Seo uinneag mòdach","This modal can be closed by pressing the Escape key or activating the close button.":"’S urrainn dhut seo a dhùnadh leis an iuchair Escape no leis a’ phutan dùnaidh.",", opens captions settings dialog":", fosglaidh e còmhradh nan roghainnean",", opens subtitles settings dialog":", fosglaidh e còmhradh nam fo-thiotalan",", opens descriptions settings dialog":", fosglaidh e còmhradh roghainnean nan tuairisgeulan",", selected":", air a thaghadh","captions settings":"roghainnean nan caipseanan","subtitles settings":"roghainnean nam fo-thiotalan","descriptions settings":"roghainnean 
475nan tuairisgeulan","Text":"Teacsa","White":"Geal","Black":"Dubh","Red":"Dearg","Green":"Uaine","Blue":"Gorm","Yellow":"Buidhe","Magenta":"Magenta","Cyan":"Saidhean","Background":"Cùlaibh","Window":"Uinneag","Transparent":"Trìd-shoilleir","Semi-Transparent":"Leth-thrìd-shoilleir","Opaque":"Trìd-dhoilleir","Font Size":"Meud a’ chrutha-chlò","Text Edge Style":"Stoidhle oir an teacsa","None":"Chan eil gin","Raised":"Àrdaichte","Depressed":"Air a bhrùthadh","Uniform":"Cunbhalach","Dropshadow":"Sgàil","Font Family":"Teaghlach a’ chrutha-chlò","Proportional Sans-Serif":"Sans-serif co-rèireach","Monospace Sans-Serif":"Sans-serif aon-leud","Proportional Serif":"Serif co-rèireach","Monospace Serif":"Serif aon-leud","Casual":"Fuasgailte","Script":"Sgriobt","Small Caps":"Ceann-litrichean beaga","Reset":"Ath-shuidhich","restore all settings to the default values":"till dhan a h-uile bun-roghainn","Done":"Deiseil","Caption Settings Dialog":"Còmhradh roghainnean nan caipseanan","Beginning of dialog window. Escape will cancel and close the window.":"Toiseach uinneag còmhraidh. Sguiridh Escape dheth ’s dùinidh e an uinneag","End of dialog window.":"Deireadh uinneag còmhraidh.","{1} is loading.":"Tha {1} ’ga luchdadh."}')},5193:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Reprodutor de son","Video Player":"Reprodutor de vídeo","Play":"Reproducir","Pause":"Pausa","Replay":"Repetir","Current Time":"Tempo reproducido","Duration":"Duración","Remaining Time":"Tempo restante","Stream Type":"Tipo de fluxo","LIVE":"EN DIRECTO","Seek to live, currently behind live":"Buscando directo, actualmente tras en directo","Seek to live, currently playing live":"Buscando directo, actualmente reproducindo en directo","Loaded":"Cargado","Progress":"Progresión","Progress Bar":"Barra de progreso","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Pantalla completa","Non-Fullscreen":"Xanela","Mute":"Silenciar","Unmute":"Son activado","Playback Rate":"Velocidade de reprodución","Subtitles":"Subtítulos","subtitles off":"subtítulos desactivados","Captions":"Subtítulos para xordos","captions off":"subtítulos para xordos desactivados","Chapters":"Capítulos","Descriptions":"Descricións","descriptions off":"descricións desactivadas","Audio Track":"Pista de son","Volume Level":"Nivel do volume","You aborted the media playback":"Vostede interrompeu a reprodución do medio.","A network error caused the media download to fail part-way.":"Un erro de rede interrompeu a descarga do medio.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Non foi posíbel cargar o medio por mor dun fallo de rede ou do servidor ou porque o formato non é compatíbel.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Interrompeuse a reprodución do medio por mor dun problema de estragamento dos datos ou porque o medio precisa funcións que o seu navegador non ofrece.","No compatible source was found for this media.":"Non se atopou ningunha orixe compatíbel con este vídeo.","The media is encrypted and we do not have the keys to decrypt it.":"O medio está cifrado e non temos as chaves para descifralo .","Play Video":"Reproducir vídeo","Close":"Pechar","Close Modal Dialog":"Pechar a caixa de diálogo modal","Modal Window":"Xanela modal","This is a modal window":"Esta é unha xanela modal","This modal can be closed by pressing the Escape key or activating the close button.":"Este diálogo modal pódese pechar premendo a tecla Escape ou activando o botón de pechar.",", opens captions settings dialog":", abre o diálogo de axustes dos subtítulos para xordos",", opens subtitles settings dialog":", abre o diálogo de axustes dos subtítulos",", opens descriptions settings dialog":", abre o diálogo de axustes das descricións",", selected":", séleccionado","captions settings":"axustes dos subtítulos para xordos","subtitles settings":"axustes dos subtítulos","descriptions settings":"axustes das descricións","Text":"Texto","White":"Branco","Black":"Negro","Red":"Vermello","Green":"Verde","Blue":"Azul","Yellow":"Marelo","Magenta":"Maxenta","Cyan":"Cian","Backgroun
475d":"Fondo","Window":"Xanela","Transparent":"Transparente","Semi-Transparent":"Semi-transparente","Opaque":"Opaca","Font Size":"Tamaño das letras","Text Edge Style":"Estilo do bordos do texto","None":"Ningún","Raised":"Érguida","Depressed":"Caída","Uniform":"Uniforme","Dropshadow":"Sombra caída","Font Family":"Familia de letras","Proportional Sans-Serif":"Sans-Serif proporcional","Monospace Sans-Serif":"Sans-Serif monoespazo (caixa fixa)","Proportional Serif":"Serif proporcional","Monospace Serif":"Serif monoespazo (caixa fixa)","Casual":"Manuscrito","Script":"Itálica","Small Caps":"Pequenas maiúsculas","Reset":"Reiniciar","restore all settings to the default values":"restaurar todos os axustes aos valores predeterminados","Done":"Feito","Caption Settings Dialog":"Diálogo de axustes dos subtítulos para xordos","Beginning of dialog window. Escape will cancel and close the window.":"Inicio da xanela de diálogo. A tecla Escape cancelará e pechará a xanela.","End of dialog window.":"Fin da xanela de diálogo.","{1} is loading.":"{1} está a cargar."}')},5097:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"נַגָּן שמע","Video Player":"נַגָּן וידאו","Play":"נַגֵּן","Pause":"השהה","Replay":"נַגֵּן שוב","Current Time":"זמן נוכחי","Duration":"זמן כולל","Remaining Time":"זמן נותר","Stream Type":"סוג Stream","LIVE":"שידור חי","Loaded":"נטען","Progress":"התקדמות","Progress Bar":"סרגל התקדמות","progress bar timing: currentTime={1} duration={2}":"{1} מתוך {2}","Fullscreen":"מסך מלא","Non-Fullscreen":"מסך לא מלא","Mute":"השתק","Unmute":"בטל השתקה","Playback Rate":"קצב ניגון","Subtitles":"כתוביות","
475subtitles off":"כתוביות כבויות","Captions":"כיתובים","captions off":"כיתובים כבויים","Chapters":"פרקים","Descriptions":"תיאורים","descriptions off":"תיאורים כבויים","Audio Track":"רצועת שמע","Volume Level":"רמת ווליום","You aborted the media playback":"ביטלת את השמעת המדיה","A network error caused the media download to fail part-way.":"שגיאת רשת גרמה להורדת המדיה להיכשל באמצע.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"לא ניתן לטעון את המדיה, או מכיוון שהרשת או השרת כשלו או מכיוון שהפורמט אינו נתמך.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"השמעת המדיה בוטלה בשל בעית השחטת מידע או מכיוון שהמדיה עשתה שימוש בתכונות שהדפדפן שלך לא תמך בהן.","No compatible source was found for this media.":"לא נמצא מקור תואם עבור מדיה זו.","The media is encrypted and we do not have the keys to decrypt it.":"המדיה מוצפנת ואין בידינו את המפתח כדי לפענח אותה.","Play Video":"נַגֵּן וידאו","Close":"סְגוֹר","Close Modal Dialog":"סְגוֹר דו-שיח מודאלי","Modal Window":"חלון מודאלי","This is a modal window":"זהו חלון מודאלי","This modal can be closed by pressing the Escape key or activating the close button.":"ניתן לסגור חלון מודאלי זה ×¢\\"י לחיצה על כפתור ה-Escape או הפעלת כפתור הסגירה.",", opens captions settings dialog":", פותח חלון הגדרות כיתובים",", opens subtitles settings dialog":", פותח חלון הגדרות כתוביות",", opens descriptions settings dialog":", פותח חלון הגדרות תיאורים",", selected":", נבחר/ו","captions settings":"הגדרות כיתובים","subtitles settings":"הגדרות כתוביות","descriptions settings":"הגדרות תיאורים","Text":"טקסט","White":"לבן","Black":"שחור","Red":"אדום","Green":"ירוק","Blue":"כחול","Yellow":"צהוב","Magenta":"מַגֶ\'נטָה","Cyan":"טורקיז","Background":"רקע","Window":"חלון","Transparent":"שקוף","Semi-Transparent":"שקוף למחצה","Opaque":"אָטוּם","Font Size":"גודל גופן","Text Edge Style":"סגנון קצוות טקסט","None":"ללא","Raised":"מורם","Depressed":"מורד","Uniform":"אחיד","Dropshadow":"הטלת צל","Font Family":"משפחת גופן","Proportional Sans-Serif":"פרופורציוני וללא תגיות (Proportional Sans-Serif)","Monospace Sans-Serif":"ברוחב אחיד וללא תגיות (Monospace Sans-Serif)","Proportional Serif":"פרופורציוני ועם תגיות (Proportional Serif)","Monospace Serif":"ברוחב אחיד ועם תגיות (Monospace Serif)","Casual":"אַגָבִי","Script":"תסריט","Small Caps":"אותיות קטנות","Reset":"אִפּוּס","restore all settings to the default values":"שחזר את כל ההגדרות לערכי ברירת המחדל","Done":"בוצע","Caption Settings Dialog":"דו-שיח הגדרות כיתובים","Beginning of dialog window. Escape will cancel and close the window.":"תחילת חלון דו-שיח. Escape יבטל ויסגור את החלון","End of dialog window.":"סוף חלון דו-שיח."}')},2264:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"ऑडियो प्लेयर","Video Player":"वीडियो प्लेयर","Play":"चलाएँ","Pause":"रोके","Replay":"फिर से चलाएँ","Current Time":"वर्तमान समय","Duration":"अवधि","Remaining Time":"शेष समय","Stream Type":"स्ट्रीम प्रकार","LIVE":"लाइव","Seek to live, currently behind live":"छोड़कर लाइव प्रसारण पर आगे बढ़ें, अभी लाइव प्रसारण से पीछे हैं","Seek to live, currently playing live":"छोड़कर लाइव प्रसारण पर आगे बढ़ें, अभी लाइव चल रहा है","Loaded":"लोड हुआ","Progress":"प्रगति","Progress Bar":"प्रोगेस बार","progress bar timing: currentTime={1} duration={2}":"{2} में से {1}","Fullscreen":"फ़ुल स्क्रीन","Non-Fullscreen":"फ़ुल स्क्रीन से बाहर निकलें","Mute":"म्यूट करें","Unmute":"अनम्यूट करें","Playback Rate":"चलाने की दर","Subtitles":"उपशीर्षक","subtitles off":"उपशीर्षक बंद","Captions":"कैप्शन","captions off":"कैप्शन बंद","Chapters":"अध्याय","Descriptions":"विवरण","descriptions off":"विवरण बंद","Audio Track":"ऑडियो ट्रैक","Volume Level":"वॉल्यूम स्तर","You aborted the media playback":"आपने मीडिया प्लेबैक को रोक दिया","A network error caused the media download to fail part-way.":"एक नेटवर्क त्à
475¤°à¥à¤Ÿà¤¿ के कारण मीडिया डाउनलोड आंशिक रूप से विफल हो गया।","The media could not be loaded, either because the server or network failed or because the format is not supported.":"मीडिया लोड नहीं किया जा सका, या तो सर्वर या नेटवर्क विफल होने के कारण या प्रारूप समर्थित नहीं होने के कारण।","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"मीडिया प्लेबैक निरस्त कर दिया गया, कारण: दूषण की समस्या या मीडिया ने उन सुविधाओं का उपयोग किया था जिनका आपके ब्राउज़र ने समर्थन नहीं किया।","No compatible source was found for this media.":"इस मीडिया के लिए कोई अनुकूल स्रोत नहीं मिला।.","The media is encrypted and we do not have the keys to decrypt it.":"मीडिया एन्क्रिप्टेड है और हमारे पास इसे डिक्रिप्ट करने की चाबी नहीं है।","Play Video":"वीडियो चलाएं","Close":"बंद करे","Close Modal Dialog":"मोडल डायलॉग बंद करें","Modal Window":"मोडल विंडो","This is a modal window":"यह एक मोडल विंडो है","This modal can be closed by pressing the Escape key or activating the close button.":"इस मोडल को एस्केप कुंजी दबाकर या बंद करें बटन को सक्रिय करके बंद किया जा सकता है।",", opens captions settings dialog":", कैप्शन सेटिंग डायलॉग खोलता है",", opens subtitles settings dialog":", उपशीर्षक सेटिंग्स संवाद खोलता है",", opens descriptions settings dialog":", विवरण सेटिंग संवाद खोलता है",", selected":", चुना गया","captions settings":"कैप्शन सेटिंग","subtitles settings":"उपशीर्षक सेटिंग","descriptions settings":"विवरण सेटिंग","Text":"टेक्स्ट","White":"सफेद","Black":"काला","Red":"लाल","Green":"हरा","Blue":"नीला","Yellow":"पीला","Magenta":"मैजेंटा","Cyan":"सियान","Background":"बैकग्राउंड","Window":"विंडो","Transparent":"पारदर्शी","Semi-Transparent":"अर्द्ध पारदर्शी","Opaque":"अपारदर्शी","Font Size":"फ़ॉन्ट आकार","Text Edge Style":"टेक्स्ट एज स्टाइल","None":"कोई नहीं","Raised":"उठा हुआ","Depressed":"उदास","Uniform":"वर्दी","Dropshadow":"परछाई","Font Family":"फॉण्ट परिवार","Proportional Sans-Serif":"प्रोपोरशनल साँस-सेरिफ","Monospace Sans-Serif":"मोनोस्पास साँस-सेरिफ","Proportional Serif":"प्रोपोरशनल सेरिफ","Monospace Serif":"मोनोस्पास सेरिफ","Casual":"आकस्मिक","Script":"स्क्रिप्ट","Small Caps":"छोटे अक्षर","Reset":"रीसेट करें","restore all settings to the default values":"सभी सेटिंग्स को डिफ़ॉल्ट मानों पर पुनर्स्थापित करें","Done":"पूर्ण","Caption Settings Dialog":"कैप्शन सेटिंग्स डायलॉग","Beginning of dialog window. Escape will cancel and close the window.":"डायलॉग विंडो की शुरुआत। एस्केप विंडो को रद्द और बंद कर देगा।","End of dialog window.":"संवाद विंडो का अंत।","{1} is loading.":"{1} लोड हो रहा है।","Exit Picture-in-Picture":"पिक्चर-इन-पिक्चर से बाहर निकलें","Picture-in-Picture":"पिक्चर-इन-पिक्चर"}')},5522:e=>{"use strict";e.exports=JSON.parse('{"Play":"Pusti","Pause":"Pauza","Current Time":"Trenutno vrijeme","Duration":"Vrijeme trajanja","Remaining Time":"Preostalo vrijeme","Stream Type":"Način strimovanja","LIVE":"UŽIVO","Loaded":"Učitan","Progress":"Progres","Fullscreen":"Puni ekran","Non-Fullscreen":"Mali ekran","Mute":"PriguÅ¡en","Unmute":"Ne-priguÅ¡en","Playback Rate":"Stopa reprodukcije","Subt
475itles":"Podnaslov","subtitles off":"Podnaslov deaktiviran","Captions":"Titlovi","captions off":"Titlovi deaktivirani","Chapters":"Poglavlja","You aborted the media playback":"Isključili ste reprodukciju videa.","A network error caused the media download to fail part-way.":"Video se prestao preuzimati zbog greške na mreži.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video se ne može reproducirati zbog servera, greške u mreži ili je format ne podržan.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Reprodukcija videa je zaustavljenja zbog greške u formatu ili zbog verzije vašeg pretraživača.","No compatible source was found for this media.":"Nije nađen nijedan kompatibilan izvor ovog videa."}')},8609:e=>{"use strict";e.exports=JSON.parse('{"Play":"Lejátszás","Pause":"Szünet","Current Time":"Aktuális időpont","Duration":"Hossz","Remaining Time":"Hátralévő idő","Stream Type":"Adatfolyam típusa","LIVE":"ÉLŐ","Loaded":"Betöltve","Progress":"Állapot","Fullscreen":"Teljes képernyő","Non-Fullscreen":"Normál méret","Mute":"Némítás","Unmute":"Némítás kikapcsolva","Playback Rate":"Lejátszási sebesség","Subt
475itles":"Feliratok","subtitles off":"Feliratok kikapcsolva","Captions":"Magyarázó szöveg","captions off":"Magyarázó szöveg kikapcsolva","Chapters":"Fejezetek","You aborted the media playback":"Leállította a lejátszást","A network error caused the media download to fail part-way.":"Hálózati hiba miatt a videó részlegesen töltődött le.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"A videó nem tölthető be hálózati vagy kiszolgálói hiba miatt, vagy a formátuma nem támogatott.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A lejátszás adatsérülés miatt leállt, vagy a videó egyes tulajdonságait a böngészője nem támogatja.","No compatible source was found for this media.":"Nincs kompatibilis forrás ehhez a videóhoz.","Audio Player":"Audio lejátszó","Video Player":"Videó lejátszó","Replay":"Visszajátszás","Descriptions":"Leírások","descriptions off":"leírások kikapcsolva","Audio Track":"Hangsáv","Volume Level":"Hangerő","Play Video":"Videó lejátszása","Close":"Bezárás","Text":"Szöveg","White":"Fehér","Black":"Fekete","Red":"Piros","Green":"Zöld","Blue":"Kék","Yellow":"Sárga","Background":"Háttér","Window":"Ablak","Transparent":"Átlátszó","Semi-Transparent":"Félig átlátszó","Opaque":"Áttetsző","Font Size":"Betűméret","Font Family":"Betűtípus","Done":"Kész","Picture-in-Picture":"Kép a képben","Exit Picture-in-Picture":"Kilépés kép a képben módból","{1} is loading.":"{1} betöltése.","Reset":"Visszaállítás","restore all settings to the default values":"összes beállítás visszaállítása az alapértelmezett értékekre","The media is encrypted and we do not have the keys to decrypt it.":"A média titkosítva van és nincsenek kulcsok a visszafejtéshez.","Close Modal Dialog":"Felugró ablak bezárása","Modal Window":"Felugró ablak","This modal can be closed by pressing the Escape key or activating the close button.":"Ezt a felugró ablakot az Escape gomb megnyomásával vagy a bezáró gomb aktiválásával lehet bezárni.",", selected":", kiválasztva","descriptions settings":"leírások beállítása","Text Edge Style":"Szövegél stílus","This is a modal window":"Ez egy felugró ablak","Cyan":"Cián","Dropshadow":"Árnyék","End of dialog window.":"Párbeszédablak vége.","Progress Bar":"Folyamatjelző sáv","Beginning of dialog window. Escape will cancel and close the window.":"Párbeszédablak eleje. Az Escape gomb befejezi és bezárja az ablakot.","Caption Settings Dialog":"Feliratbeállítások párbeszédablak",", opens descriptions settings dialog":", megnyitja a leírások beállításainak párbeszédablakját",", opens captions settings dialog":", megnyitja a magyarázó szövegek beállításainak párbeszédablakját",", opens subtitles settings dialog":", megnyitja a feliratok beállításainak párbeszédablakját","Seek to live, currently behind live":"Élő adáshoz tekerés, jelenleg az élő adás mögött van","Seek to live, currently playing live":"Élő adáshoz tekerés, jelenleg az élő adásnál van","progress bar timing: currentTime={1} duration={2}":"{1} / {2}","Magenta":"Lila","Script":"Script","Casual":"Casual","Monospace Serif":"Monospace Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Sans-Serif":"Proportional Sans-Serif","Proportional Serif":"Proportional Serif","Uniform":"Uniform","Small Caps":"Kiskapitális","None":"Egyik sem","captions settings":"magyarázó szövegek beállításai","subtitles settings":"feliratok beállításai","Raised":"Emelt","Depressed":"Nyomott"}')},8222:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lettore audio","Video Player":"Lettore video","Play":"Play","Pause":"Pausa","Replay":"Replay","Current Time":"Orario attuale","Duration":"Durata","Remaining Time":"Tempo rimanente","Stream Type":"Tipo del Streaming","LIVE":"LIVE","Loaded":"Caricato","Progress":"Stato","Progress Bar":"Barra di avanzamento","progress bar timing: currentTime={1} duration={2}":"{1} di {2}","Fullscreen":"Schermo intero","Non-Fullscreen":"Chiudi Schermo intero","Mute":"Muto","Unmute":"Audio","Playback Rate":"Tasso di riproduzione","Subt
475itles":"Sottotitoli","subtitles off":"Senza sottotitoli","Captions":"Sottotitoli non udenti","captions off":"Senza sottotitoli non udenti","Chapters":"Capitolo","Descriptions":"Descrizioni","descriptions off":"Descrizioni disattivate","Audio Track":"Traccia audio","Volume Level":"Livello del volume","You aborted the media playback":"La riproduzione del filmato è stata interrotta.","A network error caused the media download to fail part-way.":"Il download del filmato è stato interrotto a causa di un problema rete.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.","No compatible source was found for this media.":"Non ci sono fonti compatibili per questo filmato.","The media is encrypted and we do not have the keys to decrypt it.":"Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.","Play Video":"Riprodurre il video","Close":"Chiudere","Close Modal Dialog":"Chiudere la finestra di dialogo","Modal Window":"Finestra di dialogo","This is a modal window":"Questa è una finestra di dialogo","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",", opens captions settings dialog":", aprire i parametri della trascrizione dei sottotitoli",", opens subtitles settings dialog":", aprire i parametri dei sottotitoli",", opens descriptions settings dialog":", aprire i parametri delle descrizioni",", selected":", selezionato","captions settings":"Parametri della trascrizione dei sottotitoli","subtitles settings":"Parametri dei sottotitoli","descriptions settings":"Parametri delle descrizioni","Text":"Testo","White":"Bianco","Black":"Nero","Red":"Rosso","Green":"Verde","Blue":"Blu","Yellow":"Giallo","Magenta":"Magenta","Cyan":"Ciano","Background":"Sfondo","Window":"Finestra","Transparent":"Trasparente","Semi-Transparent":"Semi-Trasparente","Opaque":"Opaco","Font Size":"Dimensione dei caratteri","Text Edge Style":"Stile dei bordi del testo","None":"Nessuno","Uniform":"Uniforme","Dropshadow":"Ombreggiatura","Font Family":"Famiglia di caratteri","Proportional Sans-Serif":"Carattere a spaziatura variabile senza grazie (Proportional Sans-Serif)","Monospace Sans-Serif":"Carattere a spaziatura fissa senza grazie (Monospace Sans-Serif)","Proportional Serif":"Carattere a spaziatura variabile con grazie (Proportional Serif)","Monospace Serif":"Carattere a spaziatura fissa con grazie (Monospace Serif)","Small Caps":"Maiuscoletto","Reset":"Reinizializzare","restore all settings to the default values":"Ripristinare i valori predefiniti per tutti i parametri","Done":"Operazione completata","Caption Settings Dialog":"Finestra di dialogo dei parametri della trascrizione dei sottotitoli","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.","End of dialog window.":"Fine della finestra di dialogo.","{1} is loading.":"{1} in fase di caricamento.","Exit Picture-in-Picture":"Uscire dalla modalità Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture"}')},1492:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"オーディオプレイヤー","Video Player":"ビデオプレイヤー","Play":"再生","Pause":"一時停止","Replay":"もう一度見る","Current Time":"現在の時間","Duration":"長さ","Remaining Time":"残りの時間","Stream Type":"ストリームの種類","LIVE":"ライブ","Loaded":"ロード済み","Progress":"進行状況","Progress Bar":"シークバー","progress bar timing: currentTime={1} duration={2}":"{2}の{1}","Fullscreen":"フルスクリーン","Non-Fullscreen":"フルスクリーン以外","Mute":"ミュート","Unmute":"ミュート解除","Playback Rate":"再生レート","Subtitles":"サブタイトル","subtitles off":"サブタイトル オフ","Captions":"キャプション","captions off":"キャプション オフ","Chapters":"チャプター","Descriptions":"ディスクリプション","descriptions off":"ディスクリプションオフ","Audio Track":"音声トラック","Volume Level":"ボリュームレベル","You aborted the media playback":"動画再生を中止しました","A network error caused the media download to fail part-way.":"ネットワーク エラーにより動画のダウンロードが途中で失敗しました","The media could not be loaded, either because the server or network failed or because the format is not supported.":"サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました","No compatible source was found for this media.":"この
475動画に対して互換性のあるソースが見つかりませんでした","The media is encrypted and we do not have the keys to decrypt it.":"メディアは暗号化されており、解読するためのキーがありません。","Play Video":"ビデオを再生する","Close":"閉じる","Close Modal Dialog":"ダイアログボックスを閉じる","Modal Window":"ダイアログボックス","This is a modal window":"これはダイアログボックスです","This modal can be closed by pressing the Escape key or activating the close button.":"このダイアログボックスは、Escキーを押すか、閉じるボタンを押して閉じることができま",", opens captions settings dialog":", 書き起こし字幕の設定を開く",", opens subtitles settings dialog":", 字幕の設定を開く",", opens descriptions settings dialog":", ディスクリプションの設定を開く",", selected":", 選択済み","captions settings":"書き起こし字幕の設定","subtitles settings":"字幕の設定","descriptions settings":"ディスクリプションの設定","Text":"テキスト","White":"白","Black":"黒","Red":"赤","Green":"緑","Blue":"青","Yellow":"黄","Magenta":"赤紫","Cyan":"シアン","Background":"背景","Window":"ウィンドウ","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"文字サイズ","Text Edge Style":"テキストのアウトラインのスタイル","None":"なし","Uniform":"均一","Dropshadow":"影付き","Font Family":"フォントの種類","Proportional Sans-Serif":"セリフなし可変幅フォント","Monospace Sans-Serif":"セリフなし等幅フォント","Proportional Serif":"セリフあり可変幅フォント","Monospace Serif":"セリフあり等幅フォント","Small Caps":"スモールキャピタル","Reset":"リセット","restore all settings to the default values":"すべての設定をデフォルト値に戻す","Done":"終了","Caption Settings Dialog":"書き起こし字幕設定ダイアログ","Beginning of dialog window. Escape will cancel and close the window.":"ダイアログボックスの開始。Escキーでキャンセルしてウィンドウを閉じます。","End of dialog window.":"ダイアログボックスの終了","{1} is loading.":"{1}は読み込み中です。","Exit Picture-in-Picture":"ピクチャーインピクチャー機能の終了","Picture-in-Picture":"ピクチャーインピクチャー"}')},1298:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"오디오 플레이어","Video Player":"비디오 플레이어","Play":"재생","Pause":"일시중지","Replay":"다시 재생","Current Time":"현재 시간","Duration":"지정 기간","Remaining Time":"남은 시간","Stream Type":"스트리밍 유형","LIVE":"라이브","Loaded":"로드됨","Progress":"진행","Progress Bar":"진행 표시줄","progress bar timing: currentTime={1} duration={2}":"{2} 중 {1}","Fullscreen":"전체 화면","Non-Fullscreen":"전체 화면 해제","Mute":"음소거","Unmute":"음소거 해제","Playback Rate":"재생 비율","Subtitles":"서브타이틀","subtitles off":"서브타이틀 끄기","Captions":"자막","captions off":"자막 끄기","Chapters":"챕터","Descriptions":"제품 설명","de
475scriptions off":"제품 설명 끄기","Audio Track":"오디오 트랙","Volume Level":"볼륨 레벨","You aborted the media playback":"비디오 재생을 취소했습니다.","A network error caused the media download to fail part-way.":"네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.","No compatible source was found for this media.":"비디오에 호환되지 않는 소스가 있습니다.","The media is encrypted and we do not have the keys to decrypt it.":"미디어는 암호화되어 있으며 이를 해독할 키를 갖고 있지 않습니다.","Play Video":"영상 재생","Close":"닫기","Close Modal Dialog":"대화 상자 닫기","Modal Window":"모달 창","This is a modal window":"모달 창입니다","This modal can be closed by pressing the Escape key or activating the close button.":"이 모달은 Esc 키를 누르거나 닫기 버튼을 활성화하여 닫을 수 있습니다.",", opens captions settings dialog":", 캡션 설정 대화 상자가 열립니다",", opens subtitles settings dialog":", 자막 설정 대화 상자가 열립니다",", opens descriptions settings dialog":", 설명 설정 대화 상자가 열립니다",", selected":", 선택됨","captions settings":"캡션 설정","subtitles settings":"자막 설정","descriptions settings":"설명 설정","Text":"텍스트","White":"화이트","Black":"블랙","Red":"레드","Green":"그린","Blue":"블루","Yellow":"옐로우","Magenta":"마젠타","Cyan":"씨엉","Background":"배경","Window":"창","Transparent":"투명","Semi-Transparent":"반투명","Opaque":"불투명","Font Size":"폰트 크기","Text Edge Style":"텍스트 가장자리 스타일","None":"없음","Uniform":"균일","Font Family":"폰트 모음","Proportional Sans-Serif":"비례 산세리프체","Monospace Sans-Serif":"고정폭 산세리프체","Proportional Serif":"비례 세리프체","Monospace Serif":"고정폭 세리프체","Small Caps":"소문자","Reset":"리셋","restore all settings to the default values":"모든 설정을 기본값으로 복원","Done":"완료","Caption Settings Dialog":"캡션 설정 대화 상자","Beginning of dialog window. Escape will cancel and close the window.":"대화창 시작. Esc 키를 누르면 취소되고 창이 닫힙니다.","End of dialog window.":"대화창 종료","{1} is loading.":"{1}이(가) 로딩 중입니다.","Exit Picture-in-Picture":"Picture-in-Picture 종료","Picture-in-Picture":"Picture-in-Picture"}')},7456:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Audio atskaņotājs","Video Player":"Video atskaņotājs","Play":"Atskaņot","Pause":"Pauzēt","Replay":"Atkārtot","Current Time":"Esošais laiks","Duration":"Ilgums","Remaining Time":"Atlikušais laiks","Stream Type":"Straumes veids","LIVE":"LIVE","Seek to live, currently behind live":"Pāriet uz tiešraidi","Seek to live, currently playing live":"Pāriet uz tiešraidi","Loa
475ded":"Ielādēts","Progress":"Progress","Progress Bar":"Progresa josla","progress bar timing: currentTime={1} duration={2}":"{1} no {2}","Fullscreen":"Pilnekrāna režīms","Non-Fullscreen":"Iziet no pilnekrāna režīma","Mute":"Izslēgt skaņu","Unmute":"Ieslēgt skaņu","Playback Rate":"Atskaņošanas ātrums","Subtitles":"Subtitri","subtitles off":"Izslēgt subtitrus","Captions":"Paraksti","captions off":"Izslēgt parakstus","Chapters":"Temati","Descriptions":"Apraksti","descriptions off":"Izslēgt aprakstus","Audio Track":"Audio celiņš","Volume Level":"Skaļums","You aborted the media playback":"Atskaņošana atcelta","A network error caused the media download to fail part-way.":"Tīkla kļūdas dēļ, multivides lejupielāde neizdevās.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Neizdevās ielādēt multividi, iespējams severa, vai tīkla kļūmes dēļ, vai neatbalstīta formāta dēļ.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Atskaņošana tika pārtraukta tīkla kļūmes dēļ vai pārlūkprogrammas iespēju trūkuma dēļ.","No compatible source was found for this media.":"Netika atrasts atbilstošs multivides avots.","The media is encrypted and we do not have the keys to decrypt it.":"Multividi nevar atskaņot, jo tas ir kriptēts un nav pieejama dekriptēšanas atslēga.","Play Video":"Atskaņot video","Close":"Aizvērt","Close Modal Dialog":"Aizvērt logu","Modal Window":"Logs","This is a modal window":"Logs","This modal can be closed by pressing the Escape key or activating the close button.":"Šo logu var aizvērt, nospiežot uz aizvēršanas pogas vai taustiņa ESC.",", opens captions settings dialog":", atvērs parakstu logu",", opens subtitles settings dialog":", atvērs subtitru logu",", opens descriptions settings dialog":", atvērs aprakstu logu",", selected":", izvēlēts","captions settings":"parakstu iestatījumi","subtitles settings":"subtitru iestatījumi","descriptions settings":"aprakstu iestatījumi","Text":"Teksts","White":"Balts","Black":"Melns","Red":"Sarkans","Green":"Zaļš","Blue":"Zils","Yellow":"Dzeltens","Magenta":"Purpursarkana","Cyan":"Ciāna","Background":"Fons","Window":"Logs","Transparent":"Caurspīdīgs","Semi-Transparent":"Daļēji caurspīdīgs","Opaque":"Necaurspīdīgs","Font Size":"Šrifta izmērs","Text Edge Style":"Teksta ēnas stils","None":"Neviens","Raised":"Izvirzīts","Depressed":"Samazināts","Uniform":"Vienmērīgs","Dropshadow":"Ēnots","Font Family":"Šrifts","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"Atiestatīt","restore all settings to the default values":"atiestatīt iestatījumu uz noklusējumu","Done":"Gatavs","Caption Settings Dialog":"Parakstu iestatījumi","Beginning of dialog window. Escape will cancel and close the window.":"Paraksta iestatījumu sākums. Lai aizvērtu, spiediet ESC taustiņu.","End of dialog window.":"Parakstu iestatījumu loga beigas","{1} is loading.":"{1} ielādē.","Exit Picture-in-Picture":"Iziet no Attēls attēlā","Picture-in-Picture":"Attēls attēlā"}')},570:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lydspiller","Video Player":"Videospiller","Play":"Spill","Pause":"Pause","Replay":"Spill om igjen","Current Time":"Aktuell tid","Duration":"Varighet","Remaining Time":"Gjenstående tid","Stream Type":"Type strøm","LIVE":"DIREKTE","Seek to live, currently behind live":"Hopp til live, spiller tidligere i sendingen nå","Seek to live, currently playing live":"Hopp til live, spiller live nå","Loaded":"Lastet inn","Progress":"Framdrift","Progress Bar":"Framdriftsviser","progress bar timing: currentTime={1} duration={2}":"{1} av {2}","Fullscreen":"Fullskjerm","Non-Fullscreen":"Lukk fullskjerm","Mute":"Lyd av","Unmute":"Lyd på","Playback Rate":"Avspillingshastighet","Subt
475itles":"Teksting på","subtitles off":"Teksting av","Captions":"Teksting for hørselshemmede på","captions off":"Teksting for hørselshemmede av","Chapters":"Kapitler","Descriptions":"Beskrivelser","descriptions off":"beskrivelser av","Audio Track":"Lydspor","Volume Level":"Volumnivå","You aborted the media playback":"Du avbrøt avspillingen.","A network error caused the media download to fail part-way.":"En nettverksfeil avbrøt nedlasting av videoen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Videoen kunne ikke lastes ned, på grunn av nettverksfeil eller serverfeil, eller fordi formatet ikke er støttet.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Videoavspillingen ble avbrudt på grunn av ødelagte data eller fordi videoen ville gjøre noe som nettleseren din ikke har støtte for.","No compatible source was found for this media.":"Fant ikke en kompatibel kilde for dette mediainnholdet.","The media is encrypted and we do not have the keys to decrypt it.":"Mediefilen er kryptert og vi mangler nøkler for å dekryptere den.","Play Video":"Spill av video","Close":"Lukk","Close Modal Dialog":"Lukk dialogvinduet","Modal Window":"Dialogvindu","This is a modal window":"Dette er et dialogvindu","This modal can be closed by pressing the Escape key or activating the close button.":"Vinduet kan lukkes ved å trykke på Escape-tasten eller lukkeknappen.",", opens captions settings dialog":", åpner innstillinger for teksting for hørselshemmede",", opens subtitles settings dialog":", åpner innstillinger for teksting",", opens descriptions settings dialog":", åpner innstillinger for beskrivelser",", selected":", valgt","captions settings":"innstillinger for teksting","subtitles settings":"innstillinger for teksting","descriptions settings":"innstillinger for beskrivelser","Text":"Tekst","White":"Hvit","Black":"Svart","Red":"Rød","Green":"Grønn","Blue":"Blå","Yellow":"Gul","Magenta":"Magenta","Cyan":"Turkis","Background":"Bakgrunn","Window":"Vindu","Transparent":"Gjennomsiktig","Semi-Transparent":"Delvis gjennomsiktig","Opaque":"Ugjennomsiktig","Font Size":"Tekststørrelse","Text Edge Style":"Tekstkant","None":"Ingen","Raised":"Uthevet","Depressed":"Nedtrykt","Uniform":"Enkel","Dropshadow":"Skygge","Font Family":"Skrifttype","Proportional Sans-Serif":"Proporsjonal skrift uten seriffer","Monospace Sans-Serif":"Fastbreddeskrift uten seriffer","Proportional Serif":"Proporsjonal skrift med seriffer","Monospace Serif":"Fastbreddeskrift med seriffer","Casual":"Uformell","Script":"Skråskrift","Small Caps":"Kapitéler","Reset":"Tilbakestill","restore all settings to the default values":"tilbakestill alle innstillinger til standardverdiene","Done":"Ferdig","Caption Settings Dialog":"Innstillingsvindu for teksting for hørselshemmede","Beginning of dialog window. Escape will cancel and close the window.":"Begynnelse på dialogvindu. Trykk Escape for å avbryte og lukke vinduet.","End of dialog window.":"Avslutning på dialogvindu.","{1} is loading.":"{1} laster."}')},5168:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Audiospeler","Video Player":"Videospeler","Play":"Afspelen","Pause":"Pauzeren","Replay":"Opnieuw afspelen","Current Time":"Huidige tijd","Duration":"Tijdsduur","Remaining Time":"Resterende tijd","Stream Type":"Streamtype","LIVE":"LIVE","Loaded":"Geladen","Progress":"Voortgang","Progress Bar":"Voortgangsbalk","progress bar timing: currentTime={1} duration={2}":"{1} van {2}","Fullscreen":"Volledig scherm","Non-Fullscreen":"Geen volledig scherm","Mute":"Dempen","Unmute":"Niet dempen","Playback Rate":"Afspeelsnelheid","Subtitles":"Ondertiteling","subtitles off":"ondertiteling uit","Captions":"Bijschriften","captions off":"bijschriften uit","Chapters":"Hoofdstukken","Descriptions":"Beschrijvingen","de
475scriptions off":"beschrijvingen uit","Audio Track":"Audiospoor","Volume Level":"Geluidsniveau","You aborted the media playback":"U heeft het afspelen van de media afgebroken","A network error caused the media download to fail part-way.":"Een netwerkfout heeft ervoor gezorgd dat het downloaden van de media halverwege is mislukt.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"De media kon niet worden geladen, dit komt doordat of de server of het netwerk mislukt of doordat het formaat niet wordt ondersteund.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Het afspelen van de media is afgebroken door een probleem met beschadeigde gegevens of doordat de media functies gebruikt die uw browser niet ondersteund.","No compatible source was found for this media.":"Er is geen geschikte bron voor deze media gevonden.","The media is encrypted and we do not have the keys to decrypt it.":"De media is versleuteld en we hebben de sleutels niet om deze te ontsleutelen.","Play Video":"Video afspelen","Close":"Sluiten","Close Modal Dialog":"Extra venster sluiten","Modal Window":"Extra venster","This is a modal window":"Dit is een extra venster","This modal can be closed by pressing the Escape key or activating the close button.":"Dit venster kan worden gesloten door op de Escape-toets te drukken of door de sluiten-knop te activeren.",", opens captions settings dialog":", opent instellingen-venster voor bijschriften",", opens subtitles settings dialog":", opent instellingen-venster voor ondertitelingen",", opens descriptions settings dialog":", opent instellingen-venster voor beschrijvingen",", selected":", geselecteerd","captions settings":"bijschriften-instellingen","subtitles settings":"ondertiteling-instellingen","descriptions settings":"beschrijvingen-instellingen","Text":"Tekst","White":"Wit","Black":"Zwart","Red":"Rood","Green":"Groen","Blue":"Blauw","Yellow":"Geel","Magenta":"Magenta","Cyan":"Cyaan","Background":"Achtergrond","Window":"Venster","Transparent":"Transparant","Semi-Transparent":"Semi-transparant","Opaque":"Ondoorzichtig","Font Size":"Lettergrootte","Text Edge Style":"Stijl tekstrand","None":"Geen","Raised":"Verhoogd","Depressed":"Ingedrukt","Uniform":"Uniform","Dropshadow":"Schaduw","Font Family":"Lettertype","Proportional Sans-Serif":"Proportioneel sans-serif","Monospace Sans-Serif":"Monospace sans-serif","Proportional Serif":"Proportioneel serif","Monospace Serif":"Monospace serif","Casual":"Luchtig","Script":"Script","Small Caps":"Kleine hoofdletters","Reset":"Herstellen","restore all settings to the default values":"alle instellingen naar de standaardwaarden herstellen","Done":"Klaar","Caption Settings Dialog":"Venster voor bijschriften-instellingen","Beginning of dialog window. Escape will cancel and close the window.":"Begin van dialoogvenster. Escape zal annuleren en het venster sluiten.","End of dialog window.":"Einde van dialoogvenster."}')},6997:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lydspelar","Video Player":"Videospelar","Play":"Spel","Pause":"Pause","Replay":"Spel om att","Current Time":"Aktuell tid","Duration":"Varigheit","Remaining Time":"Tid attende","Stream Type":"Type straum","LIVE":"DIREKTE","Seek to live, currently behind live":"Hopp til live, spelar tidlegare i sendinga no","Seek to live, currently playing live":"Hopp til live, speler live no","Loaded":"Lasta inn","Progress":"Framdrift","Progress Bar":"Framdriftsvisar","progress bar timing: currentTime={1} duration={2}":"{1} av {2}","Fullscreen":"Fullskjerm","Non-Fullscreen":"Stenga fullskjerm","Mute":"Lyd av","Unmute":"Lyd på","Playback Rate":"Avspelingshastigheit","Subtitles":"Teksting på","subtitles off":"Teksting av","Captions":"Teksting for høyrselshemma på","captions off":"Teksting for høyrselshemma av","Chapters":"Kapitel","Descriptions":"Beskrivingar","descriptions off":"beskrivingar av","Audio Track":"Lydspor","Volume Level":"Volumnivå","You aborted the media playback":"Du avbraut avspelinga.","A network error caused the media download to fail part-way.":"Ein nettverksfeil avbraut nedlasting av videoen.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Videoen kunne ikkje lastas ned, på grunn av ein nettverksfeil eller serverfeil, eller av di formatet ikkje er stoda.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Videoavspelinga blei broten på grunn av øydelagde data eller av di videoen ville gjera noe som nettlesaren din ikkje stodar.","No compatible source was found for this media.":"Fant ikke en kompatibel kilde for dette mediainnholdet.","The media is encrypted and we do not have the keys to decrypt it."
475:"Mediefila er kryptert og vi manglar nyklar for å dekryptere ho.","Play Video":"Spel av video","Close":"Lukk","Close Modal Dialog":"Lukk dialogvindauge","Modal Window":"Dialogvindauge","This is a modal window":"Dette er eit dialogvindauge","This modal can be closed by pressing the Escape key or activating the close button.":"Vindauget kan lukkast ved å trykke på Escape-tasten eller lukkeknappen.",", opens captions settings dialog":", opnar innstillingar for teksting for høyrselshemma",", opens subtitles settings dialog":", opnar innstillingar for teksting",", opens descriptions settings dialog":", opnar innstillingar for beskrivingar",", selected":", vald","captions settings":"innstillingar for teksting","subtitles settings":"innstillingar for teksting","descriptions settings":"innstillingar for skildringar","Text":"Tekst","White":"Kvit","Black":"Svart","Red":"Raud","Green":"Grøn","Blue":"Blå","Yellow":"Gul","Magenta":"Magenta","Cyan":"Turkis","Background":"Bakgrunn","Window":"Vindauge","Transparent":"Gjennomsiktig","Semi-Transparent":"Delvis gjennomsiktig","Opaque":"Ugjennomsiktig","Font Size":"Tekststorleik","Text Edge Style":"Tekstkant","None":"Ingen","Raised":"Utheva","Depressed":"Nedtrykt","Uniform":"Enkel","Dropshadow":"Skugge","Font Family":"Skrifttype","Proportional Sans-Serif":"Proporsjonal skrift utan seriffar","Monospace Sans-Serif":"Fastbreddeskrift utan seriffar","Proportional Serif":"Proporsjonal skrift med seriffar","Monospace Serif":"Fastbreddeskrift med seriffar","Casual":"Uformell","Script":"Skråskrift","Small Caps":"Kapitéler","Reset":"Tilbakestell","restore all settings to the default values":"tilbakestell alle innstillingar til standardverdiane","Done":"Ferdig","Caption Settings Dialog":"Innstillingsvindauge for teksting for høyrselshemma","Beginning of dialog window. Escape will cancel and close the window.":"Byrjing på dialogvindauge. Trykk Escape for å avbryte og lukke vindauget.","End of dialog window.":"Avslutning på dialogvindauge.","{1} is loading.":"{1} lastar."}')},7315:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Lector àudio","Video Player":"Lector vidèo","Play":"Lectura","Pause":"Pausa","Replay":"Tornar legir","Current Time":"Durada passada","Duration":"Durada","Remaining Time":"Temps restant","Stream Type":"Tipe de difusion","LIVE":"DIRÈCTE","Seek to live, currently behind live":"Trapar lo dirècte, actualament darrièr lo dirècte","Seek to live, currently playing live":"Trapar lo dirècte, actualament lo dirècte es en lectura","Loaded":"Cargat","Progress":"Progression","Progress Bar":"Barra de progression","progress bar timing: currentTime={1} duration={2}":"{1} sus {2}","Fullscreen":"Ecran complèt","Non-Fullscreen":"Pas en ecran complèt","Mute":"Copar lo son","Unmute":"Restablir lo son","Playback Rate":"Velocitat de lectura","Subtitles":"Sostítols","subtitles off":"Sostítols desactivats","Captions":"Legendas","captions off":"Legendas desactivadas","Chapters":"Capítols","Descriptions":"Descripcions","descriptions off":"descripcions desactivadas","Audio Track":"Pista àudio","Volume Level":"Nivèl del volum","You aborted the media playback":"Avètz copat la lectura del mèdia.","A network error caused the media download to fail part-way.":"Una error de ret a provocat un fracàs del telecargament.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Lo mèdia a pas pogut èsser cargat, siá perque lo servidor o lo ret a fracassat siá perque lo format es pas compatible.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La lectura del mèdia es copada a causa d’un problèma de corrupcion o perque lo mèdia utiliza de foncionalitats pas suportadas pel navigador.","No compatible source was found for this media.":"Cap de font compatiblas pas trobada per aqueste mèdia.","The media is encrypted and we do not have the keys to decrypt it.":"Lo mèdia es chifrat e avèm pas las claus per lo deschifrar.","Play Video":"Legir la vidèo","Close":"Tampar","Close Mod
475al Dialog":"Tampar la fenèstra","Modal Window":"Fenèstra","This is a modal window":"Aquò es una fenèstra","This modal can be closed by pressing the Escape key or activating the close button.":"Aquesta fenèstra pòt èsser tampada en quichar Escapar sul clavièr o en activar lo boton de tampadura.",", opens captions settings dialog":", dobrís la fenèstra de paramètres de legendas",", opens subtitles settings dialog":", dobrís la fenèstra de paramètres de sostítols",", opens descriptions settings dialog":", dobrís la fenèstra de paramètres de descripcions",", selected":", seleccionat","captions settings":"paramètres de legendas","subtitles settings":"paramètres de sostítols","descriptions settings":"paramètres de descripcions","Text":"Tèxte","White":"Blanc","Black":"Negre","Red":"Roge","Green":"Verd","Blue":"Blau","Yellow":"Jaune","Magenta":"Magenta","Cyan":"Cian","Background":"Rèireplan","Window":"Fenèstra","Transparent":"Transparent","Semi-Transparent":"Semitransparent","Opaque":"Opac","Font Size":"Talha de la polissa","Text Edge Style":"Estil dels contorns del tèxte","None":"Cap","Raised":"Naut","Depressed":"Enfonsat","Uniform":"Unifòrme","Dropshadow":"Ombrat","Font Family":"Familha de polissa","Proportional Sans-Serif":"Sans-Serif proporcionala","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Serif proporcionala","Monospace Serif":"Serif proporcionala","Casual":"Manuscrita","Script":"Script","Small Caps":"Pichonas majusculas","Reset":"Reïnicializar","restore all settings to the default values":"O restablir tot a las valors per defaut","Done":"Acabat","Caption Settings Dialog":"Fenèstra de paramètres de legenda","Beginning of dialog window. Escape will cancel and close the window.":"Debuta de la fenèstra. Escapar anullarà e tamparà la fenèstra","End of dialog window.":"Fin de la fenèstra.","{1} is loading.":"{1} es a cargar."}')},8040:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Odtwarzacz audio","Video Player":"Odtwarzacz wideo","Play":"Odtwarzaj","Pause":"Pauza","Replay":"Odtwórz ponownie","Current Time":"Aktualny czas","Duration":"Czas trwania","Remaining Time":"Pozostały czas","Stream Type":"Typ strumienia","LIVE":"NA ŻYWO","Loaded":"Załadowany","Progress":"Status","Progress Bar":"Pasek stanu","Fullscreen":"Pełny ekran","Non-Fullscreen":"Pełny ekran niedostępny","Mute":"Wyłącz dźwięk","Unmute":"Włącz dźwięk","Playback Rate":"Szybkość odtwarzania","Subtitles":"Napisy","subtitles off":"Napisy wyłączone","Captions":"Transkrypcja","captions off":"Transkrypcja wyłączona","Chapters":"Rozdziały","Descriptions":"Opisy","descriptions off":"Opisy wyłączone","Audio Track":"Ścieżka audio","Volume Level":"Poziom głośności","You aborted the media playback":"Odtwarzanie zostało przerwane","A network error caused the media download to fail part-way.":"Problemy z siecią spowodowały błąd przy pobieraniu materiału wideo.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Materiał wideo nie może być załadowany, ponieważ wystąpił problem z siecią lub format nie jest obsługiwany","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Odtwarzanie materiału wideo zostało przerwane z powodu uszkodzonego pliku wideo lub z powodu błędu funkcji, które nie są wspierane przez przeglądarkę.","No compatible source was found for this media.":"Dla tego materiału wideo nie znaleziono kompatybilnego źródła.","The media is encrypted and we do not have the keys to decrypt it.":"Źródło jest zaszyfrowane i nie mamy kluczy do jego odszyfrowania.","Play Video":"Odtwarzaj wideo","Close":"Zamknij","Close Modal Dialog":"Zamknij okno modala","Modal Window":"Okno modala","This is a modal window":"To jest okno modala","This modal can be closed by pressing the Escape key or activating the close button.":"Ten modal możesz zamknąć naciskając przycisk Escape albo wybierając przycisk Zamknij.",", opens captions settings dialog":", otwiera okno dialogowe ustawień transkrypcji",", opens subtitles settings dialog":", otwiera okno dialogowe napisów",", opens descriptions settings dialog":", otwiera okno dialogowe opisów",", selected":", zaznaczone","captions settings":"ustawienia transkrypcji","subtitles settings":"ustawienia napisów","descriptions settings":"ustawienia opisów","Text":"Tekst","White":"Biały","Black":"Czarny","Red":"Czerwony","Green":"Zielony","Blue":"Niebieski","Yellow":"Żółty","Magenta":"Magenta","Cyan":"Cyjan","Backgroun
475d":"Tło","Window":"Okno","Transparent":"Przezroczysty","Semi-Transparent":"Półprzezroczysty","Opaque":"Nieprzezroczysty","Font Size":"Rozmiar czcionki","Text Edge Style":"Styl krawędzi tekstu","None":"Brak","Raised":"Podniesiony","Depressed":"Obniżony","Uniform":"Równomierny","Dropshadow":"Cień","Font Family":"Czcionka","Reset":"Ustawienia domyślne","restore all settings to the default values":"zresetuj wszystkie ustawienia do domyślnych wartości","Done":"Gotowe","Caption Settings Dialog":"Okno dialogowe ustawień transkrypcji","Beginning of dialog window. Escape will cancel and close the window.":"Początek okna dialogowego. Escape anuluje i zamknie okno.","End of dialog window.":"Koniec okna dialogowego.","Exit Picture-in-Picture":"Wyjdź z trybu obraz w obrazie","Picture-in-Picture":"Obraz w obrazie"}')},5166:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Reprodutor de áudio","Video Player":"Reprodutor de vídeo","Play":"Tocar","Pause":"Pausar","Replay":"Tocar novamente","Current Time":"Tempo","Duration":"Duração","Remaining Time":"Tempo Restante","Stream Type":"Tipo de Stream","LIVE":"AO VIVO","Loaded":"Carregado","Progress":"Progresso","Progress Bar":"Barra de progresso","progress bar timing: currentTime={1} duration={2}":"{1} de {2}","Fullscreen":"Tela Cheia","Non-Fullscreen":"Tela Normal","Mute":"Mudo","Unmute":"Habilitar Som","Playback Rate":"Velocidade","Subtitles":"Legendas","subtitles off":"Sem Legendas","Captions":"Anotações","captions off":"Sem Anotações","Chapters":"Capítulos","Descriptions":"Descrições","descriptions off":"sem descrições","Audio Track":"Faixa de áudio","Volume Level":"Nível de volume","You aborted the media playback":"Você parou a execução do vídeo.","A network error caused the media download to fail part-way.":"Um erro na rede causou falha durante o download da mídia.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"A mídia não pode ser carregada, por uma falha de rede ou servidor ou o formato não é suportado.","No compatible source was found for this media.":"Nenhuma fonte foi encontrada para esta mídia.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A reprodução foi interrompida devido à um problema de mídia corrompida ou porque a mídia utiliza funções que seu navegador não suporta.","The media is encrypted and we do not have the keys to decrypt it.":"A mídia está criptografada e não temos as chaves para descriptografar.","Play Video":"Tocar Vídeo","Close":"Fechar","Close Modal Dialog":"Fechar Diálogo Modal","Modal Window":"Janela Modal","This is a modal window":"Isso é uma janela-modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta janela pode ser fechada pressionando a tecla de Escape.",", opens captions settings dialog":", abre as configurações de legendas de comentários",", opens subtitles settings dialog":", abre as configurações de legendas",", opens descriptions settings dialog":", abre as configurações",", selected":", selecionada","captions settings":"configurações de legendas de comentários","subtitles settings":"configurações de legendas","descriptions settings":"configurações das descrições","Text":"Texto","White":"Branco","Black":"Preto","Red":"Vermelho","Green":"Verde","Blue":"Azul","Yellow":"Amarelo","Magenta":"Magenta","Cyan":"Ciano","Background":"Plano-de-Fundo","Window":"Janela","Transparent":"Transparente","Semi-Transparent":"Semi-Transparente","Opaque":"Opaco","Font Size":"Tamanho da Fonte","Text Edge Style":"Estilo da Borda","None":"Nenhum","Raised":"Elevado","Depressed":"Acachapado","Uniform":"Uniforme","Dropshadow":"Sombra de projeção","Font Family":"Família da Fonte","Proportional Sans-Serif":"Sans-Serif(Sem serifa) Proporcional","Monospace Sans-Serif":"Sans-Serif(Sem serifa) Monoespaçada","Proportional Serif":"Serifa Proporcional","Monospace Serif":"Serifa Monoespaçada","Casual":"Casual","Script":"Script","Small Caps":"Maiúsculas Pequenas","Reset":"Redefinir","restore all settings to the default values":"restaurar todas as configurações aos valores padrão","Done":"Salvar","Caption Settings Dialog":"Caíxa-de-Diálogo das configurações de Legendas","Beginning of dialog window. Escape will cancel and close the window.":"Iniciando a Janela-de-Diálogo. Pressionar Escape irá cancelar e fechar a janela.","End of dialog window.":"Fim da Janela-de-Diálogo","{1} is loading.":"{1} está carregando.","Exit Picture-in-Picture":"Sair de Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture"}')},3129:e=>{"use strict";e.exports=JSON.parse('{"Play":"Reproduzir","Pause":"Parar","Replay":"Reiniciar","Current Time":"Tempo Atual","Duration":"Duração","Remaining Time":"Tempo Restante","Stream Type":"Tipo de Stream","LIVE":"EM DIRETO","Loaded":"Carregado","Progress":"Progresso","Fullscreen":"Ecrã inteiro","Non-Fullscreen":"Ecrã normal","Mute":"Desativar som","Unmute":"Ativar som","Playback Rate":"Velocidade de reprodução","Subtitles":"Legendas","subtitles off":"desativar legendas","Captions":"Anotações","captions off":"desativar anotações","Chapters":"Capítulos","Close Mod
475al Dialog":"Fechar Janela Modal","Descriptions":"Descrições","descriptions off":"desativar descrições","Audio Track":"Faixa Áudio","You aborted the media playback":"Parou a reprodução do vídeo.","A network error caused the media download to fail part-way.":"Um erro na rede fez o vídeo falhar parcialmente.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"O vídeo não pode ser carregado, ou porque houve um problema na rede ou no servidor, ou porque formato do vídeo não é compatível.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"A reprodução foi interrompida por um problema com o vídeo ou porque o formato não é compatível com o seu navegador.","No compatible source was found for this media.":"Não foi encontrada uma fonte de vídeo compatível.","The media is encrypted and we do not have the keys to decrypt it.":"O vídeo está encriptado e não há uma chave para o desencriptar.","Play Video":"Reproduzir Vídeo","Close":"Fechar","Modal Window":"Janela Modal","This is a modal window":"Isto é uma janela modal","This modal can be closed by pressing the Escape key or activating the close button.":"Esta modal pode ser fechada pressionando a tecla ESC ou ativando o botão de fechar.",", opens captions settings dialog":", abre janela com definições de legendas",", opens subtitles settings dialog":", abre janela com definições de legendas",", opens descriptions settings dialog":", abre janela com definições de descrições",", selected":", seleccionado"}')},9056:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Player audio","Video Player":"Player video","Play":"Piesă","Pause":"Pauză","Replay":"Reluare","Current Time":"Ora curentă","Duration":"Durată","Remaining Time":"Timp rămas","Stream Type":"Tip flux","LIVE":"ÎN DIRECT","Seek to live, currently behind live":"Căutare în direct; în prezent, sunteți în urmă","Seek to live, currently playing live":"Căutare în direct; în prezent, se redă în direct","Loaded":"Încărcat","Progress":"Progres","Progress Bar":"Bară de progres","progress bar timing: currentTime={1} duration={2}":"{1} din {2}","Fullscreen":"Ecran complet","Non-Fullscreen":"Ecran parțial","Mute":"Suprimare sunet","Unmute":"Activare sunet","Playback Rate":"Rată de redare","Subtitles":"Subtitrări","subtitles off":"subtitrări dezactivate","Captions":"Indicații scrise","captions off":"indicații scrise dezactivate","Chapters":"Capitole","Descriptions":"Descrieri","descriptions off":"descrieri dezactivate","Audio Track":"Pistă audio","Volume Level":"Nivel volum","You aborted the media playback":"Ați abandonat redarea media","A network error caused the media download to fail part-way.":"O eroare de rețea a provocat eșecul descărcării conținutului media în timpul procesului.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Conținutul media nu a putut fi încărcat, fie pentru că serverul sau rețeaua a eșuat, fie pentru că formatul nu este acceptat.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Redarea media a fost întreruptă din cauza conținutului corupt sau din cauza faptului că acest conținut media folosește funcții pe care browserul dvs. nu le acceptă.","No compatible source was found for this media.":"Nu au fost găsite surse compatibile pentru acest conținut media.","The media is encrypted and we do not have the keys to decrypt it.":"Conținutul media este criptată și nu avem cheile pentru decriptare.","Play Video":"Redare video","Close":"Închidere","Close Modal Dialog":"Închidere dialog modal","Modal Window":"Fereastră modală","This is a modal window":"Aceasta este o fereastră modală","This modal can be closed by pressing the Escape key or activating the close button.":"Această fereastră modală poate fi închisă cu tasta Escape sau butonul de închidere.",", opens captions settings dialog":", deschide dialogul de setări pentru indicații scrise",", opens subtitles settings dialog":", deschide dialogul de setări pentru subtitrări",", opens descriptions settings dialog":", deschide dialogul de setări pentru descrieri",", selected":", selectat","captions settings":"setări indicații scrise","subtitles settings":"setări subtitrări","descriptions settings":"setări descrieri","Text":"Text","White":"Alb","Black":"Negru","Red":"Roșu","Green":"Verde","Blue":"Albastru","Yellow":"Galben","Magenta":"Magenta","Cyan":"Cyan","Backgroun
475d":"Fundal","Window":"Fereastră","Transparent":"Transparent","Semi-Transparent":"Semitransparent","Opaque":"Opac","Font Size":"Mărime font","Text Edge Style":"Stil margine text","None":"Fără","Raised":"Ridicat","Depressed":"Apăsat","Uniform":"Uniformă","Dropshadow":"Umbră","Font Family":"Familie fonturi","Proportional Sans-Serif":"Sans-serif proporțional","Monospace Sans-Serif":"Sans-serif monospațiu","Proportional Serif":"Serif proporțional","Monospace Serif":"Serif monospațiu","Casual":"Informal","Script":"Script","Small Caps":"Majuscule mici","Reset":"Resetare","restore all settings to the default values":"readuceți toate setările la valorile implicite","Done":"Terminat","Caption Settings Dialog":"Dialog setări indicații scrise","Beginning of dialog window. Escape will cancel and close the window.":"Începutul ferestrei de dialog. Tasta Escape va anula și va închide fereastra.","End of dialog window.":"Sfârșitul ferestrei de dialog.","{1} is loading.":"{1} se încarcă.","Exit Picture-in-Picture":"Închidere imagine în imagine","Picture-in-Picture":"Imagine în imagine"}')},3178:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Аудио проигрыватель","Video Player":"Видео проигрыватель","Play":"Воспроизвести","Pause":"Приостановить","Replay":"Воспроизвести снова","Current Time":"Текущее время","Duration":"Продолжительность","Remaining Time":"Оставшееся время","Stream Type":"Тип потока","LIVE":"ОНЛАЙН","Loaded":"Загрузка","Progress":"Прогресс","Progress Bar":"Индикатор загрузки","progress bar timing: currentTime={1} duration={2}":"{1} из {2}","Fullscreen":"Полноэкранный режим","Non-Fullscreen":"Неполноэкранный режим","Mute":"Без звука","Unmute":"Со звуком","Playback Rate":"Скорость воспроизведения","Subtitles":"Субтитры","subtitles off":"Субтитры выкл.","Captions":"Подписи","captions off":"Подписи выкл.","Chapters":"Главы","Descriptions":"Описания","descriptions off":"Отключить описания","Audio Track":"Звуковая дорожка","Volume Level":"Уровень громкости","You aborted the media playback":"Вы прервали воспроизведение видео","A network error caused the media download to fail part-way.":"Ошибка сети вызвала сбой во время загрузки видео.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Невозможно загрузить видео из-за сетевого или серверного сбоя либо формат не поддерживается.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Воспроизведение видео было приостановлено из-за повреждения либо в связи с тем, что видео использует функции, неподдерживаемые вашим браузером.","No compatible source was found for this media.":"Совместимые источники для этого видео отсутствуют.","The media is encrypted and we do not have the keys to decrypt it.":"Видео в зашифрованном виде, и у нас нет ключей для расшифровки.","Play Video":"Воспроизвести видео","Close":"Закрыть","Close Modal Dialog":"Закрыть модальное окно","Modal Window":"Модальное окно","This is a modal window":"Это модальное окно","This modal can be closed by pressing the Escape key or activating the close button.":"Модальное окно можно закрыть нажав Esc или кнопку закрытия окна.",", opens captions settings dialog":", откроется диалог настройки подписей",", opens subtitles settings dialog":", откроется диалог настройки субтитров",", opens descriptions settings dialog":", откроется диалог настройки описаний",", selected":", выбрано","captions settings":"настройки подписей","subtitles settings":"настройки субтитров","descriptions settings":"настройки описаний","Text":"Текст","White":"Белый","Black":"Черный","Red":"Красный","Green":"Зеленый","Blue":"Синий","Yellow":"Желтый","Magenta":"Пурпурный","Cyan":"Голубой","Backgroun
475d":"Фон","Window":"Окно","Transparent":"Прозрачный","Semi-Transparent":"Полупрозрачный","Opaque":"Прозрачность","Font Size":"Размер шрифта","Text Edge Style":"Стиль края текста","None":"Ничего","Raised":"Поднятый","Depressed":"Пониженный","Uniform":"Одинаковый","Dropshadow":"Тень","Font Family":"Шрифт","Proportional Sans-Serif":"Пропорциональный без засечек","Monospace Sans-Serif":"Моноширинный без засечек","Proportional Serif":"Пропорциональный с засечками","Monospace Serif":"Моноширинный с засечками","Casual":"Случайный","Script":"Письменный","Small Caps":"Малые прописные","Reset":"Сбросить","restore all settings to the default values":"сбросить все найстройки по умолчанию","Done":"Готово","Caption Settings Dialog":"Диалог настроек подписи","Beginning of dialog window. Escape will cancel and close the window.":"Начало диалоговго окна. Кнопка Escape закроет или отменит окно","End of dialog window.":"Конец диалогового окна.","{1} is loading.":"{1} загружается."}')},6225:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Zvukový prehrávač","Video Player":"Video prehrávač","Play":"Prehrať","Pause":"Pozastaviť","Replay":"Prehrať znova","Current Time":"Aktuálny čas","Duration":"Čas trvania","Remaining Time":"Zostávajúci čas","Stream Type":"Typ stopy","LIVE":"NAŽIVO","Loaded":"Načítané","Progress":"Priebeh","Progress Bar":"Ukazovateľ priebehu","progress bar timing: currentTime={1} duration={2}":"časovanie ukazovateľa priebehu: currentTime={1} duration={2}","Fullscreen":"Režim celej obrazovky","Non-Fullscreen":"Režim normálnej obrazovky","Mute":"Stlmiť","Unmute":"Zrušiť stlmenie","Playback Rate":"Rýchlosť prehrávania","Subtitles":"Titulky","subtitles off":"titulky vypnuté","Captions":"Popisky","captions off":"popisky vypnuté","Chapters":"Kapitoly","Descriptions":"Opisy","descriptions off":"opisy vypnuté","Audio Track":"Zvuková stopa","Volume Level":"Úroveň hlasitosti","You aborted the media playback":"Prerušili ste prehrávanie","A network error caused the media download to fail part-way.":"Sťahovanie súboru bolo zrušené pre chybu na sieti.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Súbor sa nepodarilo načítať pre chybu servera, sieťového pripojenia, alebo je formát súboru nepodporovaný.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Prehrávanie súboru bolo prerušené pre poškodené dáta, alebo súbor používa vlastnosti, ktoré váš prehliadač nepodporuje.","No compatible source was found for this media.":"Nebol nájdený žiaden kompatibilný zdroj pre tento súbor.","The media is encrypted and we do not have the keys to decrypt it.":"Súbor je zašifrovaný a nie je k dispozícii kľúč na rozšifrovanie.","Play Video":"Prehrať video","Close":"Zatvoriť","Close Modal Dialog":"Zatvoriť modálne okno","Modal Window":"Modálne okno","This is a modal window":"Toto je modálne okno","This modal can be closed by pressing the Escape key or activating the close button.":"Toto modálne okno je možné zatvoriť stlačením klávesy Escape, alebo aktivovaním tlačidla na zatvorenie.",", opens captions settings dialog":", otvorí okno nastavení popiskov",", opens subtitles settings dialog":", otvorí okno nastavení titulkov",", opens descriptions settings dialog":", otvorí okno nastavení opisov",", selected":", označené","captions settings":"nastavenia popiskov","subtitles settings":"nastavenia titulkov","descriptions settings":"nastavenia opisov","Text":"Text","White":"Biela","Black":"Čierna","Red":"Červená","Green":"Zelená","Blue":"Modrá","Yellow":"Žltá","Magenta":"Ružová","Cyan":"Tyrkysová","Backgroun
475d":"Pozadie","Window":"Okno","Transparent":"Priesvitné","Semi-Transparent":"Polopriesvitné","Opaque":"Plné","Font Size":"Veľkosť písma","Text Edge Style":"Typ okrajov písma","None":"Žiadne","Raised":"Zvýšené","Depressed":"Znížené","Uniform":"Pravidelné","Dropshadow":"S tieňom","Font Family":"Typ písma","Proportional Sans-Serif":"Proporčné bezpätkové","Monospace Sans-Serif":"Pravidelné, bezpätkové","Proportional Serif":"Proporčné pätkové","Monospace Serif":"Pravidelné pätkové","Casual":"Bežné","Script":"Písané","Small Caps":"Malé kapitálky","Reset":"Resetovať","restore all settings to the default values":"všetky nastavenia na základné hodnoty","Done":"Hotovo","Caption Settings Dialog":"Okno nastavení popiskov","Beginning of dialog window. Escape will cancel and close the window.":"Začiatok okna. Klávesa Escape zruší a zavrie okno.","End of dialog window.":"Koniec okna.","{1} is loading.":"{1} sa načíta."}')},8565:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Avdio predvajalnik","Video Player":"Video predvajalnik","Play":"Predvajaj","Pause":"Začasno ustavi","Replay":"Predvajaj ponovno","Current Time":"Trenutni čas","Duration":"Trajanje","Remaining Time":"Preostali čas","Stream Type":"Vrsta podatkovnega toka","LIVE":"V ŽIVO","Seek to live, currently behind live":"Spremljaj v živo (trenutno v zaostanku)","Seek to live, currently playing live":"Spremljaj v živo (trenutno v živo)","Loaded":"Naloženo","Progress":"Napredek","Progress Bar":"Vrstica napredka","progress bar timing: currentTime={1} duration={2}":"{1} od {2}","Fullscreen":"Celozaslonski prikaz","Non-Fullscreen":"Prikaz na delu zaslona","Mute":"Izključi zvok","Unmute":"Vključi zvok","Playback Rate":"Hitrost predvajanja","Subtitles":"Podnapisi","subtitles off":"podnapisi izklopljeni","Captions":"Zvočni zapis","captions off":"zvočni zapis izklopljen","Chapters":"Poglavja","Descriptions":"Opisi","descriptions off":"opisi izklopljeni","Audio Track":"Zvočni posnetek","Volume Level":"Raven glasnosti","You aborted the media playback":"Prekinili ste predvajanje.","A network error caused the media download to fail part-way.":"Prenos multimedijske datoteke ni uspel zaradi napake v omrežju.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Multimedijske datoteke ni bilo mogoče naložiti zaradi napake na strežniku oziroma omrežju ali ker ta oblika ni podprta.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Predvajanje datoteke je bilo prekinjeno zaradi napak v datoteki ali ker uporablja funkcije, ki jih brskalnik ne podpira.","No compatible source was found for this media.":"Za to datoteko ni bil najden noben združljiv vir.","The media is encrypted and we do not have the keys to decrypt it.":"Datoteka je šifrirana in predvajalnik nima ključev za njeno dešifriranje.","Play Video":"Predvajaj","Close":"Zapri","Close Modal Dialog":"Zapri modalno okno","Modal Window":"Modalno okno","This is a modal window":"To je modalno okno","This modal can be closed by pressing the Escape key or activating the close button.":"To okno lahko zaprete s pritiskom na tipko Escape ali z aktiviranjem gumba za zapiranje.",", opens captions settings dialog":", odpre nastavitve za zvočni zapis",", opens subtitles settings dialog":", odpre nastavitve za podnapise",", opens descriptions settings dialog":", odpre nastavitve za opis",", selected":", izbrano","captions settings":"nastavitve zvočnega zapisa","subtitles settings":"nastavitve podnapisov","descriptions settings":"nastavitve opisa","Text":"Tekst","White":"Bela","Black":"Črna","Red":"Rdeča","Green":"Zelena","Blue":"Modra","Yellow":"Rumena","Magenta":"Magenta","Cyan":"Cian","Background":"Ozadje","Window":"Okno","Transparent":"Prozorno","Semi-Transparent":"Delno prozorno","Opaque":"Neprozorno","Font Size":"Velikost pisave","Text Edge Style":"Slog roba besedila","None":"Brez","Raised":"Dvignjeno","Depressed":"Vtisnjeno","Uniform":"Enakomerno","Dropshadow":"S senco","Font Family":"Družina pisave","Small Caps":"Male črke","Reset":"Ponastavi","restore all settings to the default values":"obnovi vse nastav
475itve na privzete vrednosti","Done":"Končano","Caption Settings Dialog":"Pogovorno okno za nastavitve zvočnega zapisa","Beginning of dialog window. Escape will cancel and close the window.":"Začetek pogovornega okna. Escape bo preklical in zaprl okno.","End of dialog window.":"Konec pogovornega okna.","{1} is loading.":"{1} se nalaga.","Exit Picture-in-Picture":"Izhod iz slike v sliki","Picture-in-Picture":"Slika v sliki"}')},9275:e=>{"use strict";e.exports=JSON.parse('{"Play":"Pusti","Pause":"Pauza","Current Time":"Trenutno vreme","Duration":"Vreme trajanja","Remaining Time":"Preostalo vreme","Stream Type":"Način strimovanja","LIVE":"UŽIVO","Loaded":"Učitan","Progress":"Progres","Fullscreen":"Pun ekran","Non-Fullscreen":"Mali ekran","Mute":"Prigušen","Unmute":"Ne-prigušen","Playback Rate":"Stopa reprodukcije","Subtitles":"Podnaslov","subtitles off":"Podnaslov deaktiviran","Captions":"Titlovi","captions off":"Titlovi deaktivirani","Chapters":"Poglavlja","You aborted the media playback":"Isključili ste reprodukciju videa.","A network error caused the media download to fail part-way.":"Video se prestao preuzimati zbog greške na mreži.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video se ne može reproducirati zbog servera, greške u mreži ili format nije podržan.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Reprodukcija videa je zaustavljenja zbog greške u formatu ili zbog verzije vašeg pretraživača.","No compatible source was found for this media.":"Nije nađen nijedan kompatibilan izvor ovog videa."}')},7046:e=>{"use strict";e.exports=JSON.parse('{", opens captions settings dialog":", öppnar dialogruta för textning",", opens descriptions settings dialog":", öppnar dialogruta för inställningar",", opens subtitles settings dialog":", öppnar dialogruta för undertexter",", selected":", vald","A network error caused the media download to fail part-way.":"Ett nätverksfel gjorde att nedladdningen av videon avbröts.","Audio Player":"Ljudspelare","Audio Track":"Ljudspår","Background":"Bakgrund","Beginning of dialog window. Escape will cancel and close the window.":"Början av dialogfönster. Escape avbryter och stänger fönstret.","Black":"Svart","Blue":"Blå","Caption Settings Dialog":"Dialogruta för textningsinställningar","Captions":"Text på","Casual":"Casual","Chapters":"Kapitel","Close":"Stäng","Close Modal Dialog":"Stäng dialogruta","Current Time":"Aktuell tid","Cyan":"Cyan","Depressed":"Deprimerad","Descriptions":"Beskrivningar","Done":"Klar","Dropshadow":"DropSkugga","Duration":"Total tid","End of dialog window.":"Slutet av dialogfönster.","Font Family":"Typsnittsfamilj","Font Size":"Textstorlek","Fullscreen":"Fullskärm","Green":"Grön","LIVE":"LIVE","Loaded":"Laddad","Magenta":"Magenta","Modal Window":"dialogruta","Monospace Sans-Serif":"Monospace Sans-Serif","Monospace Serif":"Monospace Serif","Mute":"Ljud av","No compatible source was found for this media.":"Det gick inte att hitta någon kompatibel källa för den här videon.","Non-Fullscreen":"Ej fullskärm","None":"Ingen","Opaque":"Opak","Pause":"Pausa","Play":"Spela","Play Video":"Spela upp video","Playback Rate":"Uppspelningshastighet","Progress":"Förlopp","Progress Bar":"förloppsmätare","Proportional Sans-Serif":"Proportionell Sans-Serif","Proportional Serif":"Proportionell Serif","Raised":"Raised","Red":"Röd","Remaining Time":"Återstående tid","Replay":"Spela upp igen","Reset":"Återställ","Script":"Manus","Seek to live, currently behind live":"Återgå till live, uppspelningen är inte live","Seek to live, currently playing live":"Återgå till live, uppspelningen är live","Semi-Transparent":"Semi-transparent","Small Caps":"Small-Caps","Stream Type":"Strömningstyp","Subtitles":"Text på","Text":"Text","Text Edge Style":"Textkantstil","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Det gick inte att ladda videon, antingen på grund av ett server- eller nätverksfel, eller för att formatet inte stöds.","The media is encrypted and we do not have the keys to decrypt it."
475:"Mediat är krypterat och vi har inte nycklarna för att dekryptera det.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Uppspelningen avbröts på grund av att videon är skadad, eller också för att videon använder funktioner som din webbläsare inte stöder.","This is a modal window":"Det här är ett dialogruta","This modal can be closed by pressing the Escape key or activating the close button.":"Den här dialogrutan kan stängas genom att trycka på Escape-tangenten eller stäng knappen.","Transparent":"Transparent","Uniform":"Uniform","Unmute":"Ljud på","Video Player":"Videospelare","Volume Level":"Volymnivå","White":"Vit","Window":"Fönster","Yellow":"Gul","You aborted the media playback":"Du har avbrutit videouppspelningen.","captions off":"Text av","captions settings":"textningsinställningar","descriptions off":"beskrivningar av","descriptions settings":"beskrivningsinställningar","progress bar timing: currentTime={1} duration={2}":"{1} av {2}","restore all settings to the default values":"återställ alla inställningar till standardvärden","subtitles off":"Text av","subtitles settings":"undertextsinställningar","{1} is loading.":"{1} laddar."}')},4653:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"ఆడియో ప్లేయర్","Video Player":"వీడియో ప్లేయర్","Play":"ప్లే","Pause":"పాజ్","Replay":"రీప్లే","Current Time":"ప్రస్తుత సమయం","Duration":"వ్యవధి","Remaining Time":"మిగిలిన సమయం","Stream Type":"స్ట్రీమ్ రకం","LIVE":"లైవ్","Seek to live, currently behind live":"ప్రత్యక్ష ప్రసారానికి వెళ్ళండి, ప్రస్తుతం ప్రత్యక్ష ప్రసారానికి వెనుకబడి ఉంది","Seek to live, currently playing live":"ప్రత్యక్ష ప్రసారానికి వెళ్ళండి, ప్రస్తుతం ప్రత్యక్ష ప్రసారం అవుతోంది","Loaded":"లోడ్ చేయబడింది","Progress":"పురోగతి","Progress Bar":"ప్రోగ్రెస్ బార్","progress bar timing: currentTime={1} duration={2}":"{1} యొక్క {2}","Fullscreen":"పూర్తి స్క్రీన్","Non-Fullscreen":"పూర్తి స్క్రీన్ నుండి నిష్క్రమించండి","Mute":"మ్యూట్","Unmute":"అన్మ్యూట్ చేయండి","Playback Rate":"ప్లేబ్యాక్ రేట్","Subtitles":"ఉపశీర్షికలు","
475subtitles off":"ఉపశీర్షికలు ఆఫ్ చేయండి","Captions":"శీర్షికలు","captions off":"శీర్షికలు ఆఫ్ చేయండి","Chapters":"అధ్యాయాలు","Descriptions":"వివరణలు","descriptions off":"వివరణలు ఆఫ్ చేయండి","Audio Track":"ఆడియో ట్రాక్","Volume Level":"వాల్యూమ్ స్థాయి","You aborted the media playback":"మీరు మీడియా ప్లేబ్యాక్‌ను రద్దు చేశారు","A network error caused the media download to fail part-way.":"నెట్‌వర్క్ లోపం వలన మీడియా డౌన్‌లోడ్ విఫలమైంది.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"సర్వర్ లేదా నెట్‌వర్క్ విఫలమైనందున లేదా ఫార్మాట్‌కు మద్దతు లేనందున మీడియాను లోడ్ చేయడం సాధ్యం కాలేదు.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"అవినీతి సమస్య కారణంగా లేదా మీ బ్రౌజర్ మద్దతు ఇవ్వని లక్షణాలను మీడియా ఉపయోగించినందున మీడియా ప్లేబ్యాక్ నిలిపివేయబడింది.","No compatible source was found for this media.":"ఈ మీడియాకు అనుకూలమైన మూలం కనుగొనబడలేదు.","The media is encrypted and we do not have the keys to decrypt it.":"మీడియా గుప్తీకరించబడింది మరియు దానిని డీక్రిప్ట్ చేయడానికి మాకు కీలు లేవు.","Play Video":"వీడియో ప్లే చేయండి","Close":"మూసివేయండి","Close Modal Dialog":"మోడల్ డైలాగ్‌ను మూసివేయండి","Modal Window":"మోడల్ విండో","This is a modal window":"ఇది మోడల్ విండో","This modal can be closed by pressing the Escape key or activating the close button.":"ఎస్కేప్ కీని నొక్కడం ద్వారా లేదా క్లోజ్ బటన్‌ను యాక్టివేట్ చేయడం ద్వారా ఈ మోడల్‌ను మూసివేయవచ్చు.",", opens captions settings dialog":", శీర్షికల సెట్టింగ్‌ల డైలాగ్‌ను తెరుస్తుంది",", opens subtitles settings dialog":", ఉపశీర్షికల సెట్టింగుల డైలాగ్‌ను తెరుస్తుంది",", opens descriptions settings dialog":", వివరణల సెట్టింగుల డైలాగ్‌ను తెరుస్తుంది",", selected":", ఎంచుకోబడింది","captions settings":"శీర్షికల సెట్టింగులు","subtitles settings":"ఉపశీర్షికల సెట్టింగులు","descriptions settings":"వివరణల సెట్టింగులు","Text":"వచనం","White":"తెలుపు","Black":"నలుపు","Red":"ఎరుపు","Green":"ఆకుపచ్చ","Blue":"నీలం","Yellow":"పసుపు","Magenta":"మెజెంటా","Cyan":"సియాన్","Background":"నేపధ్యం","Window":"కిటికీ","Transparent":"పారదర్శక","Semi-Transparent":"సెమీ-పారదర్శక","Opaque":"అపారదర్శక","Font Size":"ఫాంట్ పరిమాణం","Text Edge Style":"టెక్స్ట్ ఎడ్జ్ శైలి","None":"ఏదీ లేదు","Raised":"పెంచబడింది","Depressed":"అణగారిన","Uniform":"ఏకరీతి","Dropshadow":"డ్రాప్‌షాడో","Font Family":"à°«à°¾à°
475‚ట్ కుటుంబం","Proportional Sans-Serif":"ప్రొపోర్షన్ సాన్స్-సెరిఫ్","Monospace Sans-Serif":"మోనోస్పేస్ సాన్స్-సెరిఫ్","Proportional Serif":"ప్రొపోర్షన్ సెరిఫ్","Monospace Serif":"మోనోస్పేస్ సెరిఫ్","Casual":"సాధారణ","Script":"స్క్రిప్ట్","Small Caps":"చిన్న క్యాప్స్","Reset":"రీసెట్ చేయండి","restore all settings to the default values":"అన్ని సెట్టింగులను డిఫాల్ట్ విలువలకు పునరుద్ధరించండి","Done":"పూర్తయింది","Caption Settings Dialog":"శీర్షిక సెట్టింగ్‌ల డైలాగ్","Beginning of dialog window. Escape will cancel and close the window.":"డైలాగ్ విండో ప్రారంభం. ఎస్కేప్ విండోను రద్దు చేస్తుంది మరియు మూసివేస్తుంది.","End of dialog window.":"డైలాగ్ విండో ముగింపు.","{1} is loading.":"{1} లోడ్ అవుతోంది.","Exit Picture-in-Picture":"పిక్చర్-ఇన్-పిక్చర్ నుండి నిష్క్రమించండి","Picture-in-Picture":"పిక్చర్-ఇన్-పిక్చర్"}')},5708:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"โปรแกรมเล่นเสียง","Video Player":"โปรแกรมเล่นวิดีโอ","Play":"เล่น","Pause":"หยุดชั่วคราว","Replay":"เล่นซ้ำ","Current Time":"เวลาปัจจุบัน","Duration":"ระยะเวลา","Remaining Time":"เวลาที่เหลือ","Stream Type":"ประเภทของสตรีม","LIVE":"ถ่ายทอดสด","Seek to live, currently behind live":"หาโอกาสที่จะถ่ายทอดสด กำลังอยู่เบื้องหลังการถ่ายทอดสดในขณะนี้","Seek to live, currently playing live":"หาโอกาสที่จะถ่ายทอดสด กำลังเล่นแบบสดในขณะนี้","Loaded":"โหลดแล้ว","Progress":"ความคืบหน้า","Progress Bar":"แถบแสดงความคืบหน้า","progress bar timing: currentTime={1} duration={2}":"{1} ของ {2}","Fullscreen":"แบบเต็มหน้าจอ","Non-Fullscreen":"ไม่ใช่แบบเต็มหน้าจอ","Mute":"ปิดเสียง","Unmute":"ยกเลิกการปิดเสียง","Playback Rate":"อัตราการเล่น","Subtitles":"คำบรรยาย","subtitles off":"ปิดคำบรรยาย","Captions":"คำอธิบายภาพ","captions off":"ปิดคำอธิบายภาพ","Chapters":"บท","Descriptions":"คำอธิบาย","descriptions off":"ปิดคำอธิบาย","Audio Track":"แทร็กเสียง","Volume Level":"ระดับเสียง","You aborted the media playback":"คุณยกเลิกการเล่นสื่อแล้ว","A network error caused the media download to fail part-way.":"ข้อผิดพลาดของเครือข่ายทำให้การดาวน์โหลดสื่อไม่สำเร็จเป็นบางส่วน","The media could not be loaded, either because the server or network failed or because the format is not supported.":"ไม่สามารถโหลดสื่อได้ โดยอาจเป็นเพราะเซิร์ฟเวอร์หรือเครือข่ายล้มเหลว หรือเพราะรูปแบบไม่ได้รับการรองรับ","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"การเล่นสื่อถูกยกเลิกเนื่องจากปัญหาเà¸
475à¸µà¹ˆà¸¢à¸§à¸à¸±à¸šà¸„วามเสียหาย หรือเนื่องจากสื่อใช้ฟีเจอร์ที่เบราว์เซอร์ของคุณไม่รองรับ","No compatible source was found for this media.":"ไม่พบแหล่งที่เข้ากันได้สำหรับสื่อนี้","The media is encrypted and we do not have the keys to decrypt it.":"สื่อถูกเข้ารหัสลับแล้ว และเราไม่มีคีย์ที่จะถอดรหัสลับดังกล่าว","Play Video":"เล่นวิดีโอ","Close":"ปิด","Close Modal Dialog":"ปิดกล่องโต้ตอบโมดอล","Modal Window":"หน้าต่างโมดอล","This is a modal window":"รายการนี้เป็นหน้าต่างโมดอล","This modal can be closed by pressing the Escape key or activating the close button.":"คุณสามารถปิดโมดอลนี้โดยกดปุ่ม Escape หรือเปิดใช้งานปุ่มปิด",", opens captions settings dialog":", เปิดกล่องโต้ตอบการตั้งค่าคำอธิบายภาพ",", opens subtitles settings dialog":", เปิดกล่องโต้ตอบการตั้งค่าคำบรรยาย",", opens descriptions settings dialog":", เปิดกล่องโต้ตอบการตั้งค่าคำอธิบาย",", selected":", เลือกแล้ว","captions settings":"การตั้งค่าคำอธิบายภาพ","subtitles settings":"การตั้งค่าคำบรรยาย","descriptions settings":"การตั้งค่าคำอธิบาย","Text":"ข้อความ","White":"สีขาว","Black":"สีดำ","Red":"สีแดง","Green":"สีเขียว","Blue":"สีน้ำเงิน","Yellow":"สีเหลือง","Magenta":"สีม่วงแดง","Cyan":"สีน้ำเงินอมเขียว","Background":"พื้นหลัง","Window":"หน้าต่าง","Transparent":"โปร่งใส","Semi-Transparent":"กึ่งโปร่งใส","Opaque":"ทึบ","Font Size":"ขนาดแบบอักษร","Text Edge Style":"ลักษณะขอบข้อความ","None":"ไม่มี","Raised":"ยกขึ้น","Depressed":"ปล่อยออก","Uniform":"รูปแบบ","Dropshadow":"เพิ่มเงา","Font Family":"ตระกูลแบบอักษร","Proportional Sans-Serif":"Sans-Serif ตามสัดส่วน","Monospace Sans-Serif":"Sans-Serif ช่องว่างเดี่ยว","Proportional Serif":"Serif ตามสัดส่วน","Monospace Serif":"Serif ช่องว่างเดี่ยว","Casual":"ไม่เป็นทางการ","Script":"สคริปต์","Small Caps":"ตัวพิมพ์ใหญ่ขนาดเล็ก","Reset":"รีเซ็ต","restore all settings to the default values":"คืนค่าการตั้งค่าท้้งหมดให้เป็นค่าเริ่มต้น","Done":"เสร็จสิ้น","Caption Settings Dialog":"กล่องโต้ตอบการตั้งค่าคำอธิบายภาพ","Beginning of dialog window. Escape will cancel and close the window.":"การเริ่มต้นหน้าต่างกล่องโต้ตอบ Escape จะยกเลิกและปิดหน้าต่าง","End of dialog window.":"สิ้นสุดหน้าต่างกล่องโต้ตอบ","{1} is loading.":"กำลังโหลด {1}","Exit Picture-in-Picture":"ออกจากการเล่นภาพควบคู่","Picture-in-Picture":"การเล่นภาพควบคู่"}')},3832:e=>{"use strict";e.exports=JSON.parse('{"Play":"Oynat","Pause":"Duraklat","Replay":"Yeniden Oynat","Current Time":"Süre","Duration":"Toplam Süre","Remaining Time":"Kalan Süre","Stream Type":"Yayın Tipi","LIVE":"CANLI","Loaded":"Yüklendi","Progress":"Yükleniyor","Fullscreen":"Tam Ekran","Non-Fullscreen":"Küçük Ekran","Mute":"Ses Kapa","Unmute":"Ses Aç","Playback Rate":"Oynatma Hızı","Subtitles":"Altyazı","subtitles off":"Altyazı Kapalı","Captions":"Altyazı","captions off":"Altyazı Kapalı","Chapters":"Bölümler","Close Mod
475al Dialog":"Dialogu Kapat","Descriptions":"Açıklamalar","descriptions off":"Açıklamalar kapalı","Audio Track":"Ses Dosyası","You aborted the media playback":"Video oynatmayı iptal ettiniz","A network error caused the media download to fail part-way.":"Video indirilirken bağlantı sorunu oluştu.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video oynatılamadı, ağ ya da sunucu hatası veya belirtilen format desteklenmiyor.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Tarayıcınız desteklemediği için videoda hata oluştu.","No compatible source was found for this media.":"Video için kaynak bulunamadı.","The media is encrypted and we do not have the keys to decrypt it.":"Video, şifrelenmiş bir kaynaktan geliyor ve oynatmak için gerekli anahtar bulunamadı.","Play Video":"Videoyu Oynat","Close":"Kapat","Modal Window":"Modal Penceresi","This is a modal window":"Bu bir modal penceresidir","This modal can be closed by pressing the Escape key or activating the close button.":"Bu modal ESC tuşuna basarak ya da kapata tıklanarak kapatılabilir.",", opens captions settings dialog":", altyazı ayarları menüsünü açar",", opens subtitles settings dialog":", altyazı ayarları menüsünü açar",", opens descriptions settings dialog":", açıklama ayarları menüsünü açar",", selected":", seçildi","captions settings":"altyazı ayarları","subtitles settings":"altyazı ayarları","descriptions settings":"açıklama ayarları","Text":"Yazı","White":"Beyaz","Black":"Siyah","Red":"Kırmızı","Green":"Yeşil","Blue":"Mavi","Yellow":"Sarı","Magenta":"Macenta","Cyan":"Açık Mavi (Camgöbeği)","Background":"Arka plan","Window":"Pencere","Transparent":"Saydam","Semi-Transparent":"Yarı-Saydam","Opaque":"Mat","Font Size":"Yazı Boyutu","Text Edge Style":"Yazı Kenarlıkları","None":"Hiçbiri","Raised":"Kabartılmış","Depressed":"Yassı","Uniform":"Düz","Dropshadow":"Gölgeli","Font Family":"Yazı Tipi","Proportional Sans-Serif":"Orantılı Sans-Serif","Monospace Sans-Serif":"Eşaralıklı Sans-Serif","Proportional Serif":"Orantılı Serif","Monospace Serif":"Eşaralıklı Serif","Casual":"Gündelik","Script":"El Yazısı","Small Caps":"Küçük Boyutlu Büyük Harfli","Done":"Tamam","Caption Settings Dialog":"Altyazı Ayarları Menüsü","Beginning of dialog window. Escape will cancel and close the window.":"Diyalog penceresinin başlangıcı. ESC tuşu işlemi iptal edip pencereyi kapatacaktır."}')},2161:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Аудіопрогравач","Video Player":"Відеопрогравач","Play":"Відтворити","Pause":"Призупинити","Replay":"Відтворити знову","Current Time":"Поточний час","Duration":"Тривалість","Remaining Time":"Час, що залишився","Stream Type":"Тип потоку","LIVE":"НАЖИВО","Loaded":"Завантаження","Progress":"Прогрес","Progress Bar":"Індикатор завантаження","progress bar timing: currentTime={1} duration={2}":"{1} з {2}","Fullscreen":"Повноекранний режим","Non-Fullscreen":"Неповноекранний режим","Mute":"Без звуку","Unmute":"Зі звуком","Playback Rate":"Швидкість відтворення","Subtitles":"Субтитри","subtitles off":"Без субтитрів","Captions":"Підписи","captions off":"Без підписів","Chapters":"Розділи","Close Modal Dialog":"Закрити модальний діалог","Descriptions":"Описи","descriptions off":"Без описів","Audio Track":"Аудіодоріжка","Volume Level":"Рівень гучності","You aborted the media playback":"Ви припинили відтворення відео","A network error caused the media download to fail part-way.":"Помилка мережі викликала збій під час завантаження відео.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Неможливо завантажити відео через мережевий чи серверний збій або формат не підтримується.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"В
475ідтворення відео було припинено через пошкодження або у зв\'язку з тим, що відео використовує функції, які не підтримуються вашим браузером.","No compatible source was found for this media.":"Сумісні джерела для цього відео відсутні.","The media is encrypted and we do not have the keys to decrypt it.":"Відео в зашифрованому вигляді, і ми не маємо ключі для розшифровки.","Play Video":"Відтворити відео","Close":"Закрити","Modal Window":"Модальне вікно","This is a modal window":"Це модальне вікно.","This modal can be closed by pressing the Escape key or activating the close button.":"Модальне вікно можна закрити, натиснувши клавішу Esc або кнопку закриття вікна.",", opens captions settings dialog":", відкриється діалогове вікно налаштування підписів",", opens subtitles settings dialog":", відкриється діалогове вікно налаштування субтитрів",", opens descriptions settings dialog":", відкриється діалогове вікно налаштування описів",", selected":", обраний","captions settings":"налаштування підписів","subtitles settings":"налаштування субтитрів","descriptions settings":"налаштування описів","Text":"Текст","White":"Білий","Black":"Чорний","Red":"Червоний","Green":"Зелений","Blue":"Синій","Yellow":"Жовтий","Magenta":"Пурпурний","Cyan":"Блакитний","Background":"Фон","Window":"Вікно","Transparent":"Прозорий","Semi-Transparent":"Напівпрозорий","Opaque":"Прозорість","Font Size":"Розмір шрифту","Text Edge Style":"Стиль краю тексту","None":"Нічого","Raised":"Піднятий","Depressed":"Знижений","Uniform":"Однаковий","Dropshadow":"Тінь","Font Family":"Шрифт","Proportional Sans-Serif":"Пропорційний без засічок","Monospace Sans-Serif":"Моноширинний без засічок","Proportional Serif":"Пропорційний із засічками","Monospace Serif":"Моноширинний із засічками","Casual":"Випадковий","Script":"Писемний","Small Caps":"Малі прописні","Reset":"Скинути","restore all settings to the default values":"скинути всі налаштування за замовчуванням","Done":"Готово","Caption Settings Dialog":"Діалог налаштувань підпису","Beginning of dialog window. Escape will cancel and close the window.":"Початок діалоговго вікна. Кнопка Escape закриє або скасує вікно","End of dialog window.":"Кінець діалогового вікна.","{1} is loading.":"{1} завантажується."}')},3155:e=>{"use strict";e.exports=JSON.parse('{"Audio Player":"Trình phát Audio","Video Player":"Trình phát Video","Play":"Phát","Pause":"Tạm dừng","Replay":"Phát lại","Current Time":"Thời gian hiện tại","Duration":"Độ dài","Remaining Time":"Thời gian còn lại","Stream Type":"Kiểu Stream","LIVE":"TRá»°C TIẾP","Loaded":"Đã tải","Progress":"Tiến trình","Progress Bar":"Thanh tiến trình","progress bar timing: currentTime={1} duration={2}":"{1} cá»§a {2}","Fullscreen":"Toàn màn hình","Non-Fullscreen":"Thoát toàn màn hình","Mute":"Tắt tiếng","Unmute":"Bật âm thanh","Playback Rate":"Tỉ lệ phát lại","Subtitles":"Phụ đề","subtitles off":"tắt phụ đề","Captions":"Chú thích","captions off":"tắt chú thích","Chapters":"Chương","Descriptions":"Mô tả","descriptions off":"tắt mô tả","Audio Track":"Track âm thanh","Volume Level":"Mức âm lượng","You aborted the media playback":"Bạn đã há»§y việc phát lại media.","A network error caused the media download to fail part-way.":"Má»
475™t lỗi mạng dẫn đến việc tải media bị lỗi.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Video không tải được, mạng hay server có lỗi hoặc định dạng không được hỗ trợ.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"Phát media đã bị há»§y do một sai lỗi hoặc media sá»­ dụng những tính năng trình duyệt không hỗ trợ.","No compatible source was found for this media.":"Không có nguồn tương thích cho media này.","The media is encrypted and we do not have the keys to decrypt it.":"Media đã được mã hóa và chúng tôi không có để giải mã nó.","Play Video":"Phát Video","Close":"Đóng","Close Modal Dialog":"Đóng cá»­a sổ","Modal Window":"Cá»­a sổ","This is a modal window":"Đây là một cá»­a sổ","This modal can be closed by pressing the Escape key or activating the close button.":"Cá»­a sổ này có thể thoát bằng việc nhấn phím Esc hoặc kích hoạt nút đóng.",", opens captions settings dialog":", mở hộp thoại cài đặt chú thích",", opens subtitles settings dialog":", mở hộp thoại cài đặt phụ đề",", opens descriptions settings dialog":", mở hộp thoại cài đặt mô tả",", selected":", đã chọn","captions settings":"cài đặt chú thích","subtitles settings":"cài đặt phụ đề","descriptions settings":"cài đặt mô tả","Text":"Văn bản","White":"Trắng","Black":"Đen","Red":"Đỏ","Green":"Xanh lá cây","Blue":"Xanh da trời","Yellow":"Vàng","Magenta":"Đỏ tươi","Cyan":"Lam","Background":"Nền","Window":"Cá»­a sổ","Transparent":"Trong suốt","Semi-Transparent":"Bán trong suốt","Opaque":"Mờ","Font Size":"Kích cỡ phông chữ","Text Edge Style":"Dạng viền văn bản","None":"None","Raised":"Raised","Depressed":"Depressed","Uniform":"Uniform","Dropshadow":"Dropshadow","Font Family":"Phông chữ","Proportional Sans-Serif":"Proportional Sans-Serif","Monospace Sans-Serif":"Monospace Sans-Serif","Proportional Serif":"Proportional Serif","Monospace Serif":"Monospace Serif","Casual":"Casual","Script":"Script","Small Caps":"Small Caps","Reset":"Đặt lại","restore all settings to the default values":"khôi phục lại tất cả các cài đặt về giá trị mặc định","Done":"Xong","Caption Settings Dialog":"Hộp thoại cài đặt chú thích","Beginning of dialog window. Escape will cancel and close the window.":"Bắt đầu cá»­a sổ hộp thoại. Esc sẽ thoát và đóng cá»­a sổ.","End of dialog window.":"Kết thúc cá»­a sổ hộp thoại."}')},3302:e=>{"use strict";e.exports=JSON.parse('{"Play":"播放","Pause":"暂停","Current Time":"当前时间","Duration":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","LIVE":"直播","Loaded":"加载完成","Progress":"进度","Fullscreen":"全屏","Non-Fullscreen":"退出全屏","Picture-in-Picture":"画中画","Exit Picture-in-Picture":"退出画中画","Mute":"静音","Unmute":"取消静音","Playback Rate":"播放速度","Subtitles":"字幕","subtitles off":"关闭字幕","Captions":"内嵌字幕","captions off":"关闭内嵌字幕","Chapters":"节目段落","Close Modal Dialog":"关闭弹窗","Descriptions":"描述","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源。","The media is encrypted and we do not have the keys to decrypt it."
475:"视频已加密,无法解密。","Play Video":"播放视频","Close":"关闭","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Replay":"重新播放","Progress Bar":"进度条","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Text":"文字","White":"白","Black":"黑","Red":"红","Green":"绿","Blue":"蓝","Yellow":"黄","Magenta":"紫红","Cyan":"青","Background":"背景","Window":"窗口","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","None":"无","Raised":"浮雕","Depressed":"压低","Uniform":"均匀","Dropshadow":"下阴影","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Casual":"舒适","Script":"手写体","Small Caps":"小型大写字体","Reset":"重置","restore all settings to the default values":"恢复全部设定至预设值","Done":"完成","Caption Settings Dialog":"字幕设定窗口","Beginning of dialog window. Escape will cancel and close the window.":"打开对话窗口。Escape键将取消并关闭对话窗口","End of dialog window.":"结束对话窗口","Seek to live, currently behind live":"尝试直播,当前为延时播放","Seek to live, currently playing live":"尝试直播,当前为实时播放","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"正在加载 {1}。"}')},5313:e=>{"use strict";e.exports=JSON.parse('{"Play":"播放","Pause":"暂停","Current Time":"当前时间","Duration":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","LIVE":"直播","Loaded":"加载完成","Progress":"进度","Fullscreen":"全屏","Non-Fullscreen":"退出全屏","Picture-in-Picture":"画中画","Exit Picture-in-Picture":"退出画中画","Mute":"静音","Unmute":"取消静音","Playback Rate":"播放速度","Subtitles":"字幕","subtitles off":"关闭字幕","Captions":"内嵌字幕","captions off":"关闭内嵌字幕","Chapters":"节目段落","Close Modal Dialog":"关闭弹窗","Descriptions":"描述","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频","Close":"关闭","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Replay":"重新播放","Progress Bar":"进度条","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Text":"文字","White":"白","Black":"黑","Red":"红","Green":"绿","Blue":"蓝","Yellow":"黄","Magenta":"紫红","Cyan":"青","Backgroun
475d":"背景","Window":"窗口","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","None":"无","Raised":"浮雕","Depressed":"压低","Uniform":"均匀","Dropshadow":"下阴影","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Casual":"舒适","Script":"手写体","Small Caps":"小型大写字体","Reset":"重置","restore all settings to the default values":"恢复全部设定至预设值","Done":"完成","Caption Settings Dialog":"字幕设定窗口","Beginning of dialog window. Escape will cancel and close the window.":"打开对话窗口。Escape键将取消并关闭对话窗口","End of dialog window.":"结束对话窗口","Seek to live, currently behind live":"尝试直播,当前为延时播放","Seek to live, currently playing live":"尝试直播,当前为实时播放","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"正在加载 {1}。"}')},4683:e=>{"use strict";e.exports=JSON.parse('{"Play":"播放","Pause":"暫停","Current Time":"目前時間","Duration":"總共時間","Remaining Time":"剩餘時間","Stream Type":"串流類型","LIVE":"直播","Loaded":"載入完畢","Progress":"進度","Fullscreen":"全螢幕","Non-Fullscreen":"退出全螢幕","Mute":"靜音","Unmute":"取消靜音","Playback Rate":" 播放速率","Subtitles":"字幕","subtitles off":"關閉字幕","Captions":"內嵌字幕","captions off":"關閉內嵌字幕","Chapters":"章節","Close Modal Dialog":"關閉對話框","Descriptions":"描述","descriptions off":"關閉描述","Audio Track":"音軌","You aborted the media playback":"影片播放已終止","A network error caused the media download to fail part-way.":"網路錯誤導致影片下載失敗。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"因格式不支援、伺服器或網路的問題無法載入媒體。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。","No compatible source was found for this media.":"無法找到相容此媒體的來源。","The media is encrypted and we do not have the keys to decrypt it.":"媒體已加密,無法解密。","Play Video":"播放影片","Close":"關閉","Modal Window":"強制回應視窗","This is a modal window":"此為強制回應視窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按鍵或關閉按鈕來關閉此視窗。",", opens captions settings dialog":", 開啟標題設定對話框",", opens subtitles settings dialog":", 開啟字幕設定對話框",", opens descriptions settings dialog":", 開啟描述設定對話框",", selected":", 選擇","captions settings":"字幕設定","Audio Player":"音訊播放器","Video Player":"視訊播放器","Replay":"重播","Progress Bar":"進度列","Volume Level":"音量","subtitles settings":"字幕設定","descriptions settings":"描述設定","Text":"文字","White":"白","Black":"黑","Red":"紅","Green":"綠","Blue":"藍","Yellow":"黃","Magenta":"紫紅","Cyan":"青","Background":"背景","Window":"視窗","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字型尺寸","Text Edge Style":"字型邊緣樣式","None":"無","Raised":"浮雕","Depressed":"壓低","Uniform":"均勻","Dropshadow":"下陰影","Font Family":"字型系列","Proportional Sans-Serif":"調和間距無襯線字型","Monospace Sans-Serif":"等寬無襯線字型","Proportional Serif":"調和間距襯線字型","Monospace Serif":"等寬襯線字型","Casual":"輕便的","Script":"手寫體","Small Caps":"小型大寫字體","Reset":"重置","restore all settings to the default values":"恢復全部設定至預設值","Done":"完成","Caption Settings Dialog":"字幕設定對話框","Beginning of dialog window. Escape will cancel and close the window.":"開始對話視窗。離開會取消並關閉視窗","End of dialog window.":"結束對話視窗","Seek to live, currently behind live":"快轉至直播,目前為稍早畫面","Seek to live, currently playing live":"快轉至直播,目前為現場畫面","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"{1} 正在載入。"}')},2619:e=>{"use strict";e.exports=JSON.parse('{"Play":"播放","Pause":"暫停","Current Time":"目前時間","Duration":"總共時間","Remaining Time":"剩餘時間","Stream Type":"串流類型","LIVE":"直播","Loaded":"載入完畢","Progress":"進度","Fullscreen":"全螢幕","Non-Fullscreen":"退出全螢幕","Mute":"靜音","Unmute":"取消靜音","Playback Rate":" 播放速率","Subtitles":"字幕","subtitles off":"關閉字幕","Captions":"內嵌字幕","captions off":"關閉內嵌字幕","Chapters":"章節","Close Mod
475al Dialog":"關閉對話框","Descriptions":"描述","descriptions off":"關閉描述","Audio Track":"音軌","You aborted the media playback":"影片播放已終止","A network error caused the media download to fail part-way.":"網路錯誤導致影片下載失敗。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"因格式不支援、伺服器或網路的問題無法載入媒體。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。","No compatible source was found for this media.":"無法找到相容此媒體的來源。","The media is encrypted and we do not have the keys to decrypt it.":"媒體已加密,無法解密。","Play Video":"播放影片","Close":"關閉","Modal Window":"強制回應視窗","This is a modal window":"此為強制回應視窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按鍵或關閉按鈕來關閉此視窗。",", opens captions settings dialog":", 開啟標題設定對話框",", opens subtitles settings dialog":", 開啟字幕設定對話框",", opens descriptions settings dialog":", 開啟描述設定對話框",", selected":", 選擇","captions settings":"字幕設定","Audio Player":"音訊播放器","Video Player":"視訊播放器","Replay":"重播","Progress Bar":"進度列","Volume Level":"音量","subtitles settings":"字幕設定","descriptions settings":"描述設定","Text":"文字","White":"白","Black":"黑","Red":"紅","Green":"綠","Blue":"藍","Yellow":"黃","Magenta":"紫紅","Cyan":"青","Background":"背景","Window":"視窗","Transparent":"透明","Semi-Transparent":"半透明","Opaque":"不透明","Font Size":"字型尺寸","Text Edge Style":"字型邊緣樣式","None":"無","Raised":"浮雕","Depressed":"壓低","Uniform":"均勻","Dropshadow":"下陰影","Font Family":"字型系列","Proportional Sans-Serif":"調和間距無襯線字型","Monospace Sans-Serif":"等寬無襯線字型","Proportional Serif":"調和間距襯線字型","Monospace Serif":"等寬襯線字型","Casual":"輕便的","Script":"手寫體","Small Caps":"小型大寫字體","Reset":"重置","restore all settings to the default values":"恢復全部設定至預設值","Done":"完成","Caption Settings Dialog":"字幕設定對話框","Beginning of dialog window. Escape will cancel and close the window.":"開始對話視窗。離開會取消並關閉視窗","End of dialog window.":"結束對話視窗","Seek to live, currently behind live":"快轉至直播,目前為稍早畫面","Seek to live, currently playing live":"快轉至直播,目前為現場畫面","progress bar timing: currentTime={1} duration={2}":"{1}/{2}","{1} is loading.":"{1} 正在載入。"}')}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,n),a.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{n(3796);const e=n(9703),t=n(8187),i=(n(5702),n(4211)),r=(n(9235),n(8823),n(1912)),a=n(6047),o=n(5219),s=n(2459),l=n(9026),u=n(8954).Z,c=n(6213),d=n(8736),h=n(2899),p=n(2500),f=n(694);p(()=>{document.querySelector(".beats-global-header")&&new a.default,e(),t(),u(),window.onload=i(),r(),window.addEventListener("mousedown",function(){document.body.classList.add("using-mouse")}),window.addEventListener("keydown",function(e){9===e.keyCode&&document.body.classList.remove("using-mouse")}
475),s.init(o.BeatsInstance.platform),l.init(),window.addEventListener("extract-svg-event",function(){u()}),c.init(),d.initSearch(),f.initFootnote(),h.initViewmore()})})()})();
476//# sourceMappingURL=shared.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.