-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
dash.offline.min.js
4 lines (4 loc) · 370 KB
/
dash.offline.min.js
1
2
3
4
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.dashjs=t():e.dashjs=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=121)}([function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t,r,o;return t=e,(r=[{key:"init",value:function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.INBAND_EVENT_STREAM="InbandEventStream",this.PRODUCER_REFERENCE_TIME="ProducerReferenceTime",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.ROLE_ASARRAY="Role_asArray",this.REPRESENTATION_ASARRAY="Representation_asArray",this.PRODUCERREFERENCETIME_ASARRAY="ProducerReferenceTime_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.STATIC="static",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="codecPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.AVAILABILITY_TIME_OFFSET="availabilityTimeOffset",this.AVAILABILITY_TIME_COMPLETE="availabilityTimeComplete",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay",this.SERVICE_DESCRIPTION="ServiceDescription",this.SERVICE_DESCRIPTION_SCOPE="Scope",this.SERVICE_DESCRIPTION_LATENCY="Latency",this.SERVICE_DESCRIPTION_PLAYBACK_RATE="PlaybackRate",this.SERVICE_DESCRIPTION_OPERATING_QUALITY="OperatingQuality",this.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH="OperatingBandwidth",this.PATCH_LOCATION="PatchLocation",this.PUBLISH_TIME="publishTime",this.ORIGINAL_PUBLISH_TIME="originalPublishTime",this.ORIGINAL_MPD_ID="mpdId",this.WALL_CLOCK_TIME="wallClockTime",this.PRESENTATION_TIME="presentationTime",this.LABEL="Label",this.GROUP_LABEL="GroupLabel",this.CONTENT_STEERING="ContentSteering",this.CONTENT_STEERING_AS_ARRAY="ContentSteering_asArray",this.DEFAULT_SERVICE_LOCATION="defaultServiceLocation",this.QUERY_BEFORE_START="queryBeforeStart",this.PROXY_SERVER_URL="proxyServerURL",this.CONTENT_STEERING_RESPONSE={VERSION:"VERSION",TTL:"TTL",RELOAD_URI:"RELOAD-URI",SERVICE_LOCATION_PRIORITY:"SERVICE-LOCATION-PRIORITY"}}}])&&n(t.prototype,r),o&&n(t,o),e}());t.a=o},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t,r,o;return t=e,(r=[{key:"init",value:function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.MUXED="muxed",this.IMAGE="image",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.CONTENT_STEERING="contentSteering",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_L2A="abrL2A",this.ABR_STRATEGY_LoLP="abrLoLP",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA="abrFetchThroughputCalculationDownloadedData",this.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING="abrFetchThroughputCalculationMoofParsing",this.ABR_FETCH_THROUGHPUT_CALCULATION_AAST="abrFetchThroughputCalculationAAST",this.LIVE_CATCHUP_MODE_DEFAULT="liveCatchupModeDefault",this.LIVE_CATCHUP_MODE_LOLP="liveCatchupModeLoLP",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma",this.BAD_ARGUMENT_ERROR="Invalid Arguments",this.MISSING_CONFIG_ERROR="Missing config parameter(s)",this.TRACK_SWITCH_MODE_ALWAYS_REPLACE="alwaysReplace",this.TRACK_SWITCH_MODE_NEVER_REPLACE="neverReplace",this.TRACK_SELECTION_MODE_FIRST_TRACK="firstTrack",this.TRACK_SELECTION_MODE_HIGHEST_BITRATE="highestBitrate",this.TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY="highestEfficiency",this.TRACK_SELECTION_MODE_WIDEST_RANGE="widestRange",this.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY="highestSelectionPriority",this.CMCD_MODE_QUERY="query",this.CMCD_MODE_HEADER="header",this.LOCATION="Location",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.CC1="CC1",this.CC3="CC3",this.UTF8="utf-8",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime",this.SERVICE_DESCRIPTION_DVB_LL_SCHEME="urn:dvb:dash:lowlatency:scope:2019",this.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME="urn:dvb:dash:lowlatency:critical:2019",this.XML="XML",this.ARRAY_BUFFER="ArrayBuffer",this.DVB_REPORTING_URL="dvb:reportingUrl",this.DVB_PROBABILITY="dvb:probability",this.VIDEO_ELEMENT_READY_STATES={HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4},this.FILE_LOADER_TYPES={FETCH:"fetch_loader",XHR:"xhr_loader"}}}])&&n(t.prototype,r),o&&n(t,o),e}());t.a=o},function(e,t,r){"use strict";function n(e){return(n="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)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=s(e);if(t){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return a(this,r)}}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){return(u="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)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=new(function(e){!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}}),t&&f(e,t)}(r,e);var t=c(r);function r(){return l(this,r),t.apply(this,arguments)}return r}(function(e){!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}}),t&&o(e,t)}(r,e);var t=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=t.call(this)).ATTEMPT_BACKGROUND_SYNC="attemptBackgroundSync",e.BUFFERING_COMPLETED="bufferingCompleted",e.BUFFER_CLEARED="bufferCleared",e.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",e.BUFFER_REPLACEMENT_STARTED="bufferReplacementStarted",e.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",e.CURRENT_TRACK_CHANGED="currentTrackChanged",e.DATA_UPDATE_COMPLETED="dataUpdateCompleted",e.INBAND_EVENTS="inbandEvents",e.INITIAL_STREAM_SWITCH="initialStreamSwitch",e.INIT_FRAGMENT_LOADED="initFragmentLoaded",e.INIT_FRAGMENT_NEEDED="initFragmentNeeded",e.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",e.ORIGINAL_MANIFEST_LOADED="originalManifestLoaded",e.LOADING_COMPLETED="loadingCompleted",e.LOADING_PROGRESS="loadingProgress",e.LOADING_DATA_PROGRESS="loadingDataProgress",e.LOADING_ABANDONED="loadingAborted",e.MANIFEST_UPDATED="manifestUpdated",e.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",e.MEDIA_FRAGMENT_NEEDED="mediaFragmentNeeded",e.QUOTA_EXCEEDED="quotaExceeded",e.SEGMENT_LOCATION_BLACKLIST_ADD="segmentLocationBlacklistAdd",e.SEGMENT_LOCATION_BLACKLIST_CHANGED="segmentLocationBlacklistChanged",e.SERVICE_LOCATION_BLACKLIST_ADD="serviceLocationBlacklistAdd",e.SERVICE_LOCATION_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",e.SET_FRAGMENTED_TEXT_AFTER_DISABLED="setFragmentedTextAfterDisabled",e.SET_NON_FRAGMENTED_TEXT="setNonFragmentedText",e.SOURCE_BUFFER_ERROR="sourceBufferError",e.STREAMS_COMPOSED="streamsComposed",e.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",e.STREAM_REQUESTING_COMPLETED="streamRequestingCompleted",e.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",e.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",e.UPDATE_TIME_SYNC_OFFSET="updateTimeSyncOffset",e.URL_RESOLUTION_FAILED="urlResolutionFailed",e.VIDEO_CHUNK_RECEIVED="videoChunkReceived",e.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",e.XLINK_ELEMENT_LOADED="xlinkElementLoaded",e.XLINK_READY="xlinkReady",e.SEEK_TARGET="seekTarget",e.SETTING_UPDATED_LIVE_DELAY="settingUpdatedLiveDelay",e.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT="settingUpdatedLiveDelayFragmentCount",e.SETTING_UPDATED_CATCHUP_ENABLED="settingUpdatedCatchupEnabled",e}return r}(r(18).a)));t.a=p},function(e,t,r){"use strict";var n=function(){var e,t=[],r={},n={};function o(e,r){for(var n in t){var o=t[n];if(o.context===e&&o.name===r)return o.instance}return null}function i(e,t){return t[e]}function a(e,t,r){e in r&&(r[e]=t)}function s(t,r,n){var o,i=t.__dashjs_factory_name,a=r[i];if(a){var s=a.instance;if(!a.override)return s.apply({context:r,factory:e},n);for(var u in o=t.apply({context:r},n),s=s.apply({context:r,factory:e,parent:o},n))o.hasOwnProperty(u)&&(o[u]=s[u])}else o=t.apply({context:r},n);return o.getClassName=function(){return i},o}return e={extend:function(e,t,r,n){!n[e]&&t&&(n[e]={instance:t,override:r})},getSingletonInstance:o,setSingletonInstance:function(e,r,n){for(var o in t){var i=t[o];if(i.context===e&&i.name===r)return void(t[o].instance=n)}t.push({name:r,context:e,instance:n})},deleteSingletonInstances:function(e){t=t.filter((function(t){return t.context!==e}))},getSingletonFactory:function(e){var n=i(e.__dashjs_factory_name,r);return n||(n=function(r){var n;return void 0===r&&(r={}),{getInstance:function(){return n||(n=o(r,e.__dashjs_factory_name)),n||(n=s(e,r,arguments),t.push({name:e.__dashjs_factory_name,context:r,instance:n})),n}}},r[e.__dashjs_factory_name]=n),n},getSingletonFactoryByName:function(e){return i(e,r)},updateSingletonFactory:function(e,t){a(e,t,r)},getClassFactory:function(e){var t=i(e.__dashjs_factory_name,n);return t||(t=function(t){return void 0===t&&(t={}),{create:function(){return s(e,t,arguments)}}},n[e.__dashjs_factory_name]=t),t},getClassFactoryByName:function(e){return i(e,n)},updateClassFactory:function(e,t){a(e,t,n)}}}();t.a=n},function(e,t,r){"use strict";function n(e){return(n="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)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=s(e);if(t){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return a(this,r)}}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=new(function(e){!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}}),t&&o(e,t)}(r,e);var t=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=t.call(this)).AST_IN_FUTURE="astInFuture",e.BUFFER_EMPTY="bufferStalled",e.BUFFER_LOADED="bufferLoaded",e.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",e.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",e.DYNAMIC_TO_STATIC="dynamicToStatic",e.ERROR="error",e.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",e.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",e.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",e.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",e.LOG="log",e.MANIFEST_LOADED="manifestLoaded",e.METRICS_CHANGED="metricsChanged",e.METRIC_CHANGED="metricChanged",e.METRIC_ADDED="metricAdded",e.METRIC_UPDATED="metricUpdated",e.PERIOD_SWITCH_STARTED="periodSwitchStarted",e.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",e.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",e.QUALITY_CHANGE_RENDERED="qualityChangeRendered",e.TRACK_CHANGE_RENDERED="trackChangeRendered",e.STREAM_INITIALIZING="streamInitializing",e.STREAM_UPDATED="streamUpdated",e.STREAM_ACTIVATED="streamActivated",e.STREAM_DEACTIVATED="streamDeactivated",e.STREAM_INITIALIZED="streamInitialized",e.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",e.TEXT_TRACKS_ADDED="allTextTracksAdded",e.TEXT_TRACK_ADDED="textTrackAdded",e.TTML_PARSED="ttmlParsed",e.TTML_TO_PARSE="ttmlToParse",e.CAPTION_RENDERED="captionRendered",e.CAPTION_CONTAINER_RESIZE="captionContainerResize",e.CAN_PLAY="canPlay",e.CAN_PLAY_THROUGH="canPlayThrough",e.PLAYBACK_ENDED="playbackEnded",e.PLAYBACK_ERROR="playbackError",e.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",e.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",e.PLAYBACK_LOADED_DATA="playbackLoadedData",e.PLAYBACK_PAUSED="playbackPaused",e.PLAYBACK_PLAYING="playbackPlaying",e.PLAYBACK_PROGRESS="playbackProgress",e.PLAYBACK_RATE_CHANGED="playbackRateChanged",e.PLAYBACK_SEEKED="playbackSeeked",e.PLAYBACK_SEEKING="playbackSeeking",e.PLAYBACK_STALLED="playbackStalled",e.PLAYBACK_STARTED="playbackStarted",e.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",e.PLAYBACK_VOLUME_CHANGED="playbackVolumeChanged",e.PLAYBACK_WAITING="playbackWaiting",e.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged",e.EVENT_MODE_ON_START="eventModeOnStart",e.EVENT_MODE_ON_RECEIVE="eventModeOnReceive",e.CONFORMANCE_VIOLATION="conformanceViolation",e.REPRESENTATION_SWITCH="representationSwitch",e.ADAPTATION_SET_REMOVED_NO_CAPABILITIES="adaptationSetRemovedNoCapabilities",e.CONTENT_STEERING_REQUEST_COMPLETED="contentSteeringRequestCompleted",e}return r}(r(18).a));t.a=u},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var o=function e(){n(this,e),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this._stream=null,this._tfinish=null,this._mediaduration=null,this._quality=null,this._responseHeaders=null,this._serviceLocation=null,this._fileLoaderType=null},i=function e(){n(this,e),this.s=null,this.d=null,this.b=[]};o.GET="GET",o.HEAD="HEAD",o.MPD_TYPE="MPD",o.XLINK_EXPANSION_TYPE="XLinkExpansion",o.INIT_SEGMENT_TYPE="InitializationSegment",o.INDEX_SEGMENT_TYPE="IndexSegment",o.MEDIA_SEGMENT_TYPE="MediaSegment",o.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",o.MSS_FRAGMENT_INFO_SEGMENT_TYPE="FragmentInfoSegment",o.DVB_REPORTING_TYPE="DVBReporting",o.LICENSE="license",o.CONTENT_STEERING_TYPE="ContentSteering",o.OTHER_TYPE="other"},function(e,t,r){"use strict";var n=r(7),o=r(2),i=r(3),a=1,s=2,u=3,l=4,f=5;function c(e){e=e||{};var t,r,i,c,d=this.context,m=Object(n.a)(d).getInstance(),p=e.settings,h=[];function g(e){return e&&e.bind?e.bind(window.console):window.console.log.bind(window.console)}function v(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[a,this].concat(t))}function _(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[s,this].concat(t))}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[u,this].concat(t))}function E(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[l,this].concat(t))}function b(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];T.apply(void 0,[f,this].concat(t))}function T(e,t){var n="",a=null;r&&(a=(new Date).getTime(),n+="["+(a-c)+"]"),i&&t&&t.getClassName&&(n+="["+t.getClassName()+"]",t.getType&&(n+="["+t.getType()+"]")),n.length>0&&(n+=" ");for(var s=arguments.length,u=new Array(s>2?s-2:0),l=2;l<s;l++)u[l-2]=arguments[l];Array.apply(null,u).forEach((function(e){n+=e+" "})),h[e]&&p.get().debug.logLevel>=e&&h[e](n),p&&p.get().debug.dispatchEvent&&m.trigger(o.a.LOG,{message:n,level:e})}return t={getLogger:function(e){return{fatal:v.bind(e),error:_.bind(e),warn:y.bind(e),info:E.bind(e),debug:b.bind(e)}},setLogTimestampVisible:function(e){r=e},setCalleeNameVisible:function(e){i=e}},r=!0,i=!0,c=(new Date).getTime(),"undefined"!=typeof window&&window.console&&(h[a]=g(window.console.error),h[s]=g(window.console.error),h[u]=g(window.console.warn),h[l]=g(window.console.info),h[f]=g(window.console.debug)),t}c.__dashjs_factory_name="Debug";var d=i.a.getSingletonFactory(c);d.LOG_LEVEL_NONE=0,d.LOG_LEVEL_FATAL=a,d.LOG_LEVEL_ERROR=s,d.LOG_LEVEL_WARNING=u,d.LOG_LEVEL_INFO=l,d.LOG_LEVEL_DEBUG=f,i.a.updateSingletonFactory(c.__dashjs_factory_name,d),t.a=d},function(e,t,r){"use strict";var n=r(3),o=r(4);function i(){var e={};function t(t,r,n){var o=-1;return e[t]?(e[t].some((function(e,t){if(e&&e.callback===r&&(!n||n===e.scope))return o=t,!0})),o):o}return{on:function(r,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!r)throw new Error("event type cannot be null or undefined");if(!n||"function"!=typeof n)throw new Error("listener must be a function: "+n);var a=i.priority||0;if(!(t(r,n,o)>=0)){e[r]=e[r]||[];var s={callback:n,scope:o,priority:a};o&&o.getStreamId&&(s.streamId=o.getStreamId()),o&&o.getType&&(s.mediaType=o.getType()),i&&i.mode&&(s.mode=i.mode);var u=e[r].some((function(t,n){if(t&&a>t.priority)return e[r].splice(n,0,s),!0}));u||e[r].push(s)}},off:function(r,n,o){if(r&&n&&e[r]){var i=t(r,n,o);i<0||(e[r][i]=null)}},trigger:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t&&e[t]){if((r=r||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");r.type=t,n.streamId&&(r.streamId=n.streamId),n.mediaType&&(r.mediaType=n.mediaType),e[t].filter((function(e){return!!e&&((!n.streamId||!e.streamId||e.streamId===n.streamId)&&((!n.mediaType||!e.mediaType||e.mediaType===n.mediaType)&&!(n.mode&&e.mode&&e.mode!==n.mode||!e.mode&&n.mode&&n.mode===o.a.EVENT_MODE_ON_RECEIVE)))})).forEach((function(e){return e&&e.callback.call(e.scope,r)}))}},reset:function(){e={}}}}i.__dashjs_factory_name="EventBus";var a=n.a.getSingletonFactory(i);a.EVENT_PRIORITY_LOW=0,a.EVENT_PRIORITY_HIGH=5e3,n.a.updateSingletonFactory(i.__dashjs_factory_name,a),t.a=a},function(e,t,r){"use strict";var n=r(3),o={DEFAULT:.5,STRONG:1,WEAK:0};function i(e,t,r){return{quality:void 0===e?-1:e,reason:void 0===t?null:t,priority:function(e){var t=o.DEFAULT;return e!==o.DEFAULT&&e!==o.STRONG&&e!==o.WEAK||(t=e),t}(r)}}i.__dashjs_factory_name="SwitchRequest";var a=n.a.getClassFactory(i);a.NO_CHANGE=-1,a.PRIORITY=o,n.a.updateClassFactory(i.__dashjs_factory_name,a),t.a=a},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t,r,o;return t=e,(r=[{key:"init",value:function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_LOADED="bufferLoaded",this.ABANDON_LOAD="abandonload",this.ALLOW_LOAD="allowload",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors",this.HTTP_REQUEST_DVB_REPORTING_TYPE="DVBReporting"}}])&&n(t.prototype,r),o&&n(t,o),e}());t.a=o},function(e,t,r){"use strict";t.a=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t||null,this.message=r||null,this.data=n||null}},function(e,t,r){"use strict";function n(e){return(n="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)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=s(e);if(t){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return a(this,r)}}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=new(function(e){!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}}),t&&o(e,t)}(r,e);var t=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=t.call(this)).MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,e.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,e.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,e.SEGMENT_BASE_LOADER_ERROR_CODE=15,e.TIME_SYNC_FAILED_ERROR_CODE=16,e.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,e.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,e.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,e.APPEND_ERROR_CODE=20,e.REMOVE_ERROR_CODE=21,e.DATA_UPDATE_FAILED_ERROR_CODE=22,e.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,e.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,e.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,e.DOWNLOAD_ERROR_ID_SIDX_CODE=26,e.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,e.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,e.DOWNLOAD_ERROR_ID_XLINK_CODE=29,e.MANIFEST_ERROR_ID_PARSE_CODE=31,e.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,e.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,e.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,e.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,e.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",e.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",e.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",e.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",e.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",e.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segment ranges from sidx",e.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize client and server time",e.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",e.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",e.APPEND_ERROR_MESSAGE="chunk is not defined",e.REMOVE_ERROR_MESSAGE="Removing data from the SourceBuffer",e.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",e.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",e.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",e.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",e.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : ",e}return r}(r(28).a));t.a=u},function(e,t,r){"use strict";r.d(t,"e",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"d",(function(){return s})),r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return c}));var n=r(32);function o(e,t){for(;e.length<t;)e="0"+e;return e}function i(e){return e?e.split("$$").join("$"):e}function a(e,t){if(!t||!e||-1===e.indexOf("$RepresentationID$"))return e;var r=t.toString();return e.split("$RepresentationID$").join(r)}function s(e,t,r){var n,i,a,s,u,l,f=t.length,c="%0".length;if(!e)return e;for(;;){if((n=e.indexOf("$"+t))<0)return e;if((i=e.indexOf("$",n+f))<0)return e;if((a=e.indexOf("%0",n+f))>n&&a<i)switch(s=e.charAt(i-1),u=parseInt(e.substring(a+c,i-1),10),s){case"d":case"i":case"u":l=o(r.toString(),u);break;case"x":l=o(r.toString(16),u);break;case"X":l=o(r.toString(16),u).toUpperCase();break;case"o":l=o(r.toString(8),u);break;default:return e}else l=r;e=e.substring(0,n)+l+e.substring(i+1)}}function u(e,t,r,o,i,a,s,u){var l,f=new n.a;return f.representation=e,f.duration=t,f.presentationStartTime=r,f.mediaStartTime=o,f.availabilityStartTime=i.calcAvailabilityStartTimeFromPresentationTime(a,e,s),f.availabilityEndTime=i.calcAvailabilityEndTimeFromPresentationTime(a+t,e,s),f.wallStartTime=i.calcWallTimeForSegment(f,s),f.replacementNumber=(l=u,f.representation.startNumber+l),f.index=u,f}function l(e,t,r,n){var o=t.adaptation.period;if(isFinite(o.duration)&&o.start+o.duration<=r.presentationStartTime)return!1;if(n){if("INF"===t.availabilityTimeOffset)return!0;var i=e.getClientReferenceTime();return r.availabilityStartTime.getTime()<=i&&(!isFinite(r.availabilityEndTime)||r.availabilityEndTime.getTime()>=i)}return!0}function f(e,t,r,n){var o,i,a;o=r.segmentDuration,isNaN(o)&&(o=r.adaptation.period.duration),i=parseFloat((r.adaptation.period.start+n*o).toFixed(5)),a=parseFloat((i+o).toFixed(5));var s=u(r,o,i,e.calcMediaTimeFromPresentationTime(i,r),e,a,t,n);return l(e,r,s,t)?s:null}function c(e,t,r,n,o,i,a,f,c,d){var m,p,h=n/i,g=o/i;return m=e.calcPresentationTimeFromMediaTime(h,r),l(e,r,p=u(r,g,m,h,e,m+g,t,c),t)?(p.replacementTime=d||n,a=s(a,"Number",p.replacementNumber),a=s(a,"Time",p.replacementTime),p.media=a,p.mediaRange=f,p):null}},function(e,t,r){"use strict";var n=r(3);function o(){var e,t=/^[a-z][a-z0-9+\-_.]*:/i,r=/^https?:\/\//i,n=/^https:\/\//i,o=/^([a-z][a-z0-9+\-_.]*:\/\/[^\/]+)\/?/i,i=function(e,t){try{return new window.URL(e,t).toString()}catch(t){return e}},a=function(e,t){var r=s;if(!t)return e;if(!f(e))return e;c(e)&&(r=u),d(e)&&(r=l);var n=r(t),o="/"!==n.charAt(n.length-1)&&"/"!==e.charAt(0)?"/":"";return[n,e].join(o)};function s(e){var t=e.indexOf("/"),r=e.lastIndexOf("/");return-1!==t?r===t+1?e:(-1!==e.indexOf("?")&&(e=e.substring(0,e.indexOf("?"))),e.substring(0,r+1)):""}function u(e){var t=e.match(o);return t?t[1]:""}function l(e){var r=e.match(t);return r?r[0]:""}function f(e){return!t.test(e)}function c(e){return f(e)&&"/"===e.charAt(0)}function d(e){return 0===e.indexOf("//")}return function(){try{new window.URL("x","http://y");e=i}catch(e){}finally{e=e||a}}(),{parseBaseUrl:s,parseOrigin:u,parseScheme:l,isRelative:f,isPathAbsolute:c,isSchemeRelative:d,isHTTPURL:function(e){return r.test(e)},isHTTPS:function(e){return n.test(e)},removeHostname:function(e){return/^(?:\w+\:\/\/)?([^\/]+)(.*)$/.exec(e)[2].substring(1)},resolve:function(t,r){return e(t,r)}}}o.__dashjs_factory_name="DefaultURLUtils";var i=n.a.getSingletonFactory(o);function a(){var e,t=[],r=this.context;function n(r,n,o){var i=function(r){var n;for(n=0;n<t.length;n++){if(t[n].regex.test(r))return t[n].utils}return e}(o||n);return i&&"function"==typeof i[r]?i[r](n,o):e[r](n,o)}return e=i(r).getInstance(),{registerUrlRegex:function(e,r){t.push({regex:e,utils:r})},parseBaseUrl:function(e){return n("parseBaseUrl",e)},parseOrigin:function(e){return n("parseOrigin",e)},parseScheme:function(e){return n("parseScheme",e)},isRelative:function(e){return n("isRelative",e)},isPathAbsolute:function(e){return n("isPathAbsolute",e)},isSchemeRelative:function(e){return n("isSchemeRelative",e)},isHTTPURL:function(e){return n("isHTTPURL",e)},isHTTPS:function(e){return n("isHTTPS",e)},removeHostname:function(e){return n("removeHostname",e)},resolve:function(e,t){return n("resolve",e,t)}}}a.__dashjs_factory_name="URLUtils";var s=n.a.getSingletonFactory(a);t.a=s},function(e,t,r){"use strict";var n=r(37),o=r.n(n),i=r(38);function a(e){return(a="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)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"mixin",value:function(t,r,n){var o,i={};if(t)for(var s in r)r.hasOwnProperty(s)&&(o=r[s],s in t&&(t[s]===o||s in i&&i[s]===o)||("object"===a(t[s])&&null!==t[s]?t[s]=e.mixin(t[s],o,n):t[s]=n(o)));return t}},{key:"clone",value:function(t){if(!t||"object"!==a(t))return t;var r;if(t instanceof Array){r=[];for(var n=0,o=t.length;n<o;++n)n in t&&r.push(e.clone(t[n]))}else r={};return e.mixin(r,t,e.clone)}},{key:"addAditionalQueryParameterToUrl",value:function(e,t){try{if(!t||0===t.length)return e;var r=new URL(e);return t.forEach((function(e){e.key&&e.value&&r.searchParams.set(e.key,e.value)})),r.href}catch(t){return e}}},{key:"parseHttpHeaders",value:function(e){var t={};if(!e)return t;for(var r=e.trim().split("\r\n"),n=0,o=r.length;n<o;n++){var i=r[n],a=i.indexOf(": ");a>0&&(t[i.substring(0,a)]=i.substring(a+2))}return t}},{key:"generateUuid",value:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}},{key:"generateHashCode",value:function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}},{key:"getRelativeUrl",value:function(e,t){try{var r=new URL(e),n=new URL(t);if(r.protocol=n.protocol,r.origin!==n.origin)return t;var i=o.a.relative(r.pathname.substr(0,r.pathname.lastIndexOf("/")),n.pathname.substr(0,n.pathname.lastIndexOf("/"))),a=0===i.length?1:0;return i+=n.pathname.substr(n.pathname.lastIndexOf("/")+a,n.pathname.length-1),n.pathname.length<i.length?n.pathname:i}catch(e){return t}}},{key:"parseUserAgent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;try{var t=null===e&&"undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"";return Object(i.UAParser)(t)}catch(e){return{}}}}],(r=null)&&s(t.prototype,r),n&&s(t,n),e}();t.a=u},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a}));var n=r(1);function o(e){return(o="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)}function i(e,t){if(o(e)!==t)throw n.a.BAD_ARGUMENT_ERROR}function a(e){if(!(null!==e&&!isNaN(e)&&e%1==0))throw n.a.BAD_ARGUMENT_ERROR+" : argument is not an integer"}},function(e,t,r){"use strict";var n=r(3),o=r(14),i=r(6),a=r(1),s=r(5),u=r(7),l=r(2);function f(e){return(f="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)}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(){var e,t,r=this.context,n=Object(u.a)(r).getInstance(),d={"streaming.delay.liveDelay":l.a.SETTING_UPDATED_LIVE_DELAY,"streaming.delay.liveDelayFragmentCount":l.a.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,"streaming.liveCatchup.enabled":l.a.SETTING_UPDATED_CATCHUP_ENABLED},m={debug:{logLevel:i.a.LOG_LEVEL_WARNING,dispatchEvent:!1},streaming:{abandonLoadTimeout:1e4,wallclockTimeUpdateInterval:100,manifestUpdateRetryInterval:100,cacheInitSegments:!1,applyServiceDescription:!0,applyProducerReferenceTime:!0,applyContentSteering:!0,eventControllerRefreshDelay:100,enableManifestDurationMismatchFix:!0,capabilities:{filterUnsupportedEssentialProperties:!0,useMediaCapabilitiesApi:!1},timeShiftBuffer:{calcFromSegmentTimeline:!1,fallbackToSegmentTimeline:!0},metrics:{maxListDepth:100},delay:{liveDelayFragmentCount:NaN,liveDelay:NaN,useSuggestedPresentationDelay:!0},protection:{keepProtectionMediaKeys:!1,ignoreEmeEncryptedEvent:!1,detectPlayreadyMessageFormat:!0},buffer:{enableSeekDecorrelationFix:!1,fastSwitchEnabled:!0,flushBufferAtTrackSwitch:!1,reuseExistingSourceBuffers:!0,bufferPruningInterval:10,bufferToKeep:20,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,initialBufferLevel:NaN,stableBufferTime:12,longFormContentDurationThreshold:600,stallThreshold:.3,useAppendWindow:!0,setStallState:!0,avoidCurrentTimeRangePruning:!1},gaps:{jumpGaps:!0,jumpLargeGaps:!0,smallGapLimit:1.5,threshold:.3,enableSeekFix:!0,enableStallFix:!1,stallSeek:.1},utcSynchronization:{enabled:!0,useManifestDateHeaderTimeSource:!0,backgroundAttempts:2,timeBetweenSyncAttempts:30,maximumTimeBetweenSyncAttempts:600,minimumTimeBetweenSyncAttempts:2,timeBetweenSyncAttemptsAdjustmentFactor:2,maximumAllowedDrift:100,enableBackgroundSyncAfterSegmentDownloadError:!0,defaultTimingSource:{scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"https://time.akamai.com/?iso&ms"}},scheduling:{defaultTimeout:500,lowLatencyTimeout:0,scheduleWhilePaused:!0},text:{defaultEnabled:!0},liveCatchup:{maxDrift:NaN,playbackRate:NaN,playbackBufferMin:.5,enabled:null,mode:a.a.LIVE_CATCHUP_MODE_DEFAULT},lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},cacheLoadThresholds:{video:50,audio:5},trackSwitchMode:{audio:a.a.TRACK_SWITCH_MODE_ALWAYS_REPLACE,video:a.a.TRACK_SWITCH_MODE_NEVER_REPLACE},selectionModeForInitialTrack:a.a.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY,fragmentRequestTimeout:2e4,retryIntervals:(e={},c(e,s.a.MPD_TYPE,500),c(e,s.a.XLINK_EXPANSION_TYPE,500),c(e,s.a.MEDIA_SEGMENT_TYPE,1e3),c(e,s.a.INIT_SEGMENT_TYPE,1e3),c(e,s.a.BITSTREAM_SWITCHING_SEGMENT_TYPE,1e3),c(e,s.a.INDEX_SEGMENT_TYPE,1e3),c(e,s.a.MSS_FRAGMENT_INFO_SEGMENT_TYPE,1e3),c(e,s.a.LICENSE,1e3),c(e,s.a.OTHER_TYPE,1e3),c(e,"lowLatencyReductionFactor",10),e),retryAttempts:(t={},c(t,s.a.MPD_TYPE,3),c(t,s.a.XLINK_EXPANSION_TYPE,1),c(t,s.a.MEDIA_SEGMENT_TYPE,3),c(t,s.a.INIT_SEGMENT_TYPE,3),c(t,s.a.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),c(t,s.a.INDEX_SEGMENT_TYPE,3),c(t,s.a.MSS_FRAGMENT_INFO_SEGMENT_TYPE,3),c(t,s.a.LICENSE,3),c(t,s.a.OTHER_TYPE,3),c(t,"lowLatencyMultiplyFactor",5),t),abr:{movingAverageMethod:a.a.MOVING_AVERAGE_SLIDING_WINDOW,ABRStrategy:a.a.ABR_STRATEGY_DYNAMIC,additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0,abandonRequestsRule:!0},bandwidthSafetyFactor:.9,useDefaultABRRules:!0,useDeadTimeLatency:!0,limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,maxBitrate:{audio:-1,video:-1},minBitrate:{audio:-1,video:-1},maxRepresentationRatio:{audio:1,video:1},initialBitrate:{audio:-1,video:-1},initialRepresentationRatio:{audio:-1,video:-1},autoSwitchBitrate:{audio:!0,video:!0},fetchThroughputCalculationMode:a.a.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING},cmcd:{enabled:!1,sid:null,cid:null,rtp:null,rtpSafetyFactor:5,mode:a.a.CMCD_MODE_QUERY,enabledKeys:["br","d","ot","tb","bl","dl","mtp","nor","nrr","su","bs","rtp","cid","pr","sf","sid","st","v"]}},errors:{recoverAttempts:{mediaErrorDecode:5}}},p=o.a.clone(m);return{get:function(){return p},update:function(e){"object"===f(e)&&function e(t,r,i){for(var a in t)t.hasOwnProperty(a)&&(r.hasOwnProperty(a)?"object"!==f(t[a])||t[a]instanceof Array||null===t[a]?(r[a]=o.a.clone(t[a]),d[i+a]&&n.trigger(d[i+a])):e(t[a],r[a],i.slice()+a+"."):console.error("Settings parameter "+i+a+" is not supported"))}(e,p,"")},reset:function(){p=o.a.clone(m)}}}d.__dashjs_factory_name="Settings";var m=n.a.getSingletonFactory(d);t.a=m},function(e,t,r){"use strict";var n=r(5);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.action=e.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaStartTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=t||null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null}var t,r,i;return t=e,(r=[{key:"isInitializationRequest",value:function(){return this.type&&this.type===n.a.INIT_SEGMENT_TYPE}},{key:"setInfo",value:function(e){this.type=e&&e.init?n.a.INIT_SEGMENT_TYPE:n.a.MEDIA_SEGMENT_TYPE,this.url=e&&e.url?e.url:null,this.range=e&&e.range?e.range.start+"-"+e.range.end:null,this.mediaType=e&&e.mediaType?e.mediaType:null}}])&&o(t.prototype,r),i&&o(t,i),e}();i.ACTION_DOWNLOAD="download",i.ACTION_COMPLETE="complete",t.a=i},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o;return t=e,(r=[{key:"extend",value:function(e,t){if(e){var r=!!t&&t.override,n=!!t&&t.publicOnly;for(var o in e)!e.hasOwnProperty(o)||this[o]&&!r||n&&-1===e[o].indexOf("public_")||(this[o]=e[o])}}}])&&n(t.prototype,r),o&&n(t,o),e}();t.a=o},function(e,t,r){"use strict";function n(e){return(n="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)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=s(e);if(t){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return a(this,r)}}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=new(function(e){!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}}),t&&o(e,t)}(r,e);var t=i(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=t.call(this)).METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",e.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer",e.CMCD_DATA_GENERATED="cmcdDataGenerated",e}return r}(r(18).a));t.a=u},function(e,t,r){"use strict";r.d(t,"b",(function(){return o}));var n=r(3);function o(e,t){var r={url:e.url,method:e.method,headers:Object.assign({},e.headers),credentials:e.withCredentials?"include":void 0};return Promise.resolve(t.modifyRequest(r)).then((function(){return Object.assign(e,r,{withCredentials:"include"===r.credentials})}))}function i(){return{modifyRequest:null,modifyRequestURL:function(e){return e},modifyRequestHeader:function(e,t){return t.url,e}}}i.__dashjs_factory_name="RequestModifier",t.a=n.a.getSingletonFactory(i)},function(e,t,r){"use strict";var n=r(3),o=r(17);function i(e){var t,r,n,i,a=(e=e||{}).eventBus,s=e.events,u=e.dashMetrics,l=e.fragmentLoader,f=e.debug,c=e.streamInfo,d=e.type;function m(e){var t;return!!e&&(t=!1,n.some((function(r){if(n=e,i=r,!isNaN(n.index)&&n.startTime===i.startTime&&n.adaptationIndex===i.adaptationIndex&&n.type===i.type||function(e,t){return isNaN(e.index)&&isNaN(t.index)&&e.quality===t.quality}(e,r)||function(e,t){return e.action===o.a.ACTION_COMPLETE&&e.action===t.action}(e,r))return t=!0;var n,i})),t)}function p(e){return isNaN(e.duration)?.25:Math.min(e.duration/8,.5)}function h(e){n=n.filter((function(t){var r=p(t);return isNaN(t.startTime)||void 0!==e&&t.startTime>=e-r}))}function g(e,t){t<=e+.5||(n=n.filter((function(r){var n=p(r);return isNaN(r.startTime)||r.startTime>=t-n||isNaN(r.duration)||r.startTime+r.duration<=e+n})))}function v(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n],i=o.startTime,a=i+o.duration;if(r=isNaN(r)?p(o):r,!isNaN(i)&&!isNaN(a)&&t+r>=i&&t-r<a||isNaN(i)&&isNaN(t))return o}return null}function _(e,t){u.addSchedulingInfo(e,t),u.addRequestsQueue(e.mediaType,i,n)}function y(e){e.sender===l&&(i.splice(i.indexOf(e.request),1),e.response&&!e.error&&n.push(e.request),_(e.request,e.error?"failed":"executed"),a.trigger(s.FRAGMENT_LOADING_COMPLETED,{request:e.request,response:e.response,error:e.error,sender:this},{streamId:c.id,mediaType:d}))}function E(e){e.sender===l&&a.trigger(s.FRAGMENT_LOADING_PROGRESS,{request:e.request,response:e.response,error:e.error,sender:this},{streamId:c.id,mediaType:d})}function b(e){e.sender===l&&a.trigger(s.FRAGMENT_LOADING_ABANDONED,{request:e.request},{streamId:c.id,mediaType:d})}function T(){n=[],i=[]}return t={getStreamId:function(){return c.id},getType:function(){return d},getRequests:function(e){var t=e?e.state instanceof Array?e.state:[e.state]:[],r=[];return t.forEach((function(t){var o=function(e){var t;switch(e){case"loading":t=i;break;case"executed":t=n;break;default:t=[]}return t}(t);r=r.concat(function(e,t){if(t.hasOwnProperty("time"))return[v(e,t.time,t.threshold)];return e.filter((function(e){for(var r in t)if("state"!==r&&t.hasOwnProperty(r)&&e[r]!=t[r])return!1;return!0}))}(o,e))})),r},isFragmentLoaded:m,isFragmentLoadedOrPending:function(e){var t,r=!1,n=0;if(!(r=m(e)))for(n=0;n<i.length;n++)t=i[n],e.url===t.url&&e.startTime===t.startTime&&(r=!0);return r},removeExecutedRequestsBeforeTime:h,removeExecutedRequestsAfterTime:function(e){n=n.filter((function(t){return isNaN(t.startTime)||void 0!==e&&t.startTime<e}))},syncExecutedRequestsWithBufferedRange:function(e,t){if(e&&0!==e.length){for(var r=0,n=0,o=e.length;n<o;n++)g(r,e.start(n)),r=e.end(n);t>0&&g(r,t)}else h()},abortRequests:function(){r.debug("abort requests"),l.abort(),i=[]},executeRequest:function(e){switch(e.action){case o.a.ACTION_DOWNLOAD:_(e,"loading"),i.push(e),function(e){a.trigger(s.FRAGMENT_LOADING_STARTED,{request:e},{streamId:c.id,mediaType:d}),l.load(e)}(e);break;default:r.warn("Unknown request action.")}},reset:function(){a.off(s.LOADING_COMPLETED,y,this),a.off(s.LOADING_DATA_PROGRESS,E,this),a.off(s.LOADING_ABANDONED,b,this),l&&l.reset(),T()},resetInitialSettings:T,addExecutedRequest:function(e){n.push(e)}},r=f.getLogger(t),T(),a.on(s.LOADING_COMPLETED,y,t),a.on(s.LOADING_DATA_PROGRESS,E,t),a.on(s.LOADING_ABANDONED,b,t),t}i.__dashjs_factory_name="FragmentModel";var a=n.a.getClassFactory(i);a.FRAGMENT_MODEL_LOADING="loading",a.FRAGMENT_MODEL_EXECUTED="executed",a.FRAGMENT_MODEL_CANCELED="canceled",a.FRAGMENT_MODEL_FAILED="failed",n.a.updateClassFactory(i.__dashjs_factory_name,a),t.a=a},function(e,t,r){"use strict";var n=r(3),o=r(48);function i(e){e=e||{};var t,r,n=this.context;return t=Object(o.a)(n).getInstance(),{load:function(o){if(!r){var i=t.getLoader(o&&o.request?o.request.url:null);r=i(n).create({errHandler:e.errHandler,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,dashMetrics:e.dashMetrics,boxParser:e.boxParser?e.boxParser:null,constants:e.constants?e.constants:null,dashConstants:e.dashConstants?e.dashConstants:null,urlUtils:e.urlUtils?e.urlUtils:null,requestTimeout:isNaN(e.requestTimeout)?0:e.requestTimeout,errors:e.errors})}r.load(o)},abort:function(){r&&r.abort()}}}i.__dashjs_factory_name="URLLoader";var a=n.a.getClassFactory(i);t.a=a},function(e,t,r){"use strict";var n=r(6);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offset=t._offset,this.type=t.type,this.size=t.size,this.boxes=[],t.boxes)for(var r=0;r<t.boxes.length;r++)this.boxes.push(new e(t.boxes[r]));switch(this.isComplete=!0,t.type){case"sidx":if(this.timescale=t.timescale,this.earliest_presentation_time=t.earliest_presentation_time,this.first_offset=t.first_offset,this.references=t.references,t.references){this.references=[];for(var n=0;n<t.references.length;n++){var o={reference_type:t.references[n].reference_type,referenced_size:t.references[n].referenced_size,subsegment_duration:t.references[n].subsegment_duration};this.references.push(o)}}break;case"emsg":this.id=t.id,this.version=1===t.version?1:0,this.value=t.value,this.timescale=t.timescale,this.scheme_id_uri=t.scheme_id_uri,this.presentation_time_delta=1===t.version?t.presentation_time:t.presentation_time_delta,this.event_duration=t.event_duration,this.message_data=t.message_data;break;case"mdhd":this.timescale=t.timescale;break;case"mfhd":this.sequence_number=t.sequence_number;break;case"subs":this.entry_count=t.entry_count,this.entries=t.entries;break;case"tfhd":this.base_data_offset=t.base_data_offset,this.sample_description_index=t.sample_description_index,this.default_sample_duration=t.default_sample_duration,this.default_sample_size=t.default_sample_size,this.default_sample_flags=t.default_sample_flags,this.flags=t.flags;break;case"tfdt":this.version=t.version,this.baseMediaDecodeTime=t.baseMediaDecodeTime,this.flags=t.flags;break;case"trun":if(this.sample_count=t.sample_count,this.first_sample_flags=t.first_sample_flags,this.data_offset=t.data_offset,this.flags=t.flags,this.samples=t.samples,t.samples){this.samples=[];for(var i=0,a=t.samples.length;i<a;i++){var s={sample_size:t.samples[i].sample_size,sample_duration:t.samples[i].sample_duration,sample_composition_time_offset:t.samples[i].sample_composition_time_offset};this.samples.push(s)}}}}var t,r,n;return t=e,(r=[{key:"getChildBox",value:function(e){for(var t=0;t<this.boxes.length;t++)if(this.boxes[t].type===e)return this.boxes[t]}},{key:"getChildBoxes",value:function(e){for(var t=[],r=0;r<this.boxes.length;r++)this.boxes[r].type===e&&t.push(this.boxes[r]);return t}}])&&o(t.prototype,r),n&&o(t,n),e}(),a=r(3);function s(){var e;function t(t){var n=[];if(!t||!e||"function"!=typeof e.fetchAll)return n;for(var o,i=e.fetchAll(t),a=0,s=i.length;a<s;a++)(o=r(i[a]))&&n.push(o);return n}function r(e){if(!e)return null;var t=new i(e);return e.hasOwnProperty("_incomplete")&&(t.isComplete=!e._incomplete),t}return{getBox:function(t){return t&&e&&e.boxes&&0!==e.boxes.length&&"function"==typeof e.fetch?r(e.fetch(t)):null},getBoxes:t,setData:function(t){e=t},getLastBox:function(){if(!e||!e.boxes||!e.boxes.length)return null;var r=t(e.boxes[e.boxes.length-1].type);return r.length>0?r[r.length-1]:null}}}s.__dashjs_factory_name="IsoFile";var u=a.a.getClassFactory(s),l=r(25),f=r.n(l);var c=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastCompletedOffset=t,this.found=r,this.size=n};function d(){var e,t,r=this.context;function o(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var t=f.a.parseBuffer(e),n=u(r).create();return n.setData(t),n}function i(e,t){return e[t+3]>>>0|e[t+2]<<8>>>0|e[t+1]<<16>>>0|e[t]<<24>>>0}function a(e,t){return String.fromCharCode(e[t++])+String.fromCharCode(e[t++])+String.fromCharCode(e[t++])+String.fromCharCode(e[t])}return t={parse:o,findLastTopIsoBoxCompleted:function(e,t,r){if(void 0===r&&(r=0),!t||r+8>=t.byteLength)return new c(0,!1);for(var n,o=t instanceof ArrayBuffer?new Uint8Array(t):t,s=0;r<o.byteLength;){var u=i(o,r),l=a(o,r+4);if(0===u)break;r+u<=o.byteLength&&(e.indexOf(l)>=0?n=new c(r,!0,u):s=r+u),r+=u}return n||new c(s,!1)},getMediaTimescaleFromMoov:function(e){var t=o(e),r=t?t.getBox("mdhd"):void 0;return r?r.timescale:NaN},getSamplesInfo:function(e){if(!e||0===e.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var t,r,n,i,a,s,u,l,f,c,d,m,p,h,g,v,_=o(e),y=_.getBoxes("moof"),E=_.getBoxes("mfhd");g=_.getBoxes("moof").length,h=E[E.length-1].sequence_number,r=0,a=[];var b=-1,T=-1;for(c=0;c<y.length;c++){var A=y[c],S=A.getChildBoxes("traf");for(l=0;l<S.length;l++){var I=S[l],R=I.getChildBox("tfhd"),w=I.getChildBox("tfdt");i=w.baseMediaDecodeTime;var O=I.getChildBoxes("trun"),N=I.getChildBoxes("subs");for(f=0;f<O.length;f++){var D=O[f];for(r=D.sample_count,p=(R.base_data_offset||0)+(D.data_offset||0),u=0;u<r;u++){t=void 0!==(s=D.samples[u]).sample_duration?s.sample_duration:R.default_sample_duration,n=void 0!==s.sample_size?s.sample_size:R.default_sample_size;var C={dts:i,cts:i+(void 0!==s.sample_composition_time_offset?s.sample_composition_time_offset:0),duration:t,offset:A.offset+p,size:n,subSizes:[n]};if(N)for(d=0;d<N.length;d++){var P=N[d];if(b<P.entry_count-1&&u>T&&(b++,T+=P.entries[b].sample_delta),u==T){C.subSizes=[];var L=P.entries[b];for(m=0;m<L.subsample_count;m++)C.subSizes.push(L.subsamples[m].subsample_size)}}a.push(C),p+=n,i+=t}}v=i-w.baseMediaDecodeTime}}return{sampleList:a,lastSequenceNumber:h,totalDuration:v,numSequences:g}},findInitRange:function(t){var r=null,n=o(t);if(!n)return r;var i=n.getBox("ftyp"),a=n.getBox("moov");return e.debug("Searching for initialization."),a&&a.isComplete&&(r=(i?i.offset:a.offset)+"-"+(a.offset+a.size-1),e.debug("Found the initialization. Range: "+r)),r},parsePayload:function(e,t,r){if(void 0===r&&(r=0),!t||r+8>=t.byteLength)return new c(0,!1);for(var n,o=t instanceof ArrayBuffer?new Uint8Array(t):t,s=0;r<o.byteLength;){var u=i(o,r),l=a(o,r+4);if(0===u)break;r+u<=o.byteLength&&(e.indexOf(l)>=0?n=new c(r,!0,u,l):s=r+u),r+=u}return n||new c(s,!1)}},e=Object(n.a)(r).getInstance().getLogger(t),t}d.__dashjs_factory_name="BoxParser";t.a=a.a.getSingletonFactory(d)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){
/*! codem-isoboxer v0.3.6 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */
var n={parseBuffer:function(e){return new o(e).parse()},addBoxProcessor:function(e,t){"string"==typeof e&&"function"==typeof t&&(i.prototype._boxProcessors[e]=t)},createFile:function(){return new o},createBox:function(e,t,r){var n=i.create(e);return t&&t.append(n,r),n},createFullBox:function(e,t,r){var o=n.createBox(e,t,r);return o.version=0,o.flags=0,o},Utils:{}};n.Utils.dataViewToString=function(e,t){var r=t||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(r).decode(e);var n=[],o=0;if("utf-8"===r)for(;o<e.byteLength;){var i=e.getUint8(o++);i<128||(i<224?(i=(31&i)<<6,i|=63&e.getUint8(o++)):i<240?(i=(15&i)<<12,i|=(63&e.getUint8(o++))<<6,i|=63&e.getUint8(o++)):(i=(7&i)<<18,i|=(63&e.getUint8(o++))<<12,i|=(63&e.getUint8(o++))<<6,i|=63&e.getUint8(o++))),n.push(String.fromCharCode(i))}else for(;o<e.byteLength;)n.push(String.fromCharCode(e.getUint8(o++)));return n.join("")},n.Utils.utf8ToByteArray=function(e){var t,r;if("undefined"!=typeof TextEncoder)t=(new TextEncoder).encode(e);else for(t=[],r=0;r<e.length;++r){var n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(192|n>>6),t.push(128|63&n)):n<65536?(t.push(224|n>>12),t.push(128|63&n>>6),t.push(128|63&n)):(t.push(240|n>>18),t.push(128|63&n>>12),t.push(128|63&n>>6),t.push(128|63&n))}return t},n.Utils.appendBox=function(e,t,r){if(t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,-1!==r)if(null!=r){var n,o=-1;if("number"==typeof r)o=r;else{if("string"==typeof r)n=r;else{if("object"!=typeof r||!r.type)return void e.boxes.push(t);n=r.type}for(var i=0;i<e.boxes.length;i++)if(n===e.boxes[i].type){o=i+1;break}}e.boxes.splice(o,0,t)}else e.boxes.push(t)},t.parseBuffer=n.parseBuffer,t.addBoxProcessor=n.addBoxProcessor,t.createFile=n.createFile,t.createBox=n.createBox,t.createFullBox=n.createFullBox,t.Utils=n.Utils,n.Cursor=function(e){this.offset=void 0===e?0:e};var o=function(e){this._cursor=new n.Cursor,this.boxes=[],e&&(this._raw=new DataView(e))};o.prototype.fetch=function(e){var t=this.fetchAll(e,!0);return t.length?t[0]:null},o.prototype.fetchAll=function(e,t){var r=[];return o._sweep.call(this,e,r,t),r},o.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var e=i.parse(this);if(void 0===e.type)break;this.boxes.push(e)}return this},o._sweep=function(e,t,r){for(var n in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&r)return;o._sweep.call(this.boxes[n],e,t,r)}},o.prototype.write=function(){var e,t=0;for(e=0;e<this.boxes.length;e++)t+=this.boxes[e].getLength(!1);var r=new Uint8Array(t);for(this._rawo=new DataView(r.buffer),this.bytes=r,this._cursor.offset=0,e=0;e<this.boxes.length;e++)this.boxes[e].write();return r.buffer},o.prototype.append=function(e,t){n.Utils.appendBox(this,e,t)};var i=function(){this._cursor=new n.Cursor};i.parse=function(e){var t=new i;return t._offset=e._cursor.offset,t._root=e._root?e._root:e,t._raw=e._raw,t._parent=e,t._parseBox(),e._cursor.offset=t._raw.byteOffset+t._raw.byteLength,t},i.create=function(e){var t=new i;return t.type=e,t.boxes=[],t},i.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],i.prototype._boxProcessors={},i.prototype._procField=function(e,t,r){this._parsing?this[e]=this._readField(t,r):this._writeField(t,r,this[e])},i.prototype._procFieldArray=function(e,t,r,n){var o;if(this._parsing)for(this[e]=[],o=0;o<t;o++)this[e][o]=this._readField(r,n);else for(o=0;o<this[e].length;o++)this._writeField(r,n,this[e][o])},i.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},i.prototype._procEntries=function(e,t,r){var n;if(this._parsing)for(this[e]=[],n=0;n<t;n++)this[e].push({}),r.call(this,this[e][n]);else for(n=0;n<t;n++)r.call(this,this[e][n])},i.prototype._procSubEntries=function(e,t,r,n){var o;if(this._parsing)for(e[t]=[],o=0;o<r;o++)e[t].push({}),n.call(this,e[t][o]);else for(o=0;o<r;o++)n.call(this,e[t][o])},i.prototype._procEntryField=function(e,t,r,n){this._parsing?e[t]=this._readField(r,n):this._writeField(r,n,e[t])},i.prototype._procSubBoxes=function(e,t){var r;if(this._parsing)for(this[e]=[],r=0;r<t;r++)this[e].push(i.parse(this));else for(r=0;r<t;r++)this._rawo?this[e][r].write():this.size+=this[e][r].getLength()},i.prototype._readField=function(e,t){switch(e){case"uint":return this._readUint(t);case"int":return this._readInt(t);case"template":return this._readTemplate(t);case"string":return-1===t?this._readTerminatedString():this._readString(t);case"data":return this._readData(t);case"utf8":return this._readUTF8String();default:return-1}},i.prototype._readInt=function(e){var t=null,r=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:t=this._raw.getInt8(r);break;case 16:t=this._raw.getInt16(r);break;case 32:t=this._raw.getInt32(r);break;case 64:var n=this._raw.getInt32(r),o=this._raw.getInt32(r+4);t=n*Math.pow(2,32)+o}return this._cursor.offset+=e>>3,t},i.prototype._readUint=function(e){var t,r,n=null,o=this._cursor.offset-this._raw.byteOffset;switch(e){case 8:n=this._raw.getUint8(o);break;case 16:n=this._raw.getUint16(o);break;case 24:n=((t=this._raw.getUint16(o))<<8)+(r=this._raw.getUint8(o+2));break;case 32:n=this._raw.getUint32(o);break;case 64:t=this._raw.getUint32(o),r=this._raw.getUint32(o+4),n=t*Math.pow(2,32)+r}return this._cursor.offset+=e>>3,n},i.prototype._readString=function(e){for(var t="",r=0;r<e;r++){var n=this._readUint(8);t+=String.fromCharCode(n)}return t},i.prototype._readTemplate=function(e){return this._readUint(e/2)+this._readUint(e/2)/Math.pow(2,e/2)},i.prototype._readTerminatedString=function(){for(var e="";this._cursor.offset-this._offset<this._raw.byteLength;){var t=this._readUint(8);if(0===t)break;e+=String.fromCharCode(t)}return e},i.prototype._readData=function(e){var t=e>0?e:this._raw.byteLength-(this._cursor.offset-this._offset);if(t>0){var r=new Uint8Array(this._raw.buffer,this._cursor.offset,t);return this._cursor.offset+=t,r}return null},i.prototype._readUTF8String=function(){var e=this._raw.byteLength-(this._cursor.offset-this._offset),t=null;return e>0&&(t=new DataView(this._raw.buffer,this._cursor.offset,e),this._cursor.offset+=e),t?n.Utils.dataViewToString(t):t},i.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset+8);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},i.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},i.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(i.parse(this))},i.prototype.append=function(e,t){n.Utils.appendBox(this,e,t)},i.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.size+=this.boxes[e].getLength();return this._data&&this._writeData(this._data),this.size},i.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var e=0;e<this.boxes.length;e++)this.boxes[e].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},i.prototype._writeInt=function(e,t){if(this._rawo){var r=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setInt8(r,t);break;case 16:this._rawo.setInt16(r,t);break;case 32:this._rawo.setInt32(r,t);break;case 64:var n=Math.floor(t/Math.pow(2,32)),o=t-n*Math.pow(2,32);this._rawo.setUint32(r,n),this._rawo.setUint32(r+4,o)}this._cursor.offset+=e>>3}else this.size+=e>>3},i.prototype._writeUint=function(e,t){if(this._rawo){var r,n,o=this._cursor.offset-this._rawo.byteOffset;switch(e){case 8:this._rawo.setUint8(o,t);break;case 16:this._rawo.setUint16(o,t);break;case 24:r=(16776960&t)>>8,n=255&t,this._rawo.setUint16(o,r),this._rawo.setUint8(o+2,n);break;case 32:this._rawo.setUint32(o,t);break;case 64:n=t-(r=Math.floor(t/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(o,r),this._rawo.setUint32(o+4,n)}this._cursor.offset+=e>>3}else this.size+=e>>3},i.prototype._writeString=function(e,t){for(var r=0;r<e;r++)this._writeUint(8,t.charCodeAt(r))},i.prototype._writeTerminatedString=function(e){if(0!==e.length){for(var t=0;t<e.length;t++)this._writeUint(8,e.charCodeAt(t));this._writeUint(8,0)}},i.prototype._writeTemplate=function(e,t){var r=Math.floor(t),n=(t-r)*Math.pow(2,e/2);this._writeUint(e/2,r),this._writeUint(e/2,n)},i.prototype._writeData=function(e){if(e)if(this._rawo){if(e instanceof Array){for(var t=this._cursor.offset-this._rawo.byteOffset,r=0;r<e.length;r++)this._rawo.setInt8(t+r,e[r]);this._cursor.offset+=e.length}e instanceof Uint8Array&&(this._root.bytes.set(e,this._cursor.offset),this._cursor.offset+=e.length)}else this.size+=e.length},i.prototype._writeUTF8String=function(e){var t=n.Utils.utf8ToByteArray(e);if(this._rawo)for(var r=new DataView(this._rawo.buffer,this._cursor.offset,t.length),o=0;o<t.length;o++)r.setUint8(o,t[o]);else this.size+=t.length},i.prototype._writeField=function(e,t,r){switch(e){case"uint":this._writeUint(t,r);break;case"int":this._writeInt(t,r);break;case"template":this._writeTemplate(t,r);break;case"string":-1==t?this._writeTerminatedString(r):this._writeString(t,r);break;case"data":this._writeData(r);break;case"utf8":this._writeUTF8String(r)}},i.prototype._boxProcessors.avc1=i.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},i.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},i.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(e){this._procEntryField(e,"segment_duration","uint",1===this.version?64:32),this._procEntryField(e,"media_time","int",1===this.version?64:32),this._procEntryField(e,"media_rate_integer","int",16),this._procEntryField(e,"media_rate_fraction","int",16)}))},i.prototype._boxProcessors.emsg=function(){this._procFullBox(),1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32)),this._procField("message_data","data",-1)},i.prototype._boxProcessors.free=i.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},i.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},i.prototype._boxProcessors.ftyp=i.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var e=-1;this._parsing&&(e=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",e,"string",4)},i.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},i.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},i.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},i.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},i.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},i.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},i.prototype._boxProcessors.mp4a=i.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},i.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},i.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},i.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},i.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},i.prototype._boxProcessors.sdtp=function(){this._procFullBox();var e=-1;this._parsing&&(e=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",e,"uint",8)},i.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,(function(e){this._parsing||(e.reference=(1&e.reference_type)<<31,e.reference|=2147483647&e.referenced_size,e.sap=(1&e.starts_with_SAP)<<31,e.sap|=(3&e.SAP_type)<<28,e.sap|=268435455&e.SAP_delta_time),this._procEntryField(e,"reference","uint",32),this._procEntryField(e,"subsegment_duration","uint",32),this._procEntryField(e,"sap","uint",32),this._parsing&&(e.reference_type=e.reference>>31&1,e.referenced_size=2147483647&e.reference,e.starts_with_SAP=e.sap>>31&1,e.SAP_type=e.sap>>28&7,e.SAP_delta_time=268435455&e.sap)}))},i.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},i.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,(function(e){this._procEntryField(e,"ranges_count","uint",32),this._procSubEntries(e,"ranges",e.ranges_count,(function(e){this._procEntryField(e,"level","uint",8),this._procEntryField(e,"range_size","uint",24)}))}))},i.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},i.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(e){this._procEntryField(e,"sample_delta","uint",32),this._procEntryField(e,"subsample_count","uint",16),this._procSubEntries(e,"subsamples",e.subsample_count,(function(e){this._procEntryField(e,"subsample_size","uint",1===this.version?32:16),this._procEntryField(e,"subsample_priority","uint",8),this._procEntryField(e,"discardable","uint",8),this._procEntryField(e,"codec_specific_parameters","uint",32)}))}))},i.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},i.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},i.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},i.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,(function(e){this._procEntryField(e,"time","uint",1===this.version?64:32),this._procEntryField(e,"moof_offset","uint",1===this.version?64:32),this._procEntryField(e,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(e,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(e,"sample_number","uint",8*(this.length_size_of_sample_num+1))}))},i.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},i.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},i.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,(function(e){256&this.flags&&this._procEntryField(e,"sample_duration","uint",32),512&this.flags&&this._procEntryField(e,"sample_size","uint",32),1024&this.flags&&this._procEntryField(e,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(e,"sample_composition_time_offset",1===this.version?"int":"uint",32)}))},i.prototype._boxProcessors["url "]=i.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},i.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},i.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},i.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},i.prototype._boxProcessors.vtte=function(){}},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u,l=[],f=!1,c=-1;function d(){f&&u&&(f=!1,u.length?l=u.concat(l):c=-1,l.length&&m())}function m(){if(!f){var e=s(d);f=!0;for(var t=l.length;t;){for(u=l,l=[];++c<t;)u&&u[c].run();c=-1,t=l.length}u=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||f||s(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(3),o=r(8),i=r(1),a=r(9);function s(e){e=e||{};var t=this.context,r=e.dashMetrics;return{getMaxIndex:function(e){var n=Object(o.a)(t).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("useBufferOccupancyABR")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("getScheduleController")))return n;!function(){if(!r||!r.hasOwnProperty("getCurrentBufferState"))throw new Error(i.a.MISSING_CONFIG_ERROR)}();var s=e.getMediaInfo(),u=e.getMediaType(),l=r.getCurrentBufferState(u),f=e.getScheduleController(),c=e.getAbrController(),d=e.getStreamInfo(),m=d?d.id:null,p=d&&d.manifestInfo?d.manifestInfo.isDynamic:null,h=c.getThroughputHistory(),g=h.getSafeAverageThroughput(u,p),v=h.getAverageLatency(u),_=e.useBufferOccupancyABR();return isNaN(g)||!l||_||c.getAbandonmentStateFor(m,u)!==a.a.ABANDON_LOAD&&(l.state===a.a.BUFFER_LOADED||p)&&(n.quality=c.getQualityForBitrate(s,g,m,v),f.setTimeToLoadDelay(0),n.reason={throughput:g,latency:v}),n},reset:function(){}}}s.__dashjs_factory_name="ThroughputRule";var u=n.a.getClassFactory(s),l=r(7),f=r(2),c=r(6),d=r(4);function m(e){e=e||{};var t,r,n,s=this.context,u=Object(l.a)(s).getInstance(),m=e.dashMetrics;function p(){(n={})[i.a.VIDEO]={ignoreCount:2},n[i.a.AUDIO]={ignoreCount:2}}function h(){p()}function g(e){isNaN(e.startTime)||e.mediaType!==i.a.AUDIO&&e.mediaType!==i.a.VIDEO||n[e.mediaType].ignoreCount>0&&n[e.mediaType].ignoreCount--}return t={getMaxIndex:function(e){var t=Object(o.a)(s).create();if(!e||!e.hasOwnProperty("getMediaType"))return t;!function(){if(!m||!m.hasOwnProperty("getCurrentBufferLevel")||!m.hasOwnProperty("getCurrentBufferState"))throw new Error(i.a.MISSING_CONFIG_ERROR)}();var u=e.getMediaType(),l=m.getCurrentBufferState(u),f=e.getRepresentationInfo().fragmentDuration,c=e.getStreamInfo(),d=c?c.id:null,p=e.getScheduleController(),h=c&&c.manifestInfo&&c.manifestInfo.isDynamic;if(function(e,t){return!e&&n[t].ignoreCount>0}(p.getPlaybackController().getLowLatencyModeEnabled(),u)||!f)return t;if(l&&l.state===a.a.BUFFER_EMPTY)r.debug("["+u+"] Switch to index 0; buffer is empty."),t.quality=0,t.reason="InsufficientBufferRule: Buffer is empty";else{var g=e.getMediaInfo(),v=e.getAbrController(),_=v.getThroughputHistory(),y=m.getCurrentBufferLevel(u),E=_.getAverageThroughput(u,h),b=_.getAverageLatency(u),T=E*(y/f)*.5;t.quality=v.getQualityForBitrate(g,T,d,b),t.reason="InsufficientBufferRule: being conservative to avoid immediate rebuffering"}return t},reset:function(){p(),u.off(d.a.PLAYBACK_SEEKING,h,t),u.off(f.a.BYTES_APPENDED_END_FRAGMENT,g,t)}},r=Object(c.a)(s).getInstance().getLogger(t),p(),u.on(d.a.PLAYBACK_SEEKING,h,t),u.on(f.a.BYTES_APPENDED_END_FRAGMENT,g,t),t}m.__dashjs_factory_name="InsufficientBufferRule";var p=n.a.getClassFactory(m);function h(e){e=e||{};var t,r,n,i,a,s=this.context,u=e.mediaPlayerModel,l=e.dashMetrics,f=e.settings;function d(){n={},i={},a=[]}return t={shouldAbandon:function(e){var t=Object(o.a)(s).create(o.a.NO_CHANGE,{name:h.__dashjs_factory_name});if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getCurrentRequest")&&e.hasOwnProperty("getRepresentationInfo")&&e.hasOwnProperty("getAbrController")))return t;var c,d,m=e.getMediaInfo(),p=e.getMediaType(),g=e.getStreamInfo(),v=g?g.id:null,_=e.getCurrentRequest();if(!isNaN(_.index)){c=p,d=_.index,n[c]=n[c]||{},n[c][d]=n[c][d]||{};var y=u.getStableBufferTime();if(l.getCurrentBufferLevel(p)>y)return t;var E=n[p][_.index];if(null===E||null===_.firstByteDate||i.hasOwnProperty(E.id))return t;if(void 0===E.firstByteTime&&(a[p]=[],E.firstByteTime=_.firstByteDate.getTime(),E.segmentDuration=_.duration,E.bytesTotal=_.bytesTotal,E.id=_.index),E.bytesLoaded=_.bytesLoaded,E.elapsedTime=(new Date).getTime()-E.firstByteTime,E.bytesLoaded>0&&E.elapsedTime>0&&function(e,t){a[e]=a[e]||[],a[e].push(t)}(p,Math.round(8*E.bytesLoaded/E.elapsedTime)),a[p].length>=5&&E.elapsedTime>500&&E.bytesLoaded<E.bytesTotal){var b=a[p].reduce((function(e,t){return e+t}),0);if(E.measuredBandwidthInKbps=Math.round(b/a[p].length),E.estimatedTimeOfDownload=+(8*E.bytesTotal/E.measuredBandwidthInKbps/1e3).toFixed(2),E.estimatedTimeOfDownload<1.8*E.segmentDuration||0===e.getRepresentationInfo().quality)return t;if(!i.hasOwnProperty(E.id)){var T=e.getAbrController(),A=E.bytesTotal-E.bytesLoaded,S=T.getBitrateList(m),I=T.getQualityForBitrate(m,E.measuredBandwidthInKbps*f.get().streaming.abr.bandwidthSafetyFactor,v),R=T.getMinAllowedIndexFor(p,v),w=void 0!==R?Math.max(R,I):I;A>E.bytesTotal*S[w].bitrate/S[T.getQualityFor(p,v)].bitrate&&(t.quality=w,t.reason.throughput=E.measuredBandwidthInKbps,t.reason.fragmentID=E.id,i[E.id]=E,r.debug("["+p+"] frag id",E.id," is asking to abandon and switch to quality to ",w," measured bandwidth was",E.measuredBandwidthInKbps),delete n[p][E.id])}}else E.bytesLoaded===E.bytesTotal&&delete n[p][E.id]}return t},reset:d},r=Object(c.a)(s).getInstance().getLogger(t),d(),t}h.__dashjs_factory_name="AbandonRequestsRule";var g=n.a.getClassFactory(h);function v(){var e,t,r=this.context;return e={getMaxIndex:function(e){var n=Object(o.a)(r).create();if(!e||!e.hasOwnProperty("getDroppedFramesHistory"))return n;var i=e.getDroppedFramesHistory(),a=e.getStreamInfo().id;if(i){var s=i.getFrameHistory(a);if(!s||0===s.length)return n;for(var u=0,l=0,f=o.a.NO_CHANGE,c=1;c<s.length;c++)if(s[c]&&(u=s[c].droppedVideoFrames,(l=s[c].totalVideoFrames)>375&&u/l>.15)){f=c-1,t.debug("index: "+f+" Dropped Frames: "+u+" Total Frames: "+l);break}return Object(o.a)(r).create(f,{droppedFrames:u})}return n}},t=Object(c.a)(r).getInstance().getLogger(e),e}v.__dashjs_factory_name="DroppedFramesRule";var _=n.a.getClassFactory(v);function y(){var e,t,r=this.context;return e={getMaxIndex:function(e){for(var n=e?e.getSwitchHistory():null,i=n?n.getSwitchRequests():[],a=0,s=0,u=0,l=Object(o.a)(r).create(),f=0;f<i.length;f++)if(void 0!==i[f]&&(a+=i[f].drops,s+=i[f].noDrops,u+=i[f].dropSize,a+s>=6&&a/s>.075)){l.quality=f>0&&i[f].drops>0?f-1:f,l.reason={index:l.quality,drops:a,noDrops:s,dropSize:u},t.debug("Switch history rule index: "+l.quality+" samples: "+(a+s)+" drops: "+a);break}return l}},t=Object(c.a)(r).getInstance().getLogger(e),e}y.__dashjs_factory_name="SwitchHistoryRule";var E=n.a.getClassFactory(y),b=r(5);function T(e){e=e||{};var t,r,n,s=this.context,u=e.dashMetrics,m=e.mediaPlayerModel,p=Object(l.a)(s).getInstance();function h(e,t,r){var n=r.reduce((function(e,t,n){return t>r[e]?n:e}),0);if(0===n)return null;var o=Math.max(e,10+2*t.length),i=(r[n]-1)/(o/10-1);return{gp:i,Vp:10/i}}function g(e){var t={},r=e.getMediaInfo().bitrateList.map((function(e){return e.bandwidth})),n=function(e){return e.map((function(e){return Math.log(e)}))}(r);n=n.map((function(e){return e-n[0]+1}));var o=m.getStableBufferTime(),i=h(o,r,n);return i?(t.state=1,t.bitrates=r,t.utilities=n,t.stableBufferTime=o,t.Vp=i.Vp,t.gp=i.gp,t.lastQuality=0,v(t)):t.state=0,t}function v(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN}function _(e,t){var r=m.getStableBufferTime();if(e.stableBufferTime!==r){var n=h(r,e.bitrates,e.utilities);if(n.Vp!==e.Vp||n.gp!==e.gp){var o=u.getCurrentBufferLevel(t),i=o+e.placeholderBuffer;i-=10,i*=n.Vp/e.Vp,i+=10,e.stableBufferTime=r,e.Vp=n.Vp,e.gp=n.gp,e.placeholderBuffer=Math.max(0,i-o)}}}function y(e,t){return e.Vp*(e.utilities[t]+e.gp)}function E(e,t){for(var r=e.bitrates[t],n=e.utilities[t],o=0,i=t-1;i>=0;--i)if(e.utilities[i]<e.utilities[t]){var a=e.bitrates[i],s=e.utilities[i],u=e.Vp*(e.gp+(r*s-a*n)/(r-a));o=Math.max(o,u)}return o}function T(e){var t=e.mediaType===i.a.AUDIO?[i.a.AUDIO]:n;for(var r in t)n.hasOwnProperty(r)&&2===n[r].state&&(n[r].placeholderBuffer=0)}function A(){for(var e in n)if(n.hasOwnProperty(e)){var t=n[e];0!==t.state&&(t.state=1,v(t))}}function S(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=n[e.chunk.mediaInfo.type];if(t&&0!==t.state){var r=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||r>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=r,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=r,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,R(t,e.chunk.mediaInfo.type)}}}function I(e){if(e&&e.metric===a.a.HTTP_REQUEST&&e.value&&e.value.type===b.a.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=n[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),R(t,e.mediaType))}}function R(e,t){if(!isNaN(e.lastSegmentStart)&&!isNaN(e.lastSegmentRequestTimeMs)&&!isNaN(e.placeholderBuffer)){if(e.placeholderBuffer*=.99,!isNaN(e.lastSegmentFinishTimeMs)){var r=u.getCurrentBufferLevel(t)+.001*(e.lastSegmentFinishTimeMs-e.lastSegmentRequestTimeMs),n=y(e,e.lastQuality),o=Math.max(0,n-r);e.placeholderBuffer=Math.min(o,e.placeholderBuffer)}e.lastSegmentWasReplacement&&!isNaN(e.lastSegmentDurationS)&&(e.placeholderBuffer+=e.lastSegmentDurationS),e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN}}function w(e){if(e){var t=n[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function O(e){if(e){var t=n[e.mediaType];if(t&&0!==t.state){var r,o=u.getCurrentBufferLevel(e.mediaType);r=t.abrQuality>0?E(t,t.abrQuality):10;var i=Math.max(0,r-o);t.placeholderBuffer=Math.min(t.placeholderBuffer,i)}}}function N(){n={}}return t={getMaxIndex:function(e){var t=Object(o.a)(s).create();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useBufferOccupancyABR")))return t;var i=e.getMediaInfo(),a=e.getMediaType(),l=e.getScheduleController(),f=e.getStreamInfo(),c=e.getAbrController(),d=c.getThroughputHistory(),m=f?f.id:null,p=f&&f.manifestInfo&&f.manifestInfo.isDynamic,h=e.useBufferOccupancyABR();if(t.reason=t.reason||{},!h)return t;l.setTimeToLoadDelay(0);var b=function(e){var t=e.getMediaType(),r=n[t];return r?0!==r.state&&_(r,t):(r=g(e),n[t]=r),r}(e);if(0===b.state)return t;var T,A=u.getCurrentBufferLevel(a),S=d.getAverageThroughput(a,p),I=d.getSafeAverageThroughput(a,p),R=d.getAverageLatency(a);if(t.reason.state=b.state,t.reason.throughput=S,t.reason.latency=R,isNaN(S))return t;switch(b.state){case 1:T=c.getQualityForBitrate(i,I,m,R),t.quality=T,t.reason.throughput=I,b.placeholderBuffer=Math.max(0,E(b,T)-A),b.lastQuality=T,!isNaN(b.lastSegmentDurationS)&&A>=b.lastSegmentDurationS&&(b.state=2);break;case 2:!function(e,t){var r=Date.now();if(isNaN(e.lastSegmentFinishTimeMs)){if(!isNaN(e.lastCallTimeMs)){var n=.001*(r-e.lastCallTimeMs);e.placeholderBuffer+=Math.max(0,n)}}else{var o=.001*(r-e.lastSegmentFinishTimeMs);e.placeholderBuffer+=Math.max(0,o)}e.lastCallTimeMs=r,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN,_(e,t)}(b,a),T=function(e,t){for(var r=e.bitrates.length,n=NaN,o=NaN,i=0;i<r;++i){var a=(e.Vp*(e.utilities[i]+e.gp)-t)/e.bitrates[i];(isNaN(o)||a>=o)&&(o=a,n=i)}return n}(b,A+b.placeholderBuffer);var w=c.getQualityForBitrate(i,I,m,R);T>b.lastQuality&&T>w&&(T=Math.max(w,b.lastQuality));var O=Math.max(0,A+b.placeholderBuffer-y(b,T));O<=b.placeholderBuffer?(b.placeholderBuffer-=O,O=0):(O-=b.placeholderBuffer,b.placeholderBuffer=0,T<c.getMaxAllowedIndexFor(a,m)?l.setTimeToLoadDelay(1e3*O):O=0),t.quality=T,t.reason.throughput=S,t.reason.latency=R,t.reason.bufferLevel=A,t.reason.placeholderBuffer=b.placeholderBuffer,t.reason.delay=O,b.lastQuality=T;break;default:r.debug("BOLA ABR rule invoked in bad state."),t.quality=c.getQualityForBitrate(i,I,m,R),t.reason.state=b.state,t.reason.throughput=I,t.reason.latency=R,b.state=1,v(b)}return t},reset:function(){N(),p.off(d.a.BUFFER_EMPTY,T,t),p.off(d.a.PLAYBACK_SEEKING,A,t),p.off(d.a.METRIC_ADDED,I,t),p.off(d.a.QUALITY_CHANGE_REQUESTED,w,t),p.off(d.a.FRAGMENT_LOADING_ABANDONED,O,t),p.off(f.a.MEDIA_FRAGMENT_LOADED,S,t)}},r=Object(c.a)(s).getInstance().getLogger(t),N(),p.on(d.a.BUFFER_EMPTY,T,t),p.on(d.a.PLAYBACK_SEEKING,A,t),p.on(d.a.METRIC_ADDED,I,t),p.on(d.a.QUALITY_CHANGE_REQUESTED,w,t),p.on(d.a.FRAGMENT_LOADING_ABANDONED,O,t),p.on(f.a.MEDIA_FRAGMENT_LOADED,S,t),t}T.__dashjs_factory_name="BolaRule";var A=n.a.getClassFactory(T);function S(e){e=e||{};var t,r,n,s,u=this.context,d=e.dashMetrics,m=Object(l.a)(u).getInstance();function p(e){var t={},r=e.getMediaInfo(),o=r.bitrateList.map((function(e){return e.bandwidth/1e3}));return t.state=1,t.bitrates=o,t.lastQuality=0,function(e){if(!e||!e.type)return;n[e.type]={},n[e.type].w=[],n[e.type].prev_w=[],n[e.type].Q=0,n[e.type].segment_request_start_s=0,n[e.type].segment_download_finish_s=0,n[e.type].B_target=1.5}(r),h(t),t}function h(e){e.placeholderBuffer=0,e.mostAdvancedSegmentStart=NaN,e.lastSegmentWasReplacement=!1,e.lastSegmentStart=NaN,e.lastSegmentDurationS=NaN,e.lastSegmentRequestTimeMs=NaN,e.lastSegmentFinishTimeMs=NaN}function g(){for(var e in r)if(r.hasOwnProperty(e)){var t=r[e];0!==t.state&&(t.state=1,h(t))}}function v(e){if(e&&e.chunk&&e.chunk.mediaInfo){var t=r[e.chunk.mediaInfo.type],o=n[e.chunk.mediaInfo.type];if(t&&0!==t.state){var i=e.chunk.start;isNaN(t.mostAdvancedSegmentStart)||i>t.mostAdvancedSegmentStart?(t.mostAdvancedSegmentStart=i,t.lastSegmentWasReplacement=!1):t.lastSegmentWasReplacement=!0,t.lastSegmentStart=i,t.lastSegmentDurationS=e.chunk.duration,t.lastQuality=e.chunk.quality,y(t,o)}}}function _(e){if(e&&e.metric===a.a.HTTP_REQUEST&&e.value&&e.value.type===b.a.MEDIA_SEGMENT_TYPE&&e.value.trace&&e.value.trace.length){var t=r[e.mediaType],o=n[e.mediaType];t&&0!==t.state&&(t.lastSegmentRequestTimeMs=e.value.trequest.getTime(),t.lastSegmentFinishTimeMs=e.value._tfinish.getTime(),y(t,o))}}function y(e,t){isNaN(e.lastSegmentStart)||isNaN(e.lastSegmentRequestTimeMs)||(t.segment_request_start_s=.001*e.lastSegmentRequestTimeMs,t.segment_download_finish_s=.001*e.lastSegmentFinishTimeMs,e.lastSegmentStart=NaN,e.lastSegmentRequestTimeMs=NaN)}function E(e){if(e&&e.mediaType){var t=r[e.mediaType];t&&0!==t.state&&(t.abrQuality=e.newQuality)}}function T(e,t){if(e.length!==t.length)return-1;for(var r=0,n=0;n<e.length;n++)r+=e[n]*t[n];return r}function A(){r={},n={}}return t={getMaxIndex:function(e){var t,a=Object(o.a)(u).create(),l=Math.pow(4,.99),f=Math.max(Math.pow(4,1),l*Math.sqrt(4)),c=e.getMediaInfo(),m=e.getMediaType(),g=c.bitrateList.map((function(e){return e.bandwidth})),v=g.length,_=e.getScheduleController(),y=e.getStreamInfo(),E=e.getAbrController(),b=E.getThroughputHistory(),A=y&&y.manifestInfo&&y.manifestInfo.isDynamic,S=e.useL2AABR(),I=d.getCurrentBufferLevel(m,!0),R=b.getSafeAverageThroughput(m,A),w=b.getAverageThroughput(m,A),O=b.getAverageLatency(m),N=e.getVideoModel().getPlaybackRate();if(!(e&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getMediaType")&&e.hasOwnProperty("getScheduleController")&&e.hasOwnProperty("getStreamInfo")&&e.hasOwnProperty("getAbrController")&&e.hasOwnProperty("useL2AABR")))return a;if(a.reason=a.reason||{},!S||m===i.a.AUDIO)return a;_.setTimeToLoadDelay(0);var D=function(e){var t=e.getMediaType(),n=r[t];return n||(n=p(e),r[t]=n),n}(e);if(0===D.state)return a;var C=n[m];if(!C)return a;if(a.reason.state=D.state,a.reason.throughput=w,a.reason.latency=O,isNaN(w))return a;switch(D.state){case 1:if(t=E.getQualityForBitrate(c,R,y.id,O),a.quality=t,a.reason.throughput=R,D.lastQuality=t,!isNaN(D.lastSegmentDurationS)&&I>=C.B_target){D.state=2,C.Q=l;for(var P=0;P<v;++P)P===D.lastQuality?C.prev_w[P]=1:C.prev_w[P]=0}break;case 2:var L=[],M=d.getCurrentHttpRequest(m).trace.reduce((function(e,t){return e+t.d}),0),x=d.getCurrentHttpRequest(m).trace.reduce((function(e,t){return e+t.b[0]}),0),F=Math.round(8*x/M);F<1&&(F=1);for(var k=D.lastSegmentDurationS,B=1,U=0;U<v;++U)g[U]=g[U]/1e3,N*g[U]>F&&(B=-1),C.w[U]=C.prev_w[U]+B*(k/(2*f))*((C.Q+l)*(N*g[U]/F));C.w=function(e){for(var t=e.length,r=!1,n=[],o=0;o<t;++o)n[o]=e[o];for(var i=e.sort((function(e,t){return t-e})),a=0,s=0,u=[],l=0;l<t-1;++l)if((s=((a+=i[l])-1)/(l+1))>=i[l+1]){r=!0;break}r||(s=(a+i[t-1]-1)/t);for(var f=0;f<t;++f)u[f]=Math.max(n[f]-s,0);return u}(C.w);for(var q=0;q<v;++q)L[q]=C.w[q]-C.prev_w[q],C.prev_w[q]=C.w[q];C.Q=Math.max(0,C.Q-k+k*N*((T(g,C.prev_w)+T(g,L))/F));for(var j=[],G=0;G<v;++G)j[G]=Math.abs(g[G]-T(C.w,g));(t=j.indexOf(Math.min.apply(Math,j)))>D.lastQuality&&g[D.lastQuality+1]<=F&&(t=D.lastQuality+1),g[t]>=F&&(C.Q=2*Math.max(l,C.Q)),a.quality=t,a.reason.throughput=w,a.reason.latency=O,a.reason.bufferLevel=I,D.lastQuality=a.quality;break;default:s.debug("L2A ABR rule invoked in bad state."),a.quality=E.getQualityForBitrate(c,R,y.id,O),a.reason.state=D.state,a.reason.throughput=R,a.reason.latency=O,D.state=1,h(D)}return a},reset:function(){A(),m.off(f.a.PLAYBACK_SEEKING,g,t),m.off(f.a.MEDIA_FRAGMENT_LOADED,v,t),m.off(f.a.METRIC_ADDED,_,t),m.off(f.a.QUALITY_CHANGE_REQUESTED,E,t)}},s=Object(c.a)(u).getInstance().getLogger(t),A(),m.on(f.a.PLAYBACK_SEEKING,g,t),m.on(f.a.MEDIA_FRAGMENT_LOADED,v,t),m.on(f.a.METRIC_ADDED,_,t),m.on(f.a.QUALITY_CHANGE_REQUESTED,E,t),t}S.__dashjs_factory_name="L2ARule";var I=n.a.getClassFactory(S),R="manual_weight_selection",w="random_weight_selection",O="dynamic_weight_selection";function N(){var e,t,r,n,o,i,a,s,u,l=this.context;function f(){r=null,n=1,o=100,i=0,a=null,s=null,u=O}function d(){var e=0;if(r)for(var t=0;t<r.length;t++){var n=r[t];n.state.throughput>e&&(e=n.state.throughput)}return e}function m(e,t,r){var n=e.map((function(e,n){return r[n]*Math.pow(e-t[n],2)})).reduce((function(e,t){return e+t}));return(n<0?-1:1)*Math.sqrt(Math.abs(n))}function p(e,t,r){for(var n=0;n<t.length;n++){var o=t[n],i=(s=e,m([(a=o).state.throughput,a.state.latency,a.state.rebuffer,a.state.switch],[s.state.throughput,s.state.latency,s.state.rebuffer,s.state.switch],[1,1,1,1]));h(o,r,Math.exp(-1*Math.pow(i,2)/(2*Math.pow(.1,2))))}var a,s}function h(e,t,r){var n=e.state,o=[.01,.01,.01,.01];n.throughput=n.throughput+(t[0]-n.throughput)*o[0]*r,n.latency=n.latency+(t[1]-n.latency)*o[1]*r,n.rebuffer=n.rebuffer+(t[2]-n.rebuffer)*o[2]*r,n.switch=n.switch+(t[3]-n.switch)*o[3]*r}function g(e,t,r,n,o,i,u){a||(a=s[s.length-1]);var l=e.findWeightVector(t,r,n,o,i,u);null!==l&&-1!==l&&(a=l)}return e={getNextQuality:function(e,l,f,c,h,v,_){var y=f,E=c,b=l,T=function(e){if(!r){r=[];var t=e.bitrateList,o=[];i=t[0].bandwidth,t.forEach((function(e){o.push(e.bandwidth),e.bandwidth<i&&(i=e.bandwidth)})),l=o.map((function(e){return Math.pow(e,2)})).reduce((function(e,t){return e+t})),n=Math.sqrt(l);for(var a=0;a<t.length;a++){var u={qualityIndex:a,bitrate:t[a].bandwidth,state:{throughput:t[a].bandwidth/n,latency:0,rebuffer:0,switch:0}};r.push(u)}s=function(e){var t=[],r=function(e){for(var t=[],r=0;r<e;r++){var n=[Math.random()*d(),Math.random(),Math.random(),Math.random()];t.push(n)}return t}(Math.pow(e.length,2));t.push(r[0]);for(var n=[1,1,1,1],o=1;o<e.length;o++){for(var i=null,a=null,s=0;s<r.length;s++){for(var u=r[s],l=null,f=0;f<t.length;f++){var c=m(u,t[f],n);(null===l||c<l)&&(l=c)}(null===a||l>a)&&(i=u,a=l)}t.push(i)}for(var p=null,h=null,g=0;g<t.length;g++){for(var v=0,_=0;_<t.length;_++)g!==_&&(v+=m(t[g],t[_],n));(null===p||v>p)&&(p=v,h=g)}var y=[];y.push(t[h]),t.splice(h,1);for(;t.length>0;){for(var E=null,b=null,T=0;T<t.length;T++){var A=m(y[0],t[T],n);(null===E||A<E)&&(E=A,b=T)}y.push(t[b]),t.splice(b,1)}return y}(r)}var l;return r}(e),A=l/n;A>1&&(A=d()),f/=o,t.debug("getNextQuality called throughput:".concat(A," latency:").concat(f," bufferSize:").concat(c," currentQualityIndex:").concat(v," playbackRate:").concat(h));var S=T[v],I=S.bitrate*_.getSegmentDuration()/b,N=Math.max(0,I-E);if(E-I<_.getMinBuffer())return t.debug("Buffer is low for bitrate= ".concat(S.bitrate," downloadTime=").concat(I," currentBuffer=").concat(E," rebuffer=").concat(N)),function(e,t){var n=0,o=e;if(r)for(var i=0;i<r.length;i++){var a=r[i];a.bitrate<e.bitrate&&a.bitrate>n&&t>a.bitrate&&(n=a.bitrate,o=a)}return o}(S,b).qualityIndex;switch(u){case R:a=[.4,.4,.4,.4];break;case w:!function(e){a=function(e,t){for(var r=[],n=Math.sqrt(2/e),o=0;o<t;o++)r.push(Math.random()*n);return a=r}(e.length,4)}(T);break;case O:g(_,T,y,E,N,b,h);break;default:g(_,T,y,E,N,b,h)}for(var D=null,C=null,P=null,L=0;L<T.length;L++){var M=T[L],x=M.state,F=[x.throughput,x.latency,x.rebuffer,x.switch],k=a.slice(),B=_.getNextBufferWithBitrate(M.bitrate,E,b),U=B<_.getMinBuffer();U&&t.debug("Buffer is low for bitrate=".concat(M.bitrate," downloadTime=").concat(I," currentBuffer=").concat(E," nextBuffer=").concat(B)),(M.bitrate>l-1e4||U)&&M.bitrate!==i&&(k[0]=100);var q=m(F,[A,0,0,0],k);(null===D||q<D)&&(D=q,C=M.qualityIndex,P=M)}var j=Math.abs(S.bitrate-P.bitrate)/n;return p(S,T,[A,f,N,j]),p(P,T,[A,0,0,j]),C},reset:function(){f()}},t=Object(c.a)(l).getInstance().getLogger(e),f(),e}N.__dashjs_factory_name="LearningAbrController";var D=n.a.getClassFactory(N);var C=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=null,this.lastBitrate=null,this.weights={},this.weights.bitrateReward=null,this.weights.bitrateSwitchPenalty=null,this.weights.rebufferPenalty=null,this.weights.latencyPenalty=null,this.weights.playbackSpeedPenalty=null,this.bitrateWSum=0,this.bitrateSwitchWSum=0,this.rebufferWSum=0,this.latencyWSum=0,this.playbackSpeedWSum=0,this.totalQoe=0};function P(){var e,t,r,n,o;function i(){t=null,r=null,n=null,o=null}function a(e,t,r,n){var o=new C;return o.type=e,o.weights.bitrateReward=t||1,o.weights.bitrateSwitchPenalty=1,o.weights.rebufferPenalty=r||1e3,o.weights.latencyPenalty=[],o.weights.latencyPenalty.push({threshold:1.1,penalty:.05*n}),o.weights.latencyPenalty.push({threshold:1e8,penalty:.1*r}),o.weights.playbackSpeedPenalty=n||200,o}function s(e,t,r,n,o){o.bitrateWSum+=o.weights.bitrateReward*e,o.lastBitrate&&(o.bitrateSwitchWSum+=o.weights.bitrateSwitchPenalty*Math.abs(e-o.lastBitrate)),o.lastBitrate=e,o.rebufferWSum+=o.weights.rebufferPenalty*t;for(var i=0;i<o.weights.latencyPenalty.length;i++){var a=o.weights.latencyPenalty[i];if(r<=a.threshold){o.latencyWSum+=a.penalty*r;break}}o.playbackSpeedWSum+=o.weights.playbackSpeedPenalty*Math.abs(1-n),o.totalQoe=o.bitrateWSum-o.bitrateSwitchWSum-o.rebufferWSum-o.latencyWSum-o.playbackSpeedWSum}return e={setupPerSegmentQoe:function(e,i,s){t=a("segment",e,i,s),r=e,n=i,o=s},logSegmentMetrics:function(e,r,n,o){t&&s(e,r,n,o,t)},getPerSegmentQoe:function(){return t},calculateSingleUseQoe:function(e,t,i,u){var l=null;return r&&n&&o&&(l=a("segment",r,n,o)),l?(s(e,t,i,u,l),l.totalQoe):0},reset:function(){i()}},i(),e}P.__dashjs_factory_name="LoLpQoeEvaluator";var L=n.a.getClassFactory(P);function M(e){var t,r,n,o,i,a=e.targetLatency,s=e.bufferMin,u=e.segmentDuration,l=e.qoeEvaluator;function f(){return u}function c(e,t){var r=f();return t>r?e-r:e+r-t}return t={getMinBuffer:function(){return s},getSegmentDuration:f,getNextBufferWithBitrate:function(e,t,r){return c(t,e*u/r)},getNextBuffer:c,findWeightVector:function(e,t,o,i,f,d){var m=null,p=null,h=null,g=Math.abs(t-n);return e.forEach((function(e){r.forEach((function(r){r[0];var n=r[1],i=r[2],v=(r[3],e.bitrate*u/f),_=c(o,v),y=(0===i?10:1/i)*Math.max(1e-5,v-_),E=(0===n?10:1/n)*e.state.latency,b=l.calculateSingleUseQoe(e.bitrate,y,E,d);(null===m||b>m)&&function(e,t,r){if(e>a+r)return!1;return t>=s}(t,_,g)&&(m=b,p=r,h=e.bitrate)}))})),null===p&&null===h&&(p=-1),n=t,p}},o=[.2,.4,.6,.8,1],i=4,r=function e(t,r,n){if(n===r)return t;for(var i=t.length,a=0;a<i;a++)for(var s=t.shift(),u=0;u<o.length;u++)t.push(s.concat(o[u]));return e(t,r,n+1)}(o.map((function(e){return[e]})),i,1),n=0,t}M.__dashjs_factory_name="LoLpWeightSelector";var x=n.a.getClassFactory(M);function F(e){var t,r,n,s,u=(e=e||{}).dashMetrics,l=this.context;return r={getMaxIndex:function(e){try{var r=Object(o.a)(l).create(),f=e.getMediaInfo().type,c=e.getAbrController(),d=e.getStreamInfo(),m=c.getQualityFor(f,d.id),p=e.getMediaInfo(),h=u.getCurrentBufferState(f),g=e.getScheduleController(),v=u.getCurrentBufferLevel(f,!0),_=d&&d.manifestInfo?d.manifestInfo.isDynamic:null,y=g.getPlaybackController(),E=y.getCurrentLiveLatency();if(!e.useLoLPABR()||f===i.a.AUDIO)return r;E||(E=0);var b=y.getPlaybackRate(),T=c.getThroughputHistory().getSafeAverageThroughput(f,_);if(t.debug("Throughput ".concat(Math.round(T)," kbps")),isNaN(T)||!h)return r;if(c.getAbandonmentStateFor(d.id,f)===a.a.ABANDON_LOAD)return r;for(var A=p.bitrateList,S=e.getRepresentationInfo().fragmentDuration,I=A[0].bandwidth/1e3,R=A[A.length-1].bandwidth/1e3,w=0;w<A.length;w++){var O=A[w].bandwidth/1e3;O>R?R=O:O<I&&(I=O)}var N=A[m].bandwidth/1e3,D=u.getCurrentHttpRequest(f,!0),C=(D.tresponse.getTime()-D.trequest.getTime())/1e3,P=C>S?C-S:0;s.setupPerSegmentQoe(S,R,I),s.logSegmentMetrics(N,P,E,b);var L=x(l).create({targetLatency:1.5,bufferMin:.3,segmentDuration:S,qoeEvaluator:s});return r.quality=n.getNextQuality(p,1e3*T,E,v,b,m,L),r.reason={throughput:T,latency:E},r.priority=o.a.PRIORITY.STRONG,g.setTimeToLoadDelay(0),r.quality!==m&&console.log("[TgcLearningRule]["+f+"] requesting switch to index: ",r.quality,"Average throughput",Math.round(T),"kbps"),r}catch(e){throw e}},reset:function(){n.reset(),s.reset()}},t=Object(c.a)(l).getInstance().getLogger(r),n=D(l).create(),s=L(l).create(),r}F.__dashjs_factory_name="LoLPRule";var k=n.a.getClassFactory(F);function B(e){e=e||{};var t,r,n=this.context,a=e.mediaPlayerModel,s=e.customParametersModel,l=e.dashMetrics,f=e.settings;function c(e){return e.filter((function(e){return e.quality>o.a.NO_CHANGE}))}function d(e){var t,r,i,a,s,u={},l=null;if(0!==e.length){for(u[o.a.PRIORITY.STRONG]={quality:o.a.NO_CHANGE,reason:null},u[o.a.PRIORITY.WEAK]={quality:o.a.NO_CHANGE,reason:null},u[o.a.PRIORITY.DEFAULT]={quality:o.a.NO_CHANGE,reason:null},t=0,r=e.length;t<r;t+=1)(i=e[t]).quality!==o.a.NO_CHANGE&&(u[i.priority].quality===o.a.NO_CHANGE||u[i.priority].quality>i.quality)&&(u[i.priority].quality=i.quality,u[i.priority].reason=i.reason||null);return u[o.a.PRIORITY.WEAK].quality!==o.a.NO_CHANGE&&(l=u[o.a.PRIORITY.WEAK]),u[o.a.PRIORITY.DEFAULT].quality!==o.a.NO_CHANGE&&(l=u[o.a.PRIORITY.DEFAULT]),u[o.a.PRIORITY.STRONG].quality!==o.a.NO_CHANGE&&(l=u[o.a.PRIORITY.STRONG]),l&&(a=l.quality,s=l.reason),Object(o.a)(n).create(a,s)}}return{initialize:function(){t=[],r=[],f.get().streaming.abr.useDefaultABRRules&&(f.get().streaming.abr.ABRStrategy===i.a.ABR_STRATEGY_L2A?t.push(I(n).create({dashMetrics:l,settings:f})):f.get().streaming.abr.ABRStrategy===i.a.ABR_STRATEGY_LoLP?t.push(k(n).create({dashMetrics:l})):(t.push(A(n).create({dashMetrics:l,mediaPlayerModel:a,settings:f})),t.push(u(n).create({dashMetrics:l})),f.get().streaming.abr.additionalAbrRules.insufficientBufferRule&&t.push(p(n).create({dashMetrics:l,settings:f})),f.get().streaming.abr.additionalAbrRules.switchHistoryRule&&t.push(E(n).create()),f.get().streaming.abr.additionalAbrRules.droppedFramesRule&&t.push(_(n).create()),f.get().streaming.abr.additionalAbrRules.abandonRequestsRule&&r.push(g(n).create({dashMetrics:l,mediaPlayerModel:a,settings:f})))),s.getAbrCustomRules().forEach((function(e){"qualitySwitchRules"===e.type&&t.push(e.rule(n).create()),"abandonFragmentRules"===e.type&&r.push(e.rule(n).create())}))},reset:function(){[t,r].forEach((function(e){e&&e.length&&e.forEach((function(e){return e.reset&&e.reset()}))})),t=[],r=[]},getMaxQuality:function(e){return d(c(t.map((function(t){return t.getMaxIndex(e)}))))||Object(o.a)(n).create()},getMinSwitchRequest:d,shouldAbandonFragment:function(e,t){return d(c(r.map((function(r){return r.shouldAbandon(e,t)}))))||Object(o.a)(n).create()},getQualitySwitchRules:function(){return t}}}B.__dashjs_factory_name="ABRRulesCollection";var U=n.a.getClassFactory(B);U.QUALITY_SWITCH_RULES="qualitySwitchRules",U.ABANDON_FRAGMENT_RULES="abandonFragmentRules",n.a.updateSingletonFactory(B.__dashjs_factory_name,U);t.a=U},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o;return t=e,(r=[{key:"extend",value:function(e,t){if(e){var r=!!t&&t.override,n=!!t&&t.publicOnly;for(var o in e)!e.hasOwnProperty(o)||this[o]&&!r||n&&-1===e[o].indexOf("public_")||(this[o]=e[o])}}}])&&n(t.prototype,r),o&&n(t,o),e}();t.a=o},function(e,t,r){"use strict";var n=r(3),o=r(20);function i(e){var t=(e=e||{}).requestModifier;function r(e){var r=new Date,n=e.request,o=new XMLHttpRequest;if(o.open(e.method,e.url,!0),n.responseType&&(o.responseType=n.responseType),n.range&&o.setRequestHeader("Range","bytes="+n.range),n.requestStartDate||(n.requestStartDate=r),t&&t.modifyRequestHeader&&(o=t.modifyRequestHeader(o,{url:e.url})),e.headers)for(var i in e.headers){var a=e.headers[i];a&&o.setRequestHeader(i,a)}o.withCredentials=e.withCredentials,o.onload=e.onload,o.onloadend=e.onend,o.onerror=e.onerror,o.onprogress=e.progress,o.onabort=e.onabort,o.ontimeout=e.ontimeout,o.timeout=e.timeout,o.send(),e.response=o}return{load:function(e){t&&t.modifyRequest?Object(o.b)(e,t).then((function(){return r(e)})):r(e)},abort:function(e){var t=e.response;t.onloadend=t.onerror=t.onprogress=void 0,t.abort()}}}i.__dashjs_factory_name="XHRLoader";var a=n.a.getClassFactory(i);t.a=a},function(e,t,r){"use strict";t.a=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.schemeIdUri="",this.value=""}},function(e,t,r){"use strict";var n=r(30),o=r(3),i=r(16),a=r(15),s=r(27),u=r(1);function l(){var e,t,r,o,l,f,c,d,m=this.context,p=Object(i.a)(m).getInstance();function h(){o=[],l=[],f=[],d=[],c=null,t=[]}function g(e,t){var r=-1;e.some((function(e,n){if(e===t)return r=n,!0})),r<0||e.splice(r,1)}function v(e){var t;for(t=0;t<d.length;t++)if(d[t].rulename===e)return t;return-1}function _(e,r){y(e,r);var o=new n.a;o.schemeIdUri=e,o.value=r,t.push(o)}function y(e,r){Object(a.b)(e,"string"),Object(a.b)(r,"string"),t.forEach((function(n,o){n.schemeIdUri===e&&n.value===r&&t.splice(o,1)}))}return e={getCustomInitialTrackSelectionFunction:function(){return c},setCustomInitialTrackSelectionFunction:function(e){c=e},resetCustomInitialTrackSelectionFunction:function(){c=null},getLicenseResponseFilters:function(){return l},getLicenseRequestFilters:function(){return o},getCustomCapabilitiesFilters:function(){return f},registerCustomCapabilitiesFilter:function(e){f.push(e)},registerLicenseResponseFilter:function(e){l.push(e)},registerLicenseRequestFilter:function(e){o.push(e)},unregisterCustomCapabilitiesFilter:function(e){g(f,e)},unregisterLicenseResponseFilter:function(e){g(l,e)},unregisterLicenseRequestFilter:function(e){g(o,e)},addAbrCustomRule:function(e,t,r){if("string"!=typeof e||e!==s.a.ABANDON_FRAGMENT_RULES&&e!==s.a.QUALITY_SWITCH_RULES||"string"!=typeof t)throw u.a.BAD_ARGUMENT_ERROR;var n=v(t);-1===n?d.push({type:e,rulename:t,rule:r}):(d[n].type=e,d[n].rule=r)},removeAllAbrCustomRule:function(){d=[]},removeAbrCustomRule:function(e){if(e){var t=v(e);-1!==t&&d.splice(t,1)}else d=[]},getAbrCustomRules:function(){return d},addUTCTimingSource:_,removeUTCTimingSource:y,getUTCTimingSources:function(){return t},clearDefaultUTCTimingSources:function(){t=[]},restoreDefaultUTCTimingSources:function(){var e=p.get().streaming.utcSynchronization.defaultTimingSource;_(e.scheme,e.value)},setXHRWithCredentialsForType:function e(t,n){t?r[t]=!!n:Object.keys(r).forEach((function(t){e(t,n)}))},getXHRWithCredentialsForType:function(e){var t=r[e];return void 0===t?r.default:t},setConfig:function(){},reset:function(){h()}},r={default:!1},h(),e}l.__dashjs_factory_name="CustomParametersModel",t.a=o.a.getSingletonFactory(l)},function(e,t,r){"use strict";t.a=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.wallStartTime=NaN,this.representation=null}},function(e,t,r){"use strict";e.exports=r(75)},function(e,t,r){"use strict";var n=r(1),o=r(0);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.codecs=null,this.mimeType=null,this.codecPrivateData=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.mediaFinishedInformation={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN},this.bandwidth=NaN,this.width=NaN,this.height=NaN,this.scanType=null,this.maxPlayoutRate=NaN,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0}var t,r,n;return t=e,(r=[{key:"hasInitialization",value:function(){return null!==this.initialization||null!==this.range}},{key:"hasSegments",value:function(){return this.segmentInfoType!==o.a.BASE_URL&&this.segmentInfoType!==o.a.SEGMENT_BASE&&!this.indexRange}}])&&i(t.prototype,r),n&&i(t,n),e}();var s=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.period=null,this.index=-1,this.type=null};var u=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null,this.nextPeriodId=null};u.DEFAULT_ID="defaultId";var l=u;var f=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.publishTime=null,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN},c=r(30),d=r(45),m=r(41);var p=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri="",this.presentationTimeOffset=0};var h=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.inband=!1,this.type="encoder",this.applicationScheme=null,this.wallClockTime=null,this.presentationTime=NaN,this.UTCTiming=null};var g=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultServiceLocation=null,this.queryBeforeStart=!1,this.proxyServerUrl=null,this.serverUrl=null},v=r(46),_=r(13),y=r(3),E=r(6),b=r(10),T=r(11),A=r(35);function S(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=R(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function I(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||R(e)||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.")}()}function R(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(){var e,t,r,i,u=this.context,y=Object(_.a)(u).getInstance(),R=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function w(e,t){if(!e)throw new Error("adaptation is not defined");if(!t)throw new Error("type is not defined");if(e.Representation_asArray&&e.Representation_asArray.length){var r=B(e.Representation_asArray[0]);if(r&&r.length>0&&A.a.indexOf(r[0].schemeIdUri)>=0)return t===n.a.IMAGE}if(e.ContentComponent_asArray&&e.ContentComponent_asArray.length>0){if(e.ContentComponent_asArray.length>1)return t===n.a.MUXED;if(e.ContentComponent_asArray[0].contentType===t)return!0}var i=t===n.a.TEXT?new RegExp("(ttml|vtt|wvtt|stpp)"):new RegExp(t);if(e.Representation_asArray&&e.Representation_asArray.length){var a=e.Representation_asArray[0].codecs;if(i.test(a))return!0}if(e.hasOwnProperty(o.a.MIME_TYPE))return i.test(e.mimeType);if(e.Representation_asArray)for(var s,u=0;u<e.Representation_asArray.length;u++)if((s=e.Representation_asArray[u]).hasOwnProperty(o.a.MIME_TYPE))return i.test(s.mimeType);return!1}function O(e){if(!e)throw new Error("adaptation is not defined");if(e.hasOwnProperty(o.a.SEGMENT_TEMPLATE)||e.hasOwnProperty(o.a.SEGMENT_TIMELINE)||e.hasOwnProperty(o.a.SEGMENT_LIST)||e.hasOwnProperty(o.a.SEGMENT_BASE))return!0;if(e.Representation_asArray&&e.Representation_asArray.length>0){var t=e.Representation_asArray[0];if(t.hasOwnProperty(o.a.SEGMENT_TEMPLATE)||t.hasOwnProperty(o.a.SEGMENT_TIMELINE)||t.hasOwnProperty(o.a.SEGMENT_LIST)||t.hasOwnProperty(o.a.SEGMENT_BASE))return!0}return!1}function N(e){return w(e,n.a.AUDIO)}function D(e){return w(e,n.a.VIDEO)}function C(e){return w(e,n.a.TEXT)}function P(e){return w(e,n.a.IMAGE)}function L(){return function(e,t){return e.bandwidth-t.bandwidth}}function M(e){return e&&Array.isArray(e.Representation_asArray)&&e.Representation_asArray.sort((function(e,t){return e.bandwidth-t.bandwidth})),e}function x(e,t){return e&&e.Period_asArray&&R(t)&&e.Period_asArray[t]?e.Period_asArray[t].AdaptationSet_asArray:[]}function F(e){return e&&e.Period_asArray?e.Period_asArray:[]}function k(e){var t=!1;return e&&e.hasOwnProperty("type")&&(t=e.type===o.a.DYNAMIC),t}function B(e){return e&&e.EssentialProperty_asArray&&e.EssentialProperty_asArray.length?e.EssentialProperty_asArray.map((function(e){return{schemeIdUri:e.schemeIdUri,value:e.value}})):null}function U(e){if(!e||!e.S_asArray)return NaN;var t=e.S_asArray[0],r=e.S_asArray[1];return t.hasOwnProperty("d")?t.d:r.t-t.t}function q(e,t){if(!e)throw new Error("Period cannot be null or undefined");var r=l.DEFAULT_ID+"_"+t;return e.hasOwnProperty(o.a.ID)&&e.id.length>0&&"__proto__"!==e.id&&(r=e.id),r}function j(e,t,r){var i,a=[];if(!e)return a;for(i=0;i<e.length;i++){var s=new p;if(s.timescale=1,s.representation=t,!e[i].hasOwnProperty(n.a.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");s.schemeIdUri=e[i].schemeIdUri,e[i].hasOwnProperty(o.a.TIMESCALE)&&(s.timescale=e[i].timescale),e[i].hasOwnProperty(o.a.VALUE)&&(s.value=e[i].value),a.push(s),s.period=r}return a}function G(e){var t=[],r=e.BaseURL_asArray||[e.baseUri],n=!1;return r.some((function(r){if(r){var i=new m.a,a=r.__text||r;return y.isRelative(a)&&(n=!0,e.baseUri&&(a=y.resolve(a,e.baseUri))),i.url=a,r.hasOwnProperty(o.a.SERVICE_LOCATION)&&r.serviceLocation.length?i.serviceLocation=r.serviceLocation:i.serviceLocation=a,r.hasOwnProperty(o.a.DVB_PRIORITY)&&(i.dvb_priority=r[o.a.DVB_PRIORITY]),r.hasOwnProperty(o.a.DVB_WEIGHT)&&(i.dvb_weight=r[o.a.DVB_WEIGHT]),r.hasOwnProperty(o.a.AVAILABILITY_TIME_OFFSET)&&(i.availabilityTimeOffset=r[o.a.AVAILABILITY_TIME_OFFSET]),r.hasOwnProperty(o.a.AVAILABILITY_TIME_COMPLETE)&&(i.availabilityTimeComplete="false"!==r[o.a.AVAILABILITY_TIME_COMPLETE]),t.push(i),n}})),t}return e={getIsTypeOf:w,getIsText:C,getIsFragmented:O,getProducerReferenceTimesForAdaptation:function(e){var t=e&&e.hasOwnProperty(o.a.PRODUCERREFERENCETIME_ASARRAY)?e[o.a.PRODUCERREFERENCETIME_ASARRAY]:[];(e&&e.hasOwnProperty(o.a.REPRESENTATION_ASARRAY)?e[o.a.REPRESENTATION_ASARRAY]:[]).forEach((function(e){e.hasOwnProperty(o.a.PRODUCERREFERENCETIME_ASARRAY)&&t.push.apply(t,I(e[o.a.PRODUCERREFERENCETIME_ASARRAY]))}));var r=[];return t.forEach((function(e){var t=new h;e.hasOwnProperty(o.a.ID)&&(t[o.a.ID]=e[o.a.ID],e.hasOwnProperty(o.a.WALL_CLOCK_TIME)&&(t[o.a.WALL_CLOCK_TIME]=e[o.a.WALL_CLOCK_TIME],e.hasOwnProperty(o.a.PRESENTATION_TIME)&&(t[o.a.PRESENTATION_TIME]=e[o.a.PRESENTATION_TIME],r.push(t))))})),r},getLanguageForAdaptation:function(e){var t="";return e&&e.hasOwnProperty(o.a.LANG)&&(t=e.lang),t},getViewpointForAdaptation:function(e){return e&&e.hasOwnProperty(o.a.VIEWPOINT)?e.Viewpoint:null},getRolesForAdaptation:function(e){return e&&e.hasOwnProperty(o.a.ROLE_ASARRAY)?e.Role_asArray:[]},getAccessibilityForAdaptation:function(e){return e&&e.hasOwnProperty(o.a.ACCESSIBILITY_ASARRAY)?e.Accessibility_asArray:[]},getAudioChannelConfigurationForAdaptation:function(e){return e&&e.hasOwnProperty(o.a.AUDIOCHANNELCONFIGURATION_ASARRAY)?e.AudioChannelConfiguration_asArray:[]},getAudioChannelConfigurationForRepresentation:function(e){return e&&e.hasOwnProperty(o.a.AUDIOCHANNELCONFIGURATION_ASARRAY)?e.AudioChannelConfiguration_asArray:[]},getAdaptationForIndex:function(e,t,r){var n=x(t,r);return n.length>0&&R(e)?n[e]:null},getIndexForAdaptation:function(e,t,r){if(!e)return-1;for(var n=x(t,r),o=0;o<n.length;o++){if(Object(v.a)(u).getInstance().areEqual(n[o],e))return o}return-1},getAdaptationForId:function(e,t,r){var n,i,a=x(t,r);for(n=0,i=a.length;n<i;n++)if(a[n].hasOwnProperty(o.a.ID)&&a[n].id===e)return a[n];return null},getAdaptationsForType:function(e,t,r){var n,o,i=x(e,t),a=[];for(n=0,o=i.length;n<o;n++)w(i[n],r)&&a.push(M(i[n]));return a},getRealPeriods:F,getRealPeriodForIndex:function(e,t){var r=F(t);return r.length>0&&R(e)?r[e]:null},getCodec:function(e,t,r){var n=null;if(e&&e.Representation_asArray&&e.Representation_asArray.length>0){var o=R(t)&&t>=0&&t<e.Representation_asArray.length?e.Representation_asArray[t]:e.Representation_asArray[0];o&&(n=o.mimeType+';codecs="'+o.codecs+'"',r&&void 0!==o.width&&(n+=';width="'+o.width+'";height="'+o.height+'"'))}return n&&(n=n.replace(/\sprofiles=[^;]*/g,"")),n},getSelectionPriority:function(e){try{var t=e&&void 0!==e.selectionPriority?parseInt(e.selectionPriority):1;return isNaN(t)?1:t}catch(e){return 1}},getMimeType:function(e){return e&&e.Representation_asArray&&e.Representation_asArray.length>0?e.Representation_asArray[0].mimeType:null},getKID:function(e){return e&&e.hasOwnProperty(o.a.CENC_DEFAULT_KID)?e[o.a.CENC_DEFAULT_KID]:null},getLabelsForAdaptation:function(e){if(!e||!Array.isArray(e.Label_asArray))return[];for(var t=[],r=0;r<e.Label_asArray.length;r++)t.push({lang:e.Label_asArray[r].lang,text:e.Label_asArray[r].__text||e.Label_asArray[r]});return t},getContentProtectionData:function(e){return e&&e.hasOwnProperty(o.a.CONTENTPROTECTION_ASARRAY)&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null},getIsDynamic:k,getId:function(e){return e&&e[o.a.ID]||null},hasProfile:function(e,t){var r=!1;return e&&e.profiles&&e.profiles.length>0&&(r=-1!==e.profiles.indexOf(t)),r},getDuration:function(e){return e&&e.hasOwnProperty(o.a.MEDIA_PRESENTATION_DURATION)?e.mediaPresentationDuration:e&&"dynamic"==e.type?Number.POSITIVE_INFINITY:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE},getBandwidth:function(e){return e&&e.bandwidth?e.bandwidth:NaN},getManifestUpdatePeriod:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=NaN;return e&&e.hasOwnProperty(o.a.MINIMUM_UPDATE_PERIOD)&&(r=e.minimumUpdatePeriod),isNaN(r)?r:Math.max(r-t,1)},getPublishTime:function(e){return e&&e.hasOwnProperty(o.a.PUBLISH_TIME)?new Date(e[o.a.PUBLISH_TIME]):null},getRepresentationCount:function(e){return e&&Array.isArray(e.Representation_asArray)?e.Representation_asArray.length:0},getBitrateListForAdaptation:function(e){var t=M(e);return(t&&Array.isArray(t.Representation_asArray)?t.Representation_asArray:[]).map((function(e){return{bandwidth:e.bandwidth,width:e.width||0,height:e.height||0,scanType:e.scanType||null,id:e.id||null}}))},getRepresentationFor:function(e,t){return t&&t.Representation_asArray&&t.Representation_asArray.length>0&&R(e)?t.Representation_asArray[e]:null},getRepresentationsForAdaptation:function(e){var t,r,n,i,s=[],u=function(e){if(e&&e.period&&R(e.period.index)){var t=e.period.mpd.manifest.Period_asArray[e.period.index];if(t&&t.AdaptationSet_asArray&&R(e.index))return M(t.AdaptationSet_asArray[e.index])}}(e);if(u&&u.Representation_asArray){if(e&&e.period&&R(e.period.index)){var l=G(e.period.mpd.manifest);l&&(r=l[0])}for(var f=0,c=u.Representation_asArray.length;f<c;++f){var d=u.Representation_asArray[f],m=new a;if(m.index=f,m.adaptation=e,d.hasOwnProperty(o.a.ID)&&(m.id=d.id),d.hasOwnProperty(o.a.CODECS)&&(m.codecs=d.codecs),d.hasOwnProperty(o.a.MIME_TYPE)&&(m.mimeType=d[o.a.MIME_TYPE]),d.hasOwnProperty(o.a.CODEC_PRIVATE_DATA)&&(m.codecPrivateData=d.codecPrivateData),d.hasOwnProperty(o.a.BANDWITH)&&(m.bandwidth=d.bandwidth),d.hasOwnProperty(o.a.WIDTH)&&(m.width=d.width),d.hasOwnProperty(o.a.HEIGHT)&&(m.height=d.height),d.hasOwnProperty(o.a.SCAN_TYPE)&&(m.scanType=d.scanType),d.hasOwnProperty(o.a.MAX_PLAYOUT_RATE)&&(m.maxPlayoutRate=d.maxPlayoutRate),d.hasOwnProperty(o.a.SEGMENT_BASE)?(t=d.SegmentBase,m.segmentInfoType=o.a.SEGMENT_BASE):d.hasOwnProperty(o.a.SEGMENT_LIST)?(t=d.SegmentList).hasOwnProperty(o.a.SEGMENT_TIMELINE)?m.segmentInfoType=o.a.SEGMENT_TIMELINE:m.segmentInfoType=o.a.SEGMENT_LIST:d.hasOwnProperty(o.a.SEGMENT_TEMPLATE)?((t=d.SegmentTemplate).hasOwnProperty(o.a.SEGMENT_TIMELINE)?m.segmentInfoType=o.a.SEGMENT_TIMELINE:m.segmentInfoType=o.a.SEGMENT_TEMPLATE,t.hasOwnProperty(o.a.INITIALIZATION_MINUS)&&(m.initialization=t.initialization.split("$Bandwidth$").join(d.bandwidth).split("$RepresentationID$").join(d.id))):m.segmentInfoType=o.a.BASE_URL,m.essentialProperties=B(d),t){if(t.hasOwnProperty(o.a.INITIALIZATION)){var p=t.Initialization;p.hasOwnProperty(o.a.SOURCE_URL)&&(m.initialization=p.sourceURL),p.hasOwnProperty(o.a.RANGE)&&(m.range=p.range)}else C(u)&&O(u)&&u.mimeType&&-1===u.mimeType.indexOf("application/mp4")&&(m.range=0);t.hasOwnProperty(o.a.TIMESCALE)&&(m.timescale=t.timescale),t.hasOwnProperty(o.a.DURATION)?m.segmentDuration=t.duration/m.timescale:d.hasOwnProperty(o.a.SEGMENT_TEMPLATE)&&(t=d.SegmentTemplate).hasOwnProperty(o.a.SEGMENT_TIMELINE)&&(m.segmentDuration=U(t.SegmentTimeline)/m.timescale),t.hasOwnProperty(o.a.MEDIA)&&(m.media=t.media),t.hasOwnProperty(o.a.START_NUMBER)&&(m.startNumber=t.startNumber),t.hasOwnProperty(o.a.INDEX_RANGE)&&(m.indexRange=t.indexRange),t.hasOwnProperty(o.a.PRESENTATION_TIME_OFFSET)&&(m.presentationTimeOffset=t.presentationTimeOffset/m.timescale),t.hasOwnProperty(o.a.AVAILABILITY_TIME_OFFSET)?m.availabilityTimeOffset=t.availabilityTimeOffset:r&&void 0!==r.availabilityTimeOffset&&(m.availabilityTimeOffset=r.availabilityTimeOffset),t.hasOwnProperty(o.a.AVAILABILITY_TIME_COMPLETE)?m.availabilityTimeComplete="false"!==t.availabilityTimeComplete:r&&void 0!==r.availabilityTimeComplete&&(m.availabilityTimeComplete=r.availabilityTimeComplete)}m.MSETimeOffset=(i=void 0,void 0,i=(n=m).presentationTimeOffset,n.adaptation.period.start-i),m.path=[e.period.index,e.index,f],s.push(m)}}return s},getAdaptationsForPeriod:function(e){var r,i,a,u=e&&R(e.index)?e.mpd.manifest.Period_asArray[e.index]:null,l=[];if(u&&u.AdaptationSet_asArray)for(a=0;a<u.AdaptationSet_asArray.length;a++)i=u.AdaptationSet_asArray[a],r=new s,i.hasOwnProperty(o.a.ID)&&(r.id=i.id),r.index=a,r.period=e,w(i,n.a.MUXED)?r.type=n.a.MUXED:N(i)?r.type=n.a.AUDIO:D(i)?r.type=n.a.VIDEO:C(i)?r.type=n.a.TEXT:P(i)?r.type=n.a.IMAGE:t.warn("Unknown Adaptation stream type"),l.push(r);return l},getRegularPeriods:function(e){var i,a,s=!!e&&k(e.manifest),u=[],f=null,c=null,d=null,m=null;for(a=0,i=e&&e.manifest&&e.manifest.Period_asArray?e.manifest.Period_asArray.length:0;a<i;a++)(c=e.manifest.Period_asArray[a]).hasOwnProperty(o.a.START)?(m=new l).start=c.start:null!==f&&f.hasOwnProperty(o.a.DURATION)&&null!==d?(m=new l).start=parseFloat((d.start+d.duration).toFixed(5)):0!==a||s||((m=new l).start=0),null!==d&&isNaN(d.duration)&&(null!==m?d.duration=parseFloat((m.start-d.start).toFixed(5)):t.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")),null!==m&&(m.id=q(c,a),m.index=a,m.mpd=e,c.hasOwnProperty(o.a.DURATION)&&(m.duration=c.duration),d&&(d.nextPeriodId=m.id),u.push(m),f=c,d=m),c=null,m=null;return 0===u.length||null!==d&&isNaN(d.duration)&&(d.duration=parseFloat((function(e){!function(){if(!r||!r.hasOwnProperty("error"))throw new Error(n.a.MISSING_CONFIG_ERROR)}();var t,o=k(e.mpd.manifest);e.mpd.manifest.mediaPresentationDuration?t=e.mpd.manifest.mediaPresentationDuration:e.duration?t=e.duration:o?t=Number.POSITIVE_INFINITY:r.error(new b.a(T.a.MANIFEST_ERROR_ID_PARSE_CODE,"Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.",e));return t}(d)-d.start).toFixed(5))),u},getMpd:function(e){var t=new f;return e&&(t.manifest=e,e.hasOwnProperty(o.a.AVAILABILITY_START_TIME)?t.availabilityStartTime=new Date(e.availabilityStartTime.getTime()):e.loadedTime&&(t.availabilityStartTime=new Date(e.loadedTime.getTime())),e.hasOwnProperty(o.a.AVAILABILITY_END_TIME)&&(t.availabilityEndTime=new Date(e.availabilityEndTime.getTime())),e.hasOwnProperty(o.a.MINIMUM_UPDATE_PERIOD)&&(t.minimumUpdatePeriod=e.minimumUpdatePeriod),e.hasOwnProperty(o.a.MEDIA_PRESENTATION_DURATION)&&(t.mediaPresentationDuration=e.mediaPresentationDuration),e.hasOwnProperty(o.a.SUGGESTED_PRESENTATION_DELAY)&&(t.suggestedPresentationDelay=e.suggestedPresentationDelay),e.hasOwnProperty(o.a.TIMESHIFT_BUFFER_DEPTH)&&(t.timeShiftBufferDepth=e.timeShiftBufferDepth),e.hasOwnProperty(o.a.MAX_SEGMENT_DURATION)&&(t.maxSegmentDuration=e.maxSegmentDuration),e.hasOwnProperty(o.a.PUBLISH_TIME)&&(t.publishTime=new Date(e.publishTime))),t},getEventsForPeriod:function(e){var t,r,a=e&&e.mpd&&e.mpd.manifest?e.mpd.manifest:null,s=a?a.Period_asArray:null,u=s&&e&&R(e.index)?s[e.index].EventStream_asArray:null,l=[];if(u)for(t=0;t<u.length;t++){var f=new p;if(f.period=e,f.timescale=1,!u[t].hasOwnProperty(n.a.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(f.schemeIdUri=u[t][n.a.SCHEME_ID_URI],u[t].hasOwnProperty(o.a.TIMESCALE)&&(f.timescale=u[t][o.a.TIMESCALE]),u[t].hasOwnProperty(o.a.VALUE)&&(f.value=u[t][o.a.VALUE]),u[t].hasOwnProperty(o.a.PRESENTATION_TIME_OFFSET)&&(f.presentationTimeOffset=u[t][o.a.PRESENTATION_TIME_OFFSET]),r=0;u[t].Event_asArray&&r<u[t].Event_asArray.length;r++){var c=u[t].Event_asArray[r],m=new d.a;m.presentationTime=0,m.eventStream=f,c.hasOwnProperty(o.a.PRESENTATION_TIME)&&(m.presentationTime=c.presentationTime);var h=f.presentationTimeOffset?f.presentationTimeOffset/f.timescale:0;m.calculatedPresentationTime=m.presentationTime/f.timescale+e.start-h,c.hasOwnProperty(o.a.DURATION)&&(m.duration=c.duration/f.timescale),c.hasOwnProperty(o.a.ID)?m.id=c.id:m.id=null,c.Signal&&c.Signal.Binary?m.messageData=i.decodeArray(c.Signal.Binary.toString()):m.messageData=c.messageData||c.__cdata||c.__text,l.push(m)}}return l},getEssentialPropertiesForRepresentation:B,getEventStreamForAdaptationSet:function(e,t,r){var n,o,i;return e&&e.Period_asArray&&t&&t.period&&R(t.period.index)&&(o=e.Period_asArray[t.period.index])&&o.AdaptationSet_asArray&&R(t.index)&&(i=o.AdaptationSet_asArray[t.index])&&(n=i.InbandEventStream_asArray),j(n,null,r)},getEventStreamForRepresentation:function(e,t,r){var n,o,i,a;return e&&e.Period_asArray&&t&&t.adaptation&&t.adaptation.period&&R(t.adaptation.period.index)&&(o=e.Period_asArray[t.adaptation.period.index])&&o.AdaptationSet_asArray&&R(t.adaptation.index)&&(i=o.AdaptationSet_asArray[t.adaptation.index])&&i.Representation_asArray&&R(t.index)&&(a=i.Representation_asArray[t.index])&&(n=a.InbandEventStream_asArray),j(n,t,r)},getUTCTimingSources:function(e){var t=k(e),r=!!e&&e.hasOwnProperty(o.a.AVAILABILITY_START_TIME),i=e?e.UTCTiming_asArray:null,a=[];return(t||r)&&i&&i.forEach((function(e){var t=new c.a;e.hasOwnProperty(n.a.SCHEME_ID_URI)&&(t.schemeIdUri=e.schemeIdUri,e.hasOwnProperty(o.a.VALUE)&&(t.value=e.value.toString(),a.push(t)))})),a},getBaseURLsFromElement:G,getRepresentationSortFunction:L,getContentSteering:function(e){if(e&&e.hasOwnProperty(o.a.CONTENT_STEERING_AS_ARRAY)){var t=e[o.a.CONTENT_STEERING_AS_ARRAY][0],r=new g;return r.serverUrl=t.__text,t.hasOwnProperty(o.a.DEFAULT_SERVICE_LOCATION)&&(r.defaultServiceLocation=t[o.a.DEFAULT_SERVICE_LOCATION]),t.hasOwnProperty(o.a.QUERY_BEFORE_START)&&(r.queryBeforeStart="true"===t[o.a.QUERY_BEFORE_START].toLowerCase()),t.hasOwnProperty(o.a.PROXY_SERVER_URL)&&(r.proxyServerUrl=t[o.a.PROXY_SERVER_URL]),r}},getLocation:function(e){if(e&&e.hasOwnProperty(n.a.LOCATION))return e.Location=e.Location_asArray[0],e.Location},getPatchLocation:function(e){if(e&&e.hasOwnProperty(o.a.PATCH_LOCATION))return e.PatchLocation=e.PatchLocation_asArray[0],e.PatchLocation},getSuggestedPresentationDelay:function(e){return e&&e.hasOwnProperty(o.a.SUGGESTED_PRESENTATION_DELAY)?e.suggestedPresentationDelay:null},getAvailabilityStartTime:function(e){return e&&e.hasOwnProperty(o.a.AVAILABILITY_START_TIME)&&null!==e.availabilityStartTime?e.availabilityStartTime.getTime():null},getServiceDescriptions:function(e){var t=[];if(e&&e.hasOwnProperty(o.a.SERVICE_DESCRIPTION)){var r,n=S(e.ServiceDescription_asArray);try{for(n.s();!(r=n.n()).done;){var i=r.value,a=null,s=null,u=null,l=null,f=null,c=null;for(var d in i)i.hasOwnProperty(d)&&(d===o.a.ID?a=i[d]:d===o.a.SERVICE_DESCRIPTION_SCOPE?s=i[d].schemeIdUri:d===o.a.SERVICE_DESCRIPTION_LATENCY?u={target:parseInt(i[d].target),max:parseInt(i[d].max),min:parseInt(i[d].min),referenceId:parseInt(i[d].referenceId)}:d===o.a.SERVICE_DESCRIPTION_PLAYBACK_RATE?l={max:parseFloat(i[d].max),min:parseFloat(i[d].min)}:d===o.a.SERVICE_DESCRIPTION_OPERATING_QUALITY?f={mediaType:i[d].mediaType,max:parseInt(i[d].max),min:parseInt(i[d].min),target:parseInt(i[d].target),type:i[d].type,maxQualityDifference:parseInt(i[d].maxQualityDifference)}:d===o.a.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH&&(c={mediaType:i[d].mediaType,max:parseInt(i[d].max),min:parseInt(i[d].min),target:parseInt(i[d].target)}));t.push({id:a,schemeIdUri:s,latency:u,playbackRate:l,operatingQuality:f,operatingBandwidth:c})}}catch(e){n.e(e)}finally{n.f()}}return t},getSupplementalProperties:function(e){var t={};if(e&&e.hasOwnProperty(o.a.SUPPLEMENTAL_PROPERTY)){var r,i=S(e.SupplementalProperty_asArray);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.hasOwnProperty(n.a.SCHEME_ID_URI)&&a.hasOwnProperty(o.a.VALUE)&&(t[a[n.a.SCHEME_ID_URI]]=a[o.a.VALUE])}}catch(e){i.e(e)}finally{i.f()}}return t},setConfig:function(e){e&&(e.errHandler&&(r=e.errHandler),e.BASE64&&(i=e.BASE64))}},t=Object(E.a)(u).getInstance().getLogger(e),e}O.__dashjs_factory_name="DashManifestModel";t.a=y.a.getSingletonFactory(O)},function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var n=r(1),o=r(0),i=r(3);var a=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bitrate=0,this.width=0,this.height=0,this.tilesHor=0,this.tilesVert=0,this.widthPerTile=0,this.heightPerTile=0,this.startNumber=0,this.segmentDuration=0,this.timescale=0,this.templateUrl="",this.id=""},s=r(13),u=r(12),l=r(23),f=r(29),c=r(39),d=r(40),m=["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"];function p(e){var t,r,i,p,h,g,v,_,y=this.context,E=e.adapter,b=e.baseURLController,T=e.streamInfo,A=e.timelineConverter,S=e.debug,I=e.eventBus,R=e.events,w=e.dashConstants,O=Object(s.a)(y).getInstance();function N(e,t){var n=new a;n.id=e.id,n.bitrate=e.bandwidth,n.width=e.width,n.height=e.height,n.tilesHor=1,n.tilesVert=1,e.essentialProperties&&e.essentialProperties.forEach((function(e){if(m.indexOf(e.schemeIdUri)>=0&&e.value){var t=e.value.split("x");2!==t.length||isNaN(t[0])||isNaN(t[1])||(n.tilesHor=parseInt(t[0],10),n.tilesVert=parseInt(t[1],10))}})),t?g.updateSegmentData(e).then((function(t){!function(e,t,r){var n=[],o=function(e,t){var r,n,o,i,a=[],s=0;for(r=0,n=e.segments.length;r<n;r++)o=e.segments[r],(i=Object(u.b)(A,E.getIsDynamic(),t,o.startTime,o.duration,o.timescale,o.media,o.mediaRange,s))&&(a.push(i),i=null,s++);return a}(r,t);t.segments=o,e.segmentDuration=t.segments[0].duration,e.readThumbnail=function(e,r){var o=null;n.some((function(t){if(t.start<=e&&t.end>e)return o=t.url,!0})),o?r(o):t.segments.some((function(o){if(o.mediaStartTime<=e&&o.mediaStartTime+o.duration>e){var i=b.resolve(t.path);return v.load({method:"get",url:i.url,request:{range:o.mediaRange,responseType:"arraybuffer"},onload:function(e){var t=_.getSamplesInfo(e.target.response),i=new Blob([e.target.response.slice(t.sampleList[0].offset,t.sampleList[0].offset+t.sampleList[0].size)],{type:"image/jpeg"}),a=window.URL.createObjectURL(i);n.push({start:o.mediaStartTime,end:o.mediaStartTime+o.duration,url:a}),r&&r(a)}}),!0}}))}}(n,e,t)})):(n.startNumber=e.startNumber,n.segmentDuration=e.segmentDuration,n.timescale=e.timescale,n.templateUrl=function(e){var t=O.isRelative(e.media)?O.resolve(e.media,b.resolve(e.path).url):e.media;if(!t)return"";return Object(u.c)(t,e.id)}(e)),n.tilesHor>0&&n.tilesVert>0&&(n.widthPerTile=n.width/n.tilesHor,n.heightPerTile=n.height/n.tilesVert,r.push(n))}function D(){r=[],p=-1,h=null}return t={getTracks:function(){return r},addTracks:function(){if(T&&E&&(h=E.getMediaInfoForType(T,n.a.IMAGE))){var e=E.getVoRepresentations(h);e&&e.length>0&&e.forEach((function(e){(e.segmentInfoType===o.a.SEGMENT_TEMPLATE&&e.segmentDuration>0&&e.media||e.segmentInfoType===o.a.SEGMENT_TIMELINE)&&N(e),e.segmentInfoType===o.a.SEGMENT_BASE&&N(e,!0)})),r.length>0&&r.sort((function(e,t){return e.bitrate-t.bitrate}))}},reset:D,setTrackByIndex:function(e){r&&0!==r.length&&(e>=r.length&&(e=r.length-1),p=e)},getCurrentTrack:function(){return p<0?null:r[p]},getCurrentTrackIndex:function(){return p},getThumbnailRequestForTime:function(e){for(var t,n=E.getVoRepresentations(h),o=0;o<n.length;o++)if(r[p].id===n[o].id){t=n[o];break}return i.getSegmentRequestForTime(h,t,e)}},D(),v=Object(f.a)(y).create({}),_=Object(l.a)(y).getInstance(),g=Object(d.a)(y).create({events:R,eventBus:I,streamInfo:T,timelineConverter:A,dashConstants:w,dashMetrics:e.dashMetrics,segmentBaseController:e.segmentBaseController,type:n.a.IMAGE}),(i=Object(c.a)(y).create({streamInfo:T,type:n.a.IMAGE,timelineConverter:A,segmentsController:g,baseURLController:b,debug:S,eventBus:I,events:R,dashConstants:w,urlUtils:O})).initialize(!!E&&E.getIsDynamic()),t}p.__dashjs_factory_name="ThumbnailTracks";t.b=i.a.getClassFactory(p)},,function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=r(n(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=r(n(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}var l=[];for(u=s;u<o.length;u++)l.push("..");return(l=l.concat(i.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(o=!1,n=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){r=a+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(26))},function(e,t,r){var n;!function(o,i){"use strict";var a="model",s="name",u="type",l="vendor",f="version",c="mobile",d="tablet",m="smarttv",p=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},h=function(e,t){return"string"==typeof e&&-1!==g(t).indexOf(g(e))},g=function(e){return e.toLowerCase()},v=function(e,t){if("string"==typeof e)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),void 0===t?e:e.substring(0,255)},_=function(e,t){for(var r,n,o,i,a,s,u=0;u<t.length&&!a;){var l=t[u],f=t[u+1];for(r=n=0;r<l.length&&!a;)if(a=l[r++].exec(e))for(o=0;o<f.length;o++)s=a[++n],"object"==typeof(i=f[o])&&i.length>0?2===i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3===i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4===i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;u+=2}},y=function(e,t){for(var r in t)if("object"==typeof t[r]&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(h(t[r][n],e))return"?"===r?void 0:r}else if(h(t[r],e))return"?"===r?void 0:r;return e},E={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},b={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,f],[/opios[\/ ]+([\w\.]+)/i],[f,[s,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[f,[s,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[s,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[s,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[f,[s,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[s,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[s,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure Browser"],f],[/\bfocus\/([\w\.]+)/i],[f,[s,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[f,[s,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[s,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[s,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[f,[s,"Firefox"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 Browser"],f],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[s,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,"Facebook"],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[s,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[s,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[s,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,"Chrome WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,f],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[f,[s,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[f,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[f,y,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[s,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[s,f]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",g]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[["architecture","arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[["architecture","armhf"]],[/windows (ce|mobile); ppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[["architecture",/ower/,"",g]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[["architecture",g]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[l,"Samsung"],[u,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[a,[l,"Samsung"],[u,c]],[/\((ip(?:hone|od)[\w ]*);/i],[a,[l,"Apple"],[u,c]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[l,"Apple"],[u,d]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[l,"Huawei"],[u,d]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[a,[l,"Huawei"],[u,c]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[a,/_/g," "],[l,"Xiaomi"],[u,c]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[l,"Xiaomi"],[u,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[l,"OPPO"],[u,c]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[l,"Vivo"],[u,c]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[a,[l,"Realme"],[u,c]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[l,"Motorola"],[u,c]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[l,"Motorola"],[u,d]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[l,"LG"],[u,d]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[l,"LG"],[u,c]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[l,"Lenovo"],[u,d]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[l,"Nokia"],[u,c]],[/(pixel c)\b/i],[a,[l,"Google"],[u,d]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[l,"Google"],[u,c]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[l,"Sony"],[u,c]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[l,"Sony"],[u,d]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[l,"OnePlus"],[u,c]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[l,"Amazon"],[u,d]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[l,"Amazon"],[u,c]],[/(playbook);[-\w\),; ]+(rim)/i],[a,l,[u,d]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[l,"BlackBerry"],[u,c]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[l,"ASUS"],[u,d]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[l,"ASUS"],[u,c]],[/(nexus 9)/i],[a,[l,"HTC"],[u,d]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[l,[a,/_/g," "],[u,c]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[l,"Acer"],[u,d]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[l,"Meizu"],[u,c]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[l,"Sharp"],[u,c]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[l,a,[u,c]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[l,a,[u,d]],[/(surface duo)/i],[a,[l,"Microsoft"],[u,d]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[l,"Fairphone"],[u,c]],[/(u304aa)/i],[a,[l,"AT&T"],[u,c]],[/\bsie-(\w*)/i],[a,[l,"Siemens"],[u,c]],[/\b(rct\w+) b/i],[a,[l,"RCA"],[u,d]],[/\b(venue[\d ]{2,7}) b/i],[a,[l,"Dell"],[u,d]],[/\b(q(?:mv|ta)\w+) b/i],[a,[l,"Verizon"],[u,d]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[l,"Barnes & Noble"],[u,d]],[/\b(tm\d{3}\w+) b/i],[a,[l,"NuVision"],[u,d]],[/\b(k88) b/i],[a,[l,"ZTE"],[u,d]],[/\b(nx\d{3}j) b/i],[a,[l,"ZTE"],[u,c]],[/\b(gen\d{3}) b.+49h/i],[a,[l,"Swiss"],[u,c]],[/\b(zur\d{3}) b/i],[a,[l,"Swiss"],[u,d]],[/\b((zeki)?tb.*\b) b/i],[a,[l,"Zeki"],[u,d]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[l,"Dragon Touch"],a,[u,d]],[/\b(ns-?\w{0,9}) b/i],[a,[l,"Insignia"],[u,d]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[l,"NextBook"],[u,d]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[l,"Voice"],a,[u,c]],[/\b(lvtel\-)?(v1[12]) b/i],[[l,"LvTel"],a,[u,c]],[/\b(ph-1) /i],[a,[l,"Essential"],[u,c]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[l,"Envizen"],[u,d]],[/\b(trio[-\w\. ]+) b/i],[a,[l,"MachSpeed"],[u,d]],[/\btu_(1491) b/i],[a,[l,"Rotor"],[u,d]],[/(shield[\w ]+) b/i],[a,[l,"Nvidia"],[u,d]],[/(sprint) (\w+)/i],[l,a,[u,c]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[l,"Microsoft"],[u,c]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[l,"Zebra"],[u,d]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[l,"Zebra"],[u,c]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[l,a,[u,"console"]],[/droid.+; (shield) bui/i],[a,[l,"Nvidia"],[u,"console"]],[/(playstation [345portablevi]+)/i],[a,[l,"Sony"],[u,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[l,"Microsoft"],[u,"console"]],[/smart-tv.+(samsung)/i],[l,[u,m]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[l,"Samsung"],[u,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[l,"LG"],[u,m]],[/(apple) ?tv/i],[l,[a,"Apple TV"],[u,m]],[/crkey/i],[[a,"Chromecast"],[l,"Google"],[u,m]],[/droid.+aft(\w)( bui|\))/i],[a,[l,"Amazon"],[u,m]],[/\(dtv[\);].+(aquos)/i],[a,[l,"Sharp"],[u,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[l,v],[a,v],[u,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,m]],[/((pebble))app/i],[l,a,[u,"wearable"]],[/droid.+; (glass) \d/i],[a,[l,"Google"],[u,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[a,[l,"Zebra"],[u,"wearable"]],[/(quest( 2)?)/i],[a,[l,"Facebook"],[u,"wearable"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[l,[u,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[a,[u,c]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,d]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,d]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[u,c]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[l,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[s,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[s,[f,y,E]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,"Windows"],[f,y,E]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[f,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,f],[/\(bb(10);/i],[f,[s,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[s,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[s,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[s,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[s,"Chromium OS"],f],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,f],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[s,f]]},T=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof T))return new T(e,t).getResult();var r=e||(void 0!==o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),n=t?function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(b,t):b;return this.getBrowser=function(){var e,t={};return t[s]=void 0,t[f]=void 0,_.call(t,r,n.browser),t.major="string"==typeof(e=t.version)?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={architecture:void 0};return _.call(e,r,n.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return _.call(e,r,n.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return _.call(e,r,n.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return _.call(e,r,n.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r="string"==typeof e&&e.length>255?v(e,255):e,this},this.setUA(r),this};T.VERSION="1.0.2",T.BROWSER=p([s,f,"major"]),T.CPU=p(["architecture"]),T.DEVICE=p([a,l,u,"console",c,m,d,"wearable","embedded"]),T.ENGINE=T.OS=p([s,f]),void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=T),t.UAParser=T):r(53)?void 0===(n=function(){return T}.call(t,r,t,e))||(e.exports=n):void 0!==o&&(o.UAParser=T);var A=void 0!==o&&(o.jQuery||o.Zepto);if(A&&!A.ua){var S=new T;A.ua=S.getResult(),A.ua.get=function(){return S.getUA()},A.ua.set=function(e){S.setUA(e);var t=S.getResult();for(var r in t)A.ua[r]=t[r]}}}("object"==typeof window?window:this)},function(e,t,r){"use strict";var n=r(17),o=r(5),i=r(3),a=r(4),s=r(12),u=r(0);function l(e){var t,r,i,l,f,c=(e=e||{}).eventBus,d=e.debug,m=e.urlUtils,p=e.type,h=e.streamInfo,g=e.segmentsController,v=e.timelineConverter,_=e.baseURLController;function y(){return p}function E(){i=null}function b(e,t,r){var n,o,i=_.resolve(r.path);return i&&t!==i.url&&m.isRelative(t)?(n=i.url,o=i.serviceLocation,t&&(n=m.resolve(t,n))):n=t,!m.isRelative(n)&&(e.url=n,e.serviceLocation=o,!0)}function T(e,t){if(null==t)return null;var r=new n.a,i=t.representation,a=i.adaptation.period.mpd.manifest.Period_asArray[i.adaptation.period.index].AdaptationSet_asArray[i.adaptation.index].Representation_asArray[i.index].bandwidth,u=t.media;return u=Object(s.d)(u,"Number",t.replacementNumber),u=Object(s.d)(u,"Time",t.replacementTime),u=Object(s.d)(u,"Bandwidth",a),u=Object(s.c)(u,i.id),u=Object(s.e)(u),r.mediaType=y(),r.type=o.a.MEDIA_SEGMENT_TYPE,r.range=t.mediaRange,r.startTime=t.presentationStartTime,r.mediaStartTime=t.mediaStartTime,r.duration=t.duration,r.timescale=i.timescale,r.availabilityStartTime=t.availabilityStartTime,r.availabilityEndTime=t.availabilityEndTime,r.availabilityTimeComplete=i.availabilityTimeComplete,r.wallStartTime=t.wallStartTime,r.quality=i.index,r.index=t.index,r.mediaInfo=e,r.adaptationIndex=i.adaptation.index,r.representationId=i.id,b(r,u,i)?r:void 0}function A(e,t,n){var o=null;if(!t||!t.segmentInfoType)return o;var a=g.getSegmentByTime(t,n);return a&&(i=a,r.debug("Index for time "+n+" is "+a.index),o=T(e,a)),o}function S(){r.debug("Dynamic stream complete"),f=!0}return t={initialize:function(e){l=e,f=!1,g.initialize(e)},getStreamId:function(){return h.id},getType:y,getStreamInfo:function(){return h},getInitRequest:function(e,t){return t?function(e,t,r){var i=new n.a,a=t.adaptation.period,u=a.start;if(i.mediaType=r,i.type=o.a.INIT_SEGMENT_TYPE,i.range=t.range,i.availabilityStartTime=v.calcAvailabilityStartTimeFromPresentationTime(u,t,l),i.availabilityEndTime=v.calcAvailabilityEndTimeFromPresentationTime(u+a.duration,t,l),i.quality=t.index,i.mediaInfo=e,i.representationId=t.id,b(i,t.initialization,t))return i.url=Object(s.d)(i.url,"Bandwidth",t.bandwidth),i}(e,t,y()):null},getSegmentRequestForTime:A,getCurrentIndex:function(){return i?i.index:-1},getNextSegmentRequest:function(e,t){var n=null;if(!t||!t.segmentInfoType)return null;var o=i?i.index+1:0,a=g.getSegmentByIndex(t,o,i?i.mediaStartTime:-1);if(a)n=T(e,a),i=a;else{if(l&&!f)return r.debug(y()+" No segment found at index: "+o+". Wait for next loop"),null;f=!0}return n},isLastSegmentRequested:function(e,t){if(!e||!i)return!1;if(f)return!0;if(!isFinite(e.adaptation.period.duration))return!1;if(i.presentationStartTime+i.duration>t)return!1;if(e.mediaFinishedInformation&&!isNaN(e.mediaFinishedInformation.numberOfSegments)&&!isNaN(i.index)&&i.index>=e.mediaFinishedInformation.numberOfSegments-1){if(!l||e.segmentInfoType===u.a.SEGMENT_TEMPLATE)return!0;if(l&&e.segmentInfoType===u.a.SEGMENT_LIST&&e.adaptation.period.nextPeriodId)return!0}return!!(l&&e.adaptation.period.nextPeriodId&&e.segmentInfoType===u.a.SEGMENT_TIMELINE&&e.mediaFinishedInformation&&!isNaN(e.mediaFinishedInformation.mediaTimeOfLastSignaledSegment)&&i&&!isNaN(i.mediaStartTime)&&!isNaN(i.duration)&&i.mediaStartTime+i.duration>=e.mediaFinishedInformation.mediaTimeOfLastSignaledSegment-.05)},reset:function(){E(),c.off(a.a.DYNAMIC_TO_STATIC,S,t)},getNextSegmentRequestIdempotent:function(e,t){var r=i?i.index+1:0,n=g.getSegmentByIndex(t,r,i?i.mediaStartTime:-1);return n?T(e,n):null},getValidTimeCloseToTargetTime:function(e,t,r,n){try{if(isNaN(e)||!t||!r)return NaN;if(e<0&&(e=0),isNaN(n)&&(n=.5),A(t,r,e))return e;for(var o=r.adaptation.period.start,i=r.adaptation.period.start+r.adaptation.period.duration,a=Math.min(e+n,i),s=Math.max(e-n,o),u=NaN,l=null;a<=i||s>=o;){var f=null,c=null;if(a<=i&&(f=A(t,r,a)),s>=o&&(c=A(t,r,s)),c){u=s,l=c;break}if(f){u=a,l=f;break}a+=n,s-=n}if(l){var d=l.startTime+l.duration;return e>=l.startTime&&d-e>n?e:e<l.startTime?l.startTime:Math.min(d-n,u)}return u}catch(e){return NaN}},getValidTimeAheadOfTargetTime:function(e,t,r,n){try{if(isNaN(e)||!t||!r)return NaN;if(e<0&&(e=0),isNaN(n)&&(n=.5),A(t,r,e))return e;if(r.adaptation.period.start+r.adaptation.period.duration<e)return NaN;for(var o=Math.min(r.adaptation.period.start+r.adaptation.period.duration,e+30),i=Math.min(e+n,o),a=NaN,s=null;i<=o;){var u=null;if(i<=o&&(u=A(t,r,i)),u){a=i,s=u;break}i+=n}if(s){var l=s.startTime+s.duration;return e>s.startTime&&l-e>n?e:!isNaN(s.startTime)&&e<s.startTime&&a>s.startTime?s.startTime:Math.min(l-n,a)}return a}catch(e){return NaN}}},r=d.getLogger(t),E(),c.on(a.a.DYNAMIC_TO_STATIC,S,t),t}l.__dashjs_factory_name="DashHandler",t.a=i.a.getClassFactory(l)},function(e,t,r){"use strict";var n=r(3),o=r(1),i=r(12);function a(e,t){var r=(e=e||{}).timelineConverter,n=e.dashMetrics;function a(){if(!r)throw new Error(o.a.MISSING_CONFIG_ERROR)}function s(e,t){var r,n,o,i,a,s,l,f=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,c=f.SegmentTimeline,d=f.SegmentURL_asArray,m=0,p=-1;l=e.timescale;var h=!1;for(o=0,i=(r=c.S_asArray).length;o<i&&!h;o++){if(s=0,(n=r[o]).hasOwnProperty("r")&&(s=n.r),n.hasOwnProperty("t")&&(m=n.t),s<0)s=u(e,r[o+1],n,l,m/l);for(a=0;a<=s&&!h;a++)(h=t(m,f,d,n,l,++p,o))&&(e.segmentDuration=n.d/l),m+=n.d}}function u(e,t,o,i,a){var s;if(t&&t.hasOwnProperty("t"))s=t.t/i;else try{var u=0;if(isNaN(e.adaptation.period.start)||isNaN(e.adaptation.period.duration)||!isFinite(e.adaptation.period.duration)){var l=n.getCurrentDVRInfo();u=isNaN(l.end)?0:l.end}else u=e.adaptation.period.start+e.adaptation.period.duration;s=r.calcMediaTimeFromPresentationTime(u,e),e.segmentDuration=o.d/i}catch(e){s=0}return Math.max(Math.ceil((s-a)/(o.d/i))-1,0)}return{getSegmentByIndex:function(e,n,o){if(a(),!e)return null;var u=null,l=!1;return s(e,(function(n,a,s,f,c,d,m){if(l||o<0){var p=a.media,h=f.mediaRange;return s&&(p=s[m].media||"",h=s[m].mediaRange),u=Object(i.b)(r,t,e,n,f.d,c,p,h,d,f.tManifest),!0}return n>=o*c-.5*f.d&&(l=!0),!1})),u},getSegmentByTime:function(e,n){if(a(),!e)return null;void 0===n&&(n=null);var o=null,u=r.calcMediaTimeFromPresentationTime(n,e);return s(e,(function(n,a,s,l,f,c,d){var m=parseFloat((u*f).toPrecision(15));if(m<n+l.d&&m>=n){var p=a.media,h=l.mediaRange;return s&&(p=s[d].media||"",h=s[d].mediaRange),o=Object(i.b)(r,t,e,n,l.d,f,p,h,c,l.tManifest),!0}return!1})),o},getMediaFinishedInformation:function(e){if(!e)return 0;var t,r,n,o,i,a,s,l=(e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList).SegmentTimeline,f=0,c=0,d=0;for(s=e.timescale,o=(t=l.S_asArray).length,n=0;n<o;n++){if(a=0,(r=t[n]).hasOwnProperty("r")&&(a=r.r),r.hasOwnProperty("t")&&(c=(f=r.t)/s),a<0)a=u(e,t[n+1],r,s,c);for(i=0;i<=a;i++)d++,c=(f+=r.d)/s}return{numberOfSegments:d,mediaTimeOfLastSignaledSegment:c}}}}a.__dashjs_factory_name="TimelineSegmentsGetter";var s=n.a.getClassFactory(a);function u(e,t){var r=(e=e||{}).timelineConverter;function n(){if(!r||!r.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(o.a.MISSING_CONFIG_ERROR)}function a(e,o){if(n(),!e)return null;var a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate;o=Math.max(o,0);var s=Object(i.a)(r,t,e,o);if(s){s.replacementTime=Math.round((o-1)*e.segmentDuration*e.timescale,10);var u=a.media;u=Object(i.d)(u,"Number",s.replacementNumber),u=Object(i.d)(u,"Time",s.replacementTime),s.media=u}return s}return{getSegmentByIndex:a,getSegmentByTime:function(e,t){if(n(),!e)return null;var o=e.segmentDuration;if(isNaN(o))return null;var i=r.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return a(e,Math.floor(i/o))},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!e)return t;var r=e.segmentDuration;return isNaN(r)?t.numberOfSegments=1:t.numberOfSegments=Math.ceil(e.adaptation.period.duration/r),t}}}u.__dashjs_factory_name="TemplateSegmentsGetter";var l=n.a.getClassFactory(u);function f(e,t){var r=(e=e||{}).timelineConverter;function n(){if(!r||!r.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(o.a.MISSING_CONFIG_ERROR)}function a(e,o){if(n(),!e)return null;var a=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,s=a.SegmentURL_asArray.length,u=e&&!isNaN(e.startNumber)?e.startNumber:1,l=Math.max(u-1,0),f=Math.max(o-l,0),c=null;if(f<s){var d=a.SegmentURL_asArray[f];(c=Object(i.a)(r,t,e,o))&&(c.replacementTime=(u+o-1)*e.segmentDuration,c.media=d.media?d.media:"",c.mediaRange=d.mediaRange,c.indexRange=d.indexRange)}return c}return{getSegmentByIndex:a,getSegmentByTime:function(e,t){if(n(),!e)return null;var o=e.segmentDuration;if(isNaN(o))return null;var i=r.calcPeriodRelativeTimeFromMpdRelativeTime(e,t);return a(e,Math.floor(i/o))},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!e)return t;var r=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,n=e&&!isNaN(e.startNumber)?e.startNumber:1,o=Math.max(n-1,0);return t.numberOfSegments=o+r.SegmentURL_asArray.length,t}}}f.__dashjs_factory_name="ListSegmentsGetter";var c=n.a.getClassFactory(f);function d(e){var t=(e=e||{}).timelineConverter;function r(){if(!t||!t.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(o.a.MISSING_CONFIG_ERROR)}function n(e,t){if(r(),!e)return null;var n,o=e.segments?e.segments.length:-1;if(t<o&&(n=e.segments[t])&&n.index===t)return n;for(var i=0;i<o;i++)if((n=e.segments[i])&&n.index===t)return n;return null}return{getSegmentByIndex:n,getSegmentByTime:function(e,t){return r(),n(e,function(e,t){if(!e)return-1;var r,n,o,i,a,s=e.segments,u=s?s.length:null,l=-1;if(s&&u>0)for(a=0;a<u;a++)if(n=s[a],o=n.presentationStartTime,i=n.duration,t+(r=i/2)>=o&&t-r<o+i){l=n.index;break}return l}(e,t))},getMediaFinishedInformation:function(e){var t={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};return e&&e.segments?(t.numberOfSegments=e.segments.length,t):t}}}d.__dashjs_factory_name="SegmentBaseGetter";var m=n.a.getClassFactory(d);function p(e){e=e||{};var t,r,n=this.context,o=e.dashConstants,i=e.type,a=e.segmentBaseController;function u(e){return e?e.segments?r[o.SEGMENT_BASE]:r[e.segmentInfoType]:null}return t={initialize:function(t){r[o.SEGMENT_TIMELINE]=s(n).create(e,t),r[o.SEGMENT_TEMPLATE]=l(n).create(e,t),r[o.SEGMENT_LIST]=c(n).create(e,t),r[o.SEGMENT_BASE]=m(n).create(e,t)},updateInitData:function(e,t){return t?Promise.resolve():a.getSegmentBaseInitSegment({representation:e,mediaType:i})},updateSegmentData:function(e,t){return t?Promise.resolve():a.getSegmentList({mimeType:e.mimeType,representation:e,mediaType:i})},getSegmentByIndex:function(e,t,r){var n=u(e);return n?n.getSegmentByIndex(e,t,r):null},getSegmentByTime:function(e,t){var r=u(e);return r?r.getSegmentByTime(e,t):null},getMediaFinishedInformation:function(e){var t=u(e);return t?t.getMediaFinishedInformation(e):{numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN}}},r={},t}p.__dashjs_factory_name="SegmentsController";var h=n.a.getClassFactory(p);t.a=h},function(e,t,r){"use strict";var n=function e(t,r,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.url=t||"",this.serviceLocation=r||t||"",this.dvb_priority=n||1,this.dvb_weight=o||1,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0};n.DEFAULT_DVB_PRIORITY=1,n.DEFAULT_DVB_WEIGHT=1,t.a=n},,,function(e,t,r){"use strict";var n=r(7),o=r(4),i=r(19),a=r(3),s=r(16),u=r(1),l=r(5),f=r(34),c=r(14);function d(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p="m",h="a",g="v",v="i",_="c",y="tt",E="k",b="o",T="d",A="s",S="v",I="l";function R(){var e,t,r,a,m,R,w,O,N,D,C=this.context,P=Object(n.a)(C).getInstance(),L=Object(s.a)(C).getInstance();function M(){r={pr:1,nor:null,st:null,sf:null,sid:"".concat(c.a.generateUuid()),cid:null},N={},O={},D={},F()}function x(){F()}function F(){if(R){var e=R.getStreamController();if(e&&"function"==typeof e.getActiveStream){var t=e.getActiveStream();t&&(w=t.getProcessors())}}}function k(e,t){var r,n={},o=d(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;e[i]&&(n[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return n}function B(e){var t=L.get().streaming.cmcd.enabledKeys;return e.filter((function(e){return t.includes(e)}))}function U(e){try{return e.type===l.a.MPD_TYPE?((t=q()).ot=p,t):e.type===l.a.MEDIA_SEGMENT_TYPE?(function(e){D.hasOwnProperty(e)||(D[e]=!1);O.hasOwnProperty(e)||(O[e]=!1);N.hasOwnProperty(e)||(N[e]=!1)}(e.mediaType),function(e){var t,n=q(),o=function(e){try{var t=e.quality,r=e.mediaInfo.bitrateList;return parseInt(r[t].bandwidth/1e3)}catch(e){return null}}(e),i=function(e){try{return isNaN(e.duration)?null:Math.round(1e3*e.duration)}catch(e){return null}}(e),s=function(e){try{return 100*parseInt(a.getThroughputHistory().getSafeAverageThroughput(e)/100)}catch(e){return null}}(e.mediaType),l=function(e){try{var t=r.pr,n=m.getCurrentBufferLevel(e);return isNaN(t)||isNaN(n)?null:100*parseInt(n/t*10)}catch(e){return null}}(e.mediaType),f=j(e.mediaType),p=function(e){try{var t=a.getTopBitrateInfoFor(e);return Math.round(t.bitrate/1e3)}catch(e){return null}}(e.mediaType),v=r.pr,E=function(e){if(!w||0===w.length)return;var t,r=d(w);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.getType()===e)return n.probeNextRequest()}}catch(e){r.e(e)}finally{r.f()}}(e.mediaType);e.mediaType===u.a.VIDEO&&(t=g);e.mediaType===u.a.AUDIO&&(t=h);e.mediaType===u.a.TEXT&&(t="application/mp4"===e.mediaInfo.mimeType?y:_);var b=L.get().streaming.cmcd.rtp;b||(b=function(e){var t=R.getPlaybackRate();t||(t=1);var r=e.quality,n=e.mediaType,o=e.mediaInfo,i=e.duration,a=j(n);0===a&&(a=500);var s=o.bitrateList[r].bandwidth*i/1e3/(a/t/1e3),u=L.get().streaming.cmcd.rtpSafetyFactor&&!isNaN(L.get().streaming.cmcd.rtpSafetyFactor)?L.get().streaming.cmcd.rtpSafetyFactor:5;return 100*(parseInt(s*u/100)+1)}(e));n.rtp=b,E&&(e.url!==E.url?n.nor=encodeURIComponent(c.a.getRelativeUrl(e.url,E.url)):E.range&&(n.nrr=E.range));o&&(n.br=o);t&&(n.ot=t);isNaN(i)||(n.d=i);isNaN(s)||(n.mtp=s);isNaN(l)||(n.dl=l);isNaN(f)||(n.bl=f);isNaN(p)||(n.tb=p);isNaN(v)||1===v||(n.pr=v);N[e.mediaType]&&(n.bs=!0,N[e.mediaType]=!1);!O[e.mediaType]&&D[e.mediaType]||(n.su=!0,O[e.mediaType]=!1,D[e.mediaType]=!0);return n}(e)):e.type===l.a.INIT_SEGMENT_TYPE?function(){var e=q();return e.ot=v,e.su=!0,e}():e.type===l.a.OTHER_TYPE||e.type===l.a.XLINK_EXPANSION_TYPE?function(){var e=q();return e.ot=b,e}():e.type===l.a.LICENSE?function(e){var t=q();return t.ot=E,t}():null}catch(e){return null}var t}function q(){var e={},t=L.get().streaming.cmcd.cid?L.get().streaming.cmcd.cid:r.cid;return e.v=1,e.sid=L.get().streaming.cmcd.sid?L.get().streaming.cmcd.sid:r.sid,e.sid="".concat(e.sid),t&&(e.cid="".concat(t)),isNaN(r.pr)||1===r.pr||null===r.pr||(e.pr=r.pr),r.st&&(e.st=r.st),r.sf&&(e.sf=r.sf),e}function j(e){try{var t=m.getCurrentBufferLevel(e);return isNaN(t)?null:100*parseInt(10*t)}catch(e){return null}}function G(e){try{r.pr=e.playbackRate}catch(e){}}function z(t){try{var n=e.getIsDynamic(t.data)?I:S,o=t.protocol&&"MSS"===t.protocol?A:T;r.st="".concat(n),r.sf="".concat(o)}catch(e){}}function H(e){try{e.state&&e.mediaType&&e.state===o.a.BUFFER_EMPTY&&(N[e.mediaType]||(N[e.mediaType]=!0),O[e.mediaType]||(O[e.mediaType]=!0))}catch(e){}}function V(){for(var e in N)N.hasOwnProperty(e)&&(N[e]=!0);for(var t in O)O.hasOwnProperty(t)&&(O[t]=!0)}function Y(e){try{if(!e)return null;var t=Object.keys(e).sort((function(e,t){return e.localeCompare(t)})),r=t.length,n=t.reduce((function(t,n,o){return"v"===n&&1===e[n]||("string"==typeof e[n]&&"ot"!==n&&"sf"!==n&&"st"!==n?t+="".concat(n,"=").concat(JSON.stringify(e[n])):t+="".concat(n,"=").concat(e[n]),o<r-1&&(t+=",")),t}),"");return n=(n=n.replace(/=true/g,"")).replace(/,\s*$/,"")}catch(e){return null}}return t={getQueryParameter:function(e){try{if(L.get().streaming.cmcd&&L.get().streaming.cmcd.enabled){var t=U(e),r=Y(function(e){try{var t=L.get().streaming.cmcd.enabledKeys;return Object.keys(e).filter((function(e){return t.includes(e)})).reduce((function(t,r){return t[r]=e[r],t}),{})}catch(t){return e}}(t));return P.trigger(i.a.CMCD_DATA_GENERATED,{url:e.url,mediaType:e.mediaType,cmcdData:t,cmcdString:r}),{key:"CMCD",value:r}}return null}catch(e){return null}},getHeaderParameters:function(e){try{if(L.get().streaming.cmcd&&L.get().streaming.cmcd.enabled){var t=U(e),r=k(t,B(["br","d","ot","tb"])),n=k(t,B(["bl","dl","mtp","nor","nrr","su"])),o=k(t,B(["bs","rtp"])),a=k(t,B(["cid","pr","sf","sid","st","v"])),s={"CMCD-Object":Y(r),"CMCD-Request":Y(n),"CMCD-Status":Y(o),"CMCD-Session":Y(a)};return P.trigger(i.a.CMCD_DATA_GENERATED,{url:e.url,mediaType:e.mediaType,cmcdData:t,headers:s}),s}return null}catch(e){return null}},setConfig:function(e){e&&(e.abrController&&(a=e.abrController),e.dashMetrics&&(m=e.dashMetrics),e.playbackController&&(R=e.playbackController))},reset:function(){P.off(o.a.PLAYBACK_RATE_CHANGED,G,this),P.off(o.a.MANIFEST_LOADED,z,this),P.off(o.a.BUFFER_LEVEL_STATE_CHANGED,H,t),P.off(o.a.PLAYBACK_SEEKED,V,t),M()},initialize:function(){P.on(o.a.PLAYBACK_RATE_CHANGED,G,t),P.on(o.a.MANIFEST_LOADED,z,t),P.on(o.a.BUFFER_LEVEL_STATE_CHANGED,H,t),P.on(o.a.PLAYBACK_SEEKED,V,t),P.on(o.a.PERIOD_SWITCH_COMPLETED,x,t)}},e=Object(f.a)(C).getInstance(),M(),t}R.__dashjs_factory_name="CmcdModel",t.a=a.a.getSingletonFactory(R)},function(e,t,r){"use strict";t.a=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN}},function(e,t,r){"use strict";var n=r(3),o=r(66),i=r.n(o);function a(){return{areEqual:function(e,t){return i()(e,t)}}}a.__dashjs_factory_name="ObjectUtils",t.a=n.a.getSingletonFactory(a)},function(e,t,r){"use strict";t.a=function(e){e=e||{},function(){void 0===e.escapeMode&&(e.escapeMode=!0);void 0===e.attributePrefix&&(e.attributePrefix="_");e.arrayAccessForm=e.arrayAccessForm||"none",e.emptyNodeForm=e.emptyNodeForm||"text",void 0===e.enableToStringFunc&&(e.enableToStringFunc=!0);e.arrayAccessFormPaths=e.arrayAccessFormPaths||[],void 0===e.skipEmptyTextNodesForObj&&(e.skipEmptyTextNodesForObj=!0);void 0===e.stripWhitespaces&&(e.stripWhitespaces=!0);e.datetimeAccessFormPaths=e.datetimeAccessFormPaths||[],void 0===e.useDoubleQuotes&&(e.useDoubleQuotes=!1);e.xmlElementsFilter=e.xmlElementsFilter||[],e.jsonPropertiesFilter=e.jsonPropertiesFilter||[],void 0===e.keepCData&&(e.keepCData=!1);void 0===e.ignoreRoot&&(e.ignoreRoot=!1)}();var t=1,r=3,n=4,o=8,i=9;function a(e){var t=e.localName;return null==t&&(t=e.baseName),null!=t&&""!=t||(t=e.nodeName),t}function s(e){return"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e}function u(e,t,r,n){for(var o=0;o<e.length;o++){var i=e[o];if("string"==typeof i){if(i==n)break}else if(i instanceof RegExp){if(i.test(n))break}else if("function"==typeof i&&i(t,r,n))break}return o!=e.length}function l(t,r,n){switch(e.arrayAccessForm){case"property":t[r]instanceof Array?t[r+"_asArray"]=t[r]:t[r+"_asArray"]=[t[r]]}!(t[r]instanceof Array)&&e.arrayAccessFormPaths.length>0&&u(e.arrayAccessFormPaths,t,r,n)&&(t[r]=[t[r]])}function f(e){var t=e.split(/[-T:+Z]/g),r=new Date(t[0],t[1]-1,t[2]),n=t[5].split(".");if(r.setHours(t[3],t[4],n[0]),n.length>1&&r.setMilliseconds(n[1]),t[6]&&t[7]){var o=60*t[6]+Number(t[7]);o=0+("-"==(/\d\d-\d\d:\d\d$/.test(e)?"-":"+")?-1*o:o),r.setMinutes(r.getMinutes()-o-r.getTimezoneOffset())}else-1!==e.indexOf("Z",e.length-1)&&(r=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())));return r}function c(r,n,o,i){return!(n==t&&e.xmlElementsFilter.length>0)||u(e.xmlElementsFilter,r,o,i)}function d(s,m){if(s.nodeType==i){for(var p=new Object,h=s.childNodes,g=0;g<h.length;g++){if((_=h[g]).nodeType==t)if(e.ignoreRoot)p=d(_);else(p={})[y=a(_)]=d(_)}return p}if(s.nodeType==t){(p=new Object).__cnt=0;var v=[];for(h=s.childNodes,g=0;g<h.length;g++){var _,y=a(_=h[g]);if(_.nodeType!=o){var E=m+"."+y;if(c(p,_.nodeType,y,E))if(p.__cnt++,null==p[y]){var b=d(_,E);if("#text"!=y||/[^\s]/.test(b))(T={})[y]=b,v.push(T);p[y]=b,l(p,y,E)}else{null!=p[y]&&(p[y]instanceof Array||(p[y]=[p[y]],l(p,y,E)));var T;b=d(_,E);if("#text"!=y||/[^\s]/.test(b))(T={})[y]=b,v.push(T);p[y][p[y].length]=b}}}p.__children=v;for(var A=a(s),S=0;S<s.attributes.length;S++){var I=s.attributes[S];p.__cnt++;for(var R=I.value,w=0,O=e.matchers.length;w<O;w++){var N=e.matchers[w];N.test(I,A)&&(R=N.converter(I.value))}p[e.attributePrefix+I.name]=R}var D=function(e){return e.prefix}(s);return null!=D&&""!=D&&(p.__cnt++,p.__prefix=D),null!=p["#text"]&&(p.__text=p["#text"],p.__text instanceof Array&&(p.__text=p.__text.join("\n")),e.stripWhitespaces&&(p.__text=p.__text.trim()),delete p["#text"],"property"==e.arrayAccessForm&&delete p["#text_asArray"],p.__text=function(t,r,n){if(e.datetimeAccessFormPaths.length>0){var o=n.split(".#")[0];return u(e.datetimeAccessFormPaths,t,r,o)?f(t):t}return t}(p.__text,y,m+"."+y)),null!=p["#cdata-section"]&&(p.__cdata=p["#cdata-section"],delete p["#cdata-section"],"property"==e.arrayAccessForm&&delete p["#cdata-section_asArray"]),0==p.__cnt&&"text"==e.emptyNodeForm?p="":1==p.__cnt&&null!=p.__text?p=p.__text:1!=p.__cnt||null==p.__cdata||e.keepCData?p.__cnt>1&&null!=p.__text&&e.skipEmptyTextNodesForObj&&(e.stripWhitespaces&&""==p.__text||""==p.__text.trim())&&delete p.__text:p=p.__cdata,delete p.__cnt,!e.enableToStringFunc||null==p.__text&&null==p.__cdata||(p.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),p}if(s.nodeType==r||s.nodeType==n)return s.nodeValue}function m(t,r,n,o){var i="<"+(null!=t&&null!=t.__prefix?t.__prefix+":":"")+r;if(null!=n)for(var a=0;a<n.length;a++){var u=n[a],l=t[u];e.escapeMode&&(l=s(l)),i+=" "+u.substr(e.attributePrefix.length)+"=",e.useDoubleQuotes?i+='"'+l+'"':i+="'"+l+"'"}return i+=o?"/>":">"}function p(e,t){return"</"+(null!=e.__prefix?e.__prefix+":":"")+t+">"}function h(t,r){return"property"==e.arrayAccessForm&&(n=r.toString(),o="_asArray",-1!==n.indexOf(o,n.length-o.length))||0==r.toString().indexOf(e.attributePrefix)||0==r.toString().indexOf("__")||t[r]instanceof Function;var n,o}function g(e){var t=0;if(e instanceof Object)for(var r in e)h(e,r)||t++;return t}function v(t,r,n){return 0==e.jsonPropertiesFilter.length||""==n||u(e.jsonPropertiesFilter,t,r,n)}function _(t){var r=[];if(t instanceof Object)for(var n in t)-1==n.toString().indexOf("__")&&0==n.toString().indexOf(e.attributePrefix)&&r.push(n);return r}function y(t){var r="";return t instanceof Object?r+=function(t){var r="";return null!=t.__cdata&&(r+="<![CDATA["+t.__cdata+"]]>"),null!=t.__text&&(e.escapeMode?r+=s(t.__text):r+=t.__text),r}(t):null!=t&&(e.escapeMode?r+=s(t):r+=t),r}function E(e,t){return""===e?t:e+"."+t}function b(e,t,r,n){var o="";if(0==e.length)o+=m(e,t,r,!0);else for(var i=0;i<e.length;i++)o+=m(e[i],t,_(e[i]),!1),o+=T(e[i],E(n,t)),o+=p(e[i],t);return o}function T(e,t){var r="";if(g(e)>0)for(var n in e)if(!h(e,n)&&(""==t||v(e,n,E(t,n)))){var o=e[n],i=_(o);if(null==o||null==o)r+=m(o,n,i,!0);else if(o instanceof Object)if(o instanceof Array)r+=b(o,n,i,t);else if(o instanceof Date)r+=m(o,n,i,!1),r+=o.toISOString(),r+=p(o,n);else{g(o)>0||null!=o.__text||null!=o.__cdata?(r+=m(o,n,i,!1),r+=T(o,E(t,n)),r+=p(o,n)):r+=m(o,n,i,!0)}else r+=m(o,n,i,!1),r+=y(o),r+=p(o,n)}return r+=y(e)}this.parseXmlString=function(e){var t;window.ActiveXObject||window;if(void 0===e)return null;if(window.DOMParser){var r=new window.DOMParser;try{(t=r.parseFromString(e,"text/xml")).getElementsByTagNameNS("*","parsererror").length>0&&(t=null)}catch(e){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?f(e):e},this.xml2json=function(e){return d(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return T(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return"1.2.0"}}},function(e,t,r){"use strict";var n=r(3),o=r(29),i=r(16),a=r(1),s=r(20);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){e=e||{};var t,r=this.context,n=e.requestModifier,o=e.lowLatencyThroughputModel,f=e.boxParser,c=Object(i.a)(r).getInstance();function d(e){var r,i=new Date,s=e.request,d=new Headers;if(s.range&&d.append("Range","bytes="+s.range),e.headers)for(var h in e.headers){var g=e.headers[h];g&&d.append(h,g)}s.requestStartDate||(s.requestStartDate=i),n&&n.modifyRequestHeader&&n.modifyRequestHeader({setRequestHeader:function(e,t){d.append(e,t)}},{url:e.url}),"function"==typeof window.AbortController&&(r=new AbortController,e.abortController=r,r.signal.onabort=e.onabort);var v={method:e.method,headers:d,credentials:e.withCredentials?"include":void 0,signal:r?r.signal:void 0},_=c.get().streaming.abr.fetchThroughputCalculationMode,y=Date.now(),E=0;new Promise((function(e){if(_===a.a.ABR_FETCH_THROUGHPUT_CALCULATION_AAST&&o&&(E=o.getThroughputCapacityDelayMS(s,1e3*t.getCurrentBufferLevel(s.mediaType))))return setTimeout(e,E);e()})).then((function(){var r=Date.now();fetch(e.url,v).then((function(n){e.response||(e.response={}),e.response.status=n.status,e.response.statusText=n.statusText,e.response.responseURL=n.url,n.ok||e.onerror();var i,c="",d=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}(n.headers.keys());try{for(d.s();!(i=d.n()).done;){var h=i.value;c+=h+": "+n.headers.get(h)+"\r\n"}}catch(e){d.e(e)}finally{d.f()}if(e.response.responseHeaders=c,!n.body)return n.arrayBuffer().then((function(t){e.response.response=t;var r={loaded:t.byteLength,total:t.byteLength,stream:!1};e.progress(r),e.onload(),e.onend()}));var g,v,b=parseInt(n.headers.get("Content-Length"),10),T=0,A=!1,S=new Uint8Array,I=0;if(_===a.a.ABR_FETCH_THROUGHPUT_CALCULATION_AAST&&o){var R=r,w=0,O=u(n.body.tee(),2),N=O[0],D=O[1];g=N.getReader(),v=[],g.read().then((function n(i){var a=i.value,u=i.done;if(w=Date.now(),a&&a.length){var l=w-R,f=a.length;v.push({chunkDownloadTimeRelativeMS:w-r,chunkDownloadDurationMS:l,chunkBytes:f,kbps:Math.round(8*f/(l/1e3)),bufferLevel:t.getCurrentBufferLevel(s.mediaType)})}if(u){var d=w-r,m=v.reduce((function(e,t){return e+t.chunkBytes}),0);return o.addMeasurement(s,d,v,y,E,c),void e.progress({loaded:m,total:m,lengthComputable:!0,time:o.getEstimatedDownloadDurationMS(s),stream:!0})}return R=Date.now(),g.read().then(n)})),e.reader=D.getReader()}else e.reader=n.body.getReader();var C=[],P=[],L=[],M=!0;m(e,(function t(r){var n=r.value;if(r.done){if(S){if(_!==a.a.ABR_FETCH_THROUGHPUT_CALCULATION_AAST){var o=null,i=null;_===a.a.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING?(o=function(e,t){try{var r,n;r=e.filter((function(t,r){return r<e.length-1})),n=t.filter((function(e,r){return r<t.length-1}));var o=[];if(r.length>1){for(var i=0,a=0,s=0;s<r.length;s++)if(r[s]&&n[s]){var u=n[s].ts-r[s].ts;if(u>1)o.push(8*n[s].bytes/u);else{0===a&&(a=r[s].ts);var l=n[s].ts-a;l>1?(o.push(8*i/l),i=0,a=0):i+=n[s].bytes}}if(o.length>0)return o.reduce((function(e,t){return e+t}),0)/o.length}return null}catch(e){return null}}(P,L))&&(i=8*T/o):_===a.a.ABR_FETCH_THROUGHPUT_CALCULATION_DOWNLOADED_DATA&&(i=p(C,T)),e.progress({loaded:T,total:isNaN(b)?T:b,lengthComputable:!0,time:i,stream:!0})}e.response.response=S.buffer}return e.onload(),void e.onend()}if(n&&n.length>0){if(S=function(e,t){if(0===e.length)return t;var r=new Uint8Array(e.length+t.length);return r.set(e),r.set(t,e.length),r}(S,n),T+=n.length,C.push({ts:Date.now(),bytes:n.length}),_===a.a.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING&&M)f.findLastTopIsoBoxCompleted(["moof"],S,I).found&&(M=!1,P.push({ts:performance.now(),bytes:n.length}));var s=f.findLastTopIsoBoxCompleted(["moov","mdat"],S,I);if(s.found){var u,l=s.lastCompletedOffset+s.size;_!==a.a.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING||M||(M=!0,L.push({ts:performance.now(),bytes:S.length})),l===S.length?(u=S,S=new Uint8Array):(u=new Uint8Array(S.subarray(0,l)),S=S.subarray(l)),e.progress({data:u.buffer,lengthComputable:!1,noTrace:!0}),I=0}else I=s.lastCompletedOffset,A||(e.progress({lengthComputable:!1,noTrace:!0}),A=!0)}m(e,t)}))})).catch((function(t){e.onerror&&e.onerror(t)}))}))}function m(e,t){e.reader.read().then(t).catch((function(t){e.onerror&&200===e.response.status&&e.onerror(t)}))}function p(e,t){try{if((e=e.filter((function(r){return r.bytes>t/4/e.length}))).length>1){var r=0,n=(e[e.length-1].ts-e[0].ts)/e.length;return e.forEach((function(t,o){var i=e[o+1];if(i){var a=i.ts-t.ts;r+=a<n?a:0}})),r}return null}catch(e){return null}}return{load:function(e){n&&n.modifyRequest?Object(s.b)(e,n).then((function(){return d(e)})):d(e)},abort:function(e){if(e.abortController)e.abortController.abort();else if(e.reader)try{e.reader.cancel(),e.onabort()}catch(e){}},calculateDownloadedTime:p,setup:function(e){t=e.dashMetrics}}}c.__dashjs_factory_name="FetchLoader";var d=n.a.getClassFactory(c),m=r(5),p=r(10),h=r(44),g=r(14),v=r(6),_=r(7),y=r(2);function E(){var e,t,r=this.context,n={};function o(){t=Object(v.a)(r).getInstance().getLogger(e)}function i(e){for(var t={},r=0,n=0,o=0,i=0,a=e.length,s=0;s<a;++s)r+=e[s].chunkDownloadTimeRelativeMS,n+=e[s].bufferLevel,o+=e[s].chunkDownloadTimeRelativeMS*e[s].bufferLevel,i+=e[s].chunkDownloadTimeRelativeMS*e[s].chunkDownloadTimeRelativeMS;return t.m=(o-r*n/a)/(i-r*r/a),t.b=n/a-t.m*r/a,function(e){return t.m*e+t.b}}function a(e){var t,r=!0,n=e.reduce((function(e,t){return e+t.bufferLevelAtSegmentEnd}),0)/e.length;return e.forEach((function(e){Math.abs(e.bufferLevelAtSegmentEnd/e.bufferLevelAtSegmentStart)<.95&&(r=!1),e.bufferLevelAtSegmentEnd/n<.8&&(r=!1),t?t>e.bitrate&&(r=!1):t=e.bitrate})),r}return e={setup:o,addMeasurement:function(e,t,r,o,a){e&&e.mediaType&&!n[e.mediaType]&&(n[e.mediaType]=[]);var s=e.mediaInfo.bitrateList.find((function(t){return t.id===e.representationId}));n[e.mediaType].push({index:e.index,repId:e.representationId,mediaType:e.mediaType,requestTimeMS:o,adjustedAvailabilityStartTimeMS:e.availabilityStartTime.getTime(),segDurationMS:1e3*e.duration,chunksDurationMS:r.reduce((function(e,t){return e+t.chunkDownloadDurationMS}),0),segmentBytes:r.reduce((function(e,t){return e+t.chunkBytes}),0),bitrate:s&&s.bandwidth,bitrateList:e.mediaInfo.bitrateList,chunkMeasurements:r,fetchDownloadDurationMS:t,throughputCapacityDelayMS:a,getEstimatedBufferLevel:i(r.slice(1))}),n[e.mediaType].length>10&&n[e.mediaType].shift()},getThroughputCapacityDelayMS:function(e,t){var r=n[e.mediaType]&&n[e.mediaType].slice(-3);return!r||r.length<3?0:a(r)?t/4>250?250:t/4:0},getEstimatedDownloadDurationMS:function(e){var r=n[e.mediaType].slice(-1).pop(),o=n[e.mediaType].slice(-3),i=r.chunkMeasurements.slice(-1).pop().chunkDownloadTimeRelativeMS;r.bufferLevelAtSegmentStart=r.getEstimatedBufferLevel(i/2),r.bufferLevelAtSegmentEnd=r.getEstimatedBufferLevel(i);var s=a(o),u=s?.6:.8;if(r.isBufferStable&&1.05*r.segDurationMS<r.fetchDownloadDurationMS)return r.fetchDownloadDurationMS;if(!s||r.segDurationMS<r.fetchDownloadDurationMS)return.8*r.fetchDownloadDurationMS;if(r.adjustedAvailabilityStartTimeMS<=r.requestTimeMS+r.throughputCapacityDelayMS-r.segDurationMS)return.8*r.fetchDownloadDurationMS;for(var l=r.requestTimeMS+r.throughputCapacityDelayMS-r.adjustedAvailabilityStartTimeMS,f=0,c=0,d=0,m=0;m<r.chunkMeasurements.length;m++){var p=r.chunkMeasurements[m];if(l<c+p.chunkDownloadDurationMS)break;c+=p.chunkDownloadDurationMS,f+=p.chunkBytes,d++}if(l<0&&t.warn("request time was before adjusted availibitly start time"),f&&c&&d>.2*r.chunkMeasurements.length){var h=f/c,g=r.segmentBytes/h;return r.fetchDownloadDurationMS<g?r.fetchDownloadDurationMS*u:g*u}var v=r.bitrate;return r.bitrateList.some((function(e){if(e.bandwidth>r.bitrate)return v=e.bandwidth,!0})),v===r.bitrate?r.fetchDownloadDurationMS*u:u*r.segmentBytes*8*1e3/v}},o(),e}E.__dashjs_factory_name="LowLatencyThroughputModel";var b=n.a.getSingletonFactory(E),T=r(31);function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e){e=e||{};var t,r,n,s,u,l,f,c,E,S,I=this.context,R=e.errHandler,w=e.dashMetrics,O=e.mediaPlayerModel,N=e.requestModifier,D=e.boxParser,C=e.errors,P=e.requestTimeout||0,L=Object(_.a)(I).getInstance(),M=Object(i.a)(I).getInstance();function x(e,t){var i,h=e.request,v=[],_=!0,b=!0,T=new Date,A=T,S=0,C=null;if(!N||!w||!R)throw new Error("config object is not correct or missing");var F,k=function(e){if(b=!1,h.requestStartDate=T,h.requestEndDate=new Date,h.firstByteDate=h.firstByteDate||T,h.fileLoaderType=C,!h.checkExistenceOnly){var t=i.response?i.response.responseURL:null,r=i.response?i.response.status:null,n=i.response&&i.response.getAllResponseHeaders?i.response.getAllResponseHeaders():i.response?i.response.responseHeaders:[];w.addHttpRequest(h,t,r,n,e?v:null),h.type===m.a.MPD_TYPE&&w.addManifestUpdate(h)}},B=function(){if(-1!==r.indexOf(i)&&(r.splice(r.indexOf(i),1),b))if(k(!1),t>0){try{if(M.get().streaming.utcSynchronization.enableBackgroundSyncAfterSegmentDownloadError&&h.type===m.a.MEDIA_SEGMENT_TYPE)O.getRetryAttemptsForType(m.a.MEDIA_SEGMENT_TYPE)===t&&L.trigger(y.a.ATTEMPT_BACKGROUND_SYNC)}catch(e){}t--;var n={config:e};s.push(n),n.timeout=setTimeout((function(){-1!==s.indexOf(n)&&(s.splice(s.indexOf(n),1),x(e,t))}),O.getRetryIntervalsForType(h.type))}else{if(h.type===m.a.MSS_FRAGMENT_INFO_SEGMENT_TYPE)return;R.error(new p.a(u[h.type],h.url+" is not available",{request:h,response:i.response})),e.error&&e.error(h,"error",i.response.statusText),e.complete&&e.complete(h,i.response.statusText)}};h.hasOwnProperty("availabilityTimeComplete")&&!1===h.availabilityTimeComplete&&window.fetch&&"arraybuffer"===h.responseType&&h.type===m.a.MEDIA_SEGMENT_TYPE?((F=d(I).create({requestModifier:N,lowLatencyThroughputModel:c,boxParser:D})).setup({dashMetrics:w}),C=a.a.FILE_LOADER_TYPES.FETCH):(F=Object(o.a)(I).create({requestModifier:N}),C=a.a.FILE_LOADER_TYPES.XHR);var U=null,q=N.modifyRequestURL?N.modifyRequestURL(h.url):h.url;if(M.get().streaming.cmcd&&M.get().streaming.cmcd.enabled){var j=M.get().streaming.cmcd.mode;if(j===a.a.CMCD_MODE_QUERY){var G=function(e){try{var t=[],r=l.getQueryParameter(e);return r&&t.push(r),t}catch(e){return[]}}(h);q=g.a.addAditionalQueryParameterToUrl(q,G)}else j===a.a.CMCD_MODE_HEADER&&(U=l.getHeaderParameters(h))}h.url=q;var z=h.checkExistenceOnly?m.a.HEAD:m.a.GET,H=f.getXHRWithCredentialsForType(h.type);i={url:q,method:z,withCredentials:H,request:h,onload:function(){i.response.status>=200&&i.response.status<=299&&(k(!0),e.success&&e.success(i.response.response,i.response.statusText,i.response.responseURL),e.complete&&e.complete(h,i.response.statusText))},onend:B,onerror:B,progress:function(t){var r=new Date;_&&(_=!1,(!t.lengthComputable||t.lengthComputable&&t.total!==t.loaded)&&(h.firstByteDate=r)),t.lengthComputable&&(h.bytesLoaded=t.loaded,h.bytesTotal=t.total),t.noTrace||(v.push({s:A,d:t.time?t.time:r.getTime()-A.getTime(),b:[t.loaded?t.loaded-S:0]}),A=r,S=t.loaded),e.progress&&t&&e.progress(t)},onabort:function(){e.abort&&e.abort(h)},ontimeout:function(e){var t;if(e.lengthComputable){var r=e.loaded/e.total*100;t="Request timeout: loaded: "+e.loaded+", out of: "+e.total+" : "+r.toFixed(3)+"% Completed"}else t="Request timeout: non-computable download size";E.warn(t)},loader:F,timeout:P,headers:U};var V=(new Date).getTime();if(isNaN(h.delayLoadingTime)||V>=h.delayLoadingTime)r.push(i),F.load(i);else{var Y={httpRequest:i};n.push(Y),Y.delayTimeout=setTimeout((function(){if(-1!==n.indexOf(Y)){n.splice(n.indexOf(Y),1);try{T=new Date,A=T,r.push(Y.httpRequest),F.load(Y.httpRequest)}catch(e){Y.httpRequest.onerror()}}}),h.delayLoadingTime-V)}}return t={load:function(e){e.request?x(e,O.getRetryAttemptsForType(e.request.type)):e.error&&e.error(e.request,"error")},abort:function(){s.forEach((function(e){clearTimeout(e.timeout),e.config.request&&e.config.abort&&e.config.abort(e.config.request)})),s=[],n.forEach((function(e){return clearTimeout(e.delayTimeout)})),n=[],r.forEach((function(e){e.request.type!==m.a.MSS_FRAGMENT_INFO_SEGMENT_TYPE&&(e.onloadend=e.onerror=e.onprogress=void 0,e.loader.abort(e))})),r=[]}},E=Object(v.a)(I).getInstance().getLogger(t),r=[],n=[],s=[],l=Object(h.a)(I).getInstance(),c=b(I).getInstance(),f=Object(T.a)(I).getInstance(),A(S={},m.a.MPD_TYPE,C.DOWNLOAD_ERROR_ID_MANIFEST_CODE),A(S,m.a.XLINK_EXPANSION_TYPE,C.DOWNLOAD_ERROR_ID_XLINK_CODE),A(S,m.a.INIT_SEGMENT_TYPE,C.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE),A(S,m.a.MEDIA_SEGMENT_TYPE,C.DOWNLOAD_ERROR_ID_CONTENT_CODE),A(S,m.a.INDEX_SEGMENT_TYPE,C.DOWNLOAD_ERROR_ID_CONTENT_CODE),A(S,m.a.BITSTREAM_SWITCHING_SEGMENT_TYPE,C.DOWNLOAD_ERROR_ID_CONTENT_CODE),A(S,m.a.OTHER_TYPE,C.DOWNLOAD_ERROR_ID_CONTENT_CODE),u=S,t}S.__dashjs_factory_name="HTTPLoader";var I=n.a.getClassFactory(S);function R(){var e;function t(){e={}}function r(){t()}return r(),{getLoader:function(t){for(var r in e)if(e.hasOwnProperty(r)&&t.startsWith(r))return e[r];return I},registerLoader:function(t,r){e[t]=r},unregisterLoader:function(t){e[t]&&delete e[t]},unregisterAllLoader:t,reset:r}}R.__dashjs_factory_name="SchemeLoaderFactory";var w=n.a.getSingletonFactory(R);t.a=w},,,,,function(e,t){(function(t){e.exports=t}).call(this,{})},,,,function(e,t,r){"use strict";function n(e,t){return function(r,n){var i,a,s,u=o(r,"tag"),l=o(null==n?"*":n,"range"),f=[],c=-1;for(;++c<l.length;)if(i=l[c].toLowerCase(),t||"*"!==i){for(a=-1,s=[];++a<u.length;)if(e(u[a].toLowerCase(),i)){if(!t)return u[a];f.push(u[a])}else s.push(u[a]);u=s}return t?f:void 0}}function o(e,t){var r=e&&"string"==typeof e?[e]:e;if(!r||"object"!=typeof r||!("length"in r))throw new Error("Invalid "+t+" `"+r+"`, expected non-empty string");return r}t.basicFilter=n((function(e,t){return"*"===t||e===t||e.indexOf(t+"-")>-1}),!0),t.extendedFilter=n((function(e,t){var r=e.split("-"),n=t.split("-"),o=0,i=0;if("*"!==n[i]&&r[o]!==n[i])return!1;o++,i++;for(;i<n.length;)if("*"!==n[i]){if(!r[o])return!1;if(r[o]!==n[i]){if(1===r[o].length)return!1;o++}else o++,i++}else i++;return!0}),!0),t.lookup=n((function(e,t){var r,n=t;for(;;){if("*"===n||e===n)return!0;if((r=n.lastIndexOf("-"))<0)return!1;"-"===n.charAt(r-2)&&(r-=2),n=n.slice(0,r)}}))},,,,,function(e,t,r){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},function(e,t,r){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},function(e,t,r){"use strict";var n=r(1),o=r(3),i=r(4),a=r(12);function s(e){var t,r,o,s,u,l=(e=e||{}).eventBus,f=e.events,c=e.abrController,d=e.dashMetrics,m=e.playbackController,p=e.timelineConverter,h=e.type,g=e.streamInfo,v=e.dashConstants,_=e.segmentsController,y=e.isDynamic;function E(){return h}function b(){if(!(c&&d&&m&&p))throw new Error(n.a.MISSING_CONFIG_ERROR)}function T(){return o}function A(){return u}function S(){r=null,o=!0,s=[]}function I(e){return new Promise((function(t,r){var n=e.hasInitialization(),o=e.hasSegments(),i=[];i.push(_.updateInitData(e,n)),i.push(_.updateSegmentData(e,o)),Promise.all(i).then((function(r){var n;r[0]&&!r[0].error&&(e=function(e,t){if(!t||t.error||!t.representation)return e;return t.representation}(e,r[0])),r[1]&&!r[1].error&&(e=function(e,t){if(!t||t.error)return;var r,n,o,i,s=t.segments,u=[],l=0;for(r=0,n=s?s.length:0;r<n;r++)o=s[r],(i=Object(a.b)(p,y,e,o.startTime,o.duration,o.timescale,o.media,o.mediaRange,l))&&(u.push(i),i=null,l++);u.length>0&&(e.segments=u);return e}(e,r[1])),(n=e).mediaFinishedInformation=_.getMediaFinishedInformation(n),function(e){if(!T())return;var t,r=d.getCurrentManifestUpdate(),n=!1;if(r){for(var o=0;o<r.representationInfo.length;o++)if((t=r.representationInfo[o]).index===e.index&&t.mediaType===E()){n=!0;break}n||d.addManifestUpdateRepresentationInfo(e,E())}if(function(){for(var e=0,t=s.length;e<t;e++){var r=s[e].segmentInfoType;if(!s[e].hasInitialization()||(r===v.SEGMENT_BASE||r===v.BASE_URL)&&!s[e].segments)return!1}return!0}()){c.setPlaybackQuality(h,g,(a=u,s.indexOf(a)));var i=d.getCurrentDVRInfo(h);i&&d.updateManifestUpdateInfo({latency:i.range.end-m.getTime()}),d.getCurrentRepresentationSwitch(A().adaptation.type)||R(),O()}var a}(e),t()})).catch((function(e){r(e)}))}))}function R(){b();var e=new Date,t=A(),r=1e3*m.getTime();t&&d.addRepresentationSwitch(t.adaptation.type,e,r,t.id),l.trigger(i.a.REPRESENTATION_SWITCH,{mediaType:h,streamId:g.id,currentRepresentation:t,numberOfRepresentations:s.length},{streamId:g.id,mediaType:h})}function w(e){return null==e||e>=s.length?null:s[e]}function O(e){o=!1,l.trigger(f.DATA_UPDATE_COMPLETED,{data:r,currentRepresentation:u,error:e},{streamId:g.id,mediaType:h})}function N(e){u=e}function D(e){if(e.newDuration){var t=A();if(t&&t.adaptation.period)t.adaptation.period.duration=e.newDuration}}return t={getStreamId:function(){return g.id},getType:E,getData:function(){return r},isUpdating:T,updateData:function(e,t,i,a,u){if(b(),o=!0,s=t,N(w(u)),r=e,i!==n.a.VIDEO&&i!==n.a.AUDIO&&(i!==n.a.TEXT||!a))return O(),Promise.resolve();for(var l=[],f=0,c=s.length;f<c;f++){var d=s[f];l.push(I(d))}return Promise.all(l)},getCurrentRepresentation:A,getRepresentationForQuality:w,prepareQualityChange:function(e){N(w(e)),R()},reset:function(){l.off(i.a.MANIFEST_VALIDITY_CHANGED,D,t),S()}},S(),l.on(i.a.MANIFEST_VALIDITY_CHANGED,D,t),t}s.__dashjs_factory_name="RepresentationController",t.a=o.a.getClassFactory(s)},,function(e,t,r){"use strict";var n=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var a,s,u,l=n(t),f=n(r);if(l&&f){if((s=t.length)!=r.length)return!1;for(a=s;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(l!=f)return!1;var c=t instanceof Date,d=r instanceof Date;if(c!=d)return!1;if(c&&d)return t.getTime()==r.getTime();var m=t instanceof RegExp,p=r instanceof RegExp;if(m!=p)return!1;if(m&&p)return t.toString()==r.toString();var h=o(t);if((s=h.length)!==o(r).length)return!1;for(a=s;0!=a--;)if(!i.call(r,h[a]))return!1;for(a=s;0!=a--;)if(!e(t[u=h[a]],r[u]))return!1;return!0}return t!=t&&r!=r}},function(e,t,r){"use strict";var n=r(3);function o(e){return(o="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)}function i(e){function t(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}function r(e,r,n){for(var i=0,a=e.length;i<a;++i){var s=e[i];if(r[s.name])if(n[s.name]){if(s.merge){var u=r[s.name],l=n[s.name];"object"===o(u)&&"object"===o(l)?t(u,l):n[s.name]=u+l}}else n[s.name]=r[s.name]}}function n(e,t){for(var o=0,i=e.children.length;o<i;++o){var a=e.children[o],s=t[a.name+"_asArray"];if(s)for(var u=0,l=s.length;u<l;++u){var f=s[u];r(e.properties,t,f),n(a,f)}}}return{run:function(t){if(null===t||"object"!==o(t))return t;if(t.Period_asArray&&"period"in e)for(var r=e.period,i=t.Period_asArray,a=0,s=i.length;a<s;++a){var u=i[a];if(n(r,u),"adaptationset"in e){var l=u.AdaptationSet_asArray;if(l)for(var f=e.adaptationset,c=0,d=l.length;c<d;++c)n(f,l[c])}}return t}}}i.__dashjs_factory_name="ObjectIron";var a=n.a.getClassFactory(i),s=r(47);function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._test=t,this._converter=r}var t,r,n;return t=e,(r=[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}])&&u(t.prototype,r),n&&u(t,n),e}(),f=r(0);function c(e){return(c="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)}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return h(this,r)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!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}}),t&&m(e,t)}(r,e);var t=p(r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t.call(this,(function(e,t){var r,n=(d(r={},f.a.MPD,[f.a.ID,f.a.PROFILES]),d(r,f.a.PERIOD,[f.a.ID]),d(r,f.a.BASE_URL,[f.a.SERVICE_LOCATION,f.a.BYTE_RANGE]),d(r,f.a.SEGMENT_BASE,[f.a.INDEX_RANGE]),d(r,f.a.INITIALIZATION,[f.a.RANGE]),d(r,f.a.REPRESENTATION_INDEX,[f.a.RANGE]),d(r,f.a.SEGMENT_LIST,[f.a.INDEX_RANGE]),d(r,f.a.BITSTREAM_SWITCHING,[f.a.RANGE]),d(r,f.a.SEGMENT_URL,[f.a.MEDIA_RANGE,f.a.INDEX_RANGE]),d(r,f.a.SEGMENT_TEMPLATE,[f.a.INDEX_RANGE,f.a.MEDIA,f.a.INDEX,f.a.INITIALIZATION_MINUS,f.a.BITSTREAM_SWITCHING_MINUS]),d(r,f.a.ASSET_IDENTIFIER,[f.a.VALUE,f.a.ID]),d(r,f.a.EVENT_STREAM,[f.a.VALUE]),d(r,f.a.ADAPTATION_SET,[f.a.PROFILES,f.a.MIME_TYPE,f.a.SEGMENT_PROFILES,f.a.CODECS,f.a.CONTENT_TYPE]),d(r,f.a.FRAME_PACKING,[f.a.VALUE,f.a.ID]),d(r,f.a.AUDIO_CHANNEL_CONFIGURATION,[f.a.VALUE,f.a.ID]),d(r,f.a.CONTENT_PROTECTION,[f.a.VALUE,f.a.ID]),d(r,f.a.ESSENTIAL_PROPERTY,[f.a.VALUE,f.a.ID]),d(r,f.a.SUPPLEMENTAL_PROPERTY,[f.a.VALUE,f.a.ID]),d(r,f.a.INBAND_EVENT_STREAM,[f.a.VALUE,f.a.ID]),d(r,f.a.ACCESSIBILITY,[f.a.VALUE,f.a.ID]),d(r,f.a.ROLE,[f.a.VALUE,f.a.ID]),d(r,f.a.RATING,[f.a.VALUE,f.a.ID]),d(r,f.a.VIEWPOINT,[f.a.VALUE,f.a.ID]),d(r,f.a.CONTENT_COMPONENT,[f.a.CONTENT_TYPE]),d(r,f.a.REPRESENTATION,[f.a.ID,f.a.DEPENDENCY_ID,f.a.MEDIA_STREAM_STRUCTURE_ID]),d(r,f.a.SUBSET,[f.a.ID]),d(r,f.a.METRICS,[f.a.METRICS_MINUS]),d(r,f.a.REPORTING,[f.a.VALUE,f.a.ID]),r);if(n.hasOwnProperty(t)){var o=n[t];return void 0!==o&&o.indexOf(e.name)>=0}return!1}),(function(e){return String(e)}))}return r}(l),_=r(1);function y(e){return(y="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)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=A(e);if(t){var o=A(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,I=function(e){!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}}),t&&E(e,t)}(r,e);var t=b(r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t.call(this,(function(e){for(var t=[f.a.MIN_BUFFER_TIME,f.a.MEDIA_PRESENTATION_DURATION,f.a.MINIMUM_UPDATE_PERIOD,f.a.TIMESHIFT_BUFFER_DEPTH,f.a.MAX_SEGMENT_DURATION,f.a.MAX_SUBSEGMENT_DURATION,f.a.SUGGESTED_PRESENTATION_DELAY,f.a.START,_.a.START_TIME,f.a.DURATION],r=t.length,n=0;n<r;n++)if(e.nodeName===t[n])return S.test(e.value);return!1}),(function(e){var t=S.exec(e),r=31536e3*parseFloat(t[3]||0)+2592e3*parseFloat(t[5]||0)+86400*parseFloat(t[7]||0)+3600*parseFloat(t[9]||0)+60*parseFloat(t[11]||0)+parseFloat(t[13]||0);return void 0!==t[1]&&(r=-r),r}))}return r}(l);function R(e){return(R="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)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=D(e);if(t){var o=D(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return N(this,r)}}function N(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,P=function(e){!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}}),t&&w(e,t)}(r,e);var t=O(r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t.call(this,(function(e){return C.test(e.value)}),(function(e){var t,r=C.exec(e);if(t=Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[4],10),parseInt(r[5],10),r[6]&&parseInt(r[6],10)||0,r[7]&&1e3*parseFloat(r[7])||0),r[9]&&r[10]){var n=60*parseInt(r[9],10)+parseInt(r[10],10);t+=("+"===r[8]?-1:1)*n*60*1e3}return new Date(t)}))}return r}(l);function L(e){return(L="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)}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var o=k(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return F(this,r)}}function F(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,U=function(e){!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}}),t&&M(e,t)}(r,e);var t=x(r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t.call(this,(function(e){return B.test(e.value)}),(function(e){return parseFloat(e)}))}return r}(l),q=r(33),j=r.n(q);function G(e){return(G="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)}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=W(e);if(t){var o=W(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Y(this,r)}}function Y(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){!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}}),t&&H(e,t)}(r,e);var t=V(r);function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),t.call(this,(function(e,t){var r,n=(z(r={},f.a.ADAPTATION_SET,[f.a.LANG]),z(r,f.a.REPRESENTATION,[f.a.LANG]),z(r,f.a.CONTENT_COMPONENT,[f.a.LANG]),z(r,f.a.LABEL,[f.a.LANG]),z(r,f.a.GROUP_LABEL,[f.a.LANG]),r);if(n.hasOwnProperty(t)){var o=n[t];return void 0!==o&&o.indexOf(e.name)>=0}return!1}),(function(e){var t=j()(e);return void 0!==t?t:String(e)}))}return r}(l);function Q(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var K=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r;this._name=t,this._merge=(r=t)&&r.length&&r.charAt(0)===r.charAt(0).toUpperCase()}var t,r,n;return t=e,(r=[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}])&&Q(t.prototype,r),n&&Q(t,n),e}();function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var $=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._name=t||"",this._properties=[],this._children=n||[],Array.isArray(r)&&r.forEach((function(e){o._properties.push(new K(e))}))}var t,r,n;return t=e,(r=[{key:"name",get:function(){return this._name}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}])&&Z(t.prototype,r),n&&Z(t,n),e}();function J(e){return(J="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)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ne(e);if(t){var o=ne(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return re(this,r)}}function re(e,t){return!t||"object"!==J(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!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}}),t&&ee(e,t)}(r,e);var t=te(r);function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=[f.a.PROFILES,f.a.WIDTH,f.a.HEIGHT,f.a.SAR,f.a.FRAMERATE,f.a.AUDIO_SAMPLING_RATE,f.a.MIME_TYPE,f.a.SEGMENT_PROFILES,f.a.CODECS,f.a.MAXIMUM_SAP_PERIOD,f.a.START_WITH_SAP,f.a.MAX_PLAYOUT_RATE,f.a.CODING_DEPENDENCY,f.a.SCAN_TYPE,f.a.FRAME_PACKING,f.a.AUDIO_CHANNEL_CONFIGURATION,f.a.CONTENT_PROTECTION,f.a.ESSENTIAL_PROPERTY,f.a.SUPPLEMENTAL_PROPERTY,f.a.INBAND_EVENT_STREAM];return t.call(this,f.a.ADAPTATION_SET,e,[new $(f.a.REPRESENTATION,e,[new $(f.a.SUB_REPRESENTATION,e)])])}return r}($);function ie(e){return(ie="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)}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=le(e);if(t){var o=le(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ue(this,r)}}function ue(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!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}}),t&&ae(e,t)}(r,e);var t=se(r);function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=[f.a.SEGMENT_BASE,f.a.SEGMENT_TEMPLATE,f.a.SEGMENT_LIST];return t.call(this,f.a.PERIOD,e,[new $(f.a.ADAPTATION_SET,e,[new $(f.a.REPRESENTATION,e)])])}return r}($);function ce(e){e=e||{};var t,r,n,o,i,u=this.context,l=e.debug;return t={parse:function(e){var t,n=window.performance.now();if(!(t=o.xml_str2json(e)))throw new Error("parsing the manifest failed");var a=window.performance.now();t.Patch?((t=t.Patch).add_asArray&&t.add_asArray.forEach((function(e){return i.run(e)})),t.replace_asArray&&t.replace_asArray.forEach((function(e){return i.run(e)}))):(t=t.MPD,i.run(t));var s=window.performance.now();return r.info("Parsing complete: ( xml2json: "+(a-n).toPrecision(3)+"ms, objectiron: "+(s-a).toPrecision(3)+"ms, total: "+((s-n)/1e3).toPrecision(3)+"s)"),t.protocol="DASH",t},getMatchers:function(){return n},getIron:function(){return i}},r=l.getLogger(t),n=[new I,new P,new U,new X,new v],o=new s.a({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!0,ignoreRoot:!1,matchers:n}),i=a(u).create({adaptationset:new oe,period:new fe}),t}ce.__dashjs_factory_name="DashParser";t.a=n.a.getClassFactory(ce)},function(e,t,r){"use strict";var n=r(1),o=r(22);function i(e){return(i="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)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=l(e);if(t){var o=l(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!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}}),t&&a(e,t)}(r,e);var t=s(r);function r(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=t.call(this,e)).checkForExistenceOnly=!0,n}return r}(r(17).a),c=r(10),d=r(3);function m(e){e=e||{};var t,r,i=this.context,a=e.eventBus,s=e.events,u=e.urlUtils,l=e.errors,d=e.streamId;return t={checkForExistence:function(e){var t=function(t){a.trigger(s.CHECK_FOR_EXISTENCE_COMPLETED,{request:e,exists:t})};if(e){var n=new f(e.url);r.load({request:n,success:function(){t(!0)},error:function(){t(!1)}})}else t(!1)},load:function(e){var n=function(r,n){a.trigger(s.LOADING_COMPLETED,{request:e,response:r||null,error:n||null,sender:t})};e?r.load({request:e,progress:function(r){a.trigger(s.LOADING_PROGRESS,{request:e,stream:r.stream,streamId:d}),r.data&&a.trigger(s.LOADING_DATA_PROGRESS,{request:e,response:r.data||null,error:null,sender:t})},success:function(e){n(e)},error:function(e,t,r){n(void 0,new c.a(l.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE,r,t))},abort:function(e){e&&a.trigger(s.LOADING_ABANDONED,{mediaType:e.mediaType,request:e,sender:t})}}):n(void 0,new c.a(l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE,l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE))},abort:function(){r&&r.abort()},reset:function(){r&&(r.abort(),r=null)}},r=Object(o.a)(i).create({errHandler:e.errHandler,errors:l,dashMetrics:e.dashMetrics,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier,urlUtils:u,constants:n.a,boxParser:e.boxParser,dashConstants:e.dashConstants,requestTimeout:e.settings.get().streaming.fragmentRequestTimeout}),t}m.__dashjs_factory_name="FragmentLoader";t.a=d.a.getClassFactory(m)},,,,,,,function(e,t,r){"use strict";var n=r(76),o=r(57),i=r(82),a=r(83),s=r(84),u=r(85);e.exports=function(e,t){var r,f=t||{},g=n.parse(String(e||"").toLowerCase(),f),v=n.stringify(g),_=-1;if(!v)return v;for(;++_<i.length;)o.extendedFilter(v,i[_].from).length&&(d(g,i[_].from,i[_].to),v=n.stringify(g));_=-1;for(;++_<a.length;)m(g,a[_].from.field,a[_].from.value)&&p(g,a[_].to.field,a[_].to.value);v=n.stringify(Object.assign({},g,c)),_=-1;for(;++_<s.length;)v===s[_]&&(d(g,s[_],s[_].split("-").slice(0,-1).join("-")),v=n.stringify(Object.assign({},g,c)));if(g.extensions.sort(h),f.warning)for(r in u)l.call(u[r],g[r])&&f.warning("Deprecated "+r+" `"+g[r]+"`, expected one of `"+u[r][g[r]].join("`, `")+"`",null,7);g.script&&(g.script=g.script.charAt(0).toUpperCase()+g.script.slice(1));g.region&&(g.region=g.region.toUpperCase());return n.stringify(g)};var l={}.hasOwnProperty,f=new Intl.Collator,c={variants:[],extensions:[],privateuse:[],irregular:null,regular:null};function d(e,t,r){var o,i=n.parse(t),a=n.parse(r),s=[];for(o in i)i[o]&&i[o].length&&m(e,o,i[o])&&s.push(o);for(o in a)a[o]&&a[o].length&&(s.indexOf(o)>-1||!e[o]||!e[o].length)&&p(e,o,a[o])}function m(e,t,r){var n,o,i,a,s=!1;if(r){if(o=n=e[t],n&&"object"==typeof n)for(o=[],i=-1;++i<n.length;)a=n[i],r.indexOf(a)<0?o.push(a):s=!0;else n===r&&(o=null,s=!0);e[t]=o}return s}function p(e,t,r){var n,o,i,a=e[t];if(a&&"object"==typeof a)for(n=[].concat(r),o=-1;++o<n.length;)i=n[o],a.indexOf(i)<0&&a.push(i);else e[t]=r}function h(e,t){return f.compare(e.singleton,t.singleton)}},function(e,t,r){"use strict";t.parse=r(77),t.stringify=r(81)},function(e,t,r){"use strict";var n=r(78),o=r(62),i=r(63),a=r(79),s=r(80);e.exports=function e(t,r){var l,f,c,d=r||{},m={language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null},p=String(t),h=p.toLowerCase(),g=0;if(null==t)throw new Error("Expected string, got `"+t+"`");if(u.call(s,h))return(null==d.normalize||d.normalize)&&s[h]?e(s[h]):(m[-1===a.indexOf(h)?"irregular":"regular"]=p,m);for(;o(h.charCodeAt(g))&&g<9;)g++;if(g>1&&g<9){if(m.language=p.slice(0,g),g<4)for(f=0;45===h.charCodeAt(g)&&o(h.charCodeAt(g+1))&&o(h.charCodeAt(g+2))&&o(h.charCodeAt(g+3))&&!o(h.charCodeAt(g+4));){if(f>2)return v(g,3,"Too many extended language subtags, expected at most 3 subtags");m.extendedLanguageSubtags.push(p.slice(g+1,g+4)),g+=4,f++}for(45===h.charCodeAt(g)&&o(h.charCodeAt(g+1))&&o(h.charCodeAt(g+2))&&o(h.charCodeAt(g+3))&&o(h.charCodeAt(g+4))&&!o(h.charCodeAt(g+5))&&(m.script=p.slice(g+1,g+5),g+=5),45===h.charCodeAt(g)&&(o(h.charCodeAt(g+1))&&o(h.charCodeAt(g+2))&&!o(h.charCodeAt(g+3))?(m.region=p.slice(g+1,g+3),g+=3):i(h.charCodeAt(g+1))&&i(h.charCodeAt(g+2))&&i(h.charCodeAt(g+3))&&!i(h.charCodeAt(g+4))&&(m.region=p.slice(g+1,g+4),g+=4));45===h.charCodeAt(g);){for(c=l=g+1;n(h.charCodeAt(c));){if(c-l>7)return v(c,1,"Too long variant, expected at most 8 characters");c++}if(!(c-l>4||c-l>3&&i(h.charCodeAt(l))))break;m.variants.push(p.slice(l,c)),g=c}for(;45===h.charCodeAt(g)&&120!==h.charCodeAt(g+1)&&n(h.charCodeAt(g+1))&&45===h.charCodeAt(g+2)&&n(h.charCodeAt(g+3));){for(c=g+2,f=0;45===h.charCodeAt(c)&&n(h.charCodeAt(c+1))&&n(h.charCodeAt(c+2));)for(c=(l=c+1)+2,f++;n(h.charCodeAt(c));){if(c-l>7)return v(c,2,"Too long extension, expected at most 8 characters");c++}if(!f)return v(c,4,"Empty extension, extensions must have at least 2 characters of content");m.extensions.push({singleton:p.charAt(g+1),extensions:p.slice(g+3,c).split("-")}),g=c}}else g=0;if(0===g&&120===h.charCodeAt(g)||45===h.charCodeAt(g)&&120===h.charCodeAt(g+1))for(c=g=g?g+2:1;45===h.charCodeAt(c)&&n(h.charCodeAt(c+1));){for(c=l=g+1;n(h.charCodeAt(c));){if(c-l>7)return v(c,5,"Too long private-use area, expected at most 8 characters");c++}m.privateuse.push(p.slice(g+1,c)),g=c}if(g!==p.length)return v(g,6,"Found superfluous content after tag");return m;function v(e,t,r){return d.warning&&d.warning(r,t,e),d.forgiving?m:{language:null,extendedLanguageSubtags:[],script:null,region:null,variants:[],extensions:[],privateuse:[],irregular:null,regular:null}}};var u={}.hasOwnProperty},function(e,t,r){"use strict";var n=r(62),o=r(63);e.exports=function(e){return n(e)||o(e)}},function(e){e.exports=JSON.parse('["art-lojban","cel-gaulish","no-bok","no-nyn","zh-guoyu","zh-hakka","zh-min","zh-min-nan","zh-xiang"]')},function(e){e.exports=JSON.parse('{"en-gb-oed":"en-GB-oxendict","i-ami":"ami","i-bnn":"bnn","i-default":null,"i-enochian":null,"i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-mingo":null,"i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","sgn-be-fr":"sfb","sgn-be-nl":"vgt","sgn-ch-de":"sgg","art-lojban":"jbo","cel-gaulish":null,"no-bok":"nb","no-nyn":"nn","zh-guoyu":"cmn","zh-hakka":"hak","zh-min":null,"zh-min-nan":"nan","zh-xiang":"hsn"}')},function(e,t,r){"use strict";e.exports=function(e){var t,r,n,o=e||{},i=[];if(o.irregular||o.regular)return o.irregular||o.regular;if(o.language)for(i=i.concat(o.language,o.extendedLanguageSubtags||[],o.script||[],o.region||[],o.variants||[]),t=o.extensions||[],r=-1;++r<t.length;)(n=t[r]).singleton&&n.extensions&&n.extensions.length&&(i=i.concat(n.singleton,n.extensions));o.privateuse&&o.privateuse.length&&(i=i.concat("x",o.privateuse));return i.join("-")}},function(e){e.exports=JSON.parse('[{"from":"in","to":"id"},{"from":"iw","to":"he"},{"from":"ji","to":"yi"},{"from":"jw","to":"jv"},{"from":"mo","to":"ro"},{"from":"scc","to":"sr"},{"from":"scr","to":"hr"},{"from":"aam","to":"aas"},{"from":"adp","to":"dz"},{"from":"aue","to":"ktz"},{"from":"ayx","to":"nun"},{"from":"bgm","to":"bcg"},{"from":"bjd","to":"drl"},{"from":"ccq","to":"rki"},{"from":"cjr","to":"mom"},{"from":"cka","to":"cmr"},{"from":"cmk","to":"xch"},{"from":"coy","to":"pij"},{"from":"cqu","to":"quh"},{"from":"drh","to":"mn"},{"from":"drw","to":"fa-af"},{"from":"gav","to":"dev"},{"from":"gfx","to":"vaj"},{"from":"ggn","to":"gvr"},{"from":"gti","to":"nyc"},{"from":"guv","to":"duz"},{"from":"hrr","to":"jal"},{"from":"ibi","to":"opa"},{"from":"ilw","to":"gal"},{"from":"jeg","to":"oyb"},{"from":"kgc","to":"tdf"},{"from":"kgh","to":"kml"},{"from":"koj","to":"kwv"},{"from":"krm","to":"bmf"},{"from":"ktr","to":"dtp"},{"from":"kvs","to":"gdj"},{"from":"kwq","to":"yam"},{"from":"kxe","to":"tvd"},{"from":"kzj","to":"dtp"},{"from":"kzt","to":"dtp"},{"from":"lii","to":"raq"},{"from":"lmm","to":"rmx"},{"from":"meg","to":"cir"},{"from":"mst","to":"mry"},{"from":"mwj","to":"vaj"},{"from":"myt","to":"mry"},{"from":"nad","to":"xny"},{"from":"ncp","to":"kdz"},{"from":"nnx","to":"ngv"},{"from":"nts","to":"pij"},{"from":"oun","to":"vaj"},{"from":"pcr","to":"adx"},{"from":"pmc","to":"huw"},{"from":"pmu","to":"phr"},{"from":"ppa","to":"bfy"},{"from":"ppr","to":"lcq"},{"from":"pry","to":"prt"},{"from":"puz","to":"pub"},{"from":"sca","to":"hle"},{"from":"skk","to":"oyb"},{"from":"tdu","to":"dtp"},{"from":"thc","to":"tpo"},{"from":"thx","to":"oyb"},{"from":"tie","to":"ras"},{"from":"tkk","to":"twm"},{"from":"tlw","to":"weo"},{"from":"tmp","to":"tyj"},{"from":"tne","to":"kak"},{"from":"tnf","to":"fa-af"},{"from":"tsf","to":"taj"},{"from":"uok","to":"ema"},{"from":"xba","to":"cax"},{"from":"xia","to":"acn"},{"from":"xkh","to":"waw"},{"from":"xsj","to":"suj"},{"from":"ybd","to":"rki"},{"from":"yma","to":"lrr"},{"from":"ymt","to":"mtm"},{"from":"yos","to":"zom"},{"from":"yuu","to":"yug"},{"from":"asd","to":"snz"},{"from":"dit","to":"dif"},{"from":"llo","to":"ngt"},{"from":"myd","to":"aog"},{"from":"nns","to":"nbr"},{"from":"sgn-br","to":"bzs"},{"from":"sgn-co","to":"csn"},{"from":"sgn-de","to":"gsg"},{"from":"sgn-dk","to":"dsl"},{"from":"sgn-fr","to":"fsl"},{"from":"sgn-gb","to":"bfi"},{"from":"sgn-gr","to":"gss"},{"from":"sgn-ie","to":"isg"},{"from":"sgn-it","to":"ise"},{"from":"sgn-jp","to":"jsl"},{"from":"sgn-mx","to":"mfs"},{"from":"sgn-ni","to":"ncs"},{"from":"sgn-nl","to":"dse"},{"from":"sgn-no","to":"nsi"},{"from":"sgn-pt","to":"psr"},{"from":"sgn-se","to":"swl"},{"from":"sgn-us","to":"ase"},{"from":"sgn-za","to":"sfs"},{"from":"no-bokmal","to":"nb"},{"from":"no-nynorsk","to":"nn"},{"from":"aa-saaho","to":"ssy"},{"from":"sh","to":"sr-latn"},{"from":"cnr","to":"sr-me"},{"from":"no","to":"nb"},{"from":"tl","to":"fil"},{"from":"az-az","to":"az-latn-az"},{"from":"bs-ba","to":"bs-latn-ba"},{"from":"ha-latn-gh","to":"ha-gh"},{"from":"ha-latn-ne","to":"ha-ne"},{"from":"ha-latn-ng","to":"ha-ng"},{"from":"kk-cyrl-kz","to":"kk-kz"},{"from":"ky-cyrl-kg","to":"ky-kg"},{"from":"ks-arab-in","to":"ks-in"},{"from":"mn-cyrl-mn","to":"mn-mn"},{"from":"ms-latn-bn","to":"ms-bn"},{"from":"ms-latn-my","to":"ms-my"},{"from":"ms-latn-sg","to":"ms-sg"},{"from":"pa-in","to":"pa-guru-in"},{"from":"pa-pk","to":"pa-arab-pk"},{"from":"shi-ma","to":"shi-tfng-ma"},{"from":"sr-ba","to":"sr-cyrl-ba"},{"from":"sr-me","to":"sr-latn-me"},{"from":"sr-rs","to":"sr-cyrl-rs"},{"from":"sr-xk","to":"sr-cyrl-xk"},{"from":"tzm-latn-ma","to":"tzm-ma"},{"from":"ug-arab-cn","to":"ug-cn"},{"from":"uz-af","to":"uz-arab-af"},{"from":"uz-uz","to":"uz-latn-uz"},{"from":"vai-lr","to":"vai-vaii-lr"},{"from":"yue-cn","to":"yue-hans-cn"},{"from":"yue-hk","to":"yue-hant-hk"},{"from":"zh-cn","to":"zh-hans-cn"},{"from":"zh-hk","to":"zh-hant-hk"},{"from":"zh-mo","to":"zh-hant-mo"},{"from":"zh-sg","to":"zh-hans-sg"},{"from":"zh-tw","to":"zh-hant-tw"},{"from":"aju","to":"jrb"},{"from":"als","to":"sq"},{"from":"arb","to":"ar"},{"from":"ayr","to":"ay"},{"from":"azj","to":"az"},{"from":"bcc","to":"bal"},{"from":"bcl","to":"bik"},{"from":"bxk","to":"luy"},{"from":"bxr","to":"bua"},{"from":"cld","to":"syr"},{"from":"cmn","to":"zh"},{"from":"cwd","to":"cr"},{"from":"dgo","to":"doi"},{"from":"dhd","to":"mwr"},{"from":"dik","to":"din"},{"from":"diq","to":"zza"},{"from":"lbk","to":"bnc"},{"from":"ekk","to":"et"},{"from":"emk","to":"man"},{"from":"esk","to":"ik"},{"from":"fat","to":"ak"},{"from":"fuc","to":"ff"},{"from":"gaz","to":"om"},{"from":"gbo","to":"grb"},{"from":"gno","to":"gon"},{"from":"gug","to":"gn"},{"from":"gya","to":"gba"},{"from":"hdn","to":"hai"},{"from":"hea","to":"hmn"},{"from":"ike","to":"iu"},{"from":"kmr","to":"ku"},{"from":"knc","to":"kr"},{"from":"kng","to":"kg"},{"from":"knn","to":"kok"},{"from":"kpv","to":"kv"},{"from":"lvs","to":"lv"},{"from":"mhr","to":"chm"},{"from":"mup","to":"raj"},{"from":"khk","to":"mn"},{"from":"npi","to":"ne"},{"from":"ojg","to":"oj"},{"from":"ory","to":"or"},{"from":"pbu","to":"ps"},{"from":"pes","to":"fa"},{"from":"plt","to":"mg"},{"from":"pnb","to":"lah"},{"from":"quz","to":"qu"},{"from":"rmy","to":"rom"},{"from":"spy","to":"kln"},{"from":"src","to":"sc"},{"from":"swh","to":"sw"},{"from":"ttq","to":"tmh"},{"from":"tw","to":"ak"},{"from":"umu","to":"del"},{"from":"uzn","to":"uz"},{"from":"xpe","to":"kpe"},{"from":"xsl","to":"den"},{"from":"ydd","to":"yi"},{"from":"zai","to":"zap"},{"from":"zsm","to":"ms"},{"from":"zyb","to":"za"},{"from":"him","to":"srx"},{"from":"mnk","to":"man"},{"from":"bh","to":"bho"},{"from":"prs","to":"fa-af"},{"from":"swc","to":"sw-cd"},{"from":"aar","to":"aa"},{"from":"abk","to":"ab"},{"from":"ave","to":"ae"},{"from":"afr","to":"af"},{"from":"aka","to":"ak"},{"from":"amh","to":"am"},{"from":"arg","to":"an"},{"from":"ara","to":"ar"},{"from":"asm","to":"as"},{"from":"ava","to":"av"},{"from":"aym","to":"ay"},{"from":"aze","to":"az"},{"from":"bak","to":"ba"},{"from":"bel","to":"be"},{"from":"bul","to":"bg"},{"from":"bih","to":"bho"},{"from":"bis","to":"bi"},{"from":"bam","to":"bm"},{"from":"ben","to":"bn"},{"from":"bod","to":"bo"},{"from":"bre","to":"br"},{"from":"bos","to":"bs"},{"from":"cat","to":"ca"},{"from":"che","to":"ce"},{"from":"cha","to":"ch"},{"from":"cos","to":"co"},{"from":"cre","to":"cr"},{"from":"ces","to":"cs"},{"from":"chu","to":"cu"},{"from":"chv","to":"cv"},{"from":"cym","to":"cy"},{"from":"dan","to":"da"},{"from":"deu","to":"de"},{"from":"div","to":"dv"},{"from":"dzo","to":"dz"},{"from":"ewe","to":"ee"},{"from":"ell","to":"el"},{"from":"eng","to":"en"},{"from":"epo","to":"eo"},{"from":"spa","to":"es"},{"from":"est","to":"et"},{"from":"eus","to":"eu"},{"from":"fas","to":"fa"},{"from":"ful","to":"ff"},{"from":"fin","to":"fi"},{"from":"fij","to":"fj"},{"from":"fao","to":"fo"},{"from":"fra","to":"fr"},{"from":"fry","to":"fy"},{"from":"gle","to":"ga"},{"from":"gla","to":"gd"},{"from":"glg","to":"gl"},{"from":"grn","to":"gn"},{"from":"guj","to":"gu"},{"from":"glv","to":"gv"},{"from":"hau","to":"ha"},{"from":"heb","to":"he"},{"from":"hin","to":"hi"},{"from":"hmo","to":"ho"},{"from":"hrv","to":"hr"},{"from":"hat","to":"ht"},{"from":"hun","to":"hu"},{"from":"hye","to":"hy"},{"from":"her","to":"hz"},{"from":"ina","to":"ia"},{"from":"ind","to":"id"},{"from":"ile","to":"ie"},{"from":"ibo","to":"ig"},{"from":"iii","to":"ii"},{"from":"ipk","to":"ik"},{"from":"ido","to":"io"},{"from":"isl","to":"is"},{"from":"ita","to":"it"},{"from":"iku","to":"iu"},{"from":"jpn","to":"ja"},{"from":"jav","to":"jv"},{"from":"kat","to":"ka"},{"from":"kon","to":"kg"},{"from":"kik","to":"ki"},{"from":"kua","to":"kj"},{"from":"kaz","to":"kk"},{"from":"kal","to":"kl"},{"from":"khm","to":"km"},{"from":"kan","to":"kn"},{"from":"kor","to":"ko"},{"from":"kau","to":"kr"},{"from":"kas","to":"ks"},{"from":"kur","to":"ku"},{"from":"kom","to":"kv"},{"from":"cor","to":"kw"},{"from":"kir","to":"ky"},{"from":"lat","to":"la"},{"from":"ltz","to":"lb"},{"from":"lug","to":"lg"},{"from":"lim","to":"li"},{"from":"lin","to":"ln"},{"from":"lao","to":"lo"},{"from":"lit","to":"lt"},{"from":"lub","to":"lu"},{"from":"lav","to":"lv"},{"from":"mlg","to":"mg"},{"from":"mah","to":"mh"},{"from":"mri","to":"mi"},{"from":"mkd","to":"mk"},{"from":"mal","to":"ml"},{"from":"mon","to":"mn"},{"from":"mol","to":"ro"},{"from":"mar","to":"mr"},{"from":"msa","to":"ms"},{"from":"mlt","to":"mt"},{"from":"mya","to":"my"},{"from":"nau","to":"na"},{"from":"nob","to":"nb"},{"from":"nde","to":"nd"},{"from":"nep","to":"ne"},{"from":"ndo","to":"ng"},{"from":"nld","to":"nl"},{"from":"nno","to":"nn"},{"from":"nor","to":"nb"},{"from":"nbl","to":"nr"},{"from":"nav","to":"nv"},{"from":"nya","to":"ny"},{"from":"oci","to":"oc"},{"from":"oji","to":"oj"},{"from":"orm","to":"om"},{"from":"ori","to":"or"},{"from":"oss","to":"os"},{"from":"pan","to":"pa"},{"from":"pli","to":"pi"},{"from":"pol","to":"pl"},{"from":"pus","to":"ps"},{"from":"por","to":"pt"},{"from":"que","to":"qu"},{"from":"roh","to":"rm"},{"from":"run","to":"rn"},{"from":"ron","to":"ro"},{"from":"rus","to":"ru"},{"from":"kin","to":"rw"},{"from":"san","to":"sa"},{"from":"srd","to":"sc"},{"from":"snd","to":"sd"},{"from":"sme","to":"se"},{"from":"sag","to":"sg"},{"from":"hbs","to":"sr-latn"},{"from":"sin","to":"si"},{"from":"slk","to":"sk"},{"from":"slv","to":"sl"},{"from":"smo","to":"sm"},{"from":"sna","to":"sn"},{"from":"som","to":"so"},{"from":"sqi","to":"sq"},{"from":"srp","to":"sr"},{"from":"ssw","to":"ss"},{"from":"sot","to":"st"},{"from":"sun","to":"su"},{"from":"swe","to":"sv"},{"from":"swa","to":"sw"},{"from":"tam","to":"ta"},{"from":"tel","to":"te"},{"from":"tgk","to":"tg"},{"from":"tha","to":"th"},{"from":"tir","to":"ti"},{"from":"tuk","to":"tk"},{"from":"tgl","to":"fil"},{"from":"tsn","to":"tn"},{"from":"ton","to":"to"},{"from":"tur","to":"tr"},{"from":"tso","to":"ts"},{"from":"tat","to":"tt"},{"from":"twi","to":"ak"},{"from":"tah","to":"ty"},{"from":"uig","to":"ug"},{"from":"ukr","to":"uk"},{"from":"urd","to":"ur"},{"from":"uzb","to":"uz"},{"from":"ven","to":"ve"},{"from":"vie","to":"vi"},{"from":"vol","to":"vo"},{"from":"wln","to":"wa"},{"from":"wol","to":"wo"},{"from":"xho","to":"xh"},{"from":"yid","to":"yi"},{"from":"yor","to":"yo"},{"from":"zha","to":"za"},{"from":"zho","to":"zh"},{"from":"zul","to":"zu"},{"from":"alb","to":"sq"},{"from":"arm","to":"hy"},{"from":"baq","to":"eu"},{"from":"bur","to":"my"},{"from":"chi","to":"zh"},{"from":"cze","to":"cs"},{"from":"dut","to":"nl"},{"from":"fre","to":"fr"},{"from":"geo","to":"ka"},{"from":"ger","to":"de"},{"from":"gre","to":"el"},{"from":"ice","to":"is"},{"from":"mac","to":"mk"},{"from":"mao","to":"mi"},{"from":"may","to":"ms"},{"from":"per","to":"fa"},{"from":"rum","to":"ro"},{"from":"slo","to":"sk"},{"from":"tib","to":"bo"},{"from":"wel","to":"cy"}]')},function(e){e.exports=JSON.parse('[{"from":{"field":"script","value":"qaai"},"to":{"field":"script","value":"zinh"}},{"from":{"field":"region","value":"bu"},"to":{"field":"region","value":"mm"}},{"from":{"field":"region","value":"ct"},"to":{"field":"region","value":"ki"}},{"from":{"field":"region","value":"dd"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"dy"},"to":{"field":"region","value":"bj"}},{"from":{"field":"region","value":"fx"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"hv"},"to":{"field":"region","value":"bf"}},{"from":{"field":"region","value":"jt"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"mi"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"nh"},"to":{"field":"region","value":"vu"}},{"from":{"field":"region","value":"nq"},"to":{"field":"region","value":"aq"}},{"from":{"field":"region","value":"pu"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"pz"},"to":{"field":"region","value":"pa"}},{"from":{"field":"region","value":"qu"},"to":{"field":"region","value":"eu"}},{"from":{"field":"region","value":"rh"},"to":{"field":"region","value":"zw"}},{"from":{"field":"region","value":"tp"},"to":{"field":"region","value":"tl"}},{"from":{"field":"region","value":"uk"},"to":{"field":"region","value":"gb"}},{"from":{"field":"region","value":"vd"},"to":{"field":"region","value":"vn"}},{"from":{"field":"region","value":"wk"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"yd"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"zr"},"to":{"field":"region","value":"cd"}},{"from":{"field":"region","value":"230"},"to":{"field":"region","value":"et"}},{"from":{"field":"region","value":"280"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"736"},"to":{"field":"region","value":"sd"}},{"from":{"field":"region","value":"886"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"958"},"to":{"field":"region","value":"aa"}},{"from":{"field":"region","value":"020"},"to":{"field":"region","value":"ad"}},{"from":{"field":"region","value":"784"},"to":{"field":"region","value":"ae"}},{"from":{"field":"region","value":"004"},"to":{"field":"region","value":"af"}},{"from":{"field":"region","value":"028"},"to":{"field":"region","value":"ag"}},{"from":{"field":"region","value":"660"},"to":{"field":"region","value":"ai"}},{"from":{"field":"region","value":"008"},"to":{"field":"region","value":"al"}},{"from":{"field":"region","value":"051"},"to":{"field":"region","value":"am"}},{"from":{"field":"region","value":"024"},"to":{"field":"region","value":"ao"}},{"from":{"field":"region","value":"010"},"to":{"field":"region","value":"aq"}},{"from":{"field":"region","value":"032"},"to":{"field":"region","value":"ar"}},{"from":{"field":"region","value":"016"},"to":{"field":"region","value":"as"}},{"from":{"field":"region","value":"040"},"to":{"field":"region","value":"at"}},{"from":{"field":"region","value":"036"},"to":{"field":"region","value":"au"}},{"from":{"field":"region","value":"533"},"to":{"field":"region","value":"aw"}},{"from":{"field":"region","value":"248"},"to":{"field":"region","value":"ax"}},{"from":{"field":"region","value":"031"},"to":{"field":"region","value":"az"}},{"from":{"field":"region","value":"070"},"to":{"field":"region","value":"ba"}},{"from":{"field":"region","value":"052"},"to":{"field":"region","value":"bb"}},{"from":{"field":"region","value":"050"},"to":{"field":"region","value":"bd"}},{"from":{"field":"region","value":"056"},"to":{"field":"region","value":"be"}},{"from":{"field":"region","value":"854"},"to":{"field":"region","value":"bf"}},{"from":{"field":"region","value":"100"},"to":{"field":"region","value":"bg"}},{"from":{"field":"region","value":"048"},"to":{"field":"region","value":"bh"}},{"from":{"field":"region","value":"108"},"to":{"field":"region","value":"bi"}},{"from":{"field":"region","value":"204"},"to":{"field":"region","value":"bj"}},{"from":{"field":"region","value":"652"},"to":{"field":"region","value":"bl"}},{"from":{"field":"region","value":"060"},"to":{"field":"region","value":"bm"}},{"from":{"field":"region","value":"096"},"to":{"field":"region","value":"bn"}},{"from":{"field":"region","value":"068"},"to":{"field":"region","value":"bo"}},{"from":{"field":"region","value":"535"},"to":{"field":"region","value":"bq"}},{"from":{"field":"region","value":"076"},"to":{"field":"region","value":"br"}},{"from":{"field":"region","value":"044"},"to":{"field":"region","value":"bs"}},{"from":{"field":"region","value":"064"},"to":{"field":"region","value":"bt"}},{"from":{"field":"region","value":"104"},"to":{"field":"region","value":"mm"}},{"from":{"field":"region","value":"074"},"to":{"field":"region","value":"bv"}},{"from":{"field":"region","value":"072"},"to":{"field":"region","value":"bw"}},{"from":{"field":"region","value":"112"},"to":{"field":"region","value":"by"}},{"from":{"field":"region","value":"084"},"to":{"field":"region","value":"bz"}},{"from":{"field":"region","value":"124"},"to":{"field":"region","value":"ca"}},{"from":{"field":"region","value":"166"},"to":{"field":"region","value":"cc"}},{"from":{"field":"region","value":"180"},"to":{"field":"region","value":"cd"}},{"from":{"field":"region","value":"140"},"to":{"field":"region","value":"cf"}},{"from":{"field":"region","value":"178"},"to":{"field":"region","value":"cg"}},{"from":{"field":"region","value":"756"},"to":{"field":"region","value":"ch"}},{"from":{"field":"region","value":"384"},"to":{"field":"region","value":"ci"}},{"from":{"field":"region","value":"184"},"to":{"field":"region","value":"ck"}},{"from":{"field":"region","value":"152"},"to":{"field":"region","value":"cl"}},{"from":{"field":"region","value":"120"},"to":{"field":"region","value":"cm"}},{"from":{"field":"region","value":"156"},"to":{"field":"region","value":"cn"}},{"from":{"field":"region","value":"170"},"to":{"field":"region","value":"co"}},{"from":{"field":"region","value":"188"},"to":{"field":"region","value":"cr"}},{"from":{"field":"region","value":"192"},"to":{"field":"region","value":"cu"}},{"from":{"field":"region","value":"132"},"to":{"field":"region","value":"cv"}},{"from":{"field":"region","value":"531"},"to":{"field":"region","value":"cw"}},{"from":{"field":"region","value":"162"},"to":{"field":"region","value":"cx"}},{"from":{"field":"region","value":"196"},"to":{"field":"region","value":"cy"}},{"from":{"field":"region","value":"203"},"to":{"field":"region","value":"cz"}},{"from":{"field":"region","value":"278"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"276"},"to":{"field":"region","value":"de"}},{"from":{"field":"region","value":"262"},"to":{"field":"region","value":"dj"}},{"from":{"field":"region","value":"208"},"to":{"field":"region","value":"dk"}},{"from":{"field":"region","value":"212"},"to":{"field":"region","value":"dm"}},{"from":{"field":"region","value":"214"},"to":{"field":"region","value":"do"}},{"from":{"field":"region","value":"012"},"to":{"field":"region","value":"dz"}},{"from":{"field":"region","value":"218"},"to":{"field":"region","value":"ec"}},{"from":{"field":"region","value":"233"},"to":{"field":"region","value":"ee"}},{"from":{"field":"region","value":"818"},"to":{"field":"region","value":"eg"}},{"from":{"field":"region","value":"732"},"to":{"field":"region","value":"eh"}},{"from":{"field":"region","value":"232"},"to":{"field":"region","value":"er"}},{"from":{"field":"region","value":"724"},"to":{"field":"region","value":"es"}},{"from":{"field":"region","value":"231"},"to":{"field":"region","value":"et"}},{"from":{"field":"region","value":"246"},"to":{"field":"region","value":"fi"}},{"from":{"field":"region","value":"242"},"to":{"field":"region","value":"fj"}},{"from":{"field":"region","value":"238"},"to":{"field":"region","value":"fk"}},{"from":{"field":"region","value":"583"},"to":{"field":"region","value":"fm"}},{"from":{"field":"region","value":"234"},"to":{"field":"region","value":"fo"}},{"from":{"field":"region","value":"250"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"249"},"to":{"field":"region","value":"fr"}},{"from":{"field":"region","value":"266"},"to":{"field":"region","value":"ga"}},{"from":{"field":"region","value":"826"},"to":{"field":"region","value":"gb"}},{"from":{"field":"region","value":"308"},"to":{"field":"region","value":"gd"}},{"from":{"field":"region","value":"268"},"to":{"field":"region","value":"ge"}},{"from":{"field":"region","value":"254"},"to":{"field":"region","value":"gf"}},{"from":{"field":"region","value":"831"},"to":{"field":"region","value":"gg"}},{"from":{"field":"region","value":"288"},"to":{"field":"region","value":"gh"}},{"from":{"field":"region","value":"292"},"to":{"field":"region","value":"gi"}},{"from":{"field":"region","value":"304"},"to":{"field":"region","value":"gl"}},{"from":{"field":"region","value":"270"},"to":{"field":"region","value":"gm"}},{"from":{"field":"region","value":"324"},"to":{"field":"region","value":"gn"}},{"from":{"field":"region","value":"312"},"to":{"field":"region","value":"gp"}},{"from":{"field":"region","value":"226"},"to":{"field":"region","value":"gq"}},{"from":{"field":"region","value":"300"},"to":{"field":"region","value":"gr"}},{"from":{"field":"region","value":"239"},"to":{"field":"region","value":"gs"}},{"from":{"field":"region","value":"320"},"to":{"field":"region","value":"gt"}},{"from":{"field":"region","value":"316"},"to":{"field":"region","value":"gu"}},{"from":{"field":"region","value":"624"},"to":{"field":"region","value":"gw"}},{"from":{"field":"region","value":"328"},"to":{"field":"region","value":"gy"}},{"from":{"field":"region","value":"344"},"to":{"field":"region","value":"hk"}},{"from":{"field":"region","value":"334"},"to":{"field":"region","value":"hm"}},{"from":{"field":"region","value":"340"},"to":{"field":"region","value":"hn"}},{"from":{"field":"region","value":"191"},"to":{"field":"region","value":"hr"}},{"from":{"field":"region","value":"332"},"to":{"field":"region","value":"ht"}},{"from":{"field":"region","value":"348"},"to":{"field":"region","value":"hu"}},{"from":{"field":"region","value":"360"},"to":{"field":"region","value":"id"}},{"from":{"field":"region","value":"372"},"to":{"field":"region","value":"ie"}},{"from":{"field":"region","value":"376"},"to":{"field":"region","value":"il"}},{"from":{"field":"region","value":"833"},"to":{"field":"region","value":"im"}},{"from":{"field":"region","value":"356"},"to":{"field":"region","value":"in"}},{"from":{"field":"region","value":"086"},"to":{"field":"region","value":"io"}},{"from":{"field":"region","value":"368"},"to":{"field":"region","value":"iq"}},{"from":{"field":"region","value":"364"},"to":{"field":"region","value":"ir"}},{"from":{"field":"region","value":"352"},"to":{"field":"region","value":"is"}},{"from":{"field":"region","value":"380"},"to":{"field":"region","value":"it"}},{"from":{"field":"region","value":"832"},"to":{"field":"region","value":"je"}},{"from":{"field":"region","value":"388"},"to":{"field":"region","value":"jm"}},{"from":{"field":"region","value":"400"},"to":{"field":"region","value":"jo"}},{"from":{"field":"region","value":"392"},"to":{"field":"region","value":"jp"}},{"from":{"field":"region","value":"404"},"to":{"field":"region","value":"ke"}},{"from":{"field":"region","value":"417"},"to":{"field":"region","value":"kg"}},{"from":{"field":"region","value":"116"},"to":{"field":"region","value":"kh"}},{"from":{"field":"region","value":"296"},"to":{"field":"region","value":"ki"}},{"from":{"field":"region","value":"174"},"to":{"field":"region","value":"km"}},{"from":{"field":"region","value":"659"},"to":{"field":"region","value":"kn"}},{"from":{"field":"region","value":"408"},"to":{"field":"region","value":"kp"}},{"from":{"field":"region","value":"410"},"to":{"field":"region","value":"kr"}},{"from":{"field":"region","value":"414"},"to":{"field":"region","value":"kw"}},{"from":{"field":"region","value":"136"},"to":{"field":"region","value":"ky"}},{"from":{"field":"region","value":"398"},"to":{"field":"region","value":"kz"}},{"from":{"field":"region","value":"418"},"to":{"field":"region","value":"la"}},{"from":{"field":"region","value":"422"},"to":{"field":"region","value":"lb"}},{"from":{"field":"region","value":"662"},"to":{"field":"region","value":"lc"}},{"from":{"field":"region","value":"438"},"to":{"field":"region","value":"li"}},{"from":{"field":"region","value":"144"},"to":{"field":"region","value":"lk"}},{"from":{"field":"region","value":"430"},"to":{"field":"region","value":"lr"}},{"from":{"field":"region","value":"426"},"to":{"field":"region","value":"ls"}},{"from":{"field":"region","value":"440"},"to":{"field":"region","value":"lt"}},{"from":{"field":"region","value":"442"},"to":{"field":"region","value":"lu"}},{"from":{"field":"region","value":"428"},"to":{"field":"region","value":"lv"}},{"from":{"field":"region","value":"434"},"to":{"field":"region","value":"ly"}},{"from":{"field":"region","value":"504"},"to":{"field":"region","value":"ma"}},{"from":{"field":"region","value":"492"},"to":{"field":"region","value":"mc"}},{"from":{"field":"region","value":"498"},"to":{"field":"region","value":"md"}},{"from":{"field":"region","value":"499"},"to":{"field":"region","value":"me"}},{"from":{"field":"region","value":"663"},"to":{"field":"region","value":"mf"}},{"from":{"field":"region","value":"450"},"to":{"field":"region","value":"mg"}},{"from":{"field":"region","value":"584"},"to":{"field":"region","value":"mh"}},{"from":{"field":"region","value":"807"},"to":{"field":"region","value":"mk"}},{"from":{"field":"region","value":"466"},"to":{"field":"region","value":"ml"}},{"from":{"field":"region","value":"496"},"to":{"field":"region","value":"mn"}},{"from":{"field":"region","value":"446"},"to":{"field":"region","value":"mo"}},{"from":{"field":"region","value":"580"},"to":{"field":"region","value":"mp"}},{"from":{"field":"region","value":"474"},"to":{"field":"region","value":"mq"}},{"from":{"field":"region","value":"478"},"to":{"field":"region","value":"mr"}},{"from":{"field":"region","value":"500"},"to":{"field":"region","value":"ms"}},{"from":{"field":"region","value":"470"},"to":{"field":"region","value":"mt"}},{"from":{"field":"region","value":"480"},"to":{"field":"region","value":"mu"}},{"from":{"field":"region","value":"462"},"to":{"field":"region","value":"mv"}},{"from":{"field":"region","value":"454"},"to":{"field":"region","value":"mw"}},{"from":{"field":"region","value":"484"},"to":{"field":"region","value":"mx"}},{"from":{"field":"region","value":"458"},"to":{"field":"region","value":"my"}},{"from":{"field":"region","value":"508"},"to":{"field":"region","value":"mz"}},{"from":{"field":"region","value":"516"},"to":{"field":"region","value":"na"}},{"from":{"field":"region","value":"540"},"to":{"field":"region","value":"nc"}},{"from":{"field":"region","value":"562"},"to":{"field":"region","value":"ne"}},{"from":{"field":"region","value":"574"},"to":{"field":"region","value":"nf"}},{"from":{"field":"region","value":"566"},"to":{"field":"region","value":"ng"}},{"from":{"field":"region","value":"558"},"to":{"field":"region","value":"ni"}},{"from":{"field":"region","value":"528"},"to":{"field":"region","value":"nl"}},{"from":{"field":"region","value":"578"},"to":{"field":"region","value":"no"}},{"from":{"field":"region","value":"524"},"to":{"field":"region","value":"np"}},{"from":{"field":"region","value":"520"},"to":{"field":"region","value":"nr"}},{"from":{"field":"region","value":"570"},"to":{"field":"region","value":"nu"}},{"from":{"field":"region","value":"554"},"to":{"field":"region","value":"nz"}},{"from":{"field":"region","value":"512"},"to":{"field":"region","value":"om"}},{"from":{"field":"region","value":"591"},"to":{"field":"region","value":"pa"}},{"from":{"field":"region","value":"604"},"to":{"field":"region","value":"pe"}},{"from":{"field":"region","value":"258"},"to":{"field":"region","value":"pf"}},{"from":{"field":"region","value":"598"},"to":{"field":"region","value":"pg"}},{"from":{"field":"region","value":"608"},"to":{"field":"region","value":"ph"}},{"from":{"field":"region","value":"586"},"to":{"field":"region","value":"pk"}},{"from":{"field":"region","value":"616"},"to":{"field":"region","value":"pl"}},{"from":{"field":"region","value":"666"},"to":{"field":"region","value":"pm"}},{"from":{"field":"region","value":"612"},"to":{"field":"region","value":"pn"}},{"from":{"field":"region","value":"630"},"to":{"field":"region","value":"pr"}},{"from":{"field":"region","value":"275"},"to":{"field":"region","value":"ps"}},{"from":{"field":"region","value":"620"},"to":{"field":"region","value":"pt"}},{"from":{"field":"region","value":"585"},"to":{"field":"region","value":"pw"}},{"from":{"field":"region","value":"600"},"to":{"field":"region","value":"py"}},{"from":{"field":"region","value":"634"},"to":{"field":"region","value":"qa"}},{"from":{"field":"region","value":"959"},"to":{"field":"region","value":"qm"}},{"from":{"field":"region","value":"960"},"to":{"field":"region","value":"qn"}},{"from":{"field":"region","value":"962"},"to":{"field":"region","value":"qp"}},{"from":{"field":"region","value":"963"},"to":{"field":"region","value":"qq"}},{"from":{"field":"region","value":"964"},"to":{"field":"region","value":"qr"}},{"from":{"field":"region","value":"965"},"to":{"field":"region","value":"qs"}},{"from":{"field":"region","value":"966"},"to":{"field":"region","value":"qt"}},{"from":{"field":"region","value":"967"},"to":{"field":"region","value":"eu"}},{"from":{"field":"region","value":"968"},"to":{"field":"region","value":"qv"}},{"from":{"field":"region","value":"969"},"to":{"field":"region","value":"qw"}},{"from":{"field":"region","value":"970"},"to":{"field":"region","value":"qx"}},{"from":{"field":"region","value":"971"},"to":{"field":"region","value":"qy"}},{"from":{"field":"region","value":"972"},"to":{"field":"region","value":"qz"}},{"from":{"field":"region","value":"638"},"to":{"field":"region","value":"re"}},{"from":{"field":"region","value":"642"},"to":{"field":"region","value":"ro"}},{"from":{"field":"region","value":"688"},"to":{"field":"region","value":"rs"}},{"from":{"field":"region","value":"643"},"to":{"field":"region","value":"ru"}},{"from":{"field":"region","value":"646"},"to":{"field":"region","value":"rw"}},{"from":{"field":"region","value":"682"},"to":{"field":"region","value":"sa"}},{"from":{"field":"region","value":"090"},"to":{"field":"region","value":"sb"}},{"from":{"field":"region","value":"690"},"to":{"field":"region","value":"sc"}},{"from":{"field":"region","value":"729"},"to":{"field":"region","value":"sd"}},{"from":{"field":"region","value":"752"},"to":{"field":"region","value":"se"}},{"from":{"field":"region","value":"702"},"to":{"field":"region","value":"sg"}},{"from":{"field":"region","value":"654"},"to":{"field":"region","value":"sh"}},{"from":{"field":"region","value":"705"},"to":{"field":"region","value":"si"}},{"from":{"field":"region","value":"744"},"to":{"field":"region","value":"sj"}},{"from":{"field":"region","value":"703"},"to":{"field":"region","value":"sk"}},{"from":{"field":"region","value":"694"},"to":{"field":"region","value":"sl"}},{"from":{"field":"region","value":"674"},"to":{"field":"region","value":"sm"}},{"from":{"field":"region","value":"686"},"to":{"field":"region","value":"sn"}},{"from":{"field":"region","value":"706"},"to":{"field":"region","value":"so"}},{"from":{"field":"region","value":"740"},"to":{"field":"region","value":"sr"}},{"from":{"field":"region","value":"728"},"to":{"field":"region","value":"ss"}},{"from":{"field":"region","value":"678"},"to":{"field":"region","value":"st"}},{"from":{"field":"region","value":"222"},"to":{"field":"region","value":"sv"}},{"from":{"field":"region","value":"534"},"to":{"field":"region","value":"sx"}},{"from":{"field":"region","value":"760"},"to":{"field":"region","value":"sy"}},{"from":{"field":"region","value":"748"},"to":{"field":"region","value":"sz"}},{"from":{"field":"region","value":"796"},"to":{"field":"region","value":"tc"}},{"from":{"field":"region","value":"148"},"to":{"field":"region","value":"td"}},{"from":{"field":"region","value":"260"},"to":{"field":"region","value":"tf"}},{"from":{"field":"region","value":"768"},"to":{"field":"region","value":"tg"}},{"from":{"field":"region","value":"764"},"to":{"field":"region","value":"th"}},{"from":{"field":"region","value":"762"},"to":{"field":"region","value":"tj"}},{"from":{"field":"region","value":"772"},"to":{"field":"region","value":"tk"}},{"from":{"field":"region","value":"626"},"to":{"field":"region","value":"tl"}},{"from":{"field":"region","value":"795"},"to":{"field":"region","value":"tm"}},{"from":{"field":"region","value":"788"},"to":{"field":"region","value":"tn"}},{"from":{"field":"region","value":"776"},"to":{"field":"region","value":"to"}},{"from":{"field":"region","value":"792"},"to":{"field":"region","value":"tr"}},{"from":{"field":"region","value":"780"},"to":{"field":"region","value":"tt"}},{"from":{"field":"region","value":"798"},"to":{"field":"region","value":"tv"}},{"from":{"field":"region","value":"158"},"to":{"field":"region","value":"tw"}},{"from":{"field":"region","value":"834"},"to":{"field":"region","value":"tz"}},{"from":{"field":"region","value":"804"},"to":{"field":"region","value":"ua"}},{"from":{"field":"region","value":"800"},"to":{"field":"region","value":"ug"}},{"from":{"field":"region","value":"581"},"to":{"field":"region","value":"um"}},{"from":{"field":"region","value":"840"},"to":{"field":"region","value":"us"}},{"from":{"field":"region","value":"858"},"to":{"field":"region","value":"uy"}},{"from":{"field":"region","value":"860"},"to":{"field":"region","value":"uz"}},{"from":{"field":"region","value":"336"},"to":{"field":"region","value":"va"}},{"from":{"field":"region","value":"670"},"to":{"field":"region","value":"vc"}},{"from":{"field":"region","value":"862"},"to":{"field":"region","value":"ve"}},{"from":{"field":"region","value":"092"},"to":{"field":"region","value":"vg"}},{"from":{"field":"region","value":"850"},"to":{"field":"region","value":"vi"}},{"from":{"field":"region","value":"704"},"to":{"field":"region","value":"vn"}},{"from":{"field":"region","value":"548"},"to":{"field":"region","value":"vu"}},{"from":{"field":"region","value":"876"},"to":{"field":"region","value":"wf"}},{"from":{"field":"region","value":"882"},"to":{"field":"region","value":"ws"}},{"from":{"field":"region","value":"973"},"to":{"field":"region","value":"xa"}},{"from":{"field":"region","value":"974"},"to":{"field":"region","value":"xb"}},{"from":{"field":"region","value":"975"},"to":{"field":"region","value":"xc"}},{"from":{"field":"region","value":"976"},"to":{"field":"region","value":"xd"}},{"from":{"field":"region","value":"977"},"to":{"field":"region","value":"xe"}},{"from":{"field":"region","value":"978"},"to":{"field":"region","value":"xf"}},{"from":{"field":"region","value":"979"},"to":{"field":"region","value":"xg"}},{"from":{"field":"region","value":"980"},"to":{"field":"region","value":"xh"}},{"from":{"field":"region","value":"981"},"to":{"field":"region","value":"xi"}},{"from":{"field":"region","value":"982"},"to":{"field":"region","value":"xj"}},{"from":{"field":"region","value":"983"},"to":{"field":"region","value":"xk"}},{"from":{"field":"region","value":"984"},"to":{"field":"region","value":"xl"}},{"from":{"field":"region","value":"985"},"to":{"field":"region","value":"xm"}},{"from":{"field":"region","value":"986"},"to":{"field":"region","value":"xn"}},{"from":{"field":"region","value":"987"},"to":{"field":"region","value":"xo"}},{"from":{"field":"region","value":"988"},"to":{"field":"region","value":"xp"}},{"from":{"field":"region","value":"989"},"to":{"field":"region","value":"xq"}},{"from":{"field":"region","value":"990"},"to":{"field":"region","value":"xr"}},{"from":{"field":"region","value":"991"},"to":{"field":"region","value":"xs"}},{"from":{"field":"region","value":"992"},"to":{"field":"region","value":"xt"}},{"from":{"field":"region","value":"993"},"to":{"field":"region","value":"xu"}},{"from":{"field":"region","value":"994"},"to":{"field":"region","value":"xv"}},{"from":{"field":"region","value":"995"},"to":{"field":"region","value":"xw"}},{"from":{"field":"region","value":"996"},"to":{"field":"region","value":"xx"}},{"from":{"field":"region","value":"997"},"to":{"field":"region","value":"xy"}},{"from":{"field":"region","value":"998"},"to":{"field":"region","value":"xz"}},{"from":{"field":"region","value":"720"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"887"},"to":{"field":"region","value":"ye"}},{"from":{"field":"region","value":"175"},"to":{"field":"region","value":"yt"}},{"from":{"field":"region","value":"710"},"to":{"field":"region","value":"za"}},{"from":{"field":"region","value":"894"},"to":{"field":"region","value":"zm"}},{"from":{"field":"region","value":"716"},"to":{"field":"region","value":"zw"}},{"from":{"field":"region","value":"999"},"to":{"field":"region","value":"zz"}},{"from":{"field":"variants","value":"aaland"},"to":{"field":"region","value":"ax"}},{"from":{"field":"variants","value":"polytoni"},"to":{"field":"variants","value":"polyton"}},{"from":{"field":"variants","value":"heploc"},"to":{"field":"variants","value":"alalc97"}},{"from":{"field":"variants","value":"arevela"},"to":{"field":"language","value":"hy"}},{"from":{"field":"variants","value":"arevmda"},"to":{"field":"language","value":"hyw"}}]')},function(e){e.exports=JSON.parse('["mni-beng-in","mni-mtei-in","sat-deva-in","sat-olck-in","shi-latn-ma","shi-tfng-ma","vai-latn-lr","vai-vaii-lr","yue-hans-cn","yue-hant-hk","az-arab-ir","az-cyrl-az","az-latn-az","bm-nkoo-ml","bs-cyrl-ba","bs-latn-ba","en-dsrt-us","ff-adlm-gn","ff-latn-sn","ha-arab-ng","hi-latn-in","iu-latn-ca","ks-arab-in","ks-deva-in","mn-mong-cn","ms-arab-my","pa-arab-pk","pa-guru-in","sd-arab-pk","sd-deva-in","sr-cyrl-rs","sr-latn-rs","su-latn-id","uz-arab-af","uz-cyrl-uz","uz-latn-uz","zh-hans-cn","zh-hant-tw","mni-beng","sat-olck","shi-tfng","vai-vaii","yue-hant","az-latn","bs-latn","ff-latn","jbo-001","ks-arab","pa-guru","prg-001","sd-arab","sr-cyrl","su-latn","uz-latn","zh-hans","agq-cm","ar-001","arn-cl","asa-tz","ast-es","bas-cm","bem-zm","bez-tz","bgn-pk","blt-vn","brx-in","bss-cm","byn-er","cad-us","cch-ng","ccp-bd","ceb-ph","cgg-ug","chr-us","cic-us","ckb-iq","dav-ke","dje-ne","doi-in","dsb-de","dua-cm","dyo-sn","ebu-ke","eo-001","ewo-cm","fil-ph","fur-it","gaa-gh","gez-et","gsw-ch","guz-ke","haw-us","hsb-de","ia-001","ife-tg","io-001","jgo-cm","jmc-tz","kab-dz","kaj-ng","kam-ke","kcg-ng","kde-tz","kea-cv","ken-cm","khq-ml","kkj-cm","kln-ke","kok-in","kpe-lr","ksb-tz","ksf-cm","ksh-de","lag-tz","lkt-us","lrc-ir","luo-ke","luy-ke","mai-in","mas-ke","mer-ke","mfe-mu","mgh-mz","mgo-cm","moh-ca","mua-cm","mus-us","myv-ru","mzn-ir","naq-na","nds-de","nmg-cm","nnh-cm","nqo-gn","nso-za","nus-ss","nyn-ug","osa-us","pcm-ng","quc-gt","rof-tz","rwk-tz","sah-ru","saq-ke","sbp-tz","scn-it","sdh-ir","seh-mz","ses-ml","sid-et","sma-se","smj-se","smn-fi","sms-fi","ssy-er","syr-iq","szl-pl","teo-ug","tig-er","trv-tw","trw-pk","twq-ne","tzm-ma","vo-001","vun-tz","wae-ch","wal-et","wbp-au","xog-ug","yav-cm","yi-001","zgh-ma","aa-et","af-za","ak-gh","am-et","an-es","as-in","ba-ru","be-by","bg-bg","bm-ml","bn-bd","bo-cn","br-fr","ca-es","ce-ru","co-fr","cs-cz","cu-ru","cv-ru","cy-gb","da-dk","de-de","dv-mv","dz-bt","ee-gh","el-gr","en-us","es-es","et-ee","eu-es","fa-ir","fi-fi","fo-fo","fr-fr","fy-nl","ga-ie","gd-gb","gl-es","gn-py","gu-in","gv-im","ha-ng","he-il","hi-in","hr-hr","hu-hu","hy-am","id-id","ig-ng","ii-cn","is-is","it-it","iu-ca","ja-jp","jv-id","ka-ge","ki-ke","kk-kz","kl-gl","km-kh","kn-in","ko-kr","ku-tr","kw-gb","ky-kg","lb-lu","lg-ug","ln-cd","lo-la","lt-lt","lu-cd","lv-lv","mg-mg","mi-nz","mk-mk","ml-in","mn-mn","mr-in","ms-my","mt-mt","my-mm","nb-no","nd-zw","ne-np","nl-nl","nn-no","nr-za","nv-us","ny-mw","oc-fr","om-et","or-in","os-ge","pl-pl","ps-af","pt-br","qu-pe","rm-ch","rn-bi","ro-ro","ru-ru","rw-rw","sa-in","sc-it","se-no","sg-cf","si-lk","sk-sk","sl-si","sn-zw","so-so","sq-al","ss-za","st-za","sv-se","sw-tz","ta-in","te-in","tg-tj","th-th","ti-et","tk-tm","tn-za","to-to","tr-tr","ts-za","tt-ru","ug-cn","uk-ua","ur-pk","ve-za","vi-vn","wa-be","wo-sn","xh-za","yo-ng","zu-za"]')},function(e){e.exports=JSON.parse('{"region":{"172":["ru","am","az","by","ge","kg","kz","md","tj","tm","ua","uz"],"200":["cz","sk"],"530":["cw","sx","bq"],"532":["cw","sx","bq"],"536":["sa","iq"],"582":["fm","mh","mp","pw"],"810":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"830":["je","gg"],"890":["rs","me","si","hr","mk","ba"],"891":["rs","me"],"an":["cw","sx","bq"],"cs":["rs","me"],"fq":["aq","tf"],"nt":["sa","iq"],"pc":["fm","mh","mp","pw"],"su":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"yu":["rs","me"],"062":["034","143"],"ant":["cw","sx","bq"],"scg":["rs","me"],"ntz":["sa","iq"],"sun":["ru","am","az","by","ee","ge","kz","kg","lv","lt","md","tj","tm","ua","uz"],"yug":["rs","me"]}}')},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init()}var t,r,o;return t=e,(r=[{key:"init",value:function(){this.OFFLINE_SCHEME="offline_indexeddb",this.OFFLINE_URL_REGEX=/^offline_indexeddb:\/\//i,this.OFFLINE_STATUS_CREATED="created",this.OFFLINE_STATUS_STARTED="started",this.OFFLINE_STATUS_STOPPED="stopped",this.OFFLINE_STATUS_FINISHED="finished",this.OFFLINE_STATUS_ERROR="error"}}])&&n(t.prototype,r),o&&n(t,o),e}()),i=r(122),a=r(117).XmlEntities;function s(){var e,t;function r(e){return n().then((function(t){if(t){for(var r=null,n=0;n<t.manifests.length;n++)t.manifests[n].manifestId===parseInt(e)&&(r=t.manifests[n]);return null!==r?(r.manifest=a.decode(r.manifest),Promise.resolve(r)):Promise.reject("Cannot found manifest with this manifestId : "+e)}return Promise.reject("Any manifests stored in DB !")})).catch((function(e){return Promise.reject(e)}))}function n(){return e.getItem("manifest").then((function(e){return Promise.resolve(e||{manifests:[]})})).catch((function(e){return Promise.reject(e)}))}function o(t){return n().then((function(r){try{for(var n=0;n<r.manifests.length;n++)r.manifests[n].manifestId===t.manifestId&&(r.manifests[n]=t);return e.setItem("manifest",r)}catch(e){throw new Error("Any results found !")}}))}return t={},"undefined"!=typeof window&&(i.config({driver:i.INDEXEDDB,name:"dash_offline_db"}),e=i.createInstance({driver:i.INDEXEDDB,name:"dash_offline_db",version:1,storeName:"manifest"})),{dropAll:function(){return i.clear().then((function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)}))},getFragmentByKey:function(e,r){var n=t[e];return n?n.getItem(r).then((function(e){return Promise.resolve(e)})).catch((function(e){return Promise.reject(e)})):Promise.reject(new Error("No fragment store found for manifest ".concat(e)))},getManifestById:r,storeFragment:function(e,r,n){var o=t[e];return o?o.setItem(r,n,(function(){return Promise.resolve()})).catch((function(e){return Promise.reject(e)})):Promise.reject(new Error("No fragment store found for manifest ".concat(e)))},storeManifest:function(t){return e.getItem("manifest").then((function(r){var n=r||{manifests:[]};return n.manifests.push(t),e.setItem("manifest",n)}))},updateManifest:o,saveSelectedRepresentations:function(e,t){return r(e).then((function(e){return e.selected||(e.selected={}),e.selected=t,o(e).catch((function(){return Promise.reject("Cannot save selected representations")}))})).catch((function(e){return Promise.reject(e)}))},createFragmentStore:function(e){if(!t[e]){console.log("setStore "+e);var r=i.createInstance({driver:i.INDEXEDDB,name:"dash_offline_db",version:1,storeName:e});t[e]=r}},setDownloadingStatus:function(e,t){return r(e).then((function(e){return e.status=t,o(e).catch((function(){return Promise.reject("Cannot set status "+t+" for this stream !")}))})).catch((function(e){return Promise.reject(e)}))},setRepresentationCurrentState:function(e,t,n){return r(e).then((function(e){return e.state||(e.state={}),e.state[t]||(e.state[t]={index:-1,downloaded:0}),e.state[t]=n,o(e).catch((function(){return Promise.reject("Cannot set current index for represenation id "+t)}))})).catch((function(e){return Promise.reject(e)}))},getRepresentationCurrentState:function(e,t){return r(e).then((function(e){var r={index:-1,downloaded:0};return e.state&&e.state[t]&&(r=e.state[t]),Promise.resolve(r)})).catch((function(e){return Promise.reject(e)}))},getCurrentHigherManifestId:function(){return n().then((function(e){var t=0;if(e){for(var r=0;r<e.manifests.length;r++)e.manifests[r].manifestId>t&&(t=e.manifests[r].manifestId);return Promise.resolve(t)}return Promise.resolve(t)})).catch((function(e){return Promise.reject(e)}))},getAllManifests:n,dropFragmentStore:function(e){i.dropInstance({driver:i.INDEXEDDB,name:"dash_offline_db",version:1,storeName:e}).then((function(){delete t[e]})).catch((function(e){console.log("dropFragmentStore failed "+e)}))},deleteDownloadById:function(r){return e.getItem("manifest").then((function(n){return n?(o=r,i.createInstance({name:"dash_offline_db",storeName:o}),i.dropInstance({name:"dash_offline_db",storeName:o}).then((function(){return delete t[o],Promise.resolve()})).catch((function(e){return console.log(e),Promise.reject(e)}))).then((function(){for(var t=0;t<n.manifests.length;t++)n.manifests[t].manifestId===parseInt(r)&&n.manifests.splice(t,1);return e.setItem("manifest",n).then((function(){return Promise.resolve("This stream has been successfull removed !")})).catch((function(){return Promise.reject("An error occured when trying to delete this manifest")}))})):Promise.resolve("Nothing to delete !");var o})).catch((function(e){return Promise.reject(e)}))}}}s.__dashjs_factory_name="IndexDBStore";var u=dashjs.FactoryMaker.getSingletonFactory(s);function l(e){return(l="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)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return d(this,r)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=new(function(e){!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}}),t&&f(e,t)}(r,e);var t=c(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=t.call(this)).OFFLINE_ERROR=11e3,e.INDEXEDDB_QUOTA_EXCEED_ERROR=11001,e.INDEXEDDB_INVALID_STATE_ERROR=11002,e.INDEXEDDB_NOT_READABLE_ERROR=11003,e.INDEXEDDB_NOT_FOUND_ERROR=11004,e.INDEXEDDB_NETWORK_ERROR=11005,e.INDEXEDDB_DATA_ERROR=11006,e.INDEXEDDB_TRANSACTION_INACTIVE_ERROR=11007,e.INDEXEDDB_NOT_ALLOWED_ERROR=11008,e.INDEXEDDB_NOT_SUPPORTED_ERROR=11009,e.INDEXEDDB_VERSION_ERROR=11010,e.INDEXEDDB_TIMEOUT_ERROR=11011,e.INDEXEDDB_ABORT_ERROR=11012,e.INDEXEDDB_UNKNOWN_ERROR=11013,e}return r}(r(28).a));function h(e){e=e||{};var t,r,n=this.context,o=e.errHandler;function i(e){var t;if(e){switch(e.name){case"QuotaExceededError":t=p.INDEXEDDB_QUOTA_EXCEED_ERROR;break;case"InvalidStateError":t=p.INDEXEDDB_INVALID_STATE_ERROR;break;case"NotFoundError":t=p.INDEXEDDB_NOT_FOUND_ERROR;break;case"VersionError":t=p.INDEXEDDB_VERSION_ERROR}o.error({code:t,message:e.name,data:e})}}return t={storeFragment:function(e,t,n){return r.storeFragment(e,t,n).catch((function(e){i(e)}))},createOfflineManifest:function(e){return r.storeManifest(e).catch((function(e){i(e)}))},updateOfflineManifest:function(e){return r.updateManifest(e).catch((function(e){i(e)}))},getManifestById:function(e){return r.getManifestById(e).catch((function(e){i(e)}))},saveSelectedRepresentations:function(e,t){return r.saveSelectedRepresentations(e,t).catch((function(e){i(e)}))},createFragmentStore:function(e,t){try{r.createFragmentStore(e,t)}catch(e){i(e)}},getCurrentHigherManifestId:function(){return r.getCurrentHigherManifestId().catch((function(e){i(e)}))},getAllManifests:function(){return r.getAllManifests().catch((function(e){i(e)}))},deleteDownloadById:function(e){return r.deleteDownloadById(e).catch((function(e){i(e)}))},setDownloadingStatus:function(e,t){return r.setDownloadingStatus(e,t).catch((function(e){i(e)}))},setRepresentationCurrentState:function(e,t,n){return r.setRepresentationCurrentState(e,t,n).catch((function(e){i(e)}))},getRepresentationCurrentState:function(e,t){return r.getRepresentationCurrentState(e,t).catch((function(e){i(e)}))}},r=u(n).getInstance(),t}h.__dashjs_factory_name="OfflineStoreController";var g=dashjs.FactoryMaker.getClassFactory(h),v=r(39),_=r(64),y=r(21),E=r(68),b=r(13),T=r(20),A=r(40);function S(e){e=e||{};var t,r,n,o,i,a,s,u,l,f,c,d=this.context,m=e.eventBus,p=e.events,h=e.errors,g=e.debug,S=e.constants,I=e.settings,R=e.dashConstants,w=e.id,O=e.type,N=e.streamInfo,D=e.errHandler,C=e.mediaPlayerModel,P=e.abrController,L=e.playbackController,M=e.adapter,x=e.dashMetrics,F=e.baseURLController,k=e.timelineConverter,B=e.bitrate,U=e.offlineStoreController,q=e.callbacks&&e.callbacks.completed,j=e.callbacks&&e.callbacks.progression;function G(e){if(e.sender===a){if(null!==e.request){var t="InitializationSegment"===e.request.type,r=t?"init":e.request.index,n=e.request.representationId+"_"+r;U.storeFragment(w,n,e.response).then((function(){t||U.setRepresentationCurrentState(w,e.request.representationId,{index:e.request.index,downloaded:u})}))}e.error&&e.request.serviceLocation&&!c?a.executeRequest(e.request):(u++,V())}}function z(e){e.fragmentModel===a&&(r.info("[".concat(w,"] Stream is complete")),H(),q())}function H(){c||(c=!0)}function V(){if(!c&&isNaN(i.getCurrentRepresentation())){var e=null;l?(e=o.getNextSegmentRequest(Y(),i.getCurrentRepresentation()),j&&j(t,u,W())):(e=i.getCurrentRepresentation()?o.getInitRequest(Y(),i.getCurrentRepresentation()):null,l=!0),e?(r.info("[".concat(w,"] download request : ").concat(e.url)),a.executeRequest(e)):r.info("[".concat(w,"] no request to be downloaded"))}}function Y(){return n}function W(){return i.getCurrentRepresentation().numberOfSegments+1}function X(){l=!1,u=0,s=!1}return t={initialize:function(e){n=e,o.initialize(!1),function(e){s=!0;var t=M.getVoRepresentations(e),r=t.findIndex((function(e){return e.id===B.id}));if(O!==S.VIDEO&&O!==S.AUDIO&&O!==S.TEXT)return void(s=!1);i.updateData(null,t,O,e.isFragmented,r)}(n)},getMediaInfo:Y,getRepresentationController:function(){return i},removeExecutedRequestsBeforeTime:function(e){a&&a.removeExecutedRequestsBeforeTime(e)},getType:function(){return O},getRepresentationId:function(){return i.getCurrentRepresentation().id},isUpdating:function(){return s},start:function(){if(i){if(!i.getCurrentRepresentation())throw new Error("Start denied to OfflineStreamProcessor");c=!1,U.getRepresentationCurrentState(w,i.getCurrentRepresentation().id).then((function(e){e&&(o.setCurrentIndex(e.index),u=e.downloaded),V()})).catch((function(){V()}))}},stop:H,getAvailableSegmentsNumber:W,reset:function(){X(),o.reset(),m.off(p.STREAM_REQUESTING_COMPLETED,z,t),m.off(p.FRAGMENT_LOADING_COMPLETED,G,t)}},X(),r=g.getLogger(t),f=Object(A.a)(d).create({events:p,eventBus:m,streamInfo:N,timelineConverter:k,dashConstants:R,segmentBaseController:e.segmentBaseController,type:O}),o=Object(v.a)(d).create({streamInfo:N,type:O,timelineConverter:k,dashMetrics:x,mediaPlayerModel:C,baseURLController:F,errHandler:D,settings:I,eventBus:m,events:p,debug:g,requestModifier:Object(T.a)(d).getInstance(),dashConstants:R,constants:S,segmentsController:f,urlUtils:Object(b.a)(d).getInstance()}),i=Object(_.a)(d).create({streamInfo:N,type:O,abrController:P,dashMetrics:x,playbackController:L,timelineConverter:k,dashConstants:R,events:p,eventBus:m,errors:h,segmentsController:f}),a=Object(y.a)(d).create({streamInfo:N,dashMetrics:x,fragmentLoader:Object(E.a)(d).create({dashMetrics:x,mediaPlayerModel:C,errHandler:D,requestModifier:Object(T.a)(d).getInstance(),settings:I,eventBus:m,events:p,errors:h,constants:S,dashConstants:R,urlUtils:Object(b.a)(d).getInstance()}),debug:g,eventBus:m,events:p}),m.on(p.STREAM_REQUESTING_COMPLETED,z,t),m.on(p.FRAGMENT_LOADING_COMPLETED,G,t),t}S.__dashjs_factory_name="OfflineStreamProcessor";var I=dashjs.FactoryMaker.getClassFactory(S);function R(e){e=e||{};var t,r,n,o,i,a,s,u,l=this.context,f=e.eventBus,c=e.events,d=e.errors,m=e.constants,p=e.dashConstants,h=e.settings,g=e.debug,v=e.errHandler,_=e.mediaPlayerModel,y=e.abrController,E=e.playbackController,b=e.adapter,T=e.dashMetrics,A=e.baseURLController,S=e.timelineConverter,R=e.segmentBaseController,w=e.offlineStoreController,O=e.id,N=e.callbacks&&e.callbacks.started,D=e.callbacks&&e.callbacks.progression,C=e.callbacks&&e.callbacks.finished,P=e.callbacks&&e.callbacks.updateManifestNeeded;function L(){i=null,r=[],n=0,o=0,s=[],a=[],u={}}function M(e,t){var r=b.getAllMediaInfoForType(t,e);return r.forEach((function(t){t.bitrateList=t.bitrateList.filter((function(t){return!(!s[e]||-1===s[e].indexOf(t.id))}))})),(r=r.filter((function(e){return e.bitrateList&&e.bitrateList.length>0}))).forEach((function(e){e.bitrateList&&e.bitrateList.forEach((function(t){x(e,t)}))})),r}function x(e,t){var n=I(l).create({id:O,streamInfo:i,debug:g,events:c,errors:d,eventBus:f,constants:m,dashConstants:p,settings:h,type:e.type,mimeType:e.mimeType,bitrate:t,errHandler:v,mediaPlayerModel:_,abrController:y,playbackController:E,adapter:b,dashMetrics:T,baseURLController:A,timelineConverter:S,offlineStoreController:w,segmentBaseController:R,callbacks:{completed:F,progression:k}});r.push(n),n.initialize(e),u[t.id]=null}function F(){++o===r.length&&C({sender:this,id:O,message:"Downloading has been successfully completed for this stream !"})}function k(e,r,n){u[e.getRepresentationId()]={downloadedSegments:r,availableSegments:n};var o,i=0,a=0;for(var s in u)u.hasOwnProperty(s)&&(null===u[s]?o=!0:(i+=u[s].downloadedSegments,a+=u[s].availableSegments));!o&&D&&a>0&&D(t,i,a)}function B(e){var t;e.currentRepresentation.segments&&e.currentRepresentation.segments.length>0&&a.push(e.currentRepresentation);for(var o=0;o<r.length;o++)if(r[o].getRepresentationController().getType()===e.mediaType){t=r[o];break}t&&function(){++n===r.length&&(N({sender:this,id:O,message:"Downloading started for this stream !"}),a.length>0?P({sender:this,id:O,representations:a}):q())}()}function U(){for(var e=0;e<r.length;e++)r[e].stop()}function q(){for(var e=0;e<r.length;e++)r[e].start()}return t={initialize:function(e){i=e,f.on(c.DATA_UPDATE_COMPLETED,B,t)},getStreamId:function(){return i.id},getMediaInfos:function(){var e=b.getAllMediaInfoForType(i,m.VIDEO);e=(e=e.concat(b.getAllMediaInfoForType(i,m.AUDIO))).concat(b.getAllMediaInfoForType(i,m.TEXT)),f.trigger(c.OFFLINE_RECORD_LOADEDMETADATA,{id:O,mediaInfos:e})},initializeAllMediasInfoList:function(e){s=e,function(e){M(m.VIDEO,e),M(m.AUDIO,e),M(m.TEXT,e),M(m.MUXED,e),M(m.IMAGE,e)}(i)},getStreamInfo:function(){return i},stopOfflineStreamProcessors:U,startOfflineStreamProcessors:q,reset:function(){U(),function(){for(var e=r?r.length:0,t=0;t<e;t++)r[t].removeExecutedRequestsBeforeTime((i?i.start:NaN)+(i?i.duration:NaN)),r[t].reset()}(),L(),f.off(c.DATA_UPDATE_COMPLETED,B,t)}},L(),t}R.__dashjs_factory_name="OfflineStream";var w=dashjs.FactoryMaker.getClassFactory(R),O=r(117).XmlEntities;function N(e){var t,r,n,o=e.manifestId,i=e.allMediaInfos,a=e.urlUtils,s=e.debug,u=e.dashConstants,l=e.constants;function f(e){var t,n,i,s="".concat("offline_indexeddb://").concat(o,"/");if(0===(t=e.getElementsByTagName(u.BASE_URL)).length){var l=r.createElement(u.BASE_URL);l.innerHTML=s,e.appendChild(l)}t=e.getElementsByTagName(u.BASE_URL);for(var f=0;f<t.length;f++){var c=t[f].parentNode;if(c.nodeName===u.MPD)t[f].innerHTML=s;else if(c.nodeName===u.REPRESENTATION){var d=c.parentNode;d.nodeName==u.ADAPTATION_SET&&(a.isHTTPS(t[f].innerHTML)||a.isHTTPURL(t[f].innerHTML)?(n=S(t[f].innerHTML),i=A(d),t[f].innerHTML=s+i+"_"+n):"./"===t[f].innerHTML?t[f].innerHTML=s:(n=S(t[f].innerHTML),i=A(d),t[f].innerHTML=i+"_"+n))}else t[f].innerHTML=s}}function c(e,t){for(var r=e.getElementsByTagName(u.PERIOD),n=0;n<r.length;n++)d(r[n],t)}function d(e,t){for(var r,n,o,i,a=(r=e.getElementsByTagName(u.ADAPTATION_SET)).length-1;a>=0;a--)if(n=r[a])if(o=m(n),T(n,i=g(n),o),i=g(n),_(n),0===i.length)e.removeChild(n);else{for(var s=0;s<i.length;s++){var l=i[s],f=l.getElementsByTagName(u.SEGMENT_LIST);f.length>=1&&E(f,l)}var c=v(n);if(c.length>=1&&y(c),t&&t.length>0){for(var d=void 0,p=0;p<i.length;p++)for(var h=i[p],A=0;t&&A<t.length;A++)if(t[A].id===h.id){d=t[A];break}b(n,d)}}}function m(e){return p(e,l.MUXED)?l.MUXED:function(e){return p(e,l.AUDIO)}(e)?l.AUDIO:function(e){return p(e,l.VIDEO)}(e)?l.VIDEO:function(e){return p(e,l.TEXT)}(e)?l.TEXT:function(e){return p(e,l.IMAGE)}(e)?l.IMAGE:null}function p(e,t){if(!e)throw new Error("adaptation is not defined");if(!t)throw new Error("type is not defined");return function(e,t){var r=t!==l.TEXT?new RegExp(t):new RegExp("(vtt|ttml)"),n=h(e);if(n)return r.test(n);var o=g(e);if(o)for(var i=0;i<o.length;i++){var a=o[i];if(n=h(a))return r.test(n)}return!1}(e,t)}function h(e){return e.getAttribute(u.MIME_TYPE)}function g(e){return e.getElementsByTagName(u.REPRESENTATION)}function v(e){return e.getElementsByTagName(u.SEGMENT_TEMPLATE)}function _(e){for(var t=e.getElementsByTagName(u.SEGMENT_BASE),r=0;r<t.length;r++){var n=t[r];n.parentNode.removeChild(n)}}function y(e){for(var t=0;t<e.length;t++){var r=e[t].getAttribute(u.MEDIA);r="$RepresentationID$_$Number$"+r.substring(r.indexOf("."),r.length),e[t].setAttribute(u.START_NUMBER,"0"),e[t].setAttribute(u.MEDIA,r),e[t].setAttribute(u.INITIALIZATION_MINUS,"$RepresentationID$_init")}}function E(e,t){for(var r=t.getAttribute(u.ID),n=0;n<e.length;n++){var o=e[n],i=o.getElementsByTagName(u.INITIALIZATION);if(i){var a=i[0].getAttribute(u.SOURCE_URL);a="".concat(r,"_init"),i[0].setAttribute(u.SOURCE_URL,a)}var s=o.getElementsByTagName(u.SEGMENT_URL);if(s)for(var l=0;l<s.length;l++){var f=s[l],c=f.getAttribute(u.MEDIA);c="".concat(r,"_").concat(l),f.setAttribute(u.MEDIA,c)}}}function b(e,t){var n=r.createElement(u.SEGMENT_TEMPLATE);n.setAttribute(u.START_NUMBER,"0"),n.setAttribute(u.MEDIA,"$RepresentationID$-$Time$"),n.setAttribute(u.INITIALIZATION_MINUS,"$RepresentationID$_init"),function(e,t){var n=r.createElement("S");if(t&&t.segments){for(var o=r.createElement(u.SEGMENT_TIMELINE),i=function(e){var t=[];t.push(0);for(var r=1;r<e.segments.length;r++)e.segments[r-1].duration!==e.segments[r].duration&&t.push(r);return t}(t),a=0;a<i.length;a++){var s=a+1<i.length?i[a+1]-i[a]-1:0;s>1&&n.setAttribute("r",s),n.setAttribute("d",t.segments[i[a]].duration),o.appendChild(n),n=r.createElement("S")}e.appendChild(o)}}(n,t),e.appendChild(n)}function T(e,t,r){for(var n=t.length-1;n>=0;n--){var o=t[n],a=o.getAttribute(u.ID);i[r]&&-1===i[r].indexOf(a)&&e.removeChild(o)}}function A(e){var t=e.getElementsByTagName(u.REPRESENTATION)[0];return console.log(t.getAttribute(u.ID)),t.getAttribute(u.ID)}function S(e){var t=e.lastIndexOf("/");return e.substring(t,e.length)}return n=s.getLogger(t),t={parse:function(e,t){return new Promise((function(o,i){for(var a=(r=(new DOMParser).parseFromString(e,"application/xml")).getElementsByTagName(u.MPD)?r.getElementsByTagName(u.MPD):null,s=0;s<a.length;s++)null!==a[s]&&(f(a[s]),c(a[s],t));var l=function(e){return n.info("encodedManifest "+(new XMLSerializer).serializeToString(e)),(new O).encode((new XMLSerializer).serializeToString(e))}(r);""!==l?o(l):i("Encoded error")}))}}}N.__dashjs_factory_name="OfflineIndexDBManifestParser";var D=dashjs.FactoryMaker.getClassFactory(N),C=r(67);function P(e){e=e||{};var t,r,n,i,a,s,u,l,f,c,d,m,h,g,v=this.context,_=e.manifestLoader,y=e.mediaPlayerModel,E=e.abrController,b=e.playbackController,T=e.adapter,A=e.dashMetrics,S=e.timelineConverter,I=e.offlineStoreController,R=e.id,O=e.eventBus,N=e.errHandler,P=e.events,L=e.errors,M=e.settings,x=e.debug,F=e.manifestUpdater,k=e.baseURLController,B=e.segmentBaseController,U=e.constants,q=e.dashConstants,j=e.urlUtils;function G(){return l}function z(e){if(!f&&!e.error)try{u=e.manifest}catch(e){g=o.OFFLINE_STATUS_ERROR,N.error({code:p.OFFLINE_ERROR,message:e.message,data:{id:R,status:g}})}}function H(e){e.id===R&&(e.error||null===R?(g=o.OFFLINE_STATUS_ERROR,N.error({code:p.OFFLINE_ERROR,message:"Cannot start download ",data:{id:R,status:g,error:e.error}})):(g=o.OFFLINE_STATUS_STARTED,I.setDownloadingStatus(R,g).then((function(){O.trigger(P.OFFLINE_RECORD_STARTED,{id:R,message:"Downloading started for this stream !"})}))))}function V(e,t,r){m[e.getStreamInfo().id]={downloaded:t,available:r};var n,o=0,i=0;for(var a in m)m.hasOwnProperty(a)&&(null===m[a]?n=!0:(o+=m[a].downloaded,i+=m[a].available));n||(h=o/i,I.getManifestById(R).then((function(e){return e.progress=h,K(e)})))}function Y(e){e.id===R&&(e.error||null===R?(g=o.OFFLINE_STATUS_ERROR,N.error({code:p.OFFLINE_ERROR,message:"Error finishing download ",data:{id:R,status:g,error:e.error}})):(g=o.OFFLINE_STATUS_FINISHED,I.setDownloadingStatus(R,g).then((function(){O.trigger(P.OFFLINE_RECORD_FINISHED,{id:R,message:"Downloading has been successfully completed for this stream !"}),ee()}))))}function W(e){e.id===R&&(c=e.representations).length>0&&d.parse(a,c).then((function(e){if(null===e||null===R)throw"falling parsing offline manifest";I.getManifestById(R).then((function(t){return t.manifest=e,K(t)})).then((function(){for(var e=0,t=s.length;e<t;e++)s[e].startOfflineStreamProcessors()}))})).catch((function(e){throw e}))}function X(){try{T.updatePeriods(u),k.initialize(u);var e=T.getStreamsInfo();0===e.length&&(g=o.OFFLINE_STATUS_ERROR,N.error({code:p.OFFLINE_ERROR,message:"Cannot download - no streams",data:{id:R,status:g}}));for(var t=0,n=e.length;t<n;t++){var i=e[t],a=w(v).create({id:R,callbacks:{started:H,progression:V,finished:Y,updateManifestNeeded:W},constants:U,dashConstants:q,eventBus:O,events:P,errors:L,settings:M,debug:x,errHandler:N,mediaPlayerModel:y,abrController:E,playbackController:b,dashMetrics:A,baseURLController:k,timelineConverter:S,adapter:T,segmentBaseController:B,offlineStoreController:I});s.push(a),a.initialize(i),m[i.id]=null}f=!0}catch(e){r.info(e),g=o.OFFLINE_STATUS_ERROR,N.error({code:p.OFFLINE_ERROR,message:e.message,data:{id:R,status:g,error:e.error}})}}function Q(e){return I.createFragmentStore(e)}function K(e){return I.updateOfflineManifest(e)}function Z(e){return O.off(P.ORIGINAL_MANIFEST_LOADED,Z,t),a=e.originalManifest,u.type===q.DYNAMIC?(g=o.OFFLINE_STATUS_ERROR,N.error({code:p.OFFLINE_ERROR,message:"Cannot handle DYNAMIC manifest",data:{id:R,status:g}}),void r.error("Cannot handle DYNAMIC manifest")):u.Period_asArray.length>1?(g=o.OFFLINE_STATUS_ERROR,N.error({code:p.OFFLINE_ERROR,message:"MultiPeriod manifest are not yet supported",data:{id:R,status:g}}),void r.error("MultiPeriod manifest are not yet supported")):(X(),s.forEach((function(e){e.getMediaInfos()})),void O.trigger(P.STREAMS_COMPOSED))}function $(e){for(var t=0;t<s.length;t++)s[t].initializeAllMediasInfoList(e)}function J(){if(null!==R&&G()){for(var e=0,t=s.length;e<t;e++)s[e].stopOfflineStreamProcessors();s=[],f=!1,g=o.OFFLINE_STATUS_STOPPED,I.setDownloadingStatus(R,g).then((function(){O.trigger(P.OFFLINE_RECORD_STOPPED,{sender:this,id:R,status:g,message:"Downloading has been stopped for this stream !"}),l=!1}))}}function ee(){for(var e=0,r=s.length;e<r;e++)s[e].reset();d=null,l=!1,s=[],O.off(P.MANIFEST_UPDATED,z,t),O.off(P.ORIGINAL_MANIFEST_LOADED,Z,t),O.on(P.ERROR,te,t)}function te(e){e.error.code!==p.INDEXEDDB_QUOTA_EXCEED_ERROR&&e.error.code!==p.INDEXEDDB_INVALID_STATE_ERROR||J()}return t={reset:function(){G()&&ee(),k.reset(),F.reset()},getId:function(){return R},getOfflineUrl:function(){return i},getManifestUrl:function(){return n},getStatus:function(){return g},setInitialState:function(e){i=e.url,h=e.progress,n=e.originalUrl,g=e.status},initDownload:function(){_.load(n),l=!0},downloadFromUrl:function(e){return n=e,i="".concat(o.OFFLINE_SCHEME,"://").concat(R),g=o.OFFLINE_STATUS_CREATED,O.on(P.MANIFEST_UPDATED,z,t),O.on(P.ORIGINAL_MANIFEST_LOADED,Z,t),O.on(P.ERROR,te,t),function(e){return I.createOfflineManifest(e)}({fragmentStore:R,status:g,manifestId:R,url:i,originalURL:e})},startDownload:function(e){try{var t=function(e){var t={};return t[U.VIDEO]=[],t[U.AUDIO]=[],t[U.TEXT]=[],e.forEach((function(e){e.bitrateList.forEach((function(r){t[e.type].push(r.id)}))})),t}(e);I.saveSelectedRepresentations(R,t).then((function(){return Q(R)})).then((function(){return e=t,(d=D(v).create({manifestId:R,allMediaInfos:e,debug:x,dashConstants:q,constants:U,urlUtils:j})).parse(a).then((function(e){return null!==e?I.getManifestById(R).then((function(t){return t.originalURL=u.url,t.originalManifest=a,t.manifest=e,K(t)})):Promise.reject("falling parsing offline manifest")})).catch((function(e){return Promise.reject(e)}));var e})).then((function(){$(t)}))}catch(e){g=o.OFFLINE_STATUS_ERROR,N.error({code:p.OFFLINE_ERROR,message:e.message,data:{id:R,status:g}})}},stopDownload:J,resumeDownload:function(){var e;G()||(l=!0,I.getManifestById(R).then((function(t){var r=Object(C.a)(v).create({debug:x});return u=r.parse(t.originalManifest),X(),e=t.selected,O.trigger(P.STREAMS_COMPOSED),Q(R)})).then((function(){$(e)})))},deleteDownload:function(){J()},getDownloadProgression:function(){return Math.round(100*h)},isDownloading:G,resetDownload:ee},r=x.getLogger(t),F.initialize(),s=[],l=!1,f=!1,m={},h=0,g=void 0,t}P.__dashjs_factory_name="OfflineDownload";var L=dashjs.FactoryMaker.getClassFactory(P);function M(e){e=e||{};var t,r=this.context,n=e.urlUtils,o=e.constants,i=e.dashConstants;return t=u(r).getInstance(),{load:function(e){if(e.request){var r=(u=e.request.url,n.removeHostname(u).split("/")[0]);if(r%1==0)if(e.request.mediaType===o.AUDIO||e.request.mediaType===o.VIDEO||e.request.mediaType===o.TEXT||e.request.mediaType===o.MUXED||e.request.mediaType===o.IMAGE){var a="InitializationSegment"===e.request.type?"init":e.request.index,s=e.request.representationId+"_"+a;t.getFragmentByKey(r,s).then((function(t){e.success(t,null,e.request.url,o.ARRAY_BUFFER)})).catch((function(t){e.error(t)}))}else e.request.type===i.MPD&&t.getManifestById(r).then((function(r){t.createFragmentStore(r.fragmentStore),e.success(r.manifest,null,e.request.url,o.XML)})).catch((function(t){e.error(e.request,404,t)}));else e.error(e.request,null,"MediaType can not be found")}var u},abort:function(){}}}M.__dashjs_factory_name="IndexDBOfflineLoader";var x=dashjs.FactoryMaker.getClassFactory(M);function F(){return{getRegex:function(){return o.OFFLINE_URL_REGEX},isRelative:function(){return!1},removeHostname:function(e){return e.replace(/(^\w+:|^)\/\//,"")},resolve:function(e,t){return"/"!==t.charAt(t.length-1)&&(t=t.concat("/")),t+e}}}F.__dashjs_factory_name="OfflineUrlUtils";var k=dashjs.FactoryMaker.getSingletonFactory(F);function B(e){return(B="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)}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=G(e);if(t){var o=G(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return j(this,r)}}function j(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=new(function(e){!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}}),t&&U(e,t)}(r,e);var t=q(r);function r(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(e=t.call(this)).OFFLINE_RECORD_LOADEDMETADATA="public_offlineRecordLoadedmetadata",e.OFFLINE_RECORD_STARTED="public_offlineRecordStarted",e.OFFLINE_RECORD_STOPPED="public_offlineRecordStopped",e.OFFLINE_RECORD_FINISHED="public_offlineRecordFinished",e}return r}(r(18).a));var H=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=null,this.url=null,this.originalUrl=null,this.status=null,this.progress=null};function V(e){var t,r,n,i,a,s=this.context,u=e.errHandler,l=e.events,f=e.errors,c=e.settings,d=e.eventBus,m=e.debug,p=e.manifestLoader,h=e.manifestModel,v=e.mediaPlayerModel,_=e.abrController,y=e.playbackController,E=e.dashMetrics,b=e.timelineConverter,T=e.segmentBaseController,A=e.adapter,S=e.manifestUpdater,I=e.baseURLController,R=e.schemeLoaderFactory,w=e.constants,O=e.dashConstants,N=e.urlUtils;function D(e){return r.find((function(t){return t.getId()===e}))}function C(e){var t;return(t=D(e))||(t=L(s).create({id:e,eventBus:d,events:l,errors:f,settings:c,manifestLoader:p,manifestModel:h,mediaPlayerModel:v,manifestUpdater:S,baseURLController:I,abrController:_,playbackController:y,adapter:A,dashMetrics:E,timelineConverter:b,errHandler:u,segmentBaseController:T,offlineStoreController:i,debug:m,constants:w,dashConstants:O,urlUtils:N}),r.push(t)),t}function P(e){return new Promise((function(n,o){var a=D(e),s=!1;if(a){if(a.isDownloading()){s=!0;d.on(l.OFFLINE_RECORD_STOPPED,(function r(){return d.off(l.OFFLINE_RECORD_STOPPED,r,t),i.deleteDownloadById(e).then((function(){n()})).catch((function(e){o(e)}))}),t)}a.deleteDownload();var u=r.indexOf(a);r.splice(u,1)}s||n()}))}function M(){r.forEach((function(e){e.resetDownload()}))}return t={loadRecordsFromStorage:function(){return new Promise((function(e,t){i.getAllManifests().then((function(t){t.manifests.forEach((function(e){!function(e){var t=D(e.manifestId);if(!t){t=C(e.manifestId);var r=e.status;r===o.OFFLINE_STATUS_STARTED&&(r=o.OFFLINE_STATUS_STOPPED),t.setInitialState({url:e.url,progress:e.progress,originalUrl:e.originalURL,status:r})}}(e)})),e()})).catch((function(e){n.error("Failed to load downloads "+e),t(e)}))}))},createRecord:function(e){return new Promise((function(t,r){var o=(new Date).getTime(),i=C(o);i.downloadFromUrl(e).then((function(){i.initDownload(),t(o)})).catch((function(e){n.error("Failed to download "+e),P(o).then((function(){r(e)}))}))}))},startRecord:function(e,t){var r=D(e);r&&r.startDownload(t)},stopRecord:function(e){var t=D(e);t&&t.stopDownload()},resumeRecord:function(e){var t=D(e);t&&t.resumeDownload()},deleteRecord:function(e){return P(e).then((function(){return i.deleteDownloadById(e)}))},getRecordProgression:function(e){var t=D(e);return t?t.getDownloadProgression():0},getAllRecords:function(){var e=[];return r.forEach((function(t){var r=new H;r.id=t.getId(),r.progress=t.getDownloadProgression(),r.url=t.getOfflineUrl(),r.originalUrl=t.getManifestUrl(),r.status=t.getStatus(),e.push(r)})),e},resetRecords:M,reset:function(){M(),R.unregisterLoader(o.OFFLINE_SCHEME)}},n=m.getLogger(t),i=g(s).create({eventBus:e.eventBus,errHandler:u}),a=k(s).getInstance(),N.registerUrlRegex(a.getRegex(),a),R.registerLoader(o.OFFLINE_SCHEME,x),r=[],t}V.__dashjs_factory_name="OfflineController";var Y=dashjs.FactoryMaker.getClassFactory(V);Y.events=z,Y.errors=p,dashjs.FactoryMaker.updateClassFactory(V.__dashjs_factory_name,Y);t.a=Y},,function(e,t,r){e.exports={XmlEntities:r(123),Html4Entities:r(124),Html5Entities:r(118),AllHtmlEntities:r(118)}},function(e,t){var r=[["Aacute",[193]],["aacute",[225]],["Abreve",[258]],["abreve",[259]],["ac",[8766]],["acd",[8767]],["acE",[8766,819]],["Acirc",[194]],["acirc",[226]],["acute",[180]],["Acy",[1040]],["acy",[1072]],["AElig",[198]],["aelig",[230]],["af",[8289]],["Afr",[120068]],["afr",[120094]],["Agrave",[192]],["agrave",[224]],["alefsym",[8501]],["aleph",[8501]],["Alpha",[913]],["alpha",[945]],["Amacr",[256]],["amacr",[257]],["amalg",[10815]],["amp",[38]],["AMP",[38]],["andand",[10837]],["And",[10835]],["and",[8743]],["andd",[10844]],["andslope",[10840]],["andv",[10842]],["ang",[8736]],["ange",[10660]],["angle",[8736]],["angmsdaa",[10664]],["angmsdab",[10665]],["angmsdac",[10666]],["angmsdad",[10667]],["angmsdae",[10668]],["angmsdaf",[10669]],["angmsdag",[10670]],["angmsdah",[10671]],["angmsd",[8737]],["angrt",[8735]],["angrtvb",[8894]],["angrtvbd",[10653]],["angsph",[8738]],["angst",[197]],["angzarr",[9084]],["Aogon",[260]],["aogon",[261]],["Aopf",[120120]],["aopf",[120146]],["apacir",[10863]],["ap",[8776]],["apE",[10864]],["ape",[8778]],["apid",[8779]],["apos",[39]],["ApplyFunction",[8289]],["approx",[8776]],["approxeq",[8778]],["Aring",[197]],["aring",[229]],["Ascr",[119964]],["ascr",[119990]],["Assign",[8788]],["ast",[42]],["asymp",[8776]],["asympeq",[8781]],["Atilde",[195]],["atilde",[227]],["Auml",[196]],["auml",[228]],["awconint",[8755]],["awint",[10769]],["backcong",[8780]],["backepsilon",[1014]],["backprime",[8245]],["backsim",[8765]],["backsimeq",[8909]],["Backslash",[8726]],["Barv",[10983]],["barvee",[8893]],["barwed",[8965]],["Barwed",[8966]],["barwedge",[8965]],["bbrk",[9141]],["bbrktbrk",[9142]],["bcong",[8780]],["Bcy",[1041]],["bcy",[1073]],["bdquo",[8222]],["becaus",[8757]],["because",[8757]],["Because",[8757]],["bemptyv",[10672]],["bepsi",[1014]],["bernou",[8492]],["Bernoullis",[8492]],["Beta",[914]],["beta",[946]],["beth",[8502]],["between",[8812]],["Bfr",[120069]],["bfr",[120095]],["bigcap",[8898]],["bigcirc",[9711]],["bigcup",[8899]],["bigodot",[10752]],["bigoplus",[10753]],["bigotimes",[10754]],["bigsqcup",[10758]],["bigstar",[9733]],["bigtriangledown",[9661]],["bigtriangleup",[9651]],["biguplus",[10756]],["bigvee",[8897]],["bigwedge",[8896]],["bkarow",[10509]],["blacklozenge",[10731]],["blacksquare",[9642]],["blacktriangle",[9652]],["blacktriangledown",[9662]],["blacktriangleleft",[9666]],["blacktriangleright",[9656]],["blank",[9251]],["blk12",[9618]],["blk14",[9617]],["blk34",[9619]],["block",[9608]],["bne",[61,8421]],["bnequiv",[8801,8421]],["bNot",[10989]],["bnot",[8976]],["Bopf",[120121]],["bopf",[120147]],["bot",[8869]],["bottom",[8869]],["bowtie",[8904]],["boxbox",[10697]],["boxdl",[9488]],["boxdL",[9557]],["boxDl",[9558]],["boxDL",[9559]],["boxdr",[9484]],["boxdR",[9554]],["boxDr",[9555]],["boxDR",[9556]],["boxh",[9472]],["boxH",[9552]],["boxhd",[9516]],["boxHd",[9572]],["boxhD",[9573]],["boxHD",[9574]],["boxhu",[9524]],["boxHu",[9575]],["boxhU",[9576]],["boxHU",[9577]],["boxminus",[8863]],["boxplus",[8862]],["boxtimes",[8864]],["boxul",[9496]],["boxuL",[9563]],["boxUl",[9564]],["boxUL",[9565]],["boxur",[9492]],["boxuR",[9560]],["boxUr",[9561]],["boxUR",[9562]],["boxv",[9474]],["boxV",[9553]],["boxvh",[9532]],["boxvH",[9578]],["boxVh",[9579]],["boxVH",[9580]],["boxvl",[9508]],["boxvL",[9569]],["boxVl",[9570]],["boxVL",[9571]],["boxvr",[9500]],["boxvR",[9566]],["boxVr",[9567]],["boxVR",[9568]],["bprime",[8245]],["breve",[728]],["Breve",[728]],["brvbar",[166]],["bscr",[119991]],["Bscr",[8492]],["bsemi",[8271]],["bsim",[8765]],["bsime",[8909]],["bsolb",[10693]],["bsol",[92]],["bsolhsub",[10184]],["bull",[8226]],["bullet",[8226]],["bump",[8782]],["bumpE",[10926]],["bumpe",[8783]],["Bumpeq",[8782]],["bumpeq",[8783]],["Cacute",[262]],["cacute",[263]],["capand",[10820]],["capbrcup",[10825]],["capcap",[10827]],["cap",[8745]],["Cap",[8914]],["capcup",[10823]],["capdot",[10816]],["CapitalDifferentialD",[8517]],["caps",[8745,65024]],["caret",[8257]],["caron",[711]],["Cayleys",[8493]],["ccaps",[10829]],["Ccaron",[268]],["ccaron",[269]],["Ccedil",[199]],["ccedil",[231]],["Ccirc",[264]],["ccirc",[265]],["Cconint",[8752]],["ccups",[10828]],["ccupssm",[10832]],["Cdot",[266]],["cdot",[267]],["cedil",[184]],["Cedilla",[184]],["cemptyv",[10674]],["cent",[162]],["centerdot",[183]],["CenterDot",[183]],["cfr",[120096]],["Cfr",[8493]],["CHcy",[1063]],["chcy",[1095]],["check",[10003]],["checkmark",[10003]],["Chi",[935]],["chi",[967]],["circ",[710]],["circeq",[8791]],["circlearrowleft",[8634]],["circlearrowright",[8635]],["circledast",[8859]],["circledcirc",[8858]],["circleddash",[8861]],["CircleDot",[8857]],["circledR",[174]],["circledS",[9416]],["CircleMinus",[8854]],["CirclePlus",[8853]],["CircleTimes",[8855]],["cir",[9675]],["cirE",[10691]],["cire",[8791]],["cirfnint",[10768]],["cirmid",[10991]],["cirscir",[10690]],["ClockwiseContourIntegral",[8754]],["clubs",[9827]],["clubsuit",[9827]],["colon",[58]],["Colon",[8759]],["Colone",[10868]],["colone",[8788]],["coloneq",[8788]],["comma",[44]],["commat",[64]],["comp",[8705]],["compfn",[8728]],["complement",[8705]],["complexes",[8450]],["cong",[8773]],["congdot",[10861]],["Congruent",[8801]],["conint",[8750]],["Conint",[8751]],["ContourIntegral",[8750]],["copf",[120148]],["Copf",[8450]],["coprod",[8720]],["Coproduct",[8720]],["copy",[169]],["COPY",[169]],["copysr",[8471]],["CounterClockwiseContourIntegral",[8755]],["crarr",[8629]],["cross",[10007]],["Cross",[10799]],["Cscr",[119966]],["cscr",[119992]],["csub",[10959]],["csube",[10961]],["csup",[10960]],["csupe",[10962]],["ctdot",[8943]],["cudarrl",[10552]],["cudarrr",[10549]],["cuepr",[8926]],["cuesc",[8927]],["cularr",[8630]],["cularrp",[10557]],["cupbrcap",[10824]],["cupcap",[10822]],["CupCap",[8781]],["cup",[8746]],["Cup",[8915]],["cupcup",[10826]],["cupdot",[8845]],["cupor",[10821]],["cups",[8746,65024]],["curarr",[8631]],["curarrm",[10556]],["curlyeqprec",[8926]],["curlyeqsucc",[8927]],["curlyvee",[8910]],["curlywedge",[8911]],["curren",[164]],["curvearrowleft",[8630]],["curvearrowright",[8631]],["cuvee",[8910]],["cuwed",[8911]],["cwconint",[8754]],["cwint",[8753]],["cylcty",[9005]],["dagger",[8224]],["Dagger",[8225]],["daleth",[8504]],["darr",[8595]],["Darr",[8609]],["dArr",[8659]],["dash",[8208]],["Dashv",[10980]],["dashv",[8867]],["dbkarow",[10511]],["dblac",[733]],["Dcaron",[270]],["dcaron",[271]],["Dcy",[1044]],["dcy",[1076]],["ddagger",[8225]],["ddarr",[8650]],["DD",[8517]],["dd",[8518]],["DDotrahd",[10513]],["ddotseq",[10871]],["deg",[176]],["Del",[8711]],["Delta",[916]],["delta",[948]],["demptyv",[10673]],["dfisht",[10623]],["Dfr",[120071]],["dfr",[120097]],["dHar",[10597]],["dharl",[8643]],["dharr",[8642]],["DiacriticalAcute",[180]],["DiacriticalDot",[729]],["DiacriticalDoubleAcute",[733]],["DiacriticalGrave",[96]],["DiacriticalTilde",[732]],["diam",[8900]],["diamond",[8900]],["Diamond",[8900]],["diamondsuit",[9830]],["diams",[9830]],["die",[168]],["DifferentialD",[8518]],["digamma",[989]],["disin",[8946]],["div",[247]],["divide",[247]],["divideontimes",[8903]],["divonx",[8903]],["DJcy",[1026]],["djcy",[1106]],["dlcorn",[8990]],["dlcrop",[8973]],["dollar",[36]],["Dopf",[120123]],["dopf",[120149]],["Dot",[168]],["dot",[729]],["DotDot",[8412]],["doteq",[8784]],["doteqdot",[8785]],["DotEqual",[8784]],["dotminus",[8760]],["dotplus",[8724]],["dotsquare",[8865]],["doublebarwedge",[8966]],["DoubleContourIntegral",[8751]],["DoubleDot",[168]],["DoubleDownArrow",[8659]],["DoubleLeftArrow",[8656]],["DoubleLeftRightArrow",[8660]],["DoubleLeftTee",[10980]],["DoubleLongLeftArrow",[10232]],["DoubleLongLeftRightArrow",[10234]],["DoubleLongRightArrow",[10233]],["DoubleRightArrow",[8658]],["DoubleRightTee",[8872]],["DoubleUpArrow",[8657]],["DoubleUpDownArrow",[8661]],["DoubleVerticalBar",[8741]],["DownArrowBar",[10515]],["downarrow",[8595]],["DownArrow",[8595]],["Downarrow",[8659]],["DownArrowUpArrow",[8693]],["DownBreve",[785]],["downdownarrows",[8650]],["downharpoonleft",[8643]],["downharpoonright",[8642]],["DownLeftRightVector",[10576]],["DownLeftTeeVector",[10590]],["DownLeftVectorBar",[10582]],["DownLeftVector",[8637]],["DownRightTeeVector",[10591]],["DownRightVectorBar",[10583]],["DownRightVector",[8641]],["DownTeeArrow",[8615]],["DownTee",[8868]],["drbkarow",[10512]],["drcorn",[8991]],["drcrop",[8972]],["Dscr",[119967]],["dscr",[119993]],["DScy",[1029]],["dscy",[1109]],["dsol",[10742]],["Dstrok",[272]],["dstrok",[273]],["dtdot",[8945]],["dtri",[9663]],["dtrif",[9662]],["duarr",[8693]],["duhar",[10607]],["dwangle",[10662]],["DZcy",[1039]],["dzcy",[1119]],["dzigrarr",[10239]],["Eacute",[201]],["eacute",[233]],["easter",[10862]],["Ecaron",[282]],["ecaron",[283]],["Ecirc",[202]],["ecirc",[234]],["ecir",[8790]],["ecolon",[8789]],["Ecy",[1069]],["ecy",[1101]],["eDDot",[10871]],["Edot",[278]],["edot",[279]],["eDot",[8785]],["ee",[8519]],["efDot",[8786]],["Efr",[120072]],["efr",[120098]],["eg",[10906]],["Egrave",[200]],["egrave",[232]],["egs",[10902]],["egsdot",[10904]],["el",[10905]],["Element",[8712]],["elinters",[9191]],["ell",[8467]],["els",[10901]],["elsdot",[10903]],["Emacr",[274]],["emacr",[275]],["empty",[8709]],["emptyset",[8709]],["EmptySmallSquare",[9723]],["emptyv",[8709]],["EmptyVerySmallSquare",[9643]],["emsp13",[8196]],["emsp14",[8197]],["emsp",[8195]],["ENG",[330]],["eng",[331]],["ensp",[8194]],["Eogon",[280]],["eogon",[281]],["Eopf",[120124]],["eopf",[120150]],["epar",[8917]],["eparsl",[10723]],["eplus",[10865]],["epsi",[949]],["Epsilon",[917]],["epsilon",[949]],["epsiv",[1013]],["eqcirc",[8790]],["eqcolon",[8789]],["eqsim",[8770]],["eqslantgtr",[10902]],["eqslantless",[10901]],["Equal",[10869]],["equals",[61]],["EqualTilde",[8770]],["equest",[8799]],["Equilibrium",[8652]],["equiv",[8801]],["equivDD",[10872]],["eqvparsl",[10725]],["erarr",[10609]],["erDot",[8787]],["escr",[8495]],["Escr",[8496]],["esdot",[8784]],["Esim",[10867]],["esim",[8770]],["Eta",[919]],["eta",[951]],["ETH",[208]],["eth",[240]],["Euml",[203]],["euml",[235]],["euro",[8364]],["excl",[33]],["exist",[8707]],["Exists",[8707]],["expectation",[8496]],["exponentiale",[8519]],["ExponentialE",[8519]],["fallingdotseq",[8786]],["Fcy",[1060]],["fcy",[1092]],["female",[9792]],["ffilig",[64259]],["fflig",[64256]],["ffllig",[64260]],["Ffr",[120073]],["ffr",[120099]],["filig",[64257]],["FilledSmallSquare",[9724]],["FilledVerySmallSquare",[9642]],["fjlig",[102,106]],["flat",[9837]],["fllig",[64258]],["fltns",[9649]],["fnof",[402]],["Fopf",[120125]],["fopf",[120151]],["forall",[8704]],["ForAll",[8704]],["fork",[8916]],["forkv",[10969]],["Fouriertrf",[8497]],["fpartint",[10765]],["frac12",[189]],["frac13",[8531]],["frac14",[188]],["frac15",[8533]],["frac16",[8537]],["frac18",[8539]],["frac23",[8532]],["frac25",[8534]],["frac34",[190]],["frac35",[8535]],["frac38",[8540]],["frac45",[8536]],["frac56",[8538]],["frac58",[8541]],["frac78",[8542]],["frasl",[8260]],["frown",[8994]],["fscr",[119995]],["Fscr",[8497]],["gacute",[501]],["Gamma",[915]],["gamma",[947]],["Gammad",[988]],["gammad",[989]],["gap",[10886]],["Gbreve",[286]],["gbreve",[287]],["Gcedil",[290]],["Gcirc",[284]],["gcirc",[285]],["Gcy",[1043]],["gcy",[1075]],["Gdot",[288]],["gdot",[289]],["ge",[8805]],["gE",[8807]],["gEl",[10892]],["gel",[8923]],["geq",[8805]],["geqq",[8807]],["geqslant",[10878]],["gescc",[10921]],["ges",[10878]],["gesdot",[10880]],["gesdoto",[10882]],["gesdotol",[10884]],["gesl",[8923,65024]],["gesles",[10900]],["Gfr",[120074]],["gfr",[120100]],["gg",[8811]],["Gg",[8921]],["ggg",[8921]],["gimel",[8503]],["GJcy",[1027]],["gjcy",[1107]],["gla",[10917]],["gl",[8823]],["glE",[10898]],["glj",[10916]],["gnap",[10890]],["gnapprox",[10890]],["gne",[10888]],["gnE",[8809]],["gneq",[10888]],["gneqq",[8809]],["gnsim",[8935]],["Gopf",[120126]],["gopf",[120152]],["grave",[96]],["GreaterEqual",[8805]],["GreaterEqualLess",[8923]],["GreaterFullEqual",[8807]],["GreaterGreater",[10914]],["GreaterLess",[8823]],["GreaterSlantEqual",[10878]],["GreaterTilde",[8819]],["Gscr",[119970]],["gscr",[8458]],["gsim",[8819]],["gsime",[10894]],["gsiml",[10896]],["gtcc",[10919]],["gtcir",[10874]],["gt",[62]],["GT",[62]],["Gt",[8811]],["gtdot",[8919]],["gtlPar",[10645]],["gtquest",[10876]],["gtrapprox",[10886]],["gtrarr",[10616]],["gtrdot",[8919]],["gtreqless",[8923]],["gtreqqless",[10892]],["gtrless",[8823]],["gtrsim",[8819]],["gvertneqq",[8809,65024]],["gvnE",[8809,65024]],["Hacek",[711]],["hairsp",[8202]],["half",[189]],["hamilt",[8459]],["HARDcy",[1066]],["hardcy",[1098]],["harrcir",[10568]],["harr",[8596]],["hArr",[8660]],["harrw",[8621]],["Hat",[94]],["hbar",[8463]],["Hcirc",[292]],["hcirc",[293]],["hearts",[9829]],["heartsuit",[9829]],["hellip",[8230]],["hercon",[8889]],["hfr",[120101]],["Hfr",[8460]],["HilbertSpace",[8459]],["hksearow",[10533]],["hkswarow",[10534]],["hoarr",[8703]],["homtht",[8763]],["hookleftarrow",[8617]],["hookrightarrow",[8618]],["hopf",[120153]],["Hopf",[8461]],["horbar",[8213]],["HorizontalLine",[9472]],["hscr",[119997]],["Hscr",[8459]],["hslash",[8463]],["Hstrok",[294]],["hstrok",[295]],["HumpDownHump",[8782]],["HumpEqual",[8783]],["hybull",[8259]],["hyphen",[8208]],["Iacute",[205]],["iacute",[237]],["ic",[8291]],["Icirc",[206]],["icirc",[238]],["Icy",[1048]],["icy",[1080]],["Idot",[304]],["IEcy",[1045]],["iecy",[1077]],["iexcl",[161]],["iff",[8660]],["ifr",[120102]],["Ifr",[8465]],["Igrave",[204]],["igrave",[236]],["ii",[8520]],["iiiint",[10764]],["iiint",[8749]],["iinfin",[10716]],["iiota",[8489]],["IJlig",[306]],["ijlig",[307]],["Imacr",[298]],["imacr",[299]],["image",[8465]],["ImaginaryI",[8520]],["imagline",[8464]],["imagpart",[8465]],["imath",[305]],["Im",[8465]],["imof",[8887]],["imped",[437]],["Implies",[8658]],["incare",[8453]],["in",[8712]],["infin",[8734]],["infintie",[10717]],["inodot",[305]],["intcal",[8890]],["int",[8747]],["Int",[8748]],["integers",[8484]],["Integral",[8747]],["intercal",[8890]],["Intersection",[8898]],["intlarhk",[10775]],["intprod",[10812]],["InvisibleComma",[8291]],["InvisibleTimes",[8290]],["IOcy",[1025]],["iocy",[1105]],["Iogon",[302]],["iogon",[303]],["Iopf",[120128]],["iopf",[120154]],["Iota",[921]],["iota",[953]],["iprod",[10812]],["iquest",[191]],["iscr",[119998]],["Iscr",[8464]],["isin",[8712]],["isindot",[8949]],["isinE",[8953]],["isins",[8948]],["isinsv",[8947]],["isinv",[8712]],["it",[8290]],["Itilde",[296]],["itilde",[297]],["Iukcy",[1030]],["iukcy",[1110]],["Iuml",[207]],["iuml",[239]],["Jcirc",[308]],["jcirc",[309]],["Jcy",[1049]],["jcy",[1081]],["Jfr",[120077]],["jfr",[120103]],["jmath",[567]],["Jopf",[120129]],["jopf",[120155]],["Jscr",[119973]],["jscr",[119999]],["Jsercy",[1032]],["jsercy",[1112]],["Jukcy",[1028]],["jukcy",[1108]],["Kappa",[922]],["kappa",[954]],["kappav",[1008]],["Kcedil",[310]],["kcedil",[311]],["Kcy",[1050]],["kcy",[1082]],["Kfr",[120078]],["kfr",[120104]],["kgreen",[312]],["KHcy",[1061]],["khcy",[1093]],["KJcy",[1036]],["kjcy",[1116]],["Kopf",[120130]],["kopf",[120156]],["Kscr",[119974]],["kscr",[12e4]],["lAarr",[8666]],["Lacute",[313]],["lacute",[314]],["laemptyv",[10676]],["lagran",[8466]],["Lambda",[923]],["lambda",[955]],["lang",[10216]],["Lang",[10218]],["langd",[10641]],["langle",[10216]],["lap",[10885]],["Laplacetrf",[8466]],["laquo",[171]],["larrb",[8676]],["larrbfs",[10527]],["larr",[8592]],["Larr",[8606]],["lArr",[8656]],["larrfs",[10525]],["larrhk",[8617]],["larrlp",[8619]],["larrpl",[10553]],["larrsim",[10611]],["larrtl",[8610]],["latail",[10521]],["lAtail",[10523]],["lat",[10923]],["late",[10925]],["lates",[10925,65024]],["lbarr",[10508]],["lBarr",[10510]],["lbbrk",[10098]],["lbrace",[123]],["lbrack",[91]],["lbrke",[10635]],["lbrksld",[10639]],["lbrkslu",[10637]],["Lcaron",[317]],["lcaron",[318]],["Lcedil",[315]],["lcedil",[316]],["lceil",[8968]],["lcub",[123]],["Lcy",[1051]],["lcy",[1083]],["ldca",[10550]],["ldquo",[8220]],["ldquor",[8222]],["ldrdhar",[10599]],["ldrushar",[10571]],["ldsh",[8626]],["le",[8804]],["lE",[8806]],["LeftAngleBracket",[10216]],["LeftArrowBar",[8676]],["leftarrow",[8592]],["LeftArrow",[8592]],["Leftarrow",[8656]],["LeftArrowRightArrow",[8646]],["leftarrowtail",[8610]],["LeftCeiling",[8968]],["LeftDoubleBracket",[10214]],["LeftDownTeeVector",[10593]],["LeftDownVectorBar",[10585]],["LeftDownVector",[8643]],["LeftFloor",[8970]],["leftharpoondown",[8637]],["leftharpoonup",[8636]],["leftleftarrows",[8647]],["leftrightarrow",[8596]],["LeftRightArrow",[8596]],["Leftrightarrow",[8660]],["leftrightarrows",[8646]],["leftrightharpoons",[8651]],["leftrightsquigarrow",[8621]],["LeftRightVector",[10574]],["LeftTeeArrow",[8612]],["LeftTee",[8867]],["LeftTeeVector",[10586]],["leftthreetimes",[8907]],["LeftTriangleBar",[10703]],["LeftTriangle",[8882]],["LeftTriangleEqual",[8884]],["LeftUpDownVector",[10577]],["LeftUpTeeVector",[10592]],["LeftUpVectorBar",[10584]],["LeftUpVector",[8639]],["LeftVectorBar",[10578]],["LeftVector",[8636]],["lEg",[10891]],["leg",[8922]],["leq",[8804]],["leqq",[8806]],["leqslant",[10877]],["lescc",[10920]],["les",[10877]],["lesdot",[10879]],["lesdoto",[10881]],["lesdotor",[10883]],["lesg",[8922,65024]],["lesges",[10899]],["lessapprox",[10885]],["lessdot",[8918]],["lesseqgtr",[8922]],["lesseqqgtr",[10891]],["LessEqualGreater",[8922]],["LessFullEqual",[8806]],["LessGreater",[8822]],["lessgtr",[8822]],["LessLess",[10913]],["lesssim",[8818]],["LessSlantEqual",[10877]],["LessTilde",[8818]],["lfisht",[10620]],["lfloor",[8970]],["Lfr",[120079]],["lfr",[120105]],["lg",[8822]],["lgE",[10897]],["lHar",[10594]],["lhard",[8637]],["lharu",[8636]],["lharul",[10602]],["lhblk",[9604]],["LJcy",[1033]],["ljcy",[1113]],["llarr",[8647]],["ll",[8810]],["Ll",[8920]],["llcorner",[8990]],["Lleftarrow",[8666]],["llhard",[10603]],["lltri",[9722]],["Lmidot",[319]],["lmidot",[320]],["lmoustache",[9136]],["lmoust",[9136]],["lnap",[10889]],["lnapprox",[10889]],["lne",[10887]],["lnE",[8808]],["lneq",[10887]],["lneqq",[8808]],["lnsim",[8934]],["loang",[10220]],["loarr",[8701]],["lobrk",[10214]],["longleftarrow",[10229]],["LongLeftArrow",[10229]],["Longleftarrow",[10232]],["longleftrightarrow",[10231]],["LongLeftRightArrow",[10231]],["Longleftrightarrow",[10234]],["longmapsto",[10236]],["longrightarrow",[10230]],["LongRightArrow",[10230]],["Longrightarrow",[10233]],["looparrowleft",[8619]],["looparrowright",[8620]],["lopar",[10629]],["Lopf",[120131]],["lopf",[120157]],["loplus",[10797]],["lotimes",[10804]],["lowast",[8727]],["lowbar",[95]],["LowerLeftArrow",[8601]],["LowerRightArrow",[8600]],["loz",[9674]],["lozenge",[9674]],["lozf",[10731]],["lpar",[40]],["lparlt",[10643]],["lrarr",[8646]],["lrcorner",[8991]],["lrhar",[8651]],["lrhard",[10605]],["lrm",[8206]],["lrtri",[8895]],["lsaquo",[8249]],["lscr",[120001]],["Lscr",[8466]],["lsh",[8624]],["Lsh",[8624]],["lsim",[8818]],["lsime",[10893]],["lsimg",[10895]],["lsqb",[91]],["lsquo",[8216]],["lsquor",[8218]],["Lstrok",[321]],["lstrok",[322]],["ltcc",[10918]],["ltcir",[10873]],["lt",[60]],["LT",[60]],["Lt",[8810]],["ltdot",[8918]],["lthree",[8907]],["ltimes",[8905]],["ltlarr",[10614]],["ltquest",[10875]],["ltri",[9667]],["ltrie",[8884]],["ltrif",[9666]],["ltrPar",[10646]],["lurdshar",[10570]],["luruhar",[10598]],["lvertneqq",[8808,65024]],["lvnE",[8808,65024]],["macr",[175]],["male",[9794]],["malt",[10016]],["maltese",[10016]],["Map",[10501]],["map",[8614]],["mapsto",[8614]],["mapstodown",[8615]],["mapstoleft",[8612]],["mapstoup",[8613]],["marker",[9646]],["mcomma",[10793]],["Mcy",[1052]],["mcy",[1084]],["mdash",[8212]],["mDDot",[8762]],["measuredangle",[8737]],["MediumSpace",[8287]],["Mellintrf",[8499]],["Mfr",[120080]],["mfr",[120106]],["mho",[8487]],["micro",[181]],["midast",[42]],["midcir",[10992]],["mid",[8739]],["middot",[183]],["minusb",[8863]],["minus",[8722]],["minusd",[8760]],["minusdu",[10794]],["MinusPlus",[8723]],["mlcp",[10971]],["mldr",[8230]],["mnplus",[8723]],["models",[8871]],["Mopf",[120132]],["mopf",[120158]],["mp",[8723]],["mscr",[120002]],["Mscr",[8499]],["mstpos",[8766]],["Mu",[924]],["mu",[956]],["multimap",[8888]],["mumap",[8888]],["nabla",[8711]],["Nacute",[323]],["nacute",[324]],["nang",[8736,8402]],["nap",[8777]],["napE",[10864,824]],["napid",[8779,824]],["napos",[329]],["napprox",[8777]],["natural",[9838]],["naturals",[8469]],["natur",[9838]],["nbsp",[160]],["nbump",[8782,824]],["nbumpe",[8783,824]],["ncap",[10819]],["Ncaron",[327]],["ncaron",[328]],["Ncedil",[325]],["ncedil",[326]],["ncong",[8775]],["ncongdot",[10861,824]],["ncup",[10818]],["Ncy",[1053]],["ncy",[1085]],["ndash",[8211]],["nearhk",[10532]],["nearr",[8599]],["neArr",[8663]],["nearrow",[8599]],["ne",[8800]],["nedot",[8784,824]],["NegativeMediumSpace",[8203]],["NegativeThickSpace",[8203]],["NegativeThinSpace",[8203]],["NegativeVeryThinSpace",[8203]],["nequiv",[8802]],["nesear",[10536]],["nesim",[8770,824]],["NestedGreaterGreater",[8811]],["NestedLessLess",[8810]],["nexist",[8708]],["nexists",[8708]],["Nfr",[120081]],["nfr",[120107]],["ngE",[8807,824]],["nge",[8817]],["ngeq",[8817]],["ngeqq",[8807,824]],["ngeqslant",[10878,824]],["nges",[10878,824]],["nGg",[8921,824]],["ngsim",[8821]],["nGt",[8811,8402]],["ngt",[8815]],["ngtr",[8815]],["nGtv",[8811,824]],["nharr",[8622]],["nhArr",[8654]],["nhpar",[10994]],["ni",[8715]],["nis",[8956]],["nisd",[8954]],["niv",[8715]],["NJcy",[1034]],["njcy",[1114]],["nlarr",[8602]],["nlArr",[8653]],["nldr",[8229]],["nlE",[8806,824]],["nle",[8816]],["nleftarrow",[8602]],["nLeftarrow",[8653]],["nleftrightarrow",[8622]],["nLeftrightarrow",[8654]],["nleq",[8816]],["nleqq",[8806,824]],["nleqslant",[10877,824]],["nles",[10877,824]],["nless",[8814]],["nLl",[8920,824]],["nlsim",[8820]],["nLt",[8810,8402]],["nlt",[8814]],["nltri",[8938]],["nltrie",[8940]],["nLtv",[8810,824]],["nmid",[8740]],["NoBreak",[8288]],["NonBreakingSpace",[160]],["nopf",[120159]],["Nopf",[8469]],["Not",[10988]],["not",[172]],["NotCongruent",[8802]],["NotCupCap",[8813]],["NotDoubleVerticalBar",[8742]],["NotElement",[8713]],["NotEqual",[8800]],["NotEqualTilde",[8770,824]],["NotExists",[8708]],["NotGreater",[8815]],["NotGreaterEqual",[8817]],["NotGreaterFullEqual",[8807,824]],["NotGreaterGreater",[8811,824]],["NotGreaterLess",[8825]],["NotGreaterSlantEqual",[10878,824]],["NotGreaterTilde",[8821]],["NotHumpDownHump",[8782,824]],["NotHumpEqual",[8783,824]],["notin",[8713]],["notindot",[8949,824]],["notinE",[8953,824]],["notinva",[8713]],["notinvb",[8951]],["notinvc",[8950]],["NotLeftTriangleBar",[10703,824]],["NotLeftTriangle",[8938]],["NotLeftTriangleEqual",[8940]],["NotLess",[8814]],["NotLessEqual",[8816]],["NotLessGreater",[8824]],["NotLessLess",[8810,824]],["NotLessSlantEqual",[10877,824]],["NotLessTilde",[8820]],["NotNestedGreaterGreater",[10914,824]],["NotNestedLessLess",[10913,824]],["notni",[8716]],["notniva",[8716]],["notnivb",[8958]],["notnivc",[8957]],["NotPrecedes",[8832]],["NotPrecedesEqual",[10927,824]],["NotPrecedesSlantEqual",[8928]],["NotReverseElement",[8716]],["NotRightTriangleBar",[10704,824]],["NotRightTriangle",[8939]],["NotRightTriangleEqual",[8941]],["NotSquareSubset",[8847,824]],["NotSquareSubsetEqual",[8930]],["NotSquareSuperset",[8848,824]],["NotSquareSupersetEqual",[8931]],["NotSubset",[8834,8402]],["NotSubsetEqual",[8840]],["NotSucceeds",[8833]],["NotSucceedsEqual",[10928,824]],["NotSucceedsSlantEqual",[8929]],["NotSucceedsTilde",[8831,824]],["NotSuperset",[8835,8402]],["NotSupersetEqual",[8841]],["NotTilde",[8769]],["NotTildeEqual",[8772]],["NotTildeFullEqual",[8775]],["NotTildeTilde",[8777]],["NotVerticalBar",[8740]],["nparallel",[8742]],["npar",[8742]],["nparsl",[11005,8421]],["npart",[8706,824]],["npolint",[10772]],["npr",[8832]],["nprcue",[8928]],["nprec",[8832]],["npreceq",[10927,824]],["npre",[10927,824]],["nrarrc",[10547,824]],["nrarr",[8603]],["nrArr",[8655]],["nrarrw",[8605,824]],["nrightarrow",[8603]],["nRightarrow",[8655]],["nrtri",[8939]],["nrtrie",[8941]],["nsc",[8833]],["nsccue",[8929]],["nsce",[10928,824]],["Nscr",[119977]],["nscr",[120003]],["nshortmid",[8740]],["nshortparallel",[8742]],["nsim",[8769]],["nsime",[8772]],["nsimeq",[8772]],["nsmid",[8740]],["nspar",[8742]],["nsqsube",[8930]],["nsqsupe",[8931]],["nsub",[8836]],["nsubE",[10949,824]],["nsube",[8840]],["nsubset",[8834,8402]],["nsubseteq",[8840]],["nsubseteqq",[10949,824]],["nsucc",[8833]],["nsucceq",[10928,824]],["nsup",[8837]],["nsupE",[10950,824]],["nsupe",[8841]],["nsupset",[8835,8402]],["nsupseteq",[8841]],["nsupseteqq",[10950,824]],["ntgl",[8825]],["Ntilde",[209]],["ntilde",[241]],["ntlg",[8824]],["ntriangleleft",[8938]],["ntrianglelefteq",[8940]],["ntriangleright",[8939]],["ntrianglerighteq",[8941]],["Nu",[925]],["nu",[957]],["num",[35]],["numero",[8470]],["numsp",[8199]],["nvap",[8781,8402]],["nvdash",[8876]],["nvDash",[8877]],["nVdash",[8878]],["nVDash",[8879]],["nvge",[8805,8402]],["nvgt",[62,8402]],["nvHarr",[10500]],["nvinfin",[10718]],["nvlArr",[10498]],["nvle",[8804,8402]],["nvlt",[60,8402]],["nvltrie",[8884,8402]],["nvrArr",[10499]],["nvrtrie",[8885,8402]],["nvsim",[8764,8402]],["nwarhk",[10531]],["nwarr",[8598]],["nwArr",[8662]],["nwarrow",[8598]],["nwnear",[10535]],["Oacute",[211]],["oacute",[243]],["oast",[8859]],["Ocirc",[212]],["ocirc",[244]],["ocir",[8858]],["Ocy",[1054]],["ocy",[1086]],["odash",[8861]],["Odblac",[336]],["odblac",[337]],["odiv",[10808]],["odot",[8857]],["odsold",[10684]],["OElig",[338]],["oelig",[339]],["ofcir",[10687]],["Ofr",[120082]],["ofr",[120108]],["ogon",[731]],["Ograve",[210]],["ograve",[242]],["ogt",[10689]],["ohbar",[10677]],["ohm",[937]],["oint",[8750]],["olarr",[8634]],["olcir",[10686]],["olcross",[10683]],["oline",[8254]],["olt",[10688]],["Omacr",[332]],["omacr",[333]],["Omega",[937]],["omega",[969]],["Omicron",[927]],["omicron",[959]],["omid",[10678]],["ominus",[8854]],["Oopf",[120134]],["oopf",[120160]],["opar",[10679]],["OpenCurlyDoubleQuote",[8220]],["OpenCurlyQuote",[8216]],["operp",[10681]],["oplus",[8853]],["orarr",[8635]],["Or",[10836]],["or",[8744]],["ord",[10845]],["order",[8500]],["orderof",[8500]],["ordf",[170]],["ordm",[186]],["origof",[8886]],["oror",[10838]],["orslope",[10839]],["orv",[10843]],["oS",[9416]],["Oscr",[119978]],["oscr",[8500]],["Oslash",[216]],["oslash",[248]],["osol",[8856]],["Otilde",[213]],["otilde",[245]],["otimesas",[10806]],["Otimes",[10807]],["otimes",[8855]],["Ouml",[214]],["ouml",[246]],["ovbar",[9021]],["OverBar",[8254]],["OverBrace",[9182]],["OverBracket",[9140]],["OverParenthesis",[9180]],["para",[182]],["parallel",[8741]],["par",[8741]],["parsim",[10995]],["parsl",[11005]],["part",[8706]],["PartialD",[8706]],["Pcy",[1055]],["pcy",[1087]],["percnt",[37]],["period",[46]],["permil",[8240]],["perp",[8869]],["pertenk",[8241]],["Pfr",[120083]],["pfr",[120109]],["Phi",[934]],["phi",[966]],["phiv",[981]],["phmmat",[8499]],["phone",[9742]],["Pi",[928]],["pi",[960]],["pitchfork",[8916]],["piv",[982]],["planck",[8463]],["planckh",[8462]],["plankv",[8463]],["plusacir",[10787]],["plusb",[8862]],["pluscir",[10786]],["plus",[43]],["plusdo",[8724]],["plusdu",[10789]],["pluse",[10866]],["PlusMinus",[177]],["plusmn",[177]],["plussim",[10790]],["plustwo",[10791]],["pm",[177]],["Poincareplane",[8460]],["pointint",[10773]],["popf",[120161]],["Popf",[8473]],["pound",[163]],["prap",[10935]],["Pr",[10939]],["pr",[8826]],["prcue",[8828]],["precapprox",[10935]],["prec",[8826]],["preccurlyeq",[8828]],["Precedes",[8826]],["PrecedesEqual",[10927]],["PrecedesSlantEqual",[8828]],["PrecedesTilde",[8830]],["preceq",[10927]],["precnapprox",[10937]],["precneqq",[10933]],["precnsim",[8936]],["pre",[10927]],["prE",[10931]],["precsim",[8830]],["prime",[8242]],["Prime",[8243]],["primes",[8473]],["prnap",[10937]],["prnE",[10933]],["prnsim",[8936]],["prod",[8719]],["Product",[8719]],["profalar",[9006]],["profline",[8978]],["profsurf",[8979]],["prop",[8733]],["Proportional",[8733]],["Proportion",[8759]],["propto",[8733]],["prsim",[8830]],["prurel",[8880]],["Pscr",[119979]],["pscr",[120005]],["Psi",[936]],["psi",[968]],["puncsp",[8200]],["Qfr",[120084]],["qfr",[120110]],["qint",[10764]],["qopf",[120162]],["Qopf",[8474]],["qprime",[8279]],["Qscr",[119980]],["qscr",[120006]],["quaternions",[8461]],["quatint",[10774]],["quest",[63]],["questeq",[8799]],["quot",[34]],["QUOT",[34]],["rAarr",[8667]],["race",[8765,817]],["Racute",[340]],["racute",[341]],["radic",[8730]],["raemptyv",[10675]],["rang",[10217]],["Rang",[10219]],["rangd",[10642]],["range",[10661]],["rangle",[10217]],["raquo",[187]],["rarrap",[10613]],["rarrb",[8677]],["rarrbfs",[10528]],["rarrc",[10547]],["rarr",[8594]],["Rarr",[8608]],["rArr",[8658]],["rarrfs",[10526]],["rarrhk",[8618]],["rarrlp",[8620]],["rarrpl",[10565]],["rarrsim",[10612]],["Rarrtl",[10518]],["rarrtl",[8611]],["rarrw",[8605]],["ratail",[10522]],["rAtail",[10524]],["ratio",[8758]],["rationals",[8474]],["rbarr",[10509]],["rBarr",[10511]],["RBarr",[10512]],["rbbrk",[10099]],["rbrace",[125]],["rbrack",[93]],["rbrke",[10636]],["rbrksld",[10638]],["rbrkslu",[10640]],["Rcaron",[344]],["rcaron",[345]],["Rcedil",[342]],["rcedil",[343]],["rceil",[8969]],["rcub",[125]],["Rcy",[1056]],["rcy",[1088]],["rdca",[10551]],["rdldhar",[10601]],["rdquo",[8221]],["rdquor",[8221]],["CloseCurlyDoubleQuote",[8221]],["rdsh",[8627]],["real",[8476]],["realine",[8475]],["realpart",[8476]],["reals",[8477]],["Re",[8476]],["rect",[9645]],["reg",[174]],["REG",[174]],["ReverseElement",[8715]],["ReverseEquilibrium",[8651]],["ReverseUpEquilibrium",[10607]],["rfisht",[10621]],["rfloor",[8971]],["rfr",[120111]],["Rfr",[8476]],["rHar",[10596]],["rhard",[8641]],["rharu",[8640]],["rharul",[10604]],["Rho",[929]],["rho",[961]],["rhov",[1009]],["RightAngleBracket",[10217]],["RightArrowBar",[8677]],["rightarrow",[8594]],["RightArrow",[8594]],["Rightarrow",[8658]],["RightArrowLeftArrow",[8644]],["rightarrowtail",[8611]],["RightCeiling",[8969]],["RightDoubleBracket",[10215]],["RightDownTeeVector",[10589]],["RightDownVectorBar",[10581]],["RightDownVector",[8642]],["RightFloor",[8971]],["rightharpoondown",[8641]],["rightharpoonup",[8640]],["rightleftarrows",[8644]],["rightleftharpoons",[8652]],["rightrightarrows",[8649]],["rightsquigarrow",[8605]],["RightTeeArrow",[8614]],["RightTee",[8866]],["RightTeeVector",[10587]],["rightthreetimes",[8908]],["RightTriangleBar",[10704]],["RightTriangle",[8883]],["RightTriangleEqual",[8885]],["RightUpDownVector",[10575]],["RightUpTeeVector",[10588]],["RightUpVectorBar",[10580]],["RightUpVector",[8638]],["RightVectorBar",[10579]],["RightVector",[8640]],["ring",[730]],["risingdotseq",[8787]],["rlarr",[8644]],["rlhar",[8652]],["rlm",[8207]],["rmoustache",[9137]],["rmoust",[9137]],["rnmid",[10990]],["roang",[10221]],["roarr",[8702]],["robrk",[10215]],["ropar",[10630]],["ropf",[120163]],["Ropf",[8477]],["roplus",[10798]],["rotimes",[10805]],["RoundImplies",[10608]],["rpar",[41]],["rpargt",[10644]],["rppolint",[10770]],["rrarr",[8649]],["Rrightarrow",[8667]],["rsaquo",[8250]],["rscr",[120007]],["Rscr",[8475]],["rsh",[8625]],["Rsh",[8625]],["rsqb",[93]],["rsquo",[8217]],["rsquor",[8217]],["CloseCurlyQuote",[8217]],["rthree",[8908]],["rtimes",[8906]],["rtri",[9657]],["rtrie",[8885]],["rtrif",[9656]],["rtriltri",[10702]],["RuleDelayed",[10740]],["ruluhar",[10600]],["rx",[8478]],["Sacute",[346]],["sacute",[347]],["sbquo",[8218]],["scap",[10936]],["Scaron",[352]],["scaron",[353]],["Sc",[10940]],["sc",[8827]],["sccue",[8829]],["sce",[10928]],["scE",[10932]],["Scedil",[350]],["scedil",[351]],["Scirc",[348]],["scirc",[349]],["scnap",[10938]],["scnE",[10934]],["scnsim",[8937]],["scpolint",[10771]],["scsim",[8831]],["Scy",[1057]],["scy",[1089]],["sdotb",[8865]],["sdot",[8901]],["sdote",[10854]],["searhk",[10533]],["searr",[8600]],["seArr",[8664]],["searrow",[8600]],["sect",[167]],["semi",[59]],["seswar",[10537]],["setminus",[8726]],["setmn",[8726]],["sext",[10038]],["Sfr",[120086]],["sfr",[120112]],["sfrown",[8994]],["sharp",[9839]],["SHCHcy",[1065]],["shchcy",[1097]],["SHcy",[1064]],["shcy",[1096]],["ShortDownArrow",[8595]],["ShortLeftArrow",[8592]],["shortmid",[8739]],["shortparallel",[8741]],["ShortRightArrow",[8594]],["ShortUpArrow",[8593]],["shy",[173]],["Sigma",[931]],["sigma",[963]],["sigmaf",[962]],["sigmav",[962]],["sim",[8764]],["simdot",[10858]],["sime",[8771]],["simeq",[8771]],["simg",[10910]],["simgE",[10912]],["siml",[10909]],["simlE",[10911]],["simne",[8774]],["simplus",[10788]],["simrarr",[10610]],["slarr",[8592]],["SmallCircle",[8728]],["smallsetminus",[8726]],["smashp",[10803]],["smeparsl",[10724]],["smid",[8739]],["smile",[8995]],["smt",[10922]],["smte",[10924]],["smtes",[10924,65024]],["SOFTcy",[1068]],["softcy",[1100]],["solbar",[9023]],["solb",[10692]],["sol",[47]],["Sopf",[120138]],["sopf",[120164]],["spades",[9824]],["spadesuit",[9824]],["spar",[8741]],["sqcap",[8851]],["sqcaps",[8851,65024]],["sqcup",[8852]],["sqcups",[8852,65024]],["Sqrt",[8730]],["sqsub",[8847]],["sqsube",[8849]],["sqsubset",[8847]],["sqsubseteq",[8849]],["sqsup",[8848]],["sqsupe",[8850]],["sqsupset",[8848]],["sqsupseteq",[8850]],["square",[9633]],["Square",[9633]],["SquareIntersection",[8851]],["SquareSubset",[8847]],["SquareSubsetEqual",[8849]],["SquareSuperset",[8848]],["SquareSupersetEqual",[8850]],["SquareUnion",[8852]],["squarf",[9642]],["squ",[9633]],["squf",[9642]],["srarr",[8594]],["Sscr",[119982]],["sscr",[120008]],["ssetmn",[8726]],["ssmile",[8995]],["sstarf",[8902]],["Star",[8902]],["star",[9734]],["starf",[9733]],["straightepsilon",[1013]],["straightphi",[981]],["strns",[175]],["sub",[8834]],["Sub",[8912]],["subdot",[10941]],["subE",[10949]],["sube",[8838]],["subedot",[10947]],["submult",[10945]],["subnE",[10955]],["subne",[8842]],["subplus",[10943]],["subrarr",[10617]],["subset",[8834]],["Subset",[8912]],["subseteq",[8838]],["subseteqq",[10949]],["SubsetEqual",[8838]],["subsetneq",[8842]],["subsetneqq",[10955]],["subsim",[10951]],["subsub",[10965]],["subsup",[10963]],["succapprox",[10936]],["succ",[8827]],["succcurlyeq",[8829]],["Succeeds",[8827]],["SucceedsEqual",[10928]],["SucceedsSlantEqual",[8829]],["SucceedsTilde",[8831]],["succeq",[10928]],["succnapprox",[10938]],["succneqq",[10934]],["succnsim",[8937]],["succsim",[8831]],["SuchThat",[8715]],["sum",[8721]],["Sum",[8721]],["sung",[9834]],["sup1",[185]],["sup2",[178]],["sup3",[179]],["sup",[8835]],["Sup",[8913]],["supdot",[10942]],["supdsub",[10968]],["supE",[10950]],["supe",[8839]],["supedot",[10948]],["Superset",[8835]],["SupersetEqual",[8839]],["suphsol",[10185]],["suphsub",[10967]],["suplarr",[10619]],["supmult",[10946]],["supnE",[10956]],["supne",[8843]],["supplus",[10944]],["supset",[8835]],["Supset",[8913]],["supseteq",[8839]],["supseteqq",[10950]],["supsetneq",[8843]],["supsetneqq",[10956]],["supsim",[10952]],["supsub",[10964]],["supsup",[10966]],["swarhk",[10534]],["swarr",[8601]],["swArr",[8665]],["swarrow",[8601]],["swnwar",[10538]],["szlig",[223]],["Tab",[9]],["target",[8982]],["Tau",[932]],["tau",[964]],["tbrk",[9140]],["Tcaron",[356]],["tcaron",[357]],["Tcedil",[354]],["tcedil",[355]],["Tcy",[1058]],["tcy",[1090]],["tdot",[8411]],["telrec",[8981]],["Tfr",[120087]],["tfr",[120113]],["there4",[8756]],["therefore",[8756]],["Therefore",[8756]],["Theta",[920]],["theta",[952]],["thetasym",[977]],["thetav",[977]],["thickapprox",[8776]],["thicksim",[8764]],["ThickSpace",[8287,8202]],["ThinSpace",[8201]],["thinsp",[8201]],["thkap",[8776]],["thksim",[8764]],["THORN",[222]],["thorn",[254]],["tilde",[732]],["Tilde",[8764]],["TildeEqual",[8771]],["TildeFullEqual",[8773]],["TildeTilde",[8776]],["timesbar",[10801]],["timesb",[8864]],["times",[215]],["timesd",[10800]],["tint",[8749]],["toea",[10536]],["topbot",[9014]],["topcir",[10993]],["top",[8868]],["Topf",[120139]],["topf",[120165]],["topfork",[10970]],["tosa",[10537]],["tprime",[8244]],["trade",[8482]],["TRADE",[8482]],["triangle",[9653]],["triangledown",[9663]],["triangleleft",[9667]],["trianglelefteq",[8884]],["triangleq",[8796]],["triangleright",[9657]],["trianglerighteq",[8885]],["tridot",[9708]],["trie",[8796]],["triminus",[10810]],["TripleDot",[8411]],["triplus",[10809]],["trisb",[10701]],["tritime",[10811]],["trpezium",[9186]],["Tscr",[119983]],["tscr",[120009]],["TScy",[1062]],["tscy",[1094]],["TSHcy",[1035]],["tshcy",[1115]],["Tstrok",[358]],["tstrok",[359]],["twixt",[8812]],["twoheadleftarrow",[8606]],["twoheadrightarrow",[8608]],["Uacute",[218]],["uacute",[250]],["uarr",[8593]],["Uarr",[8607]],["uArr",[8657]],["Uarrocir",[10569]],["Ubrcy",[1038]],["ubrcy",[1118]],["Ubreve",[364]],["ubreve",[365]],["Ucirc",[219]],["ucirc",[251]],["Ucy",[1059]],["ucy",[1091]],["udarr",[8645]],["Udblac",[368]],["udblac",[369]],["udhar",[10606]],["ufisht",[10622]],["Ufr",[120088]],["ufr",[120114]],["Ugrave",[217]],["ugrave",[249]],["uHar",[10595]],["uharl",[8639]],["uharr",[8638]],["uhblk",[9600]],["ulcorn",[8988]],["ulcorner",[8988]],["ulcrop",[8975]],["ultri",[9720]],["Umacr",[362]],["umacr",[363]],["uml",[168]],["UnderBar",[95]],["UnderBrace",[9183]],["UnderBracket",[9141]],["UnderParenthesis",[9181]],["Union",[8899]],["UnionPlus",[8846]],["Uogon",[370]],["uogon",[371]],["Uopf",[120140]],["uopf",[120166]],["UpArrowBar",[10514]],["uparrow",[8593]],["UpArrow",[8593]],["Uparrow",[8657]],["UpArrowDownArrow",[8645]],["updownarrow",[8597]],["UpDownArrow",[8597]],["Updownarrow",[8661]],["UpEquilibrium",[10606]],["upharpoonleft",[8639]],["upharpoonright",[8638]],["uplus",[8846]],["UpperLeftArrow",[8598]],["UpperRightArrow",[8599]],["upsi",[965]],["Upsi",[978]],["upsih",[978]],["Upsilon",[933]],["upsilon",[965]],["UpTeeArrow",[8613]],["UpTee",[8869]],["upuparrows",[8648]],["urcorn",[8989]],["urcorner",[8989]],["urcrop",[8974]],["Uring",[366]],["uring",[367]],["urtri",[9721]],["Uscr",[119984]],["uscr",[120010]],["utdot",[8944]],["Utilde",[360]],["utilde",[361]],["utri",[9653]],["utrif",[9652]],["uuarr",[8648]],["Uuml",[220]],["uuml",[252]],["uwangle",[10663]],["vangrt",[10652]],["varepsilon",[1013]],["varkappa",[1008]],["varnothing",[8709]],["varphi",[981]],["varpi",[982]],["varpropto",[8733]],["varr",[8597]],["vArr",[8661]],["varrho",[1009]],["varsigma",[962]],["varsubsetneq",[8842,65024]],["varsubsetneqq",[10955,65024]],["varsupsetneq",[8843,65024]],["varsupsetneqq",[10956,65024]],["vartheta",[977]],["vartriangleleft",[8882]],["vartriangleright",[8883]],["vBar",[10984]],["Vbar",[10987]],["vBarv",[10985]],["Vcy",[1042]],["vcy",[1074]],["vdash",[8866]],["vDash",[8872]],["Vdash",[8873]],["VDash",[8875]],["Vdashl",[10982]],["veebar",[8891]],["vee",[8744]],["Vee",[8897]],["veeeq",[8794]],["vellip",[8942]],["verbar",[124]],["Verbar",[8214]],["vert",[124]],["Vert",[8214]],["VerticalBar",[8739]],["VerticalLine",[124]],["VerticalSeparator",[10072]],["VerticalTilde",[8768]],["VeryThinSpace",[8202]],["Vfr",[120089]],["vfr",[120115]],["vltri",[8882]],["vnsub",[8834,8402]],["vnsup",[8835,8402]],["Vopf",[120141]],["vopf",[120167]],["vprop",[8733]],["vrtri",[8883]],["Vscr",[119985]],["vscr",[120011]],["vsubnE",[10955,65024]],["vsubne",[8842,65024]],["vsupnE",[10956,65024]],["vsupne",[8843,65024]],["Vvdash",[8874]],["vzigzag",[10650]],["Wcirc",[372]],["wcirc",[373]],["wedbar",[10847]],["wedge",[8743]],["Wedge",[8896]],["wedgeq",[8793]],["weierp",[8472]],["Wfr",[120090]],["wfr",[120116]],["Wopf",[120142]],["wopf",[120168]],["wp",[8472]],["wr",[8768]],["wreath",[8768]],["Wscr",[119986]],["wscr",[120012]],["xcap",[8898]],["xcirc",[9711]],["xcup",[8899]],["xdtri",[9661]],["Xfr",[120091]],["xfr",[120117]],["xharr",[10231]],["xhArr",[10234]],["Xi",[926]],["xi",[958]],["xlarr",[10229]],["xlArr",[10232]],["xmap",[10236]],["xnis",[8955]],["xodot",[10752]],["Xopf",[120143]],["xopf",[120169]],["xoplus",[10753]],["xotime",[10754]],["xrarr",[10230]],["xrArr",[10233]],["Xscr",[119987]],["xscr",[120013]],["xsqcup",[10758]],["xuplus",[10756]],["xutri",[9651]],["xvee",[8897]],["xwedge",[8896]],["Yacute",[221]],["yacute",[253]],["YAcy",[1071]],["yacy",[1103]],["Ycirc",[374]],["ycirc",[375]],["Ycy",[1067]],["ycy",[1099]],["yen",[165]],["Yfr",[120092]],["yfr",[120118]],["YIcy",[1031]],["yicy",[1111]],["Yopf",[120144]],["yopf",[120170]],["Yscr",[119988]],["yscr",[120014]],["YUcy",[1070]],["yucy",[1102]],["yuml",[255]],["Yuml",[376]],["Zacute",[377]],["zacute",[378]],["Zcaron",[381]],["zcaron",[382]],["Zcy",[1047]],["zcy",[1079]],["Zdot",[379]],["zdot",[380]],["zeetrf",[8488]],["ZeroWidthSpace",[8203]],["Zeta",[918]],["zeta",[950]],["zfr",[120119]],["Zfr",[8488]],["ZHcy",[1046]],["zhcy",[1078]],["zigrarr",[8669]],["zopf",[120171]],["Zopf",[8484]],["Zscr",[119989]],["zscr",[120015]],["zwj",[8205]],["zwnj",[8204]]],n={},o={};function i(){}!function(e,t){var n=r.length,o=[];for(;n--;){var i,a=r[n],s=a[0],u=a[1],l=u[0],f=l<32||l>126||62===l||60===l||38===l||34===l||39===l;if(f&&(i=t[l]=t[l]||{}),u[1]){var c=u[1];e[s]=String.fromCharCode(l)+String.fromCharCode(c),o.push(f&&(i[c]=s))}else e[s]=String.fromCharCode(l),o.push(f&&(i[""]=s))}}(n,o),i.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,(function(e,t){var r;if("#"===t.charAt(0)){var o="x"===t.charAt(1)?parseInt(t.substr(2).toLowerCase(),16):parseInt(t.substr(1));isNaN(o)||o<-32768||o>65535||(r=String.fromCharCode(o))}else r=n[t];return r||e})):""},i.decode=function(e){return(new i).decode(e)},i.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var i=o[e.charCodeAt(n)];if(i){var a=i[e.charCodeAt(n+1)];if(a?n++:a=i[""],a){r+="&"+a+";",n++;continue}}r+=e.charAt(n),n++}return r},i.encode=function(e){return(new i).encode(e)},i.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var i=e.charCodeAt(n),a=o[i];if(a){var s=a[e.charCodeAt(n+1)];if(s?n++:s=a[""],s){r+="&"+s+";",n++;continue}}r+=i<32||i>126?"&#"+i+";":e.charAt(n),n++}return r},i.encodeNonUTF=function(e){return(new i).encodeNonUTF(e)},i.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n);o<=255?r+=e[n++]:(r+="&#"+o+";",n++)}return r},i.encodeNonASCII=function(e){return(new i).encodeNonASCII(e)},e.exports=i},,,function(e,t,r){"use strict";r.r(t),function(e){var n=r(115);r.d(t,"OfflineController",(function(){return n.a}));var o="undefined"!=typeof window&&window||e,i=o.dashjs;i||(i=o.dashjs={}),i.OfflineController=n.a,t.default=i}.call(this,r(24))},function(e,t,r){(function(t){e.exports=function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){var r=t[a][1][e];return o(r||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var i=!1,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,r,n){(function(e){"use strict";var t,n,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(f),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),t=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){f(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(f,0)};else{var u=new e.MessageChannel;u.port1.onmessage=f,t=function(){u.port2.postMessage(0)}}var l=[];function f(){var e,t;n=!0;for(var r=l.length;r;){for(t=l,l=[],e=-1;++e<r;)t[e]();r=l.length}n=!1}r.exports=function(e){1!==l.push(e)||n||t()}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var n=e(1);function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],u=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==o&&m(this,e)}function f(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(e,t,r){n((function(){var n;try{n=t(r)}catch(t){return i.reject(e,t)}n===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,n)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function m(e,t){var r=!1;function n(t){r||(r=!0,i.reject(e,t))}function o(t){r||(r=!0,i.resolve(e,t))}var a=p((function(){t(o,n)}));"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var r=new this.constructor(o);return this.state!==u?c(r,this.state===s?e:t,this.outcome):this.queue.push(new f(r,e,t)),r},f.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},f.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},f.prototype.callRejected=function(e){i.reject(this.promise,e)},f.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},i.resolve=function(e,t){var r=p(d,t);if("error"===r.status)return i.reject(e,r.value);var n=r.value;if(n)m(e,n);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},l.reject=function(e){var t=new this(o);return i.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,u=-1,l=new this(o);++u<r;)f(e[u],u);return l;function f(e,o){t.resolve(e).then((function(e){a[o]=e,++s!==r||n||(n=!0,i.resolve(l,a))}),(function(e){n||(n=!0,i.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a,s=-1,u=new this(o);++s<r;)a=e[s],t.resolve(a).then((function(e){n||(n=!0,i.resolve(u,e))}),(function(e){n||(n=!0,i.reject(u,e))}));return u}},{1:1}],3:[function(e,r,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var n="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},o=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function i(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),n=0;n<e.length;n+=1)r.append(e[n]);return r.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var a=Promise;function s(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function u(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function l(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function f(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var c=void 0,d={},m=Object.prototype.toString;function p(e){return"boolean"==typeof c?a.resolve(c):function(e){return new a((function(t){var r=e.transaction("local-forage-detect-blob-support","readwrite"),n=i([""]);r.objectStore("local-forage-detect-blob-support").put(n,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),r=navigator.userAgent.match(/Edge\//);t(r||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return c=e}))}function h(e){var t=d[e.name],r={};r.promise=new a((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function g(e){var t=d[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function v(e,t){var r=d[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function _(e,t){return new a((function(r,n){if(d[e.name]=d[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return r(e.db);h(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var r=a.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore("local-forage-detect-blob-support")}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),n(a.error)},a.onsuccess=function(){r(a.result),g(e)}}))}function y(e){return _(e,!1)}function E(e){return _(e,!0)}function b(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.version<e.db.version,o=e.version>e.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||r){if(r){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function T(e){return i([function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),o=0;o<t;o++)n[o]=e.charCodeAt(o);return r}(atob(e.data))],{type:e.type})}function A(e){return e&&e.__local_forage_encoded_blob}function S(e){var t=this,r=t._initReady().then((function(){var e=d[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return u(r,e,e),r}function I(e,t,r,n){void 0===n&&(n=1);try{var o=e.db.transaction(e.storeName,t);r(null,o)}catch(o){if(n>0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),E(e)})).then((function(){return function(e){h(e);for(var t=d[e.name],r=t.forages,n=0;n<r.length;n++){var o=r[n];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,y(e).then((function(t){return e.db=t,b(e)?E(e):t})).then((function(n){e.db=t.db=n;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=n})).catch((function(t){throw v(e,t),t}))}(e).then((function(){I(e,t,r,n-1)}))})).catch(r);r(o)}}var R={_driver:"asyncStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]=e[n];var o=d[r.name];o||(o={forages:[],db:null,dbReady:null,deferredOperations:[]},d[r.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=S);var i=[];function s(){return a.resolve()}for(var u=0;u<o.forages.length;u++){var l=o.forages[u];l!==t&&i.push(l._initReady().catch(s))}var f=o.forages.slice(0);return a.all(i).then((function(){return r.db=o.db,y(r)})).then((function(e){return r.db=e,b(r,t._defaultConfig.version)?E(r):e})).then((function(e){r.db=o.db=e,t._dbInfo=r;for(var n=0;n<f.length;n++){var i=f[n];i!==t&&(i._dbInfo.db=r.db,i._dbInfo.version=r.version)}}))},_support:function(){try{if(!o)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){I(r._dbInfo,"readonly",(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var r=a.result;if(r){var n=r.value;A(n)&&(n=T(n));var o=e(n,r.key,s++);void 0!==o?t(o):r.continue()}else t()},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){I(r._dbInfo,"readonly",(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),A(e)&&(e=T(e)),t(e)},a.onerror=function(){n(a.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},setItem:function(e,t,r){var n=this;e=l(e);var o=new a((function(r,o){var i;n.ready().then((function(){return i=n._dbInfo,"[object Blob]"===m.call(t)?p(i.db).then((function(e){return e?t:(r=t,new a((function(e,t){var n=new FileReader;n.onerror=t,n.onloadend=function(t){var n=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:n,type:r.type})},n.readAsBinaryString(r)})));var r})):t})).then((function(t){I(n._dbInfo,"readwrite",(function(i,a){if(i)return o(i);try{var s=a.objectStore(n._dbInfo.storeName);null===t&&(t=void 0);var u=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),r(t)},a.onabort=a.onerror=function(){var e=u.error?u.error:u.transaction.error;o(e)}}catch(e){o(e)}}))})).catch(o)}));return s(o,r),o},removeItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){I(r._dbInfo,"readwrite",(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){n(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},clear:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){I(t._dbInfo,"readwrite",(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},length:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){I(t._dbInfo,"readonly",(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){r(i.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},key:function(e,t){var r=this,n=new a((function(t,n){e<0?t(null):r.ready().then((function(){I(r._dbInfo,"readonly",(function(o,i){if(o)return n(o);try{var a=i.objectStore(r._dbInfo.storeName),s=!1,u=a.openCursor();u.onsuccess=function(){var r=u.result;r?0===e||s?t(r.key):(s=!0,r.advance(e)):t(null)},u.onerror=function(){n(u.error)}}catch(e){n(e)}}))})).catch(n)}));return s(n,t),n},keys:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){I(t._dbInfo,"readonly",(function(n,o){if(n)return r(n);try{var i=o.objectStore(t._dbInfo.storeName).openCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t.continue()):e(a)},i.onerror=function(){r(i.error)}}catch(e){r(e)}}))})).catch(r)}));return s(r,e),r},dropInstance:function(e,t){t=f.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,i=this;if(e.name){var u=e.name===r.name&&i._dbInfo.db,l=u?a.resolve(i._dbInfo.db):y(e).then((function(t){var r=d[e.name],n=r.forages;r.db=t;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=t;return t}));n=e.storeName?l.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var r=t.version+1;h(e);var n=d[e.name],i=n.forages;t.close();for(var s=0;s<i.length;s++){var u=i[s];u._dbInfo.db=null,u._dbInfo.version=r}return new a((function(t,n){var i=o.open(e.name,r);i.onerror=function(e){i.result.close(),n(e)},i.onupgradeneeded=function(){i.result.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}})).then((function(e){n.db=e;for(var t=0;t<i.length;t++){var r=i[t];r._dbInfo.db=e,g(r._dbInfo)}})).catch((function(t){throw(v(e,t)||a.resolve()).catch((function(){})),t}))}})):l.then((function(t){h(e);var r=d[e.name],n=r.forages;t.close();for(var i=0;i<n.length;i++)n[i]._dbInfo.db=null;return new a((function(t,r){var n=o.deleteDatabase(e.name);n.onerror=n.onblocked=function(e){var t=n.result;t&&t.close(),r(e)},n.onsuccess=function(){var e=n.result;e&&e.close(),t(e)}})).then((function(e){r.db=e;for(var t=0;t<n.length;t++)g(n[t]._dbInfo)})).catch((function(t){throw(v(e,t)||a.resolve()).catch((function(){})),t}))}))}else n=a.reject("Invalid arguments");return s(n,t),n}},w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=/^~~local_forage_type~([^~]+)~/,N="__lfsc__:".length,D=N+"arbf".length,C=Object.prototype.toString;function P(e){var t,r,n,o,i,a=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var l=new ArrayBuffer(a),f=new Uint8Array(l);for(t=0;t<s;t+=4)r=w.indexOf(e[t]),n=w.indexOf(e[t+1]),o=w.indexOf(e[t+2]),i=w.indexOf(e[t+3]),f[u++]=r<<2|n>>4,f[u++]=(15&n)<<4|o>>2,f[u++]=(3&o)<<6|63&i;return l}function L(e){var t,r=new Uint8Array(e),n="";for(t=0;t<r.length;t+=3)n+=w[r[t]>>2],n+=w[(3&r[t])<<4|r[t+1]>>4],n+=w[(15&r[t+1])<<2|r[t+2]>>6],n+=w[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var M={serialize:function(e,t){var r="";if(e&&(r=C.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===C.call(e.buffer))){var n,o="__lfsc__:";e instanceof ArrayBuffer?(n=e,o+="arbf"):(n=e.buffer,"[object Int8Array]"===r?o+="si08":"[object Uint8Array]"===r?o+="ui08":"[object Uint8ClampedArray]"===r?o+="uic8":"[object Int16Array]"===r?o+="si16":"[object Uint16Array]"===r?o+="ur16":"[object Int32Array]"===r?o+="si32":"[object Uint32Array]"===r?o+="ui32":"[object Float32Array]"===r?o+="fl32":"[object Float64Array]"===r?o+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(o+L(n))}else if("[object Blob]"===r){var i=new FileReader;i.onload=function(){var r="~~local_forage_type~"+e.type+"~"+L(this.result);t("__lfsc__:blob"+r)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,N))return JSON.parse(e);var t,r=e.substring(D),n=e.substring(N,D);if("blob"===n&&O.test(r)){var o=r.match(O);t=o[1],r=r.substring(o[0].length)}var a=P(r);switch(n){case"arbf":return a;case"blob":return i([a],{type:t});case"si08":return new Int8Array(a);case"ui08":return new Uint8Array(a);case"uic8":return new Uint8ClampedArray(a);case"si16":return new Int16Array(a);case"ur16":return new Uint16Array(a);case"si32":return new Int32Array(a);case"ui32":return new Uint32Array(a);case"fl32":return new Float32Array(a);case"fl64":return new Float64Array(a);default:throw new Error("Unkown type: "+n)}},stringToBuffer:P,bufferToString:L};function x(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function F(e,t,r,n,o,i){e.executeSql(r,n,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,a):x(e,t,(function(){e.executeSql(r,n,o,i)}),i)}),i):i(e,a)}),i)}function k(e,t,r,n){var o=this;e=l(e);var i=new a((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var s=t,u=o._dbInfo;u.serializer.serialize(t,(function(t,l){l?a(l):u.db.transaction((function(r){F(r,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(n>0)return void i(k.apply(o,[e,s,r,n-1]));a(t)}}))}))})).catch(a)}));return s(i,r),i}function B(e){return new a((function(t,r){e.transaction((function(n){n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(r,n){for(var o=[],i=0;i<n.rows.length;i++)o.push(n.rows.item(i).name);t({db:e,storeNames:o})}),(function(e,t){r(t)}))}),(function(e){r(e)}))}))}var U={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var o=new a((function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction((function(o){x(o,r,(function(){t._dbInfo=r,e()}),(function(e,t){n(t)}))}),n)}));return r.serializer=M,o},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){F(r,o,"SELECT * FROM "+o.storeName,[],(function(r,n){for(var i=n.rows,a=i.length,s=0;s<a;s++){var u=i.item(s),l=u.value;if(l&&(l=o.serializer.deserialize(l)),void 0!==(l=e(l,u.key,s+1)))return void t(l)}t()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){F(r,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,r){var n=r.rows.length?r.rows.item(0).value:null;n&&(n=o.serializer.deserialize(n)),t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},setItem:function(e,t,r){return k.apply(this,[e,t,r,1])},removeItem:function(e,t){var r=this;e=l(e);var n=new a((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){F(r,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},clear:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){F(t,n,"DELETE FROM "+n.storeName,[],(function(){e()}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},length:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){F(t,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],(function(t,r){var n=r.rows.item(0).c;e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},key:function(e,t){var r=this,n=new a((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){F(r,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,r){var n=r.rows.length?r.rows.item(0).key:null;t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return s(n,t),n},keys:function(e){var t=this,r=new a((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){F(t,n,"SELECT key FROM "+n.storeName,[],(function(t,r){for(var n=[],o=0;o<r.rows.length;o++)n.push(r.rows.item(o).key);e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return s(r,e),r},dropInstance:function(e,t){t=f.apply(this,arguments);var r=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||r.name,e.storeName=e.storeName||r.storeName);var n,o=this;return s(n=e.name?new a((function(t){var n;n=e.name===r.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:n,storeNames:[e.storeName]}):t(B(n))})).then((function(e){return new a((function(t,r){e.db.transaction((function(n){function o(e){return new a((function(t,r){n.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){r(t)}))}))}for(var i=[],s=0,u=e.storeNames.length;s<u;s++)i.push(o(e.storeNames[s]));a.all(i).then((function(){t()})).catch((function(e){r(e)}))}),(function(e){r(e)}))}))})):a.reject("Invalid arguments"),t),n}};function q(e,t){var r=e.name+"/";return e.storeName!==t.storeName&&(r+=e.storeName+"/"),r}function j(){return!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0}var G={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var r in e)t[r]=e[r];return t.keyPrefix=q(e,this._defaultConfig),j()?(this._dbInfo=t,t.serializer=M,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=r.ready().then((function(){for(var t=r._dbInfo,n=t.keyPrefix,o=n.length,i=localStorage.length,a=1,s=0;s<i;s++){var u=localStorage.key(s);if(0===u.indexOf(n)){var l=localStorage.getItem(u);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,u.substring(o),a++)))return l}}}));return s(n,t),n},getItem:function(e,t){var r=this;e=l(e);var n=r.ready().then((function(){var t=r._dbInfo,n=localStorage.getItem(t.keyPrefix+e);return n&&(n=t.serializer.deserialize(n)),n}));return s(n,t),n},setItem:function(e,t,r){var n=this;e=l(e);var o=n.ready().then((function(){void 0===t&&(t=null);var r=t;return new a((function(o,i){var a=n._dbInfo;a.serializer.serialize(t,(function(t,n){if(n)i(n);else try{localStorage.setItem(a.keyPrefix+e,t),o(r)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||i(e),i(e)}}))}))}));return s(o,r),o},removeItem:function(e,t){var r=this;e=l(e);var n=r.ready().then((function(){var t=r._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return s(n,t),n},clear:function(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,r=localStorage.length-1;r>=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}}));return s(r,e),r},length:function(e){var t=this.keys().then((function(e){return e.length}));return s(t,e),t},key:function(e,t){var r=this,n=r.ready().then((function(){var t,n=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(n.keyPrefix.length)),t}));return s(n,t),n},keys:function(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo,r=localStorage.length,n=[],o=0;o<r;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&n.push(i.substring(e.keyPrefix.length))}return n}));return s(r,e),r},dropInstance:function(e,t){if(t=f.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var r=this.config();e.name=e.name||r.name,e.storeName=e.storeName||r.storeName}var n,o=this;return s(n=e.name?new a((function(t){e.storeName?t(q(e,o._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}})):a.reject("Invalid arguments"),t),n}},z=function(e,t){for(var r,n,o=e.length,i=0;i<o;){if((r=e[i])===(n=t)||"number"==typeof r&&"number"==typeof n&&isNaN(r)&&isNaN(n))return!0;i++}return!1},H=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},V={},Y={},W={INDEXEDDB:R,WEBSQL:U,LOCALSTORAGE:G},X=[W.INDEXEDDB._driver,W.WEBSQL._driver,W.LOCALSTORAGE._driver],Q=["dropInstance"],K=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Q),Z={description:"",driver:X.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function $(e,t){e[t]=function(){var r=arguments;return e.ready().then((function(){return e[t].apply(e,r)}))}}function J(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var r in t)t.hasOwnProperty(r)&&(H(t[r])?arguments[0][r]=t[r].slice():arguments[0][r]=t[r])}return arguments[0]}var ee=new(function(){function e(t){for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),W)if(W.hasOwnProperty(r)){var n=W[r],o=n._driver;this[r]=o,V[o]||this.defineDriver(n)}this._defaultConfig=J({},Z),this._config=J({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":n(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,r){var n=new a((function(t,r){try{var n=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void r(o);for(var i=K.concat("_initStorage"),u=0,l=i.length;u<l;u++){var f=i[u];if((!z(Q,f)||e[f])&&"function"!=typeof e[f])return void r(o)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),r=a.reject(t);return s(r,arguments[arguments.length-1]),r}},r=0,n=Q.length;r<n;r++){var o=Q[r];e[o]||(e[o]=t(o))}}();var c=function(r){V[n]&&console.info("Redefining LocalForage driver: "+n),V[n]=e,Y[n]=r,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(c,r):c(!!e._support):c(!0)}catch(e){r(e)}}));return u(n,t,r),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,r){var n=V[e]?a.resolve(V[e]):a.reject(new Error("Driver not found."));return u(n,t,r),n},e.prototype.getSerializer=function(e){var t=a.resolve(M);return u(t,e),t},e.prototype.ready=function(e){var t=this,r=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return u(r,e,e),r},e.prototype.setDriver=function(e,t,r){var n=this;H(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){n._config.driver=n.driver()}function s(e){return n._extend(e),i(),n._ready=n._initStorage(n._config),n._ready}var l=null!==this._driverSet?this._driverSet.catch((function(){return a.resolve()})):a.resolve();return this._driverSet=l.then((function(){var e=o[0];return n._dbInfo=null,n._ready=null,n.getDriver(e).then((function(e){n._driver=e._driver,i(),n._wrapLibraryMethodsWithReady(),n._initDriver=function(e){return function(){var t=0;return function r(){for(;t<e.length;){var o=e[t];return t++,n._dbInfo=null,n._ready=null,n.getDriver(o).then(s).catch(r)}i();var u=new Error("No available storage method found.");return n._driverSet=a.reject(u),n._driverSet}()}}(o)}))})).catch((function(){i();var e=new Error("No available storage method found.");return n._driverSet=a.reject(e),n._driverSet})),u(this._driverSet,t,r),this._driverSet},e.prototype.supports=function(e){return!!Y[e]},e.prototype._extend=function(e){J(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var o=e[r];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=K.length;e<t;e++)$(this,K[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=ee},{3:3}]},{},[4])(4)}).call(this,r(24))},function(e,t){var r={"<":"<",">":">",""":'"',"&apos":"'","&":"&","<":"<",">":">",""":'"',"'":"'","&":"&"},n={60:"lt",62:"gt",34:"quot",39:"apos",38:"amp"},o={"<":"<",">":">",'"':""","'":"'","&":"&"};function i(){}i.prototype.encode=function(e){return e&&e.length?e.replace(/<|>|"|'|&/g,(function(e){return o[e]})):""},i.encode=function(e){return(new i).encode(e)},i.prototype.decode=function(e){return e&&e.length?e.replace(/&#?[0-9a-zA-Z]+;?/g,(function(e){if("#"===e.charAt(1)){var t="x"===e.charAt(2).toLowerCase()?parseInt(e.substr(3),16):parseInt(e.substr(2));return isNaN(t)||t<-32768||t>65535?"":String.fromCharCode(t)}return r[e]||e})):""},i.decode=function(e){return(new i).decode(e)},i.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",o=0;o<t;){var i=e.charCodeAt(o),a=n[i];a?(r+="&"+a+";",o++):(r+=i<32||i>126?"&#"+i+";":e.charAt(o),o++)}return r},i.encodeNonUTF=function(e){return(new i).encodeNonUTF(e)},i.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n);o<=255?r+=e[n++]:(r+="&#"+o+";",n++)}return r},i.encodeNonASCII=function(e){return(new i).encodeNonASCII(e)},e.exports=i},function(e,t){for(var r=["apos","nbsp","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","Agrave","Aacute","Acirc","Atilde","Auml","Aring","Aelig","Ccedil","Egrave","Eacute","Ecirc","Euml","Igrave","Iacute","Icirc","Iuml","ETH","Ntilde","Ograve","Oacute","Ocirc","Otilde","Ouml","times","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","divide","oslash","ugrave","uacute","ucirc","uuml","yacute","thorn","yuml","quot","amp","lt","gt","OElig","oelig","Scaron","scaron","Yuml","circ","tilde","ensp","emsp","thinsp","zwnj","zwj","lrm","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","permil","lsaquo","rsaquo","euro","fnof","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","bull","hellip","prime","Prime","oline","frasl","weierp","image","real","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","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","lceil","rceil","lfloor","rfloor","lang","rang","loz","spades","clubs","hearts","diams"],n=[39,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,34,38,60,62,338,339,352,353,376,710,732,8194,8195,8201,8204,8205,8206,8207,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8240,8249,8250,8364,402,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,977,978,982,8226,8230,8242,8243,8254,8260,8472,8465,8476,8482,8501,8592,8593,8594,8595,8596,8629,8656,8657,8658,8659,8660,8704,8706,8707,8709,8711,8712,8713,8715,8719,8721,8722,8727,8730,8733,8734,8736,8743,8744,8745,8746,8747,8756,8764,8773,8776,8800,8801,8804,8805,8834,8835,8836,8838,8839,8853,8855,8869,8901,8968,8969,8970,8971,9001,9002,9674,9824,9827,9829,9830],o={},i={},a=0,s=r.length;a<s;){var u=r[a],l=n[a];o[u]=String.fromCharCode(l),i[l]=u,a++}function f(){}f.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,(function(e,t){var r;if("#"===t.charAt(0)){var n="x"===t.charAt(1).toLowerCase()?parseInt(t.substr(2),16):parseInt(t.substr(1));isNaN(n)||n<-32768||n>65535||(r=String.fromCharCode(n))}else r=o[t];return r||e})):""},f.decode=function(e){return(new f).decode(e)},f.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=i[e.charCodeAt(n)];r+=o?"&"+o+";":e.charAt(n),n++}return r},f.encode=function(e){return(new f).encode(e)},f.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n),a=i[o];r+=a?"&"+a+";":o<32||o>126?"&#"+o+";":e.charAt(n),n++}return r},f.encodeNonUTF=function(e){return(new f).encodeNonUTF(e)},f.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,r="",n=0;n<t;){var o=e.charCodeAt(n);o<=255?r+=e[n++]:(r+="&#"+o+";",n++)}return r},f.encodeNonASCII=function(e){return(new f).encodeNonASCII(e)},e.exports=f}]).default}));
//# sourceMappingURL=dash.offline.min.js.map