/*! For license information please see flussonic.ba6d63bf3213ba56553b.js.LICENSE.txt */ (this.webpackJsonpLivePlayer=this.webpackJsonpLivePlayer||[]).push([[2],{93:function(e,t,r){var n;n=()=>(()=>{var e={909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,o.default)("/******/ (() => { // webpackBootstrap\n(function () {\n let statsURL = null;\n let sendTime = 60000;\n let jsonTable = {};\n let sendingInterval = null;\n\n self.addEventListener(\n 'message',\n function (e) {\n let data = e.data;\n //Get command parameter to identify operation\n const { command, commandObj } = data;\n switch (command) {\n case 'start':\n statsURL = commandObj\n .replace(/ws:/, 'http:')\n .replace(/wss:/, 'https:')\n .replace(/mse_ld/, 'sessions');\n start();\n break;\n case 'time':\n correctSendTime(commandObj);\n break;\n case 'stop':\n stop();\n break;\n case 'add':\n addToTable(commandObj);\n break;\n default:\n break;\n }\n },\n false\n );\n\n function correctSendTime(time) {\n sendTime = time;\n }\n\n function start() {\n sendingInterval = this.setInterval(() => {\n post();\n }, sendTime);\n }\n\n function stop() {\n post();\n clearInterval(sendingInterval);\n }\n\n function addToTable(data) {\n jsonTable = { ...jsonTable, ...data };\n\n if (data.event && data.event === 'play_stop') {\n stop();\n }\n }\n\n // function roughSizeOfObject(object) {\n // let objectList = [];\n // let stack = [object];\n // let bytes = 0;\n\n // while (stack.length) {\n // let value = stack.pop();\n\n // if (typeof value === 'boolean') {\n // bytes += 4;\n // } else if (typeof value === 'string') {\n // bytes += value.length * 2;\n // } else if (typeof value === 'number') {\n // bytes += 8;\n // } else if (typeof value === 'object' && objectList.indexOf(value) === -1) {\n // objectList.push(value);\n\n // for (let i in value) {\n // stack.push(value[i]);\n // }\n // }\n // }\n // return bytes;\n // }\n\n function post() {\n if (!jsonTable.started_at) {\n return;\n }\n\n const { source_id } = jsonTable;\n const newUrl = statsURL.replace(/sessions/, `sessions/${source_id ? `${source_id}` : ''}`);\n fetch(newUrl, {\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n },\n method: 'PUT',\n body: JSON.stringify(jsonTable),\n });\n }\n})();\n\n/******/ })()\n;","Worker",void 0,r.p+"stats.worker.js")};var n,o=(n=r(512))&&n.__esModule?n:{default:n};e.exports=t.default},220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,o.default)("/******/ (() => { // webpackBootstrap\n(function () {\n //Define WebSocket and protocol variables\n let websocket = null;\n let mustStop = false;\n\n //Receive message from WebSocketController\n self.addEventListener(\n 'message',\n function (e) {\n let data = e.data;\n //Get command parameter to identify operation\n let command = data.command;\n\n if (command === 'start') {\n //Establish WebSocket connection\n start(data.commandObj);\n } else if (command === 'disconnect') {\n //Terminate WebSocket connection\n disconnect();\n } else if (command === 'send') {\n sendOMMmessage(data.commandObj);\n }\n },\n false\n );\n\n /* ----------------- Application events functions ----------------- */\n\n //Establish WebSocket connection\n function start(wsURL) {\n websocket = new WebSocket(wsURL);\n websocket.binaryType = 'arraybuffer';\n websocket.onopen = onOpen;\n websocket.onmessage = onMessage;\n websocket.onerror = onError;\n websocket.onclose = onClose;\n }\n\n function disconnect() {\n if (websocket) {\n websocket.close();\n }\n mustStop = true;\n const disconnect_response = {\n command: 'disconnect',\n msg: 'Disconnected',\n };\n self.postMessage(disconnect_response);\n }\n\n //Send message to ADS WebSocket\n function sendOMMmessage(commandObj) {\n websocket.send(commandObj);\n }\n\n /* ----------------- WS events ----------------- */\n\n //Establish WebSocket connection success\n function onOpen() {\n const onOpen_response = {\n command: 'connect',\n msg: 'Connected',\n };\n self.postMessage(onOpen_response);\n }\n\n //Receives incoming message from WebSocket\n function onMessage(event) {\n const rawData = event.data;\n const isDataAB = rawData instanceof ArrayBuffer;\n const parsedData = !isDataAB ? JSON.parse(rawData) : void 0;\n self.postMessage({ rawData, parsedData, isDataAB });\n }\n\n function onError(event) {\n const onError_response = {\n command: 'error',\n msg: JSON.stringify(event),\n };\n self.postMessage(onError_response);\n }\n\n function onClose(e) {\n if (mustStop) {\n return;\n }\n const { code, reason } = e;\n const onClose_response = {\n command: 'close',\n data: { code, reason },\n };\n self.postMessage(onClose_response);\n }\n})();\n\n/******/ })()\n;","Worker",void 0,r.p+"ws.worker.js")};var n,o=(n=r(512))&&n.__esModule?n:{default:n};e.exports=t.default},813:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(624))&&n.__esModule?n:{default:n};t.default=o.default,e.exports=t.default},708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(203),o=r(216),i=r(435),a=r(339);function s(e){return s="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},s(e)}function c(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o.logger.log("create BuffersController"),this.media=t.media,this.init(t),this.doArrayBuffer=n.doArrayBuffer.bind(this),this.maybeAppend=this.maybeAppend.bind(this),this.onSBUpdateEnd=this.onSBUpdateEnd.bind(this),this.onAudioSBUpdateEnd=this.onAudioSBUpdateEnd.bind(this)},t=[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.flushRange=[],this.appended=0,this.mediaSource=e.mediaSource,this.segmentsVideo=[],this.segmentsAudio=[],this.sourceBuffer={},this.totalBytesCollected=0}},{key:"setMediaSource",value:function(e){this.mediaSource=e}},{key:"createSourceBuffers",value:function(e){var t=this,r=this.sourceBuffer;e.tracks.forEach((function(e){var n=e.content===i.VIDEO,o=n?'video/mp4; codecs="avc1.4d401f"':'audio/mp4; codecs="mp4a.40.2"';e.mime_type&&(o=e.mime_type),r[e.content]=t.mediaSource.addSourceBuffer(o),r[e.content].mode=u;var s=r[e.content];n?s.addEventListener(a.BUFFER_UPDATE_END,t.onSBUpdateEnd):s.addEventListener(a.BUFFER_UPDATE_END,t.onAudioSBUpdateEnd)}))}},{key:"onSBUpdateEnd",value:function(){if(this._needsEos&&this.checkEos(),!this._needsFlush&&this.segmentsVideo.length){var e=this.sourceBuffer.video;if(e){if(e.updating)return;var t=this.segmentsVideo[0];e.appendBuffer(t.data),this.segmentsVideo.shift(),this.videoBufferSize=this.videoBufferSize-t.data.byteLength,this.appended++}}}},{key:"onAudioSBUpdateEnd",value:function(){if(this._needsEos&&this.checkEos(),!this._needsFlush&&this.segmentsAudio.length){var e=this.sourceBuffer.audio;if(e){if(e.updating)return;var t=this.segmentsAudio[0];e.appendBuffer(t.data),this.segmentsAudio.shift(),this.appended++}}}},{key:"createTracks",value:function(e){var t=this;e.forEach((function(e){var r=(0,n.base64ToArrayBuffer)(e.payload),o={type:t.getTypeBytrackId(e.id),isInit:!0,data:r};t.maybeAppend(o)}))}},{key:"maybeAppend",value:function(e){if(!this._needsFlush){if(!this.media||this.media.error)return"audio"===e.type?this.segmentsAudio=[]:this.segmentsVideo=[],o.logger.error("trying to append although a media error occured, flush segment and abort"),void(this.media.error&&o.logger.error("Error code:",this.media.error));var t=this.sourceBuffer[e.type];if(t){if(t.updating)return;t.appendBuffer(e.data),"audio"===e.type?this.segmentsAudio.shift():this.segmentsVideo.shift(),this.appended++}}}},{key:"setTracksByType",value:function(e){var t=this,r=e.tracks?"tracks":"streams";1===e[r].length&&(this.audioTrackId=null),e[r].forEach((function(e,r){t[e.content===i.VIDEO?"videoTrackId":"audioTrackId"]={index:r,id:e.id}}))}},{key:"getTypeBytrackId",value:function(e){return this.audioTrackId&&this.audioTrackId.id===e?i.AUDIO:i.VIDEO}},{key:"procArrayBuffer",value:function(e){var t=this.rawDataToSegmnet(e);"audio"===t.type?this.segmentsAudio.push(t):this.segmentsVideo.push(t),this.totalBytesCollected=this.totalBytesCollected+t.data.byteLength,this.doArrayBuffer(t),this.sourceBuffer&&(this.sourceBuffer.video&&!this.sourceBuffer.video.updating&&this.onSBUpdateEnd(),this.audioTrackId&&this.sourceBuffer.audio&&!this.sourceBuffer.audio.updating&&this.onAudioSBUpdateEnd())}},{key:"seek",value:function(){for(var e in this.sourceBuffer)this.sourceBuffer[e].abort(),this.sourceBuffer[e].mode=u}},{key:"isBuffered",value:function(){var e=0,t=this.sourceBuffer;for(var r in t)e+=t[r].buffered.length;return e>0}},{key:"doFlush",value:function(){for(;this.flushRange.length;){var e=this.flushRange[0];if(!this.flushBuffer(e.start,e.end,e.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var t=0,r=this.sourceBuffer;try{for(var n in r)t+=r[n].buffered.length}catch(e){o.logger.error("error while accessing sourceBuffer.buffered")}this.appended=t,this._setTracksFlag=!1}}},{key:"flushBuffer",value:function(e,t,r){var n,i,a,s,c,l,u=this.sourceBuffer;if(Object.keys(u).length){if(o.logger.log("flushBuffer,pos/start/end: ".concat(this.media.currentTime.toFixed(3),"/").concat(e,"/").concat(t)),this.flushBufferCounter.5)return this.flushBufferCounter++,o.logger.log("flush ".concat(f," [").concat(c,",").concat(l,"], of [").concat(a,",").concat(s,"], pos:").concat(this.media.currentTime)),n.remove(c,l),!1}catch(e){o.logger.warn("exception while accessing sourcebuffer, it might have been removed from MediaSource")}}}else o.logger.warn("abort flushing too many retries");o.logger.log("buffer flushed")}return!0}},{key:"rawDataToSegmnet",value:function(e){var t=new Uint8Array(e),r=(0,n.getTrackId)(t);return{type:this.getTypeBytrackId(r),data:t}}},{key:"onBufferEos",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.sourceBuffer,r=e.type;for(var n in t)r&&n!==r||t[n].ended||(t[n].ended=!0,o.logger.log("".concat(n," sourceBuffer now EOS")));this.checkEos()}},{key:"checkEos",value:function(){var e=this.sourceBuffer,t=this.mediaSource;if(t&&"open"===t.readyState){for(var r in e){var n=e[r];if(!n.ended)return;if(n.updating)return void(this._needsEos=!0)}o.logger.log("all media data available, signal endOfStream() to MediaSource and stop loading fragment");try{t.endOfStream()}catch(e){o.logger.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1}else this._needsEos=!1}},{key:"addSourceBuffer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"audio",t=this.sourceBuffer,r="video"===e?'video/mp4; codecs="avc1.4d401f"':'audio/mp4; codecs="mp4a.40.2"';t[e]=this.mediaSource.addSourceBuffer(r),t[e].mode=u;var n=t[e];"video"===e?n.addEventListener(a.BUFFER_UPDATE_END,this.onSBUpdateEnd):n.addEventListener(a.BUFFER_UPDATE_END,this.onAudioSBUpdateEnd)}},{key:"removeSourceBuffer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"audio",t=this.sourceBuffer[e];"audio"===e?t.removeEventListener(a.BUFFER_UPDATE_END,this.onAudioSBUpdateEnd):t.removeEventListener(a.BUFFER_UPDATE_END,this.onSBUpdateEnd),this.mediaSource.removeSourceBuffer(t),delete this.sourceBuffer[e]}},{key:"destroy",value:function(){this.init()}}],t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),e.exports=t.default},97:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getWSURL=f;var n=a(r(189)),o=a(r(220)),i=r(216);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="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},s(e)}function c(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return this.connectionPromise=new Promise((function(i,a){r.socketURL={url:e,time:t,videoTrack:n,audioTack:o};var s=f(e,t,n,o);r.wsWorker.postMessage({command:"start",commandObj:s}),r._openingResolve=i,r._openingReject=a})),this.connectionPromise}},{key:"open",value:function(){this.opened||(this.opened=!0,this.paused=!0,this._openingResolve())}},{key:"send",value:function(e){this.wsWorker.postMessage({command:"send",commandObj:e})}},{key:"resume",value:function(){clearTimeout(this.reconnect),i.logger.log("ws: send resume"),this.send("resume"),this.paused=!1}},{key:"pause",value:function(){i.logger.log("ws: send pause"),this.send("pause"),this.paused=!0}},{key:"seek",value:function(e){var t=e===u?"":"play_from=";i.logger.log("".concat(t).concat(e)),this.send("".concat(t).concat(e))}},{key:"setTracks",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.send("set_tracks=".concat(e).concat(t))}},{key:"sendStats",value:function(e){var t=JSON.stringify(e);this.send(t)}},{key:"handleReceiveMessage",value:function(e){this.opts.message(e)}},{key:"handleError",value:function(){var e;this.opts.error&&(e=this.opts).error.apply(e,arguments)}},{key:"onWSClose",value:function(e){var t=this;if(i.logger.log("WebSocket lost connection with code ",e.code+" and reason: "+e.reason),this.opts.error&&this.opts.error({error:"WebSocket lost connection",err:"WebSocket lost connection with code ".concat(e.code," and reason: ").concat(e.reason),code:e.code}),this.opts.wsReconnect)if(e.wasClean&&1e3!==e.code&&1006!==e.code)i.logger.log("Clean websocket stop"),this.destroy();else{var r=this.socketURL,n=r.url,o=r.videoTrack,a=r.audioTack;this.reconnect=setTimeout((function(){t.start(n,o,a).then((function(){clearTimeout(t.reconnect)})).catch((function(){t.destroy()}))}),5e3)}this.opts.closed&&this.opts.closed(e)}},{key:"destroy",value:function(){this.wsWorker.postMessage({command:"disconnect"}),clearTimeout(this.reconnect),this.reconnect=void 0,this.init()}}],t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIDEO=t.AUDIO=void 0,t.VIDEO="video",t.AUDIO="audio"},339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={MEDIA_SOURCE_SOURCE_OPEN:"sourceopen",MEDIA_SOURCE_SOURCE_ENDED:"sourceended",MEDIA_SOURCE_SOURCE_CLOSE:"sourceclose",MEDIA_ELEMENT_PLAY:"play",MEDIA_ELEMENT_PAUSE:"pause",MEDIA_ELEMENT_PROGRESS:"progress",MEDIA_ELEMENT_EMPTIED:"emptied",MEDIA_ELEMENT_SUSPEND:"suspend",MEDIA_ELEMENT_STALLED:"stalled",MEDIA_ELEMENT_WAITING:"waiting",MEDIA_ELEMENT_RATECHANGE:"ratechange",MEDIA_ELEMENT_PLAYING:"playing",WS_OPEN:"open",WS_MESSAGE:"message",WS_ERROR:"error",WS_CLOSE:"close",BUFFER_UPDATE_END:"updateend",BUFFER_ERROR:"onerror",BUFFER_ABORT:"onabort"},e.exports=t.default},534:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={NOT_HTML_MEDIA_ELEMENT:"media should be an HTMLMediaElement instance"},e.exports=t.default},52:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MSE_MEDIA_SEGMENT=t.MSE_INIT_SEGMENT=t.EVENT_SEGMENT=void 0,t.EVENT_SEGMENT="event",t.MSE_INIT_SEGMENT="mse_init_segment",t.MSE_MEDIA_SEGMENT="mse_media_segment"},624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=h(r(97)),o=h(r(708)),i=h(r(909)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=d(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(203)),s=r(216),c=r(52),l=r(435),u=h(r(339)),f=h(r(534));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function h(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="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},d(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function b(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){b(i,n,o,a,s,"next",e)}function s(e){b(i,n,o,a,s,"throw",e)}a(void 0)}))}}function w(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u.debug&&((0,s.enableLogs)(!0),window.humanTime=a.humanTime),s.logger.info("[mse-player]:",e.version),this.opts=u||{},this.media=t,this.url=c,this.firstStart=!0,this.opts.progressUpdateTime=this.opts.progressUpdateTime||500,this.opts.errorsBeforeStop=this.opts.errorsBeforeStop?this.opts.errorsBeforeStop:1,"number"!=typeof this.opts.errorsBeforeStop||isNaN(this.opts.errorsBeforeStop))throw new Error("invalid errorsBeforeStop param, should be number");if(this.opts.connectionRetries=this.opts.connectionRetries||0,"number"!=typeof this.opts.connectionRetries||isNaN(this.opts.connectionRetries))throw new Error("invalid connectionRetries param, should be number");if(this.opts.wsReconnect=!!this.opts.wsReconnect&&this.opts.wsReconnect,"boolean"!=typeof this.opts.wsReconnect)throw new Error("invalid wsReconnect param, should be boolean");if(this.opts.preferHQ=!!this.opts.preferHQ&&this.opts.preferHQ,"boolean"!=typeof this.opts.preferHQ)throw new Error("invalid preferHQ param, should be boolean");if(this.retry=0,this.retryConnectionTimer,this.opts.retryMuted=!!this.opts.retryMuted&&this.opts.retryMuted,"boolean"!=typeof this.opts.retryMuted)throw new Error("invalid retryMuted param, should be boolean");this.opts.maxBufferDelay=this.opts.maxBufferDelay?this.opts.maxBufferDelay:2;var f=navigator.userAgent;if((/Edge/.test(f)||/trident.*rv:1\d/i.test(f))&&(this.opts.maxBufferDelay=10),"number"!=typeof this.opts.maxBufferDelay)throw new Error("invalid maxBufferDelay param, should be number");if(this.opts.videoQuality){if("string"!=typeof this.opts.videoQuality)throw new Error("invalid videoQuality param, should be string");if("highest"!==this.opts.videoQuality&&"lowest"!==this.opts.videoQuality)throw new Error("invalid videoQuality param, should be highest or lowest")}try{this.Sentry=r(Object(function(){var e=new Error("Cannot find module '@sentry/browser'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){this.noSentry=!0}if(this.opts.sentryConfig=this.opts.sentryConfig?this.opts.sentryConfig:"","string"!=typeof this.opts.sentryConfig)throw new Error("invalid sentryConfig param, should be string");if(this.opts.sentryConfig.length&&!this.noSentry&&(this.Sentry.init({dsn:this.opts.sentryConfig,environment:"production",release:"Mse Player@"+e.version}),document.onerror=function(e){l.Sentry.captureException(e)}),"number"!=typeof this.opts.maxBufferDelay)throw new Error("invalid maxBufferDelay param, should be number");if(this.opts.statsSendEnable=!("statsSendEnable"in this.opts)||"boolean"!=typeof this.opts.statsSendEnable||!1!==this.opts.statsSendEnable,window.Worker&&this.opts.statsSendEnable){if(this.statsWorker=new i.default,this.statsWorker.onmessage=this.onStatsWorkerMessage.bind(this),this.opts.statsSendTime){if("number"!=typeof this.opts.statsSendTime)throw new Error("invalid statsSendTime param, should be number");this.statsWorker.postMessage({command:"time",commandObj:1e3*this.opts.statsSendTime})}this.statsWorker.postMessage({command:"start",commandObj:this.url}),this.statsWorkerStarted=!0}this.resetStats=function(){l.playerStatsObject={proto:"mseld",user_agent:navigator.userAgent,bytes:0,application:{application_name:"mseld_player",application_version:e.version,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,live_duration:0,stall_duration:0,pause_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0}},l.addStat(l.playerStatsObject),!l.statsWorkerStarted&&l.opts.statsSendEnable&&(l.statsWorker.postMessage({command:"start",commandObj:l.url}),l.statsWorkerStarted=!0)},this.onProgress=u&&u.onProgress,u&&u.onDisconnect?this.onDisconnect=u&&u.onDisconnect:this.onDisconnect=function(e){s.logger.log("[websocket status]:",e)},this.onMediaInfo=u&&u.onMediaInfo,this.onError=u&&u.onError,this.onEventCallback=u&&u.onEvent,this.onAutoplay=u&&u.onAutoplay,this.onMuted=u&&u.onMuted,this.onStats=u&&u.onStats,this.onMessage=u&&u.onMessage,this.onPause=u&&u.onPause,this.onResume=u&&u.onResume,t instanceof HTMLMediaElement&&(t.WebKitPlaysInline=!0,t.controls=!1),this.ws=new n.default({message:this.dispatchMessage.bind(this),closed:this.onDisconnect.bind(this),error:this.onError,wsReconnect:this.opts.wsReconnect}),this.sb=new o.default({media:t}),this.messageTime=Date.now(),this.init()}return t=e,l=[{key:"play",value:function(e,t){var r=this;if(s.logger.log("[mse-player]: play(".concat(e,", ").concat(t,")")),this.playing)s.logger.log("MSE is already playing");else{if(!this.ws||!this.ws.websocket||this._pause)return new Promise((function(n,o){if(!r.mediaSource||"open"!==r.mediaSource.readyState)return r.mediaSource||r.onAttachMedia({media:r.media}).then((function(){r.onsoa=r._play.bind(r,e,t),r.sb.setMediaSource(r.mediaSource),r.mediaSource.addEventListener(u.default.MEDIA_SOURCE_SOURCE_OPEN,r.onsoa),s.logger.warn("mediaSource did not create"),r.resolveThenMediaSourceOpen=r.resolveThenMediaSourceOpen?r.resolveThenMediaSourceOpen:n,r.rejectThenMediaSourceOpen=r.rejectThenMediaSourceOpen?r.rejectThenMediaSourceOpen:o})),r.mediaSource&&"open"!==r.mediaSource.readyState?(s.logger.warn('readyState is not "open", it\'s currently ',r.mediaSource.readyState),r.shouldPlay=!0,r.resolveThenMediaSourceOpen=r.resolveThenMediaSourceOpen?r.resolveThenMediaSourceOpen:n,void(r.rejectThenMediaSourceOpen=r.rejectThenMediaSourceOpen?r.rejectThenMediaSourceOpen:o)):void 0;r._play()}));s.logger.log("[mse-player]: websocket already opened")}}},{key:"stop",value:function(){var e=this;this.playPromise?(this.onEvent({key:Date.now(),data:{event:"play_stop"}}),this.playerStatsObject.closed_at=Date.now(),this.addStat({closed_at:this.playerStatsObject.closed_at}),this.opts.statsSendEnable&&(this.statsWorkerStarted=!1),this.playPromise.catch(S(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.resetTimer&&(clearTimeout(e.resetTimer),e.resetTimer=void 0),!e._stop){t.next=4;break}return s.logger.log("[mse-player]: already stopped"),t.abrupt("return");case 4:return t.next=6,e.onMediaDetaching();case 6:case"end":return t.stop()}}),t)})))).finally(S(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.resetTimer&&(clearTimeout(e.resetTimer),e.resetTimer=void 0),!e._stop){t.next=4;break}return s.logger.log("[mse-player]: already stopped"),t.abrupt("return");case 4:return t.next=6,e.onMediaDetaching();case 6:case"end":return t.stop()}}),t)}))))):(this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=void 0),this.endProgressTimer(),s.logger.log("[mse-player]: no playPromise exists, nothing to stop")),this.firstStart=!0,delete this.uuid}},{key:"pause",value:function(){if(!function(){return!(!(!this._pause&&this.playing&&this.media&&this.ws&&this.mediaSource)||this.mediaSource&&"open"!==this.mediaSource.readyState||!this.playPromise)}.bind(this)())return s.logger.log("[mse:playback] can not do pause");var e=function(){if(this.ws.pause(),this.media.pause(),this._pause=!0,this.playing=!1,this.addPlayerStat("pause_count"),this.pauseStarted=Date.now(),this.onPause)try{this.onPause()}catch(e){s.logger.error("Error "+e.name+":"+e.message+"\n"+e.stack)}}.bind(this);this.playPromise.then(e,e).catch(e,e)}},{key:"restart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.sb.lastLoadedUTC:void 0;this.playing=!1,this.ws.destroy(),this.ws.init(),this.ws.start(this.url,e,this.videoTrack,this.audioTrack),this.addPlayerStat("reconnect_count"),this.onEndStalling()}},{key:"retryConnection",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.retry>=this.opts.connectionRetries?clearInterval(this.retryConnectionTimer):(s.logger.log("%cconnectionRetry:","background: orange;","Retrying ".concat(this.retry+1)),this.mediaSource=void 0,this.init(),this.ws.destroy(),this.sb.destroy(),this.play(t,r).then((function(){e.onEndStalling()})),this.retry=this.retry+1)}},{key:"setTracks",value:function(e){var t=this,r=e;if(this.mediaInfo){if("lowest"===r)r=this.autoTrackSelection(!1);else if("highest"===r)r=this.autoTrackSelection(!0);else if(!Array.isArray(r))return void s.logger.error('tracks should be an Array instance: ["v1", "a1"]');if(this.playing){var n=this.mediaInfo.streams?"streams":"tracks",o=r.filter((function(e){var r=t.mediaInfo[n].find((function(t){return e===t.track_id}));return!!r&&r.content===_})).join(""),i=r.filter((function(e){var r=t.mediaInfo[n].find((function(t){return e===t.track_id}));return r?!!r&&r.content===k:null})).join("");if(!i.length&&!o.length){s.logger.warn("No such stream tracks! Setting to default parameters");var a=this.getVideoTracks(),c=this.getAudioTracks();c.length?i=c[0].track_id:s.logger.warn("No audio tracks"),a.length?o=a[0].track_id:s.logger.warn("No video tracks")}if(i.length||(this.sb.sourceBuffer.audio&&this.sb.removeSourceBuffer(),this.media.muted=!0,s.logger.warn("No audio tracks")),o.length&&i.length&&this.mediaSource.sourceBuffers.length<=1)return this.stop(),this.videoTrack=o,this.audioTrack=i,void(this._stop?this.play(o,i):setTimeout((function(){t.play(o,i)}),0));this.onStartStalling(),this.ws.setTracks(o,i),this.addPlayerStat("bitrate_change_count"),this.videoTrack=o,this.audioTrack=i,this._setTracksFlag=!0,this.waitForInitFrame=!0}else this.pendingTracks=r}else s.logger.warn("Media info did not loaded. Should try after onMediaInfo triggered or inside.")}},{key:"autoTrackSelection",value:function(e){if(this.mediaInfo){var t,r,n,o,i,a,c,l=this.getVideoTracks(),u=this.getAudioTracks();e?(1===l.length?t=l[0].track_id:(l[0].bitrate?o="bitrate":l[0].pixel_width&&(o="pixel_width"),n=l[0][o],t=l[0].track_id,l.forEach((function(e){e[o]>n&&(n=e[o],t=e.track_id)}))),u.length&&(1===u.length?r=u[0].track_id:(r=u[0].track_id,u.forEach((function(e){e.sample_rate>n&&(r=e.track_id)}))))):(1===l.length?t=l[0].track_id:(l[0].bitrate?a="bitrate":l[0].pixel_width&&(a="pixel_width"),i=l[0][a],t=l[0].track_id,l.forEach((function(e){e[a]0&&void 0!==arguments[0]&&arguments[0];this._pause=!1,this.playing=!1,this.liveError=!1,this.shouldPlay=!1,this.audioTrack="",this.videoTrack="",this.endProgressTimer(),t||this.onEvent({key:Date.now(),data:{event:"play_init",userInfo:window.navigator.userAgent,playerInfo:"MSEPlayer".concat(e.version?"@".concat(e.version):"")}})}},{key:"_resume",value:function(){this.ws.resume(),this.onEvent({key:Date.now(),data:{event:"play_websocket_resume"}})}},{key:"onMediaDetaching",value:function(){var e=this;if(this.stopRunning)s.logger.warn("stop is running.");else{if(this.stopRunning=!0,this.handlerMediaDetaching.bind(this),!this.playPromise)return this.handlerMediaDetaching();this.playPromise.catch((function(){return e.handlerMediaDetaching()})).finally((function(){return e.handlerMediaDetaching()}))}}},{key:"handlerMediaDetaching",value:function(){var e=this;return s.logger.info("media source detaching"),new Promise((function(t,r){if(e.removeMediaSource(),!e.media)return r("no media to detach");e.removeListeners(),e.oncvp=null,e.mediaSource=null,e.init(!0),e.ws.destroy(),e.sb.destroy(),e.media.onemptied=function(){return s.logger.log("[mse-player]: media emptied"),e.stopRunning=!1,e._stop=!0,delete e.playPromise,t()}}))}},{key:"removeMediaSource",value:function(){var e=this,t=this.mediaSource;if(t){if("open"===t.readyState)try{t.endOfStream()}catch(e){s.logger.warn("onMediaDetaching:".concat(e.message," while calling endOfStream"))}t.removeEventListener(u.default.MEDIA_SOURCE_SOURCE_OPEN,this.onmso),t.removeEventListener(u.default.MEDIA_SOURCE_SOURCE_ENDED,this.onmse),t.removeEventListener(u.default.MEDIA_SOURCE_SOURCE_CLOSE,this.onmsc),this.onmso=null,this.onmse=null,this.onmsc=null}var r=function(){e.media.src="",e.media.load(),e.resetTimer&&(clearTimeout(e.resetTimer),e.resetTimer=void 0)};this.playPromise&&this.playPromise.then((function(){r()})).catch((function(){r()}))}},{key:"onMediaElementEmptied",value:function(e){return this.onMediaElementEmptied&&this.media&&(this.media.removeEventListener(u.default.MEDIA_ELEMENT_EMPTIED,this.onMediaElementEmptied),this._onmee=void 0),e}},{key:"onAttachMedia",value:function(e){var t=this;this.media=e.media;var r=this.media;if(!(r instanceof HTMLMediaElement))throw new Error(f.default.NOT_HTML_MEDIA_ELEMENT);if(r){var n=this.mediaSource=new MediaSource;return this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),n.addEventListener(u.default.MEDIA_SOURCE_SOURCE_ENDED,this.onmse),n.addEventListener(u.default.MEDIA_SOURCE_SOURCE_CLOSE,this.onmsc),r.src=URL.createObjectURL(n),this.eventLog=function(e){t.onEvent&&t.onEvent(e)},this.addListeners(),this.liveError?void(this.player=void 0):new Promise((function(e){t.onmso=t.onMediaSourceOpen.bind(t,e),n.addEventListener(u.default.MEDIA_SOURCE_SOURCE_OPEN,t.onmso)}))}}},{key:"onMediaSourceOpen",value:function(e){e();var t=this.mediaSource;t&&t.removeEventListener(u.default.MEDIA_SOURCE_SOURCE_OPEN,this.onmso),URL.revokeObjectURL(this.media.src),this.shouldPlay&&(this.shouldPlay=!1,s.logger.info("readyState now is ".concat(this.mediaSource.readyState,", and will be played"),this.videoTrack,this.audioTrack),this._play(this.videoTrack,this.audioTrack))}},{key:"onDisconnect",value:function(e){this.onEvent({key:Date.now(),data:{event:"play_diconnected"}}),this.opts.onDisconnect&&this.opts.onDisconnect(e)}},{key:"dispatchMessage",value:function(e){var t=this;if(!this.stopRunning){this.playerStatsObject.first_byte_at||(this.playerStatsObject.first_byte_at=Date.now(),this.addStat({first_byte_at:this.playerStatsObject.first_byte_at}));var r=e.rawData,n=e.parsedData,o=e.isDataAB;a.logDM(o,n);try{if(o){if(this.waitForInitFrame)return s.logger.log("old frames");this.sb.procArrayBuffer(r)}if(n&&n.type===c.EVENT_SEGMENT){var i=n[c.EVENT_SEGMENT];switch(s.logger.log("%c ".concat(n.type," ").concat("event"===n.type?n.event:"mse_init_segment"),"background: aquamarine;",n),i){case"resumed":this._pause&&!this.playing&&this.onStartStalling(),this.onResume&&this.onResume();break;case"paused":case"tracks_switched":break;case"seeked":case"switched_to_live":if(this.seekValue=void 0,this.opts.onSeeked)try{this.opts.onSeeked()}catch(e){s.logger.error(e)}break;case"recordings_ended":this._eos=!0,this.sb.onBufferEos();break;case"stream_unavailable":if("static"in n&&0==n.static)s.logger.info("Stream is on on demand mode, waiting for init segment"),this.onStartStalling();else{if(s.logger.warn("do playPromise reject with error"),this.ws.connectionPromise&&this.ws.connectionPromise.then((function(){return t.ws.pause()})),!this.liveError)return this.onPlayerError({error:"playPromise reject - stream unavaible"}),this.liveError=!0,this.shouldPlay=!1,void(this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=void 0));this.rejectThenMediaSourceOpen&&(this.rejectThenMediaSourceOpen(),this.resolveThenMediaSourceOpen=void 0,this.rejectThenMediaSourceOpen=void 0),this.mediaSource.endOfStream()}break;default:this.opts.onEvent&&this.opts.onEvent({error:"unhandled_event",event:i}),s.logger.warn("unknown type of event",i)}return}if(n&&n.type===c.MSE_INIT_SEGMENT)return this.procInitSegment(r)}catch(e){a.showDispatchError.bind(this)(e);try{if(this.media.error)this.onPlayerError({error:"Media error",mediaError:this.media.error}),this.stop();else if(this.mediaInfo&&this.mediaInfo.activeStreams){var l=this.mediaInfo.activeStreams;this.setTracks([l.video?l.video:"",l.audio?l.audio:""])}}catch(e){this.ws.pause()}}}}},{key:"procInitSegment",value:function(t){var r=this,n=JSON.parse(t);if(n.type!==c.MSE_INIT_SEGMENT)return s.logger.warn("type is not ".concat(c.MSE_INIT_SEGMENT));this.waitForInitFrame&&(this.waitForInitFrame=!1),this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=void 0),this.sb.isBuffered()&&(this.sb.doFlush(),this.sb.seek()),this.sb.setTracksByType(n);var o=m(m({},n.metadata),{},{tracks:n.metadata.streams?n.metadata.streams:n.metadata.tracks,streams:n.metadata.streams?n.metadata.streams:n.metadata.tracks}),i=n.metadata.streams;n.metadata.tracks&&(i=n.metadata.tracks);var a={},l=this.sb.videoTrackId&&this.sb.videoTrackId.id-1;if(i[l]&&i[l].track_id){if(i[l].bitrate&&0===i[l].bitrate||0===i[l].height||0===i[l].width)return void this.onPlayerError({error:"Video track error"});a.video=i[l].track_id}var u,f=this.sb.audioTrackId&&this.sb.audioTrackId.id-1;f&&i[f]&&i[f].track_id&&(i[f].bitrate&&0===i[f].bitrate?(this.onPlayerError({error:"Audio track error"}),n.tracks.forEach((function(e,t){e.id===r.sb.audioTrackId.id&&(u=t)})),n.tracks.splice(u,1),this.sb.sourceBuffer.audio&&(this.mediaSource.removeSourceBuffer(this.sb.sourceBuffer.audio),delete this.sb.sourceBuffer.audio)):a.audio=i[f].track_id);var p,h=m(m({},o),{},{activeStreams:a,version:e.version});this.playerStatsObject.source_id=n.session_id,this.addStat({source_id:this.playerStatsObject.source_id}),this.doMediaInfo(h),s.logger.log("%cprocInitSegment:","background: lightpink;",n),this.onEvent({key:Date.now(),data:m({event:"play_metadata"},h)}),this.mediaSource&&!this.mediaSource.sourceBuffers.length&&(this.sb.setMediaSource(this.mediaSource),this.sb.createSourceBuffers(n)),this.liveError||this.sb.createTracks(n.tracks),this.opts.videoQuality&&this.firstStart&&(this.firstStart=!1,"lowest"===this.opts.videoQuality?p=this.autoTrackSelection(!1):"highest"===this.opts.videoQuality&&(p=this.autoTrackSelection(!0)),this.ws.setTracks(p[0]||"",p[1]||"")),this.opts.preferHQ&&s.logger.info("[MSE]: preferHQ option is depricated. Use videoQuality(lowest/highest) instead"),this.ws.resume()}},{key:"doMediaInfo",value:function(e){if(s.logger.log("%cmediaInfo:","background: orange;",e),this.mediaInfo=e,this.onMediaInfo)try{this.onMediaInfo(e)}catch(e){s.logger.error(a.errorMsg(e))}}},{key:"getVideoTracks",value:function(){if(this.mediaInfo){var e=this.mediaInfo.streams?"streams":"tracks";return this.mediaInfo[e].filter((function(e){return e.content===_}))}}},{key:"getAudioTracks",value:function(){if(this.mediaInfo){var e=this.mediaInfo.streams?"streams":"tracks";return this.mediaInfo[e].filter((function(e){return e.content===k}))}}},{key:"immediateLevelSwitchEnd",value:function(){var e=this,t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,this.previouslyPaused||(this.playPromise=t.play(),this.playPromise.then((function(){e._pause=!1,e.playing=!0}))))}},{key:"onStartStalling",value:function(){var e=this;this._pause||(this.resetTimer||(this.resetTimer=setTimeout((function(){e.restart()}),6e4)),this._stalling||(this.opts.onStartStalling&&this.opts.onStartStalling(),this._stalling=!0,s.logger.log("onStartStalling"),this.playerStatsObject.started_at&&(this.addPlayerStat("stall_count"),this.startStallingTime=Date.now()),this.onEvent({key:Date.now(),data:{event:"play_stalled"}})))}},{key:"onEndStalling",value:function(){if(this._stalling){if(this.opts.onEndStalling&&this.opts.onEndStalling(),this._stalling=!1,s.logger.log("onEndStalling"),clearTimeout(this.resetTimer),this.resetTimer=void 0,this.startStallingTime){var e=this.playerStatsObject.application;if(e){var t=e.stall_duration;t+=Date.now()-this.startStallingTime,this.startStallingTime=null,this.addPlayerStat("stall_duration",!1,t)}}this.onEvent({key:Date.now(),data:{event:"play_resumed"}})}}},{key:"startProgressTimer",value:function(){this.timer=setInterval(this.onTimer.bind(this),this.opts.progressUpdateTime)}},{key:"endProgressTimer",value:function(){clearInterval(this.timer),this.timer=void 0}},{key:"onTimer",value:function(){if(this._eos)return s.logger.log("nothing to play");if(this.immediateSwitch&&this.immediateLevelSwitchEnd(),this.sb.lastLoadedUTC!==this.utcPrev&&!this._stalling&&(this.utcPrev=this.sb.lastLoadedUTC,this.onProgress))try{this.onProgress(this.sb.lastLoadedUTC)}catch(e){s.logger.error(a.errorMsg(e))}}},{key:"onMediaSourceEnded",value:function(){s.logger.log("media source ended");try{this.opts.onEOS&&this.opts.onEOS()}catch(e){s.logger.error("error while proccessing onEOS")}}},{key:"onMediaSourceClose",value:function(){s.logger.log("media source closed")}},{key:"onConnectionRetry",value:function(){var e=this;this.retryConnectionTimer||this._stop?this.retry>=this.opts.connectionRetries&&clearInterval(this.retryConnectionTimer):this.retry0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),("x"===r?n:3&n|8).toString(16)}))}},{key:"addPlayerStat",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.playerStatsObject.application;n&&(r?n[e]=Math.round(r):t&&n[e]++,this.playerStatsObject.application=n,this.addStat({application:n}))}},{key:"addStat",value:function(e){this.statsWorker&&this.statsWorker.postMessage({command:"add",commandObj:e})}},{key:"getStats",value:function(){return m(m({},this.playerStatsObject),{},{id:this.uuid})}},{key:"onStatsWorkerMessage",value:function(){if(this.playerStatsObject.started_at&&this.opts.statsSendEnable){var e=(this.playerStatsObject&&this.playerStatsObject.source_id||{}).source_id,t=this.url.replace(/sessions/,"sessions/".concat(e?"".concat(e):""));fetch(t,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"PUT",body:JSON.stringify(this.getStats())})}}}],p=[{key:"version",get:function(){return"24.6.1"}},{key:"replaceHttpByWS",value:function(e){return a.replaceHttpByWS(e)}},{key:"isSupported",value:function(){return a.isSupportedMSE()}}],l&&w(t.prototype,l),p&&w(t,p),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,l,p}(),e.exports=t.default},216:(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},n(e)}function o(){}Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.enableLogs=void 0;var i={trace:o,debug:o,log:o,warn:o,info:o,error:o},a=i;function s(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i "+t}(e,o[0])),o&&t.apply(r.g.console,o)}:o}(t)}))}t.enableLogs=function(e){if(!0===e||"object"===n(e)){s(e,"trace","debug","log","info","warn","error");try{a.log()}catch(e){a=i}}else a=i},t.logger=a},203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawDataToUint8Array=function(e){return new Uint8Array(e)},t.base64ToArrayBuffer=function(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))},t.checkVideoProgress=void 0,t.debugData=c,t.doArrayBuffer=function(e){e.isInit||(this.utc=s(e.data),this.lastLoadedUTC=this.utc)},t.errorMsg=void 0,t.getMediaSource=o,t.getRealUtcFromData=s,t.getTrackId=a,t.humanTime=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!(e>0))return"";var r=e,n=new Date;n.setTime(1e3*r);var o=!(!1===t),i=o?n.getHours():n.getUTCHours(),a=o?n.getMinutes():n.getUTCMinutes(),s=o?n.getSeconds():n.getUTCSeconds();return u(i)+":"+u(a)+":"+u(s)},t.isAndroid=i,t.isSupportedMSE=function(){if(i())return!1;var e=o(),t=window.SourceBuffer||window.WebKitSourceBuffer,r=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.4d401f,mp4a.40.2"'),n=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return!!r&&!!n},t.logDM=function(e,t){t&&n.logger.log("%c ".concat(t.type," ").concat("event"===t.type?t.event:"mse_init_segment"),"background: aquamarine;",t)},t.pad2=u,t.replaceHttpByWS=void 0,t.showDispatchError=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"data"in e&&e.data instanceof ArrayBuffer&&n.logger.error("Data:",c(e.data)),n.logger.error(l(e),t),this.media&&"error"in this.media&&n.logger.error("MediaError:",this.media.error),++f>=this.opts.errorsBeforeStop&&(f=0,this.stopPromise=this.stop()),this.onError&&this.onError(t,e)};var n=r(216);function o(){if("undefined"!=typeof window)return window.MediaSource||window.WebKitMediaSource}function i(){return-1!==navigator.userAgent.indexOf("Android")}function a(e){return e[47]}function s(e){return(e[92]<<24|e[93]<<16|e[94]<<8|e[95])+(e[96]<<24|e[97]<<16|e[98]<<8|e[99])/1e6}function c(e){var t=new Uint8Array(e);return{trackId:a(t),utc:s(t),view:t}}t.checkVideoProgress=function(e,t){return function(){var r=e.currentTime,o=e.buffered,i=e.buffered.length,a=function(e,t,r){var n;return function(){var o=this,i=arguments,a=r&&!n;clearTimeout(n),n=setTimeout((function(){n=null,r||e.apply(o,i)}),t),a&&e.apply(o,i)}},s=function(e,t,r,o){try{for(var i=0;i.5){if(t.updating)return;return t.remove(c,l),!0}}}catch(e){n.logger.warn("removeBufferRange failed",e)}return!1};if(t)for(var c=t.sb.sourceBuffer,l=Object.keys(c),u=r-30,f=l.length-1;f>=0;f--){var p=l[f],h=c[p];if(h){var d=h.buffered;d.length>0&&u>d.start(0)&&a(s(0,h,0,u),100)}}if(t.media.readyState<=2&&2===t.media.networkState?t.onStartStalling():t.media.readyState>2&&t.onEndStalling(),i){var y=o.end(i-1),m=Math.abs(y-r);if(t.playerStatsObject){if(t.playerStatsObject.bytes=t.sb.totalBytesCollected,t.playerStatsObject.updated_at=Date.now(),t.playing){if(t.playbackSegmentStart){var g=t.playerStatsObject.application;if(g){var v=t.media.getVideoPlaybackQuality(),b=v.corruptedVideoFrames,S=v.droppedVideoFrames,w=v.totalVideoFrames,E=g.live_duration;E+=t.playerStatsObject.updated_at-t.playbackSegmentStart,t.addPlayerStat("live_duration",!1,E),t.addPlayerStat("total_video_frames",!1,w),t.addPlayerStat("dropped_video_frames",!1,S),t.addPlayerStat("corrupted_video_frames",!1,b)}}t.playbackSegmentStart=t.playerStatsObject.updated_at}t.addStat({updated_at:t.playerStatsObject.updated_at,bytes:t.sb.totalBytesCollected})}m<=t.opts.maxBufferDelay||(n.logger.log("nudge",r,"->",i?y:"-",r-y),e.currentTime=y-.2)}}},t.replaceHttpByWS=function(e){return e.replace(/^http/,"ws")};var l=t.errorMsg=function(e){return"Error ".concat(e.name,": ").concat(e.message,"\n").concat(e.stack)};function u(e){return e<=9?"0"+e:""+e}var f=0},75:(e,t,r)=>{"use strict";var n=r(453),o=r(487),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},487:(e,t,r)=>{"use strict";var n=r(743),o=r(453),i=r(897),a=r(675),s=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||n.call(c,s),u=r(655),f=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=l(n,c,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return l(n,s,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},41:(e,t,r)=>{"use strict";var n=r(655),o=r(68),i=r(675),a=r(795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(n)n(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===c&&f?f.writable:!c});else{if(!u&&(s||c||l))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},655:(e,t,r)=>{"use strict";var n=r(453)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},237:e=>{"use strict";e.exports=EvalError},383:e=>{"use strict";e.exports=Error},290:e=>{"use strict";e.exports=RangeError},538:e=>{"use strict";e.exports=ReferenceError},68:e=>{"use strict";e.exports=SyntaxError},675:e=>{"use strict";e.exports=TypeError},345:e=>{"use strict";e.exports=URIError},353:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n{"use strict";var n=r(353);e.exports=Function.prototype.bind||n},453:(e,t,r)=>{"use strict";var n,o=r(383),i=r(237),a=r(290),s=r(538),c=r(68),l=r(675),u=r(345),f=Function,p=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(e){h=null}var d=function(){throw new l},y=h?function(){try{return d}catch(e){try{return h(arguments,"callee").get}catch(e){return d}}}():d,m=r(39)(),g=r(24)(),v=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),b={},S="undefined"!=typeof Uint8Array&&v?v(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":m&&v?v([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&v?v(v([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&v?v((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&v?v((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&v?v(""[Symbol.iterator]()):n,"%Symbol%":m?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":y,"%TypedArray%":S,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(v)try{null.error}catch(e){var E=v(v(e));w["%Error.prototype%"]=E}var _=function e(t){var r;if("%AsyncFunction%"===t)r=p("async function () {}");else if("%GeneratorFunction%"===t)r=p("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=p("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&v&&(r=v(o.prototype))}return w[t]=r,r},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(743),T=r(957),j=O.call(Function.call,Array.prototype.concat),A=O.call(Function.apply,Array.prototype.splice),M=O.call(Function.call,String.prototype.replace),P=O.call(Function.call,String.prototype.slice),I=O.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,B=function(e,t){var r,n=e;if(T(k,n)&&(n="%"+(r=k[n])[0]+"%"),T(w,n)){var o=w[n];if(o===b&&(o=_(n)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=P(e,0,1),r=P(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return M(e,x,(function(e,t,r,o){n[n.length]=r?M(o,D,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=B("%"+n+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],A(r,j([0,1],u)));for(var f=1,p=!0;f=r.length){var g=h(a,d);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else p=T(a,d),a=a[d];p&&!s&&(w[i]=a)}}return a}},795:(e,t,r)=>{"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},592:(e,t,r)=>{"use strict";var n=r(655),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},24:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},39:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},957:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(743);e.exports=i.call(n,o)},859:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,u=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,S=String.prototype.toUpperCase,w=String.prototype.toLowerCase,E=RegExp.prototype.test,_=Array.prototype.concat,k=Array.prototype.join,O=Array.prototype.slice,T=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,x=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-T(-e):T(e);if(n!==e){var o=String(n),i=v.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var R=r(634),U=R.custom,L=G(U)?U:null;function N(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function C(e){return b.call(String(e),/"/g,""")}function F(e){return!("[object Array]"!==H(e)||I&&"object"==typeof e&&I in e)}function W(e){return!("[object RegExp]"!==H(e)||I&&"object"==typeof e&&I in e)}function G(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(q(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!q(c,"customInspect")||c.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var S=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var E=String(t);return S?B(t,E):E}if("bigint"==typeof t){var T=String(t)+"n";return S?B(t,T):T}var A=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=A&&A>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var U,V=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=k.call(Array(e.indent+1)," ")}return{base:r,prev:k.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(Q(s,t)>=0)return"[Circular]";function $(t,r,n){if(r&&(s=O.call(s)).push(r),n){var i={depth:c.depth};return q(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!W(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,$);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+k.call(te,", ")+" }":"")}if(G(t)){var re=P?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(t);return"object"!=typeof t||P?re:z(re)}if((U=t)&&"object"==typeof U&&("undefined"!=typeof HTMLElement&&U instanceof HTMLElement||"string"==typeof U.nodeName&&"function"==typeof U.getAttribute)){for(var ne="<"+w.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie"}if(F(t)){if(0===t.length)return"[]";var ae=X(t,$);return V&&!function(e){for(var t=0;t=0)return!1;return!0}(ae)?"["+Z(ae,V)+"]":"[ "+k.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||I&&"object"==typeof e&&I in e)}(t)){var se=X(t,$);return"cause"in Error.prototype||!("cause"in t)||x.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(se,", ")+" }":"{ ["+String(t)+"] "+k.call(_.call("[cause]: "+$(t.cause),se),", ")+" }"}if("object"==typeof t&&y){if(L&&"function"==typeof t[L]&&R)return R(t,{depth:A-o});if("symbol"!==y&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return a&&a.call(t,(function(e,r){ce.push($(r,t,!0)+" => "+$(e,t))})),Y("Map",i.call(t),ce,V)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push($(e,t))})),Y("Set",l.call(t),le,V)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==H(e)||I&&"object"==typeof e&&I in e)}(t))return z($(Number(t)));if(function(e){if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return z($(j.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||I&&"object"==typeof e&&I in e)}(t))return z(d.call(t));if(function(e){return!("[object String]"!==H(e)||I&&"object"==typeof e&&I in e)}(t))return z($(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==H(e)||I&&"object"==typeof e&&I in e)}(t)&&!W(t)){var ue=X(t,$),fe=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",he=!fe&&I&&Object(t)===t&&I in t?v.call(H(t),8,-1):pe?"Object":"",de=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||pe?"["+k.call(_.call([],he||[],pe||[]),": ")+"] ":"");return 0===ue.length?de+"{}":V?de+"{"+Z(ue,V)+"}":de+"{ "+k.call(ue,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return V.call(e,t)}function H(e){return y.call(e)}function Q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return K(v.call(e,0,t.maxStringLength),t)+n}return N(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$),"single",t)}function $(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?Z(r,n):k.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+k.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=F(e),n=[];if(r){n.length=e.length;for(var o=0;o{"use strict";var n=r(835),o=n.parse,i=n.Url;function a(e){var t=e.url;if(void 0!==t){var r=e._parsedUrl;return c(t,r)?r:((r=s(t))._raw=t,e._parsedUrl=r)}}function s(e){if("string"!=typeof e||47!==e.charCodeAt(0))return o(e);for(var t=e,r=null,n=null,a=1;a{"use strict";var n=r(453),o=r(41),i=r(592)(),a=r(795),s=r(675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},920:(e,t,r)=>{"use strict";var n=r(453),o=r(75),i=r(859),a=r(675),s=n("%WeakMap%",!0),c=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),y=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return p(t,n)}else if(r)return function(e,t){var r=y(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(c){if(t)return d(t,n)}else if(r)return function(e,t){return!!y(e,t)}(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),u(e,n,o)):c?(t||(t=new c),h(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=y(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},270:function(e,t,r){var n;e=r.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var i,a=2147483647,s=36,c=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function d(e){throw new RangeError(f[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function m(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(u,".")).split("."),t).join(".")}function g(e){for(var t,r,n=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=s)e=p(e/35);return p(n+36*e/(e+38))}function w(e){var t,r,n,o,i,c,l,u,f,h,y,m=[],g=e.length,b=0,w=128,E=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&d("not-basic"),m.push(e.charCodeAt(n));for(o=r>0?r+1:0;o=g&&d("invalid-input"),((u=(y=e.charCodeAt(o++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:s)>=s||u>p((a-b)/c))&&d("overflow"),b+=u*c,!(u<(f=l<=E?1:l>=E+26?26:l-E));l+=s)c>p(a/(h=s-f))&&d("overflow"),c*=h;E=S(b-i,t=m.length+1,0==i),p(b/t)>a-w&&d("overflow"),w+=p(b/t),b%=t,m.splice(b++,0,w)}return v(m)}function E(e){var t,r,n,o,i,c,l,u,f,y,m,v,w,E,_,k=[];for(v=(e=g(e)).length,t=128,r=0,i=72,c=0;c=t&&mp((a-r)/(w=n+1))&&d("overflow"),r+=(l-t)*w,t=l,c=0;ca&&d("overflow"),m==t){for(u=r,f=s;!(u<(y=f<=i?1:f>=i+26?26:f-i));f+=s)_=u-y,E=s-y,k.push(h(b(y+_%E,0))),u=p(_/E);k.push(h(b(u,0))),i=S(r,w,n==o),r=0,++n}++r,++t}return k.join("")}i={version:"1.4.1",ucs2:{decode:g,encode:v},decode:w,encode:E,toASCII:function(e){return m(e,(function(e){return l.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return m(e,(function(e){return c.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)}()},902:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:o}},98:(e,t,r)=>{"use strict";var n=r(207),o=r(969),i=r(902);e.exports={formats:i,parse:o,stringify:n}},969:(e,t,r)=>{"use strict";var n=r(176),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,u=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=l.split(t.delimiter,f),h=-1,d=t.charset;if(t.charsetSentinel)for(u=0;u-1&&(m=i(m)?[m]:m);var S=o.call(r,y);S&&"combine"===t.duplicates?r[y]=n.combine(r[y],m):S&&"last"!==t.duplicates||(r[y]=m)}return r}(e,r):e,f=r.plainObjects?Object.create(null):{},p=Object.keys(u),h=0;h{"use strict";var n=r(920),o=r(176),i=r(902),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,p=i.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},y=function e(t,r,i,a,s,l,f,p,y,m,g,v,b,S,w,E,_,k){for(var O,T=t,j=k,A=0,M=!1;void 0!==(j=j.get(d))&&!M;){var P=j.get(t);if(A+=1,void 0!==P){if(P===A)throw new RangeError("Cyclic object value");M=!0}void 0===j.get(d)&&(A=0)}if("function"==typeof m?T=m(r,T):T instanceof Date?T=b(T):"comma"===i&&c(T)&&(T=o.maybeMap(T,(function(e){return e instanceof Date?b(e):e}))),null===T){if(l)return y&&!E?y(r,h.encoder,_,"key",S):r;T=""}if("string"==typeof(O=T)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||o.isBuffer(T))return y?[w(E?r:y(r,h.encoder,_,"key",S))+"="+w(y(T,h.encoder,_,"value",S))]:[w(r)+"="+w(String(T))];var I,x=[];if(void 0===T)return x;if("comma"===i&&c(T))E&&y&&(T=o.maybeMap(T,y)),I=[{value:T.length>0?T.join(",")||null:void 0}];else if(c(m))I=m;else{var D=Object.keys(T);I=g?D.sort(g):D}var B=p?r.replace(/\./g,"%2E"):r,R=a&&c(T)&&1===T.length?B+"[]":B;if(s&&c(T)&&0===T.length)return R+"[]";for(var U=0;U0?S+b:""}},176:(e,t,r)=>{"use strict";var n=r(902),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o=c?s.slice(u,u+c):s,p=[],h=0;h=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===n.RFC1738&&(40===d||41===d)?p[p.length]=f.charAt(h):d<128?p[p.length]=a[d]:d<2048?p[p.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?p[p.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(h+=1,d=65536+((1023&d)<<10|1023&f.charCodeAt(h)),p[p.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}l+=p.join("")}return l},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n{"use strict";var n=r(270);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),u=["%","/","?",";","#"].concat(l),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(98);function v(e,t,r){if(e&&"object"==typeof e&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o127?x+="x":x+=I[D];if(!x.match(p)){var R=M.slice(0,T),U=M.slice(T+1),L=I.match(h);L&&(R.push(L[1]),U.unshift(L[2])),U.length&&(v="/"+U.join(".")+v),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=n.toASCII(this.hostname));var N=this.port?":"+this.port:"",C=this.hostname||"";this.host=C+N,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!d[w])for(T=0,P=l.length;T0)&&r.host.split("@"))&&(r.auth=A.shift(),r.hostname=A.shift(),r.host=r.hostname)),r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var k=E.slice(-1)[0],O=(r.host||e.host||E.length>1)&&("."===k||".."===k)||""===k,T=0,j=E.length;j>=0;j--)"."===(k=E[j])?E.splice(j,1):".."===k?(E.splice(j,1),T++):T&&(E.splice(j,1),T--);if(!S&&!w)for(;T--;T)E.unshift("..");!S||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var A,M=""===E[0]||E[0]&&"/"===E[0].charAt(0);return _&&(r.hostname=M?"":E.length?E.shift():"",r.host=r.hostname,(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.hostname=A.shift(),r.host=r.hostname)),(S=S||r.host&&E.length)&&!M&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=v(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o},512:e=>{"use strict";e.exports=function(e,t,r,n){var o=self||window;try{try{var i;try{i=new o.Blob([e])}catch(t){(i=new(o.BlobBuilder||o.WebKitBlobBuilder||o.MozBlobBuilder||o.MSBlobBuilder)).append(e),i=i.getBlob()}var a=o.URL||o.webkitURL,s=a.createObjectURL(i),c=new o[t](s,r);return a.revokeObjectURL(s),c}catch(n){return new o[t]("data:application/javascript,".concat(encodeURIComponent(e)),r)}}catch(e){if(!n)throw Error("Inline worker is not supported");return new o[t](n,r)}}},634:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="",r(813)})(),e.exports=n()}}]);